Patch "drm/i915: Replace the unconditional clflush with drm_clflush_virt_range()" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    drm/i915: Replace the unconditional clflush with drm_clflush_virt_range()

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     drm-i915-replace-the-unconditional-clflush-with-drm_.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 2ffa1c26e9b351e188d9dc2dbd2805b403ca69ad
Author: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
Date:   Thu Oct 14 12:09:38 2021 +0300

    drm/i915: Replace the unconditional clflush with drm_clflush_virt_range()
    
    [ Upstream commit ef7ec41f17cbc0861891ccc0634d06a0c8dcbf09 ]
    
    Not all machines have clflush, so don't go assuming they do.
    Not really sure why the clflush is even here since hwsp
    is supposed to get snooped I thought.
    
    Although in my case we're talking about a i830 machine where
    render/blitter snooping is definitely busted. But it might
    work for the hswp perhaps. Haven't really reverse engineered
    that one fully.
    
    Cc: stable@xxxxxxxxxxxxxxx
    Cc: Chris Wilson <chris@xxxxxxxxxxxxxxxxxx>
    Cc: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx>
    Fixes: b436a5f8b6c8 ("drm/i915/gt: Track all timelines created using the HWSP")
    Signed-off-by: Ville Syrjälä <ville.syrjala@xxxxxxxxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20211014090941.12159-2-ville.syrjala@xxxxxxxxxxxxxxx
    Reviewed-by: Dave Airlie <airlied@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/intel_ring_submission.c b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
index 6f2f6ba87397..02e18e70c78e 100644
--- a/drivers/gpu/drm/i915/gt/intel_ring_submission.c
+++ b/drivers/gpu/drm/i915/gt/intel_ring_submission.c
@@ -292,7 +292,7 @@ static void xcs_sanitize(struct intel_engine_cs *engine)
 	sanitize_hwsp(engine);
 
 	/* And scrub the dirty cachelines for the HWSP */
-	clflush_cache_range(engine->status_page.addr, PAGE_SIZE);
+	drm_clflush_virt_range(engine->status_page.addr, PAGE_SIZE);
 
 	intel_engine_reset_pinned_contexts(engine);
 }



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux