Skip to content

Commit 62037ff

Browse files
mikuintickle
authored andcommitted
drm/i915/tgl: Include ro parts of l3 to invalidate
Aim for completeness and invalidate also the ro parts in l3 cache. This might allow to get rid of the preparser disable/enable workaround on invalidation path. Cc: Chris Wilson <[email protected]> Signed-off-by: Mika Kuoppala <[email protected]> Reviewed-by: Chris Wilson <[email protected]> Signed-off-by: Chris Wilson <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 613716b commit 62037ff

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/gpu/drm/i915/gt/intel_gpu_commands.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@
233233
#define PIPE_CONTROL_RENDER_TARGET_CACHE_FLUSH (1<<12) /* gen6+ */
234234
#define PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE (1<<11) /* MBZ on ILK */
235235
#define PIPE_CONTROL_TEXTURE_CACHE_INVALIDATE (1<<10) /* GM45+ only */
236+
#define PIPE_CONTROL_L3_RO_CACHE_INVALIDATE REG_BIT(10) /* gen12 */
236237
#define PIPE_CONTROL_INDIRECT_STATE_DISABLE (1<<9)
237238
#define PIPE_CONTROL_NOTIFY (1<<8)
238239
#define PIPE_CONTROL_FLUSH_ENABLE (1<<7) /* gen7+ */

drivers/gpu/drm/i915/gt/intel_lrc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3230,6 +3230,7 @@ static int gen12_emit_flush_render(struct i915_request *request,
32303230
flags |= PIPE_CONTROL_VF_CACHE_INVALIDATE;
32313231
flags |= PIPE_CONTROL_CONST_CACHE_INVALIDATE;
32323232
flags |= PIPE_CONTROL_STATE_CACHE_INVALIDATE;
3233+
flags |= PIPE_CONTROL_L3_RO_CACHE_INVALIDATE;
32333234

32343235
flags |= PIPE_CONTROL_STORE_DATA_INDEX;
32353236
flags |= PIPE_CONTROL_QW_WRITE;

0 commit comments

Comments
 (0)