[PATCH v6 0/6] Create and use XE_DEVICE_WA infrastructure
Matt Atwood
matthew.s.atwood at intel.com
Wed Jul 9 22:15:59 UTC 2025
There is currently no way to apply and track workarounds that are needed
ahead of GT init. This series adds a bit field to the xe_device
structure similar to those in the GT structures to apply and track
workarounds applied at runtime (oobs).
Device workarounds in this new infrastructure are tracked in sysfs in a
new workarounds file.
Currently 15015404425 is the only workaround like this, so move it to
using this new infrastructure.
Wa_15015404425 is also needed for PTL A step compute dies. Implement two
workarounds. A device Wa_15015404425 oob workaround that applies for mmio
access before GMDID is available. A GT workaround Wa_15015404425_disbale
that disables the device Wa_15015404425 when it is not needed.
v2: Change naming from SoC to device, address styling issues, update
commit messages.
v3: rebase
v4: Fix compile issues
v5: rework xe_gen_wa_oob.c to be more versatile, move device oob init
into device_probe early, move xe_device new fields into a structure for
wa_active. Rename to xe_*_wa to xe_wa_* functions. Put the check to
XE_DEVICE_WA into 1 place (mmio_flush_pending_writes). Create a disable
macro, fix incidental bit clobbering. Reword explanation around PTL
Compute die A-step explanation in commit message.
v6: split xe_gen_wa_oob changes from Makefile, style nits, catch some
safe checks in RTP, make the implementation of Wa_15015404425 1 patch
Matt Atwood (6):
drm/xe: prepare xe_gen_wa_oob to be multi-use
drm/xe: add xe_device_wa infrastructure
drm/xe: add new type to RTP context
drm/xe: Add infrastructure for Device OOB workarounds
drm/xe: Move Wa_15015404425 to use the new XE_DEVICE_WA macro
drm/xe: extend Wa_15015404425 to apply to PTL
drivers/gpu/drm/xe/Makefile | 9 +++-
drivers/gpu/drm/xe/xe_debugfs.c | 20 ++++++++
drivers/gpu/drm/xe/xe_device.c | 8 ++++
drivers/gpu/drm/xe/xe_device_types.h | 12 +++++
drivers/gpu/drm/xe/xe_device_wa_oob.rules | 2 +
drivers/gpu/drm/xe/xe_gen_wa_oob.c | 45 +++++++++++++++---
drivers/gpu/drm/xe/xe_mmio.c | 8 ++--
drivers/gpu/drm/xe/xe_rtp.c | 32 +++++++++++++
drivers/gpu/drm/xe/xe_rtp.h | 3 +-
drivers/gpu/drm/xe/xe_rtp_types.h | 2 +
drivers/gpu/drm/xe/xe_wa.c | 58 +++++++++++++++++++++++
drivers/gpu/drm/xe/xe_wa.h | 22 ++++++++-
drivers/gpu/drm/xe/xe_wa_oob.rules | 2 +
13 files changed, 208 insertions(+), 15 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe_device_wa_oob.rules
--
2.49.0
More information about the Intel-xe
mailing list