Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/5] drm/xe: Create and use XE_DEVICE_WA infrastructure
@ 2025-06-25 19:33 Matt Atwood
  2025-06-25 19:33 ` [PATCH v3 1/5] drm/xe: add xe_device_wa infrastructure Matt Atwood
                   ` (6 more replies)
  0 siblings, 7 replies; 13+ messages in thread
From: Matt Atwood @ 2025-06-25 19:33 UTC (permalink / raw)
  To: intel-xe; +Cc: lucas.demarchi, matthew.d.roper, rodrigo.vivi, Matt Atwood

There currently is not a 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 the
existing sysfs entries in gtX/workarounds.

Currently 15015404425 is the only workaround like this, so move it to
using this new infrastructure.

PTL A0 is impacted by 15015404425, but only applies to Compute Die A0
stepping. The reality of modern platforms is that we're a Multi Chip
Package with logic spread acress multiple dies. This information not
being readily available during PCI probe without a read makes this more
complicated.

Apply 15015404425 to PTL unconditionally during PCI probe (and GT init).
After GT init use the Media GT stepping to determine if we can disable
this workaround.

v2: Change naming from SoC to device, address styling issues, update
commit messages
v3: rebase

Matt Atwood (5):
  drm/xe: add xe_device_wa infrastructure
  drm/xe: Add infrastructure for Device OOB workarounds
  drm/xe: Move Wa_15015404425 to use the new EX_DEVICE_WA macro
  drm/xe: extend Wa_15015404425 to apply to PTL
  drm/xe: disable wa_15015404425 for PTL B0

 drivers/gpu/drm/xe/Makefile               | 11 +++++-
 drivers/gpu/drm/xe/xe_device_types.h      |  9 +++++
 drivers/gpu/drm/xe/xe_device_wa_oob.rules |  2 +
 drivers/gpu/drm/xe/xe_gen_wa_oob.c        | 27 +++++++++----
 drivers/gpu/drm/xe/xe_mmio.c              | 10 ++---
 drivers/gpu/drm/xe/xe_pci.c               | 11 ++++++
 drivers/gpu/drm/xe/xe_rtp.c               |  5 +++
 drivers/gpu/drm/xe/xe_rtp.h               |  3 +-
 drivers/gpu/drm/xe/xe_rtp_types.h         |  2 +
 drivers/gpu/drm/xe/xe_wa.c                | 46 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_wa.h                | 18 +++++++--
 drivers/gpu/drm/xe/xe_wa_oob.rules        |  1 +
 12 files changed, 127 insertions(+), 18 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_device_wa_oob.rules

-- 
2.49.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-06-25 20:39 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-25 19:33 [PATCH v2 0/5] drm/xe: Create and use XE_DEVICE_WA infrastructure Matt Atwood
2025-06-25 19:33 ` [PATCH v3 1/5] drm/xe: add xe_device_wa infrastructure Matt Atwood
2025-06-25 19:33 ` [PATCH v3 2/5] drm/xe: Add infrastructure for Device OOB workarounds Matt Atwood
2025-06-25 19:51   ` Matt Roper
2025-06-25 20:39     ` Matt Roper
2025-06-25 19:33 ` [PATCH v3 3/5] drm/xe: Move Wa_15015404425 to use the new EX_DEVICE_WA macro Matt Atwood
2025-06-25 19:57   ` Matt Roper
2025-06-25 20:08     ` Matt Atwood
2025-06-25 19:33 ` [PATCH v3 4/5] drm/xe: extend Wa_15015404425 to apply to PTL Matt Atwood
2025-06-25 19:33 ` [PATCH v3 5/5] drm/xe: disable wa_15015404425 for PTL B0 Matt Atwood
2025-06-25 20:33   ` Matt Roper
2025-06-25 19:39 ` ✗ CI.checkpatch: warning for drm/xe: Create and use XE_DEVICE_WA infrastructure (rev2) Patchwork
2025-06-25 19:39 ` ✗ CI.KUnit: failure " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox