[Intel-xe] [PATCH 0/7] OOB workarounds
Lucas De Marchi
lucas.demarchi at intel.com
Thu May 4 07:32:43 UTC 2023
Continuation of the RFC https://patchwork.freedesktop.org/series/116365/
First 5 patches are drive-by trivial fixes that could be applied
regardless of the rest.
6th patch implements the logic for OOB workarounds and the last one
makes use of that in xe_guc.c
Changes from the RFC:
- This concentrates on reporting just the active workarounds,
not all the workarounds implemented in the driver. That will
make more sense for a debugfs interface rather than the
previous dump
- Instead of allowing a condition statement to be passed as
argument to the macro, migrate the macro to use he rtp rules.
Advantage here is that the rules can be executed not only on
the code path they are in, but also during initialization or
upon a debugfs call. This allows to report the "active"
workarounds without requiring that code path to be traversed.
Eventually the OOB workarounds may be changed to execute the
rules only on probe, saving an "active" bit in the device.
Limitation here is that the XE_WA() currently only supports
rules checking the device info.
Lucas De Marchi (7):
drm/xe: Do not mark 1809175790 as a WA
drm/xe: Fix comment on Wa_22013088509
drm/xe/guc: Remove special handling for PVC A*
drm/xe: Fix Wa_22011802037 annotation
drm/xe/rtp: Let rule_matches() receive xe_device
drm/xe: Add support for OOB workarounds
drm/xe/guc: Port workarounds to OOB infra
drivers/gpu/drm/xe/Makefile | 2 ++
drivers/gpu/drm/xe/xe.lds | 8 +++++
drivers/gpu/drm/xe/xe_device.c | 4 +++
drivers/gpu/drm/xe/xe_gt_mcr.c | 13 ++++++--
drivers/gpu/drm/xe/xe_guc.c | 54 +++++++++++--------------------
drivers/gpu/drm/xe/xe_ring_ops.c | 7 ++--
drivers/gpu/drm/xe/xe_rtp.c | 42 ++++++++++++++++++------
drivers/gpu/drm/xe/xe_rtp.h | 22 +++++++++++++
drivers/gpu/drm/xe/xe_rtp_types.h | 12 +++++++
drivers/gpu/drm/xe/xe_wa.c | 25 ++++++++++++--
drivers/gpu/drm/xe/xe_wa.h | 19 +++++++++++
11 files changed, 155 insertions(+), 53 deletions(-)
create mode 100644 drivers/gpu/drm/xe/xe.lds
--
2.40.1
More information about the Intel-xe
mailing list