drm/xe/pvc: Fix WA 18020744125
authorLucas De Marchi <lucas.demarchi@intel.com>
Wed, 6 Mar 2024 19:21:28 +0000 (11:21 -0800)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 8 Mar 2024 18:19:26 +0000 (10:19 -0800)
commit71e721485c77bd74a8af44f7907f72af1dec1af6
treecc720300ede7bb6f7b2a057d30ded3edb46ecb20
parentfb4511c9e63b2d908497d87ae82e6da688c96b80
drm/xe/pvc: Fix WA 18020744125

With the current state GUC_WA_RCS_REGS_IN_CCS_REGS_LIST could in theory
be removed since there is no render register being added to the list of
compute WAs. However the real issue is that 18020744125 is incomplete
and not setting the RING_HWSTAM on render as it should.

Writing this in RTP is a little more tricky as we want to write to
another's engine base when the match happens: first compute engine and
no render present. So use RING_HWSTAM(RENDER_RING_BASE) instead of the
usual XE_RTP_ACTION_FLAG(ENGINE_BASE).

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240306192128.1895603-2-lucas.demarchi@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_wa.c