Patch "drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval" has been added to the 6.1-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: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval

to the 6.1-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-don-t-set-pipe_control_flush_l3-for-aux-inv.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 4589ba84c92cdaaaa8a69adab5f7c8ac98435b93
Author: Nirmoy Das <nirmoy.das@xxxxxxxxx>
Date:   Tue Sep 26 16:24:01 2023 +0200

    drm/i915: Don't set PIPE_CONTROL_FLUSH_L3 for aux inval
    
    [ Upstream commit 128c20eda73bd3e78505c574fb17adb46195c98b ]
    
    PIPE_CONTROL_FLUSH_L3 is not needed for aux invalidation
    so don't set that.
    
    Fixes: 78a6ccd65fa3 ("drm/i915/gt: Ensure memory quiesced before invalidation")
    Cc: Jonathan Cavitt <jonathan.cavitt@xxxxxxxxx>
    Cc: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>
    Cc: <stable@xxxxxxxxxxxxxxx> # v5.8+
    Cc: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>
    Cc: Tvrtko Ursulin <tvrtko.ursulin@xxxxxxxxx>
    Cc: Matt Roper <matthew.d.roper@xxxxxxxxx>
    Cc: Tejas Upadhyay <tejas.upadhyay@xxxxxxxxx>
    Cc: Lucas De Marchi <lucas.demarchi@xxxxxxxxx>
    Cc: Prathap Kumar Valsan <prathap.kumar.valsan@xxxxxxxxx>
    Cc: Tapani Pälli <tapani.palli@xxxxxxxxx>
    Cc: Mark Janes <mark.janes@xxxxxxxxx>
    Cc: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
    Signed-off-by: Nirmoy Das <nirmoy.das@xxxxxxxxx>
    Acked-by: Matt Roper <matthew.d.roper@xxxxxxxxx>
    Reviewed-by: Andi Shyti <andi.shyti@xxxxxxxxxxxxxxx>
    Tested-by: Tapani Pälli <tapani.palli@xxxxxxxxx>
    Reviewed-by: Andrzej Hajda <andrzej.hajda@xxxxxxxxx>
    Link: https://patchwork.freedesktop.org/patch/msgid/20230926142401.25687-1-nirmoy.das@xxxxxxxxx
    (cherry picked from commit 03d681412b38558aefe4fb0f46e36efa94bb21ef)
    Signed-off-by: Rodrigo Vivi <rodrigo.vivi@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/gpu/drm/i915/gt/gen8_engine_cs.c b/drivers/gpu/drm/i915/gt/gen8_engine_cs.c
index cc84685368715..efc22f9b17f07 100644
--- a/drivers/gpu/drm/i915/gt/gen8_engine_cs.c
+++ b/drivers/gpu/drm/i915/gt/gen8_engine_cs.c
@@ -235,8 +235,17 @@ int gen12_emit_flush_rcs(struct i915_request *rq, u32 mode)
 		u32 flags = 0;
 		u32 *cs;
 
+		/*
+		 * L3 fabric flush is needed for AUX CCS invalidation
+		 * which happens as part of pipe-control so we can
+		 * ignore PIPE_CONTROL_FLUSH_L3. Also PIPE_CONTROL_FLUSH_L3
+		 * deals with Protected Memory which is not needed for
+		 * AUX CCS invalidation and lead to unwanted side effects.
+		 */
+		if (mode & EMIT_FLUSH)
+			flags |= PIPE_CONTROL_FLUSH_L3;
+
 		flags |= PIPE_CONTROL_TILE_CACHE_FLUSH;
-		flags |= PIPE_CONTROL_FLUSH_L3;
 		flags |= PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH;
 		flags |= PIPE_CONTROL_DEPTH_CACHE_FLUSH;
 		/* Wa_1409600907:tgl,adl-p */



[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