Skip to content

Commit 4b19f6b

Browse files
ramalingamcmattrope
authored andcommitted
drm/i915/dg2: Add Wa_16013000631
Invalidate IC cache through pipe control command as part of the ctx restore flow through indirect ctx pointer. v2: - Move pipe control from xcs indirect context to the rcs indirect context. We'll eventually need this on the CCS engines too, but support for those hasn't landed yet. Cc: Chris Wilson <[email protected]> Signed-off-by: Ramalingam C <[email protected]> Signed-off-by: Matt Roper <[email protected]> Reviewed-by: Clint Taylor <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 34734ab commit 4b19f6b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1167,6 +1167,11 @@ gen12_emit_indirect_ctx_rcs(const struct intel_context *ce, u32 *cs)
11671167
cs = gen12_emit_cmd_buf_wa(ce, cs);
11681168
cs = gen12_emit_restore_scratch(ce, cs);
11691169

1170+
/* Wa_16013000631:dg2 */
1171+
if (IS_DG2_GRAPHICS_STEP(ce->engine->i915, G10, STEP_B0, STEP_C0) ||
1172+
IS_DG2_G11(ce->engine->i915))
1173+
cs = gen8_emit_pipe_control(cs, PIPE_CONTROL_INSTRUCTION_CACHE_INVALIDATE, 0);
1174+
11701175
return cs;
11711176
}
11721177

0 commit comments

Comments
 (0)