Intel Xe GPU debug support (eudebug) v3
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest26 patches 25 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/26 | ptrace: export ptrace_may_accesskernel/ | +1 | 2 replies | |
| 2/26 | drm/xe/eudebug: Introduce eudebug supportdrivers/ drivers/ drivers/ +7 more | +1473 | 0 replies | |
| 3/26 | drm/xe/eudebug: Introduce discovery for resourcesdrivers/ drivers/ drivers/ +2 more | +185 | 0 replies | |
| 4/26 | drm/xe/eudebug: Introduce exec_queue eventsdrivers/ drivers/ drivers/ +2 more | +241 | 0 replies | |
| 5/26 | drm/xe/eudebug: Introduce exec queue placements eventdrivers/ drivers/ include/ | +133 | 0 replies | |
| 6/26 | drm/xe/eudebug: hw enablement for eudebugdrivers/ drivers/ drivers/ +3 more | +70 | 0 replies | |
| 7/26 | drm/xe: Add EUDEBUG_ENABLE exec queue propertydrivers/ drivers/ drivers/ +5 more | +74 | 0 replies | |
| 8/26 | drm/xe/eudebug: Introduce per device attention scan workerdrivers/ drivers/ drivers/ +8 more | +640 | 0 replies | |
| 9/26 | drm/xe/eudebug: Introduce EU control interfacedrivers/ drivers/ drivers/ +3 more | +560 | 0 replies | |
| 10/26 | drm/xe/eudebug: Add vm bind and vm bind opsdrivers/ drivers/ drivers/ +3 more | +449 | 0 replies | |
| 11/26 | drm/xe/eudebug: Add UFENCE events with acksdrivers/ drivers/ drivers/ +7 more | +385 | 0 replies | |
| 12/26 | drm/xe/eudebug: vm open/pread/pwritedrivers/ drivers/ include/ | +485 | 0 replies | |
| 13/26 | drm/xe: add system memory page iterator support to xe_res_cursordrivers/ | +39 | 0 replies | |
| 13/26 | RFC drm/xe/eudebug: userptr vm pread/pwritedrivers/ drivers/ drivers/ | +29 | 0 replies | |
| 13/26 | RFC drm/xe/eudebug: userptr vm pread/pwritedrivers/ drivers/ drivers/ +1 more | +50 | 9 replies | |
| 14/26 | drm/xe/eudebug: implement userptr_vma accessdrivers/ drivers/ drivers/ | +52 | 16 replies | |
| 15/26 | drm/xe: Debug metadata create/destroy ioctlsdrivers/ drivers/ drivers/ +6 more | +263 | 0 replies | |
| 16/26 | drm/xe: Attach debug metadata to vmadrivers/ drivers/ drivers/ +2 more | +313 | 0 replies | |
| 17/26 | drm/xe/eudebug: Add debug metadata support for xe_eudebugdrivers/ drivers/ drivers/ +3 more | +406 | 0 replies | |
| 18/26 | drm/xe/eudebug: Implement vm_bind_op discoverydrivers/ | +45 | 0 replies | |
| 19/26 | drm/xe/eudebug: Dynamically toggle debugger functionalitydrivers/ drivers/ drivers/ +6 more | +137 | 0 replies | |
| 20/26 | drm/xe/eudebug_test: Introduce xe_eudebug wa kunit testdrivers/ drivers/ drivers/ | +185 | 0 replies | |
| 21/26 | drm/xe/eudebug/ptl: Add support for extra attention registerdrivers/ drivers/ drivers/ | +12 | 0 replies | |
| 22/26 | drm/xe/eudebug/ptl: Add RCU_DEBUG_1 register support for xe3drivers/ | +13 | 0 replies | |
| 23/26 | drm/xe/eudebug: Add read/count/compare helper for eu attentiondrivers/ drivers/ | +79 | 0 replies | |
| 24/26 | drm/xe/eudebug: Introduce EU pagefault handling interfacedrivers/ drivers/ drivers/ +3 more | +626 | 0 replies | |
| 25/26 | drm/xe/vm: Support for adding null page VMA to VM on requestdrivers/ drivers/ | +25 | 0 replies | |
| 26/26 | drm/xe/eudebug: Enable EU pagefault handlingdrivers/ | +75 | 0 replies |
Reviews trailers per patch
4 of 28 patches have a Reviewed-by or Acked-by.
| Patch | Andi Shyti | Matthew Brost | Jonathan Cavitt | Mika Kuoppala |
|---|---|---|---|---|
| 1/26 | R-b | |||
| 2/26 | ||||
| 3/26 | A-b | |||
| 4/26 | ||||
| 5/26 | ||||
| 6/26 | ||||
| 7/26 | ||||
| 8/26 | ||||
| 9/26 | ||||
| 10/26 | ||||
| 11/26 | ||||
| 12/26 | ||||
| 13/26 | ||||
| 13/26 | ||||
| 13/26 | ||||
| 14/26 | R-b | |||
| 15/26 | ||||
| 16/26 | ||||
| 17/26 | ||||
| 18/26 | ||||
| 19/26 | ||||
| 20/26 | ||||
| 21/26 | ||||
| 22/26 | A-b | |||
| 23/26 | ||||
| 24/26 | ||||
| 25/26 | ||||
| 26/26 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.
Cover letter [PATCH 00/26] Intel Xe GPU debug support (eudebug) v3
Hi,
This is continuation of the first and second submission of Intel Xe GPU debug support:
v1: https://lists.freedesktop.org/archives/intel-xe/2024-July/043605.html
v2: https://lists.freedesktop.org/archives/intel-xe/2024-October/052260.html
New features in v3:
- EXEC_QUEUE_PLACEMENT events providing detailed information about engines participating on exec queue. (Dominik Grzegorzek)
- EU thread page fault support (Gwan-gyeong Mun)
- Fixed access to VRAM backed storage (Matthew Brost) Essential for BMG enabling. This work was already merged into xe driver and eudebug takes advantage of that (ttm_bo_access). [8].
- Support for Pantherlake (Dominik Grzegorzek)
v3 supports:
- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)
Thanks to all contributors!
Latest code can be found in:
[1] https://gitlab.freedesktop.org/miku/kernel/-/tree/eudebug-dev
Branch for this submission:
[2] https://gitlab.freedesktop.org/miku/kernel/-/tree/eudebug-v3
README/instructions:
[3] https://gitlab.freedesktop.org/miku/kernel
IGT tests (needs config switch 'xe_eudebug' to be set)
[4] https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
https://gitlab.freedesktop.org/gfx-ci/i915-infra/-/blob/master/kconfig/debug.kconfig
The user for this uapi:
[5] https://github.com/intel/compute-runtime
Event loop and thread control interaction can be found at:
https://github.com/intel/compute-runtime/tree/master/level_zero/tools/source/debug/linux/xe
And the wrappers in:
https://github.com/intel/compute-runtime/tree/master/shared/source/os_interface/linux/xe
https://github.com/intel/compute-runtime/blob/master/shared/source/os_interface/linux/xe/ioctl_helper_xe_debugger.cpp
Note that the XE support is disabled by default and you will need NEO_ENABLE_XE_EU_DEBUG_SUPPORT enabled in order to test.
GDB support:
[6] https://github.com/intel/gdb/tree/upstream/intelgt-mvp
[7] https://github.com/intel/gdb/tree/upstream/intelgt-mvp-plus
GDB is preparing their own mailing list submission with above and based on v3. I will reply to this cover letter and update README when it happens.
[8]: https://lists.freedesktop.org/archives/intel-xe/2024-November/060247.html
Fix non-contiguous VRAM BO access in Xe
Thanks,
Mika
Andrzej Hajda (2):
drm/xe: add system memory page iterator support to xe_res_cursor drm/xe/eudebug: implement userptr_vma access
Christoph Manszewski (3):
drm/xe/eudebug: Add vm bind and vm bind ops drm/xe/eudebug: Dynamically toggle debugger functionality drm/xe/eudebug_test: Introduce xe_eudebug wa kunit test
Dominik Grzegorzek (11):
drm/xe/eudebug: Introduce exec_queue events drm/xe/eudebug: Introduce exec queue placements event drm/xe/eudebug: hw enablement for eudebug
drm/xe: Add EUDEBUG_ENABLE exec queue property drm/xe/eudebug: Introduce per device attention scan worker drm/xe/eudebug: Introduce EU control interface drm/xe: Debug metadata create/destroy ioctls drm/xe: Attach debug metadata to vma drm/xe/eudebug: Add debug metadata support for xe_eudebug drm/xe/eudebug/ptl: Add support for extra attention register drm/xe/eudebug/ptl: Add RCU_DEBUG_1 register support for xe3
Gwan-gyeong Mun (4):
drm/xe/eudebug: Add read/count/compare helper for eu attention drm/xe/eudebug: Introduce EU pagefault handling interface drm/xe/vm: Support for adding null page VMA to VM on request drm/xe/eudebug: Enable EU pagefault handling
Mika Kuoppala (6):
ptrace: export ptrace_may_access drm/xe/eudebug: Introduce eudebug support drm/xe/eudebug: Introduce discovery for resources drm/xe/eudebug: Add UFENCE events with acks drm/xe/eudebug: vm open/pread/pwrite drm/xe/eudebug: Implement vm_bind_op discovery
drivers/gpu/drm/xe/Kconfig | 10 + drivers/gpu/drm/xe/Makefile | 4 + drivers/gpu/drm/xe/regs/xe_engine_regs.h | 7 + drivers/gpu/drm/xe/regs/xe_gt_regs.h | 43 + drivers/gpu/drm/xe/tests/xe_eudebug.c | 176 + drivers/gpu/drm/xe/tests/xe_live_test_mod.c | 5 + drivers/gpu/drm/xe/xe_debug_metadata.c | 233 + drivers/gpu/drm/xe/xe_debug_metadata.h | 102 + drivers/gpu/drm/xe/xe_debug_metadata_types.h | 25 + drivers/gpu/drm/xe/xe_device.c | 25 +- drivers/gpu/drm/xe/xe_device.h | 36 + drivers/gpu/drm/xe/xe_device_types.h | 54 + drivers/gpu/drm/xe/xe_eudebug.c | 4451 ++++++++++++++++++ drivers/gpu/drm/xe/xe_eudebug.h | 128 + drivers/gpu/drm/xe/xe_eudebug_types.h | 448 ++ drivers/gpu/drm/xe/xe_exec.c | 2 +- drivers/gpu/drm/xe/xe_exec_queue.c | 56 +- drivers/gpu/drm/xe/xe_exec_queue.h | 2 + drivers/gpu/drm/xe/xe_exec_queue_types.h | 7 + drivers/gpu/drm/xe/xe_execlist.c | 2 +- drivers/gpu/drm/xe/xe_gt_debug.c | 212 + drivers/gpu/drm/xe/xe_gt_debug.h | 46 + drivers/gpu/drm/xe/xe_gt_pagefault.c | 87 +- drivers/gpu/drm/xe/xe_gt_pagefault.h | 2 + drivers/gpu/drm/xe/xe_hw_engine.c | 1 + drivers/gpu/drm/xe/xe_lrc.c | 16 +- drivers/gpu/drm/xe/xe_lrc.h | 4 +- drivers/gpu/drm/xe/xe_oa.c | 3 +- drivers/gpu/drm/xe/xe_reg_sr.c | 21 +- drivers/gpu/drm/xe/xe_reg_sr.h | 4 +- drivers/gpu/drm/xe/xe_res_cursor.h | 51 +- drivers/gpu/drm/xe/xe_rtp.c | 2 +- drivers/gpu/drm/xe/xe_sync.c | 45 +- drivers/gpu/drm/xe/xe_sync.h | 8 +- drivers/gpu/drm/xe/xe_sync_types.h | 28 +- drivers/gpu/drm/xe/xe_vm.c | 196 +- drivers/gpu/drm/xe/xe_vm.h | 5 + drivers/gpu/drm/xe/xe_vm_types.h | 40 + drivers/gpu/drm/xe/xe_wa_oob.rules | 2 + include/uapi/drm/xe_drm.h | 96 +- include/uapi/drm/xe_drm_eudebug.h | 256 + kernel/ptrace.c | 1 + 42 files changed, 6869 insertions(+), 73 deletions(-) create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.c create mode 100644 drivers/gpu/drm/xe/xe_debug_metadata.c create mode 100644 drivers/gpu/drm/xe/xe_debug_metadata.h create mode 100644 drivers/gpu/drm/xe/xe_debug_metadata_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_types.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.43.0