]> Gentwo Git Trees - linux/.git/commit
drm/xe/xelp: Implement Wa_16010904313
authorTvrtko Ursulin <tvrtko.ursulin@igalia.com>
Fri, 11 Jul 2025 16:01:52 +0000 (17:01 +0100)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 25 Jul 2025 15:42:49 +0000 (08:42 -0700)
commite8372edec948318934c71542e939d1a8fb8fabcf
tree77e4ef75f828181b9ddbfbdfb79311bd4a620229
parent9b807f0bb0d0f4b029e56dd2daa4a5e6d87fab61
drm/xe/xelp: Implement Wa_16010904313

Add XeLP workaround 16010904313.

The description calls for it to be emitted as the indirect context buffer
workaround for render and compute, and from the workaround batch buffer
for the other engines. Therefore we plug into the previously added
respective top level emission functions.

The actual command streamer programming sequence differs from what is
described in the PRM, in that it assumes the listed LRCA offset was
supposed to actually refer to the location of the CTX_TIMESTAMP register
instead of LRCA + 0x180c (which is in GPR space). Latter appears to make
more sense under the assumption that multiple writes are helping with
restoring the CTX_TIMESTAMP register content from the saved context state.

Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Cc: Matt Roper <matthew.d.roper@intel.com>
Link: https://lore.kernel.org/r/20250711160153.49833-8-tvrtko.ursulin@igalia.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/instructions/xe_mi_commands.h
drivers/gpu/drm/xe/xe_lrc.c
drivers/gpu/drm/xe/xe_wa_oob.rules