Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <chris.p.wilson@intel.com>
Signed-off-by: Ramalingam C <ramalingam.c@intel.com>
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Clint Taylor <Clinton.A.Taylor@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20211116174818.2128062-5-matthew.d.roper@intel.com

authored by

Ramalingam C and committed by
Matt Roper
4b19f6b7 34734ab7

+5
+5
drivers/gpu/drm/i915/gt/intel_lrc.c
··· 1167 1167 cs = gen12_emit_cmd_buf_wa(ce, cs); 1168 1168 cs = gen12_emit_restore_scratch(ce, cs); 1169 1169 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 + 1170 1175 return cs; 1171 1176 } 1172 1177