Skip to content

Intel Xe GPU Debug Support (eudebug) v11

Mika Kuoppala dri-devel intel-xe 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest20 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/20drm/ttm: Add ttm_bo_access_locked()drivers/gpu/drm/ttm/ttm_bo_vm.c include/drm/ttm/ttm_bo.h+44 -193 replies
2/20drm/xe/eudebug: Introduce eudebug interfaceDocumentation/ABI/testing/sysfs-driver-intel-xe-eudebug Documentation/gpu/driver-uapi.rst Documentation/userspace-api/ioctl/ioctl-number.rst +11 more+1707 -20 replies
3/20drm/xe/eudebug: Add documentationDocumentation/gpu/xe/index.rst Documentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_eudebug.c+76 -00 replies
4/20drm/xe/eudebug: Add connection establishment documentationDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_eudebug.c+114 -10 replies
5/20drm/xe: Implement SR-IOV and eudebug exclusivityDocumentation/ABI/testing/sysfs-driver-intel-xe-eudebug drivers/gpu/drm/xe/xe_eudebug.c+25 -00 replies
6/20drm/xe/eudebug: Introduce discovery for resourcesdrivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_device.h drivers/gpu/drm/xe/xe_device_types.h +3 more+183 -50 replies
7/20drm/xe: Add EUDEBUG_ENABLE exec queue propertyDocumentation/ABI/testing/sysfs-driver-intel-xe-eudebug drivers/gpu/drm/xe/xe_exec_queue.c drivers/gpu/drm/xe/xe_exec_queue.h +3 more+120 -10 replies
8/20drm/xe/eudebug: Introduce exec_queue eventsDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_eudebug.c drivers/gpu/drm/xe/xe_eudebug.h +3 more+330 -70 replies
9/20drm/xe/eudebug: Mark guc contexts as debuggabledrivers/gpu/drm/xe/abi/guc_actions_abi.h drivers/gpu/drm/xe/abi/guc_klvs_abi.h drivers/gpu/drm/xe/xe_exec_queue.c +6 more+76 -20 replies
10/20drm/xe: Introduce ADD_DEBUG_DATA and REMOVE_DEBUG_DATA vm bind opsdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_debug_data.c drivers/gpu/drm/xe/xe_debug_data.h +4 more+777 -50 replies
11/20drm/xe/eudebug: Introduce vm bind and vm bind debug data eventsDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_device.c drivers/gpu/drm/xe/xe_device_types.h +5 more+470 -130 replies
12/20drm/xe/eudebug: Add ufence events with acksDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_eudebug.c drivers/gpu/drm/xe/xe_eudebug.h +5 more+573 -410 replies
13/20drm/xe/eudebug: Add vm open/pread/pwriteDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/regs/xe_gt_regs.h +7 more+810 -100 replies
14/20drm/xe/eudebug: Add userptr vm pread/pwritedrivers/gpu/drm/xe/xe_eudebug_vm.c drivers/gpu/drm/xe/xe_userptr.c drivers/gpu/drm/xe/xe_userptr.h +1 more+92 -02 replies
15/20drm/xe/eudebug: Add hw enablementdrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/regs/xe_gt_regs.h drivers/gpu/drm/xe/xe_eudebug.c +10 more+402 -80 replies
16/20drm/xe/eudebug: Track debuggable exec queuesDocumentation/ABI/testing/sysfs-driver-intel-xe-eudebug drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_eudebug.c +3 more+107 -30 replies
17/20drm/xe/eudebug: Introduce EU control interfaceDocumentation/ABI/testing/sysfs-driver-intel-xe-eudebug Documentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/regs/xe_engine_regs.h +9 more+1081 -30 replies
18/20drm/xe/eudebug: Introduce per device attention scan workerDocumentation/gpu/xe/xe_eudebug.rst drivers/gpu/drm/xe/xe_device_types.h drivers/gpu/drm/xe/xe_eudebug.c +5 more+553 -160 replies
19/20drm/xe/eudebug_test: Introduce eudebug live testsdrivers/gpu/drm/xe/tests/xe_eudebug_test.c drivers/gpu/drm/xe/tests/xe_live_test_mod.c drivers/gpu/drm/xe/xe_eudebug.c+250 -00 replies
20/20drm/xe: Add xe_client_debugfs and introduce debug_data filedrivers/gpu/drm/xe/Makefile drivers/gpu/drm/xe/xe_client_debugfs.c drivers/gpu/drm/xe/xe_client_debugfs.h +1 more+156 -10 replies

Reviews trailers per patch

3 of 20 patches have a Reviewed-by or Acked-by.

PatchMatthew BrostDaniele Ceraolo SpurioFelix Kuehling
1/20A-b
2/20
3/20
4/20
5/20
6/20A-b
7/20
8/20
9/20R-b
10/20
11/20
12/20
13/20
14/20
15/20
16/20
17/20
18/20
19/20
20/20

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 00/20] Intel Xe GPU Debug Support (eudebug) v11

Hi,

This is the v11 patch series for Intel Xe GPU debug support (eudebug).

This is eudebug core only. The EU page fault block (v10 patches 20-27) is not part of current series and will be sent when we have reached agreement about this series.

One TTM specific core patch is first in the series.

Series should address all but one (see Open questions) sashiko findings on v10:
https://sashiko.dev/#/patchset/20260903145952.848051-1-mika.kuoppala%40linux.intel.com

Additionally we did multiple local Sashiko runs with claude-opus-5.5 and gemini-4-argon to get further comments on reworks. All non code change issues were addressed by more documentation and comments.

We addressed over 170 review findings. Most came from sashiko of which 13 of them high severity and about 80 medium.

Claude Opus 5.5 was used as an AI coding assistant.

# Major changes from v10

All per connection state is now guarded by a single mutex. It replaces multiple smaller locks and eliminates all use of READ_ONCE/WRITE_ONCE access. This addresses most of sashiko UAF concerns.

Discovery no longer runs on a workqueue. The connect ioctl takes the target's ioctl_lock for write and pushes all discovery events into the kfifo before returing. This avoids the issues discussed in patch 4 in previous series.

eudebug is now mutually exclusive with OA in addition to SR-IOV. These interfere with eachothers in HW.

# Open questions

In patch 14, the userptr vm access path still resolves the addresses through a task_struct's current mm rather than the mm at bind time. See the XXX FIXME comment in the patch.

# Supported HW

The series has been test with IGT on the following platforms:

- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)

The code for this submission can be found at:
https://gitlab.freedesktop.org/miku/kernel/-/tree/eudebug-v11

Tests:
https://gitlab.freedesktop.org/DominikPiatkowski-Intel/igt-gpu-tools/-/tree/eudebug-dev-next

Userspace:
https://github.com/intel/compute-runtime/
(behind compile-time default disabled flags NEO_ENABLE_XE_EU_DEBUG_SUPPORT and NEO_USE_XE_EU_DEBUG_EXP_UPSTREAM)

GDB: https://sourceware.org/pipermail/gdb-patches/2026-August/229340.html

This series continues from the following previous submissions:
v1: https://lists.freedesktop.org/archives/intel-xe/2024-July/043605.html
v2: https://lists.freedesktop.org/archives/intel-xe/2024-October/052260.html
v3: https://lists.freedesktop.org/archives/intel-xe/2024-December/061476.html
v4: https://lists.freedesktop.org/archives/intel-xe/2025-August/091645.html
v5: https://lists.freedesktop.org/archives/intel-xe/2025-October/097859.html
v6: https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html
v7: https://lists.freedesktop.org/archives/intel-xe/2026-February/115750.html
v8: https://lists.freedesktop.org/archives/intel-xe/2026-April/124147.html
v9: https://lists.freedesktop.org/archives/intel-xe/2026-June/128834.html
v10: https://lists.freedesktop.org/archives/intel-xe/2026-September/139020.html

Christoph Manszewski (5):
drm/xe: Implement SR-IOV and eudebug exclusivity drm/xe: Introduce ADD_DEBUG_DATA and REMOVE_DEBUG_DATA vm bind ops drm/xe/eudebug: Introduce vm bind and vm bind debug data events drm/xe/eudebug_test: Introduce eudebug live tests drm/xe: Add xe_client_debugfs and introduce debug_data file

Dominik Grzegorzek (5):
drm/xe: Add EUDEBUG_ENABLE exec queue property drm/xe/eudebug: Introduce exec_queue events drm/xe/eudebug: Add hw enablement drm/xe/eudebug: Introduce EU control interface drm/xe/eudebug: Introduce per device attention scan worker

Mika Kuoppala (10):
drm/ttm: Add ttm_bo_access_locked() drm/xe/eudebug: Introduce eudebug interface drm/xe/eudebug: Add documentation drm/xe/eudebug: Add connection establishment documentation drm/xe/eudebug: Introduce discovery for resources drm/xe/eudebug: Mark guc contexts as debuggable drm/xe/eudebug: Add ufence events with acks drm/xe/eudebug: Add vm open/pread/pwrite drm/xe/eudebug: Add userptr vm pread/pwrite drm/xe/eudebug: Track debuggable exec queues

 .../ABI/testing/sysfs-driver-intel-xe-eudebug |   61 +
 Documentation/gpu/driver-uapi.rst             |    2 +
 Documentation/gpu/xe/index.rst                |    1 +
 Documentation/gpu/xe/xe_eudebug.rst           |  100 +
 .../userspace-api/ioctl/ioctl-number.rst      |    1 +
 MAINTAINERS                                   |    2 +
 drivers/gpu/drm/ttm/ttm_bo_vm.c               |   61 +-
 drivers/gpu/drm/xe/Kconfig                    |   10 +
 drivers/gpu/drm/xe/Makefile                   |    7 +-
 drivers/gpu/drm/xe/abi/guc_actions_abi.h      |    5 +
 drivers/gpu/drm/xe/abi/guc_klvs_abi.h         |    1 +
 drivers/gpu/drm/xe/regs/xe_engine_regs.h      |    1 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h          |   41 +
 drivers/gpu/drm/xe/tests/xe_eudebug_test.c    |  241 ++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c   |    5 +
 drivers/gpu/drm/xe/xe_client_debugfs.c        |  134 +
 drivers/gpu/drm/xe/xe_client_debugfs.h        |   17 +
 drivers/gpu/drm/xe/xe_debug_data.c            |  388 ++
 drivers/gpu/drm/xe/xe_debug_data.h            |   22 +
 drivers/gpu/drm/xe/xe_debug_data_types.h      |   26 +
 drivers/gpu/drm/xe/xe_device.c                |   36 +-
 drivers/gpu/drm/xe/xe_device.h                |   53 +
 drivers/gpu/drm/xe/xe_device_types.h          |   75 +
 drivers/gpu/drm/xe/xe_eudebug.c               | 3196 +++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h               |  114 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c            |  806 +++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h            |   30 +
 drivers/gpu/drm/xe/xe_eudebug_types.h         |  212 ++
 drivers/gpu/drm/xe/xe_eudebug_vm.c            |  662 ++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h            |   13 +
 drivers/gpu/drm/xe/xe_exec_queue.c            |  114 +-
 drivers/gpu/drm/xe/xe_exec_queue.h            |    2 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h      |   15 +
 drivers/gpu/drm/xe/xe_gt_debug.c              |  228 ++
 drivers/gpu/drm/xe/xe_gt_debug.h              |   31 +
 drivers/gpu/drm/xe/xe_guc.c                   |   15 +
 drivers/gpu/drm/xe/xe_guc.h                   |    6 +
 drivers/gpu/drm/xe/xe_guc_ads.c               |    5 +
 drivers/gpu/drm/xe/xe_guc_submit.c            |   34 +
 drivers/gpu/drm/xe/xe_hw_engine.h             |   14 +
 drivers/gpu/drm/xe/xe_oa.c                    |   61 +
 drivers/gpu/drm/xe/xe_oa.h                    |    1 +
 drivers/gpu/drm/xe/xe_reg_sr.c                |   19 +-
 drivers/gpu/drm/xe/xe_reg_sr.h                |    4 +-
 drivers/gpu/drm/xe/xe_reg_whitelist.c         |    2 +-
 drivers/gpu/drm/xe/xe_rtp.c                   |    2 +-
 drivers/gpu/drm/xe/xe_sync.c                  |   47 +-
 drivers/gpu/drm/xe/xe_sync.h                  |    3 +
 drivers/gpu/drm/xe/xe_sync_types.h            |   29 +-
 drivers/gpu/drm/xe/xe_userptr.c               |    4 +
 drivers/gpu/drm/xe/xe_userptr.h               |   34 +
 drivers/gpu/drm/xe/xe_vm.c                    |  245 +-
 drivers/gpu/drm/xe/xe_vm_types.h              |   31 +
 drivers/gpu/drm/xe/xe_wa_oob.rules            |    4 +
 include/drm/ttm/ttm_bo.h                      |    2 +
 include/uapi/drm/xe_drm.h                     |  133 +-
 include/uapi/drm/xe_drm_eudebug.h             |  523 +++
 57 files changed, 7870 insertions(+), 61 deletions(-)
 create mode 100644 Documentation/ABI/testing/sysfs-driver-intel-xe-eudebug
 create mode 100644 Documentation/gpu/xe/xe_eudebug.rst
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug_test.c
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.c
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.h
 create mode 100644 drivers/gpu/drm/xe/xe_debug_data.c
 create mode 100644 drivers/gpu/drm/xe/xe_debug_data.h
 create mode 100644 drivers/gpu/drm/xe/xe_debug_data_types.h
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug.c
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug.h
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_hw.c
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_hw.h
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_types.h
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_vm.c
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_vm.h
 create mode 100644 drivers/gpu/drm/xe/xe_gt_debug.c
 create mode 100644 drivers/gpu/drm/xe/xe_gt_debug.h
 create mode 100644 include/uapi/drm/xe_drm_eudebug.h
Signature · 1 line
2.53.0