Skip to content

drm/xe: add debugfs control for per-context ATS enable

Nareshkumar Gollakoti intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2drm/xe/debugfs: add Context ATS enable knobdrivers/gpu/drm/xe/xe_debugfs.c drivers/gpu/drm/xe/xe_device_types.h+47 -00 replies
2/2drm/xe/lrc: gate per-context ATS enable behind debugfs knobdrivers/gpu/drm/xe/regs/xe_lrc_layout.h drivers/gpu/drm/xe/xe_lrc.c+13 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] drm/xe: add debugfs control for per-context ATS enable

This series adds a debugfs-controlled knob to force the per-context ATS enable bit into Xe LRC state for hardware validation.

The first patch introduces an enable_ctx_ats device flag and exposes it via debugfs, defaulting to disabled. This is intended strictly as a debug/validation control for SV/FV testing of per-context ATS behavior.

The second patch adds the relevant CTX_SYS_PASID LRC layout definition and ATS-enable bit, then programs that bit during LRC initialization when the debugfs knob is enabled. The change is intentionally limited to the ATS-enable control bit and does not modify PASID or SVA binding state.

With the knob left at its default value, there is no functional change.

Nareshkumar Gollakoti (2):
drm/xe/debugfs: add Context ATS enable knob drm/xe/lrc: gate per-context ATS enable behind debugfs knob

 drivers/gpu/drm/xe/regs/xe_lrc_layout.h |  4 +++
 drivers/gpu/drm/xe/xe_debugfs.c         | 41 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_device_types.h    |  6 ++++
 drivers/gpu/drm/xe/xe_lrc.c             |  9 ++++++
 4 files changed, 60 insertions(+)
Signature · 1 line
2.43.0