Skip to contentSkip to conversation

Intel Xe GPU Debug Support (eudebug) v4

PATCH In review Mika Kuoppala 4 participants 27 messages Aug 8, 2025 – Dec 8, 2025

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

cover Intel Xe GPU Debug Support (eudebug) v4

Hi,

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

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

This is a major cleanup and rework of eudebug patch series to address the feedback for v3. Page fault handling is omitted for until we receive ack on core design, as there was no feedback on it on previous iterations.

### Major Changes

#### 1. Elimination of ptrace_may_access() and pid

In previous series, the connection attempt was made using the process ID (PID) as the target. Access was checked using the ptrace_may_access() helper to achieve security parity with CPU-side debugging.

In v4, this has been changed to connect to a DRM client, using a file descriptor as the target. This approach eliminates the need for the ptrace_may_access() symbol export, as access control is now managed through the debugger process's access to the file descriptor. For example, accessing a remote DRM client requires the debugger process to successfully call pidfd_getfd() to obtain a duplicate of the target file descriptor.The 1:1 mapping between DRM clients and their debuggers eliminates the need for EVENT_OPEN and simplifies overall connection tracking.

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

### Supported Hardware with v4
- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)

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

Christoph Manszewski (5):
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 xe_eudebug wa kunit test drm/xe: Implement SR-IOV and eudebug exclusivity drm/xe: Add xe_client_debugfs and introduce debug_data file

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

Mika Kuoppala (5):
drm/xe/eudebug: Introduce eudebug interface 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: userptr vm pread/pwrite

 drivers/gpu/drm/xe/Kconfig                  |   10 +
 drivers/gpu/drm/xe/Makefile                 |    7 +-
 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       |  189 ++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c |    5 +
 drivers/gpu/drm/xe/xe_client_debugfs.c      |  118 +
 drivers/gpu/drm/xe/xe_client_debugfs.h      |   19 +
 drivers/gpu/drm/xe/xe_debug_data.c          |  279 +++
 drivers/gpu/drm/xe/xe_debug_data.h          |   22 +
 drivers/gpu/drm/xe/xe_debug_data_types.h    |   25 +
 drivers/gpu/drm/xe/xe_device.c              |   30 +-
 drivers/gpu/drm/xe/xe_device.h              |   42 +
 drivers/gpu/drm/xe/xe_device_types.h        |   40 +
 drivers/gpu/drm/xe/xe_eudebug.c             | 2309 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h             |  116 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c          |  730 ++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h          |   32 +
 drivers/gpu/drm/xe/xe_eudebug_types.h       |  174 ++
 drivers/gpu/drm/xe/xe_eudebug_vm.c          |  434 ++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h          |    8 +
 drivers/gpu/drm/xe/xe_exec.c                |    2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c          |   51 +-
 drivers/gpu/drm/xe/xe_exec_queue.h          |    2 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |    7 +
 drivers/gpu/drm/xe/xe_gt.c                  |    1 +
 drivers/gpu/drm/xe/xe_gt_debug.c            |  179 ++
 drivers/gpu/drm/xe/xe_gt_debug.h            |   41 +
 drivers/gpu/drm/xe/xe_hw_engine.h           |   14 +
 drivers/gpu/drm/xe/xe_lrc.c                 |   10 +
 drivers/gpu/drm/xe/xe_oa.c                  |    3 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c           |   10 +
 drivers/gpu/drm/xe/xe_reg_sr.c              |   21 +-
 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                |   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                  |  186 +-
 drivers/gpu/drm/xe/xe_vm.h                  |   26 +
 drivers/gpu/drm/xe/xe_vm_types.h            |   38 +
 drivers/gpu/drm/xe/xe_wa_oob.rules          |    4 +
 include/uapi/drm/xe_drm.h                   |   59 +
 include/uapi/drm/xe_drm_eudebug.h           |  217 ++
 45 files changed, 5552 insertions(+), 47 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.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.43.0
#1 lore raw

cover Intel Xe GPU Debug Support (eudebug) v4

Hi,

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

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

This is a major cleanup and rework of eudebug patch series to address the feedback for v3. Page fault handling is omitted for until we receive ack on core design, as there was no feedback on it on previous iterations.

### Major Changes

#### 1. Elimination of ptrace_may_access() and pid

In previous series, the connection attempt was made using the process ID (PID) as the target. Access was checked using the ptrace_may_access() helper to achieve security parity with CPU-side debugging.

In v4, this has been changed to connect to a DRM client, using a file descriptor as the target. This approach eliminates the need for the ptrace_may_access() symbol export, as access control is now managed through the debugger process's access to the file descriptor. For example, accessing a remote DRM client requires the debugger process to successfully call pidfd_getfd() to obtain a duplicate of the target file descriptor.The 1:1 mapping between DRM clients and their debuggers eliminates the need for EVENT_OPEN and simplifies overall connection tracking.

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

### Supported Hardware with v4
- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)

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

Christoph Manszewski (5):
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 xe_eudebug wa kunit test drm/xe: Implement SR-IOV and eudebug exclusivity drm/xe: Add xe_client_debugfs and introduce debug_data file

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

Mika Kuoppala (5):
drm/xe/eudebug: Introduce eudebug interface 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: userptr vm pread/pwrite

 drivers/gpu/drm/xe/Kconfig                  |   10 +
 drivers/gpu/drm/xe/Makefile                 |    7 +-
 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       |  189 ++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c |    5 +
 drivers/gpu/drm/xe/xe_client_debugfs.c      |  118 +
 drivers/gpu/drm/xe/xe_client_debugfs.h      |   19 +
 drivers/gpu/drm/xe/xe_debug_data.c          |  279 +++
 drivers/gpu/drm/xe/xe_debug_data.h          |   22 +
 drivers/gpu/drm/xe/xe_debug_data_types.h    |   25 +
 drivers/gpu/drm/xe/xe_device.c              |   30 +-
 drivers/gpu/drm/xe/xe_device.h              |   42 +
 drivers/gpu/drm/xe/xe_device_types.h        |   40 +
 drivers/gpu/drm/xe/xe_eudebug.c             | 2309 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h             |  116 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c          |  730 ++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h          |   32 +
 drivers/gpu/drm/xe/xe_eudebug_types.h       |  174 ++
 drivers/gpu/drm/xe/xe_eudebug_vm.c          |  434 ++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h          |    8 +
 drivers/gpu/drm/xe/xe_exec.c                |    2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c          |   51 +-
 drivers/gpu/drm/xe/xe_exec_queue.h          |    2 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |    7 +
 drivers/gpu/drm/xe/xe_gt.c                  |    1 +
 drivers/gpu/drm/xe/xe_gt_debug.c            |  179 ++
 drivers/gpu/drm/xe/xe_gt_debug.h            |   41 +
 drivers/gpu/drm/xe/xe_hw_engine.h           |   14 +
 drivers/gpu/drm/xe/xe_lrc.c                 |   10 +
 drivers/gpu/drm/xe/xe_oa.c                  |    3 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c           |   10 +
 drivers/gpu/drm/xe/xe_reg_sr.c              |   21 +-
 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                |   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                  |  186 +-
 drivers/gpu/drm/xe/xe_vm.h                  |   26 +
 drivers/gpu/drm/xe/xe_vm_types.h            |   38 +
 drivers/gpu/drm/xe/xe_wa_oob.rules          |    4 +
 include/uapi/drm/xe_drm.h                   |   59 +
 include/uapi/drm/xe_drm_eudebug.h           |  217 ++
 45 files changed, 5552 insertions(+), 47 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.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.43.0
#2 lore raw

PATCH 1/15 drm/xe/eudebug: Introduce eudebug interface

In reply to Mika Kuoppala

This patch adds the eudebug interface to the Xe driver, enabling user-space debuggers (e.g., GDB) to track and interact with GPU resources of a DRM client. Debuggers can inspect or modify these resources, for example, to locate ISA/ELF sections and install breakpoints in a shader's instruction stream.

A debugger opens a connection to the Xe driver via a DRM ioctl, specifying the target DRM client's file descriptor. This returns an anonymous file descriptor for the connection, which can be used to listen for resource creation/destruction events. The same file descriptor can also be used to receive hardware state change events and control execution flow by interrupting EU threads on the GPU (in follow-up patches).

This patch introduces the eudebug connection and event queuing, adding client create/destroy and VM create/destroy events as a baseline. Additional events and hardware control for full debugger operation are needed and will be introduced in follow-up patches.

The resource tracking components are inspired by Maciej Patelczyk's work on resource handling for i915. Chris Wilson suggested a two-way mapping approach, which simplifies using the resource map as definitive bookkeeping forresources relayed to the debugger during the discovery phase (in a follow-up patch).

v2: - Kconfig support (Matthew)
- ptraced access control (Lucas)
- pass expected event length to user (Zbigniew)
- only track long running VMs
- checkpatch (Tilak)
- include order (Andrzej)
- 32bit fixes (Andrzej)
- cleaner get_task_struct
- remove xa_array and use clients.list for tracking (Mika)

v3: - adapt to removal of clients.lock (Mika)
- create_event cleanup (Christoph)

v4: - add proper header guards (Christoph)
- better read_event fault handling (Christoph, Mika)
- simplify attach (Mika)
- connect using target file descriptors
- avoid event->seqno after queue as it is can UAF (Mika)
- use drmm for eudebug_fini (Maciej)
- squash dynamic enable

Cc Maarten Lankhorst <[email protected]>
Cc Lucas De Marchi <[email protected]>
Cc Dominik Grzegorzek <[email protected]>
Cc Andi Shyti <[email protected]>
Cc Matt Roper <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Zbigniew Kempczyński <[email protected]>
Cc Andrzej Hajda <[email protected]>
---
 drivers/gpu/drm/xe/Kconfig            |   10 +
 drivers/gpu/drm/xe/Makefile           |    3 +
 drivers/gpu/drm/xe/xe_device.c        |   14 +
 drivers/gpu/drm/xe/xe_device_types.h  |   31 +
 drivers/gpu/drm/xe/xe_eudebug.c       | 1038 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h       |   64 ++
 drivers/gpu/drm/xe/xe_eudebug_types.h |  128 +++
 drivers/gpu/drm/xe/xe_vm.c            |    7 +-
 include/uapi/drm/xe_drm.h             |   21 +
 include/uapi/drm/xe_drm_eudebug.h     |   77 ++
 10 files changed, 1392 insertions(+), 1 deletion(-)
 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 include/uapi/drm/xe_drm_eudebug.h
drivers/gpu/drm/xe/Kconfig +10 -0
index 714d5702dfd7..fba32c51e0c4 100644
@@ -129,6 +129,16 @@ config DRM_XE_FORCE_PROBE
 
 	  Use "!*" to block the probe of the driver for all known devices.
 
+config DRM_XE_EUDEBUG
+	bool "Enable gdb debugger support (eudebug)"
+	depends on DRM_XE
+	default y
+	help
+	  Choose this option if you want to add support for debugger (gdb) to
+	  attach into process using Xe and debug the gpu/gpgpu programs.
+	  With debugger support, Xe will provide interface for a debugger to
+	  process to track, inspect and modify resources.
+
 menu "drm/Xe Debugging"
 depends on DRM_XE
 depends on EXPERT
drivers/gpu/drm/xe/Makefile +3 -0
index 8e0c3412a757..4ef2da006a87 100644
@@ -139,6 +139,9 @@ xe-$(CONFIG_I2C)	+= xe_i2c.o
 xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o
 xe-$(CONFIG_DRM_XE_GPUSVM) += xe_svm.o
 
+# debugging shaders with gdb (eudebug) support
+xe-$(CONFIG_DRM_XE_EUDEBUG) += xe_eudebug.o
+
 # graphics hardware monitoring (HWMON) support
 xe-$(CONFIG_HWMON) += xe_hwmon.o
 
drivers/gpu/drm/xe/xe_device.c +14 -0
index 57edbc63da6f..99c28726755e 100644
@@ -30,6 +30,7 @@
 #include "xe_dma_buf.h"
 #include "xe_drm_client.h"
 #include "xe_drv.h"
+#include "xe_eudebug.h"
 #include "xe_exec.h"
 #include "xe_exec_queue.h"
 #include "xe_force_wake.h"
@@ -100,6 +101,11 @@ static int xe_file_open(struct drm_device *dev, struct drm_file *file)
 	mutex_init(&xef->exec_queue.lock);
 	xa_init_flags(&xef->exec_queue.xa, XA_FLAGS_ALLOC1);
 
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	mutex_init(&xef->eudebug.lock);
+	INIT_LIST_HEAD(&xef->eudebug.target_link);
+#endif
+
 	file->driver_priv = xef;
 	kref_init(&xef->refcount);
 
@@ -122,6 +128,9 @@ static void xe_file_destroy(struct kref *ref)
 	xa_destroy(&xef->vm.xa);
 	mutex_destroy(&xef->vm.lock);
 
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	mutex_destroy(&xef->eudebug.lock);
+#endif
 	xe_drm_client_put(xef->client);
 	kfree(xef->process_name);
 	kfree(xef);
@@ -163,6 +172,8 @@ static void xe_file_close(struct drm_device *dev, struct drm_file *file)
 
 	xe_pm_runtime_get(xe);
 
+	xe_eudebug_file_close(xef);
+
 	/*
 	 * No need for exec_queue.lock here as there is no contention for it
 	 * when FD is closing as IOCTLs presumably can't be modifying the
@@ -201,6 +212,7 @@ static const struct drm_ioctl_desc xe_ioctls[] = {
 	DRM_IOCTL_DEF_DRV(XE_WAIT_USER_FENCE, xe_wait_user_fence_ioctl,
 			  DRM_RENDER_ALLOW),
 	DRM_IOCTL_DEF_DRV(XE_OBSERVATION, xe_observation_ioctl, DRM_RENDER_ALLOW),
+	DRM_IOCTL_DEF_DRV(XE_EUDEBUG_CONNECT, xe_eudebug_connect_ioctl, DRM_RENDER_ALLOW),
 };
 
 static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
@@ -945,6 +957,8 @@ int xe_device_probe(struct xe_device *xe)
 	if (err)
 		goto err_unregister_display;
 
+	xe_eudebug_init(xe);
+
 	return devm_add_action_or_reset(xe->drm.dev, xe_device_sanitize, xe);
 
 err_unregister_display:
drivers/gpu/drm/xe/xe_device_types.h +31 -0
index 01e8fa0d2f9f..c854d4dd675b 100644
@@ -13,6 +13,7 @@
 #include <drm/ttm/ttm_device.h>
 
 #include "xe_devcoredump_types.h"
+#include "xe_eudebug_types.h"
 #include "xe_heci_gsc.h"
 #include "xe_lmtt_types.h"
 #include "xe_memirq_types.h"
@@ -576,6 +577,23 @@ struct xe_device {
 	atomic64_t global_total_pages;
 #endif
 
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	/** @debugger connection list and globals for device */
+	struct {
+		/** @eudebug.session_count: session counter to track connections */
+		u64 session_count;
+
+		/** @eudebug.available: is the debugging functionality available */
+		enum xe_eudebug_state state;
+
+		/** @eudebug.targets: this is list for xe_files for each target */
+		struct list_head targets;
+
+		/** @eudebug.lock: protects state and targets */
+		struct mutex lock;
+	} eudebug;
+#endif
+
 	/* private: */
 
 #if IS_ENABLED(CONFIG_DRM_XE_DISPLAY)
@@ -673,6 +691,19 @@ struct xe_file {
 
 	/** @refcount: ref count of this xe file */
 	struct kref refcount;
+
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	struct {
+		/** @eudebug.debugger: the debugger connection into this xe_file */
+		struct xe_eudebug *debugger;
+
+		/** @eudebug.lock: protecting debugger */
+		struct mutex lock;
+
+		/** @target_link: link into xe_device.eudebug.targets */
+		struct list_head target_link;
+	} eudebug;
+#endif
 };
 
 #endif
drivers/gpu/drm/xe/xe_eudebug.c new file +1038 -0

1,038 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug.h new file +64 -0

64 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_types.h new file +128 -0

128 lines not on this page · raw message

drivers/gpu/drm/xe/xe_vm.c +6 -1
index 432ea325677d..7b1d29727571 100644
@@ -26,6 +26,7 @@
 #include "xe_bo.h"
 #include "xe_device.h"
 #include "xe_drm_client.h"
+#include "xe_eudebug.h"
 #include "xe_exec_queue.h"
 #include "xe_gt_pagefault.h"
 #include "xe_gt_tlb_invalidation.h"
@@ -2132,6 +2133,8 @@ int xe_vm_create_ioctl(struct drm_device *dev, void *data,
 
 	args->vm_id = id;
 
+	xe_eudebug_vm_create(xef, vm);
+
 	return 0;
 
 err_close_and_put:
@@ -2163,8 +2166,10 @@ int xe_vm_destroy_ioctl(struct drm_device *dev, void *data,
 		xa_erase(&xef->vm.xa, args->vm_id);
 	mutex_unlock(&xef->vm.lock);
 
-	if (!err)
+	if (!err) {
+		xe_eudebug_vm_destroy(xef, vm);
 		xe_vm_close_and_put(vm);
+	}
 
 	return err;
 }
include/uapi/drm/xe_drm.h +21 -0
index c721e130c1d2..0aeabadd83d0 100644
@@ -102,6 +102,7 @@ extern "C" {
 #define DRM_XE_EXEC			0x09
 #define DRM_XE_WAIT_USER_FENCE		0x0a
 #define DRM_XE_OBSERVATION		0x0b
+#define DRM_XE_EUDEBUG_CONNECT		0x0c
 
 /* Must be kept compact -- no holes */
 
@@ -117,6 +118,7 @@ extern "C" {
 #define DRM_IOCTL_XE_EXEC			DRM_IOW(DRM_COMMAND_BASE + DRM_XE_EXEC, struct drm_xe_exec)
 #define DRM_IOCTL_XE_WAIT_USER_FENCE		DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_WAIT_USER_FENCE, struct drm_xe_wait_user_fence)
 #define DRM_IOCTL_XE_OBSERVATION		DRM_IOW(DRM_COMMAND_BASE + DRM_XE_OBSERVATION, struct drm_xe_observation_param)
+#define DRM_IOCTL_XE_EUDEBUG_CONNECT		DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_EUDEBUG_CONNECT, struct drm_xe_eudebug_connect)
 
 /**
  * DOC: Xe IOCTL Extensions
@@ -1978,6 +1980,25 @@ struct drm_xe_query_eu_stall {
 	__u64 sampling_rates[];
 };
 
+/*
+ * Debugger ABI (ioctl and events) Version History:
+ * 0 - No debugger available
+ * 1 - Initial version
+ */
+#define DRM_XE_EUDEBUG_VERSION 1
+
+struct drm_xe_eudebug_connect {
+	/** @extensions: Pointer to the first extension struct, if any */
+	__u64 extensions;
+
+	__u64 fd; /* Target drm client fd */
+	__u32 flags; /* MBZ */
+
+	__u32 version; /* output: current ABI (ioctl / events) version */
+};
+
+#include "xe_drm_eudebug.h"
+
 #if defined(__cplusplus)
 }
 #endif
include/uapi/drm/xe_drm_eudebug.h new file +77 -0

77 lines not on this page · raw message

Signature · 1 line
2.43.0
#3 lore raw

PATCH 2/15 drm/xe/eudebug: Introduce discovery for resources

In reply to Mika Kuoppala

A debugger connection can occur after a client has created and destroyed an arbitrary number of resources. To support this, we need to relay all currently existing resources to the debugger. The client is held on selected ioctls until this discovery process, executed by a workqueue, is complete.

This patch is based on discovery work by Maciej Patelczyk for the i915 driver.

v2: - use rw_semaphore to block DRM ioctls during discovery (Matthew)
- only lock according to ioctl at play (Dominik)

v4: - s/discovery_lock/ioctl_lock
- change lock to be per xe_file as is connections

---
 drivers/gpu/drm/xe/xe_device.c        |  13 +++-
 drivers/gpu/drm/xe/xe_device.h        |  42 +++++++++++
 drivers/gpu/drm/xe/xe_device_types.h  |   6 ++
 drivers/gpu/drm/xe/xe_eudebug.c       | 104 +++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_eudebug_types.h |   7 ++
 5 files changed, 169 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_device.c +11 -2
index 99c28726755e..0249fb4aa966 100644
@@ -104,6 +104,7 @@ static int xe_file_open(struct drm_device *dev, struct drm_file *file)
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
 	mutex_init(&xef->eudebug.lock);
 	INIT_LIST_HEAD(&xef->eudebug.target_link);
+	init_rwsem(&xef->eudebug.ioctl_lock);
 #endif
 
 	file->driver_priv = xef;
@@ -225,8 +226,12 @@ static long xe_drm_ioctl(struct file *file, unsigned int cmd, unsigned long arg)
 		return -ECANCELED;
 
 	ret = xe_pm_runtime_get_ioctl(xe);
-	if (ret >= 0)
+	if (ret >= 0) {
+		bool lock = xe_eudebug_discovery_lock(file, cmd);
 		ret = drm_ioctl(file, cmd, arg);
+		if (lock)
+			xe_eudebug_discovery_unlock(file, cmd);
+	}
 	xe_pm_runtime_put(xe);
 
 	return ret;
@@ -243,8 +248,12 @@ static long xe_drm_compat_ioctl(struct file *file, unsigned int cmd, unsigned lo
 		return -ECANCELED;
 
 	ret = xe_pm_runtime_get_ioctl(xe);
-	if (ret >= 0)
+	if (ret >= 0) {
+		bool lock = xe_eudebug_discovery_lock(file, cmd);
 		ret = drm_compat_ioctl(file, cmd, arg);
+		if (lock)
+			xe_eudebug_discovery_unlock(file, cmd);
+	}
 	xe_pm_runtime_put(xe);
 
 	return ret;
drivers/gpu/drm/xe/xe_device.h +42 -0

52 lines not on this page · raw message

drivers/gpu/drm/xe/xe_device_types.h +6 -0
index c854d4dd675b..f6fc455fd286 100644
@@ -591,6 +591,9 @@ struct xe_device {
 
 		/** @eudebug.lock: protects state and targets */
 		struct mutex lock;
+
+		/** @wq: used for client discovery */
+		struct workqueue_struct *wq;
 	} eudebug;
 #endif
 
@@ -702,6 +705,9 @@ struct xe_file {
 
 		/** @target_link: link into xe_device.eudebug.targets */
 		struct list_head target_link;
+
+		/** @eudebug.ioctl_lock syncing ioctl access */
+		struct rw_semaphore ioctl_lock;
 	} eudebug;
 #endif
 };
drivers/gpu/drm/xe/xe_eudebug.c +103 -1

173 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_types.h +7 -0
index 1e673c934169..55b71ddd92b6 100644
@@ -17,6 +17,7 @@
 
 struct xe_device;
 struct task_struct;
+struct workqueue_struct;
 
 /**
  * enum xe_eudebug_state - eudebug capability state
@@ -103,6 +104,12 @@ struct xe_eudebug {
 	/** @session: session number for this connection (for logs) */
 	u64 session;
 
+	/** @discovery: completion to wait for discovery */
+	struct completion discovery;
+
+	/** @discovery_work: worker to discover resources for target_task */
+	struct work_struct discovery_work;
+
 	/** @events: kfifo queue of to-be-delivered events */
 	struct {
 		/** @lock: guards access to fifo */
Signature · 1 line
2.43.0
#4 lore raw

PATCH 3/15 drm/xe/eudebug: Introduce exec_queue events

In reply to Mika Kuoppala

From: Dominik Grzegorzek <[email protected]>

Add events to inform the debugger about the creation and destruction of exec_queues. Use user engine class types instead of the internal xe_engine_class enum in exec_queue events. During discovery, only advertise exec_queues with render or compute class,excluding others.

v2: - Only track long running queues
- Checkpatch (Tilak)
v3: __counted_by added
v4: - use helpers for filtering engines (Mika)

---
 drivers/gpu/drm/xe/xe_eudebug.c       | 209 +++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_eudebug.h       |   7 +
 drivers/gpu/drm/xe/xe_eudebug_types.h |   7 +-
 drivers/gpu/drm/xe/xe_exec_queue.c    |   5 +
 drivers/gpu/drm/xe/xe_hw_engine.h     |  14 ++
 include/uapi/drm/xe_drm_eudebug.h     |  11 ++
 6 files changed, 248 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_eudebug.c +206 -3
index 8d172d001b1f..2b8efa438716 100644
@@ -15,6 +15,8 @@
 #include "xe_device.h"
 #include "xe_eudebug.h"
 #include "xe_eudebug_types.h"
+#include "xe_exec_queue.h"
+#include "xe_hw_engine.h"
 #include "xe_macros.h"
 #include "xe_vm.h"
 
@@ -398,6 +400,28 @@ __find_handle(struct xe_eudebug_resource *r,
 	return h;
 }
 
+static int find_handle(struct xe_eudebug_resources *res,
+		       const int type,
+		       const void *p)
+{
+	const u64 key = (uintptr_t)p;
+	struct xe_eudebug_resource *r;
+	struct xe_eudebug_handle *h;
+	int id;
+
+	if (XE_WARN_ON(!key))
+		return -EINVAL;
+
+	r = resource_from_type(res, type);
+
+	mutex_lock(&res->lock);
+	h = __find_handle(r, key);
+	id = h ? h->id : -ENOENT;
+	mutex_unlock(&res->lock);
+
+	return id;
+}
+
 static int _xe_eudebug_add_handle(struct xe_eudebug *d,
 				  int type,
 				  void *p,
@@ -656,6 +680,174 @@ void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm)
 	xe_eudebug_event_put(d, vm_destroy_event(d, xef, vm));
 }
 
+static const u16 xe_to_user_engine_class[] = {
+	[XE_ENGINE_CLASS_RENDER] = DRM_XE_ENGINE_CLASS_RENDER,
+	[XE_ENGINE_CLASS_COPY] = DRM_XE_ENGINE_CLASS_COPY,
+	[XE_ENGINE_CLASS_VIDEO_DECODE] = DRM_XE_ENGINE_CLASS_VIDEO_DECODE,
+	[XE_ENGINE_CLASS_VIDEO_ENHANCE] = DRM_XE_ENGINE_CLASS_VIDEO_ENHANCE,
+	[XE_ENGINE_CLASS_COMPUTE] = DRM_XE_ENGINE_CLASS_COMPUTE,
+};
+
+static int send_exec_queue_event(struct xe_eudebug *d, u32 flags,
+				 u64 vm_handle, u64 exec_queue_handle,
+				 enum xe_engine_class class,
+				 u32 width, u64 *lrc_handles, u64 seqno)
+{
+	struct drm_xe_eudebug_event *event;
+	struct drm_xe_eudebug_event_exec_queue *e;
+	const u32 sz = struct_size(e, lrc_handle, width);
+	const u32 xe_engine_class = xe_to_user_engine_class[class];
+
+	if (!xe_engine_supports_eudebug(class))
+		return -EINVAL;
+
+	event = xe_eudebug_create_event(d, DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE,
+					seqno, flags, sz);
+	if (!event)
+		return -ENOMEM;
+
+	e = cast_event(e, event);
+
+	e->vm_handle = vm_handle;
+	e->exec_queue_handle = exec_queue_handle;
+	e->engine_class = xe_engine_class;
+	e->width = width;
+
+	memcpy(e->lrc_handle, lrc_handles, width);
+
+	return xe_eudebug_queue_event(d, event);
+}
+
+static int exec_queue_create_event(struct xe_eudebug *d,
+				   struct xe_file *xef, struct xe_exec_queue *q)
+{
+	int h_vm, h_queue;
+	u64 h_lrc[XE_HW_ENGINE_MAX_INSTANCE], seqno;
+	int i;
+	int ret;
+
+	if (!xe_exec_queue_is_lr(q))
+		return 0;
+
+	h_vm = find_handle(d->res, XE_EUDEBUG_RES_TYPE_VM, q->vm);
+	if (h_vm < 0)
+		return h_vm;
+
+	if (XE_WARN_ON(q->width >= XE_HW_ENGINE_MAX_INSTANCE))
+		return -EINVAL;
+
+	for (i = 0; i < q->width; i++) {
+		int h, ret;
+
+		ret = _xe_eudebug_add_handle(d,
+					     XE_EUDEBUG_RES_TYPE_LRC,
+					     q->lrc[i],
+					     NULL,
+					     &h);
+
+		if (ret < 0 && ret != -EEXIST)
+			return ret;
+
+		XE_WARN_ON(!h);
+
+		h_lrc[i] = h;
+	}
+
+	h_queue = xe_eudebug_add_handle(d, XE_EUDEBUG_RES_TYPE_EXEC_QUEUE, q, &seqno);
+	if (h_queue <= 0)
+		return h_queue;
+
+	/* No need to cleanup for added handles on error as if we fail
+	 * we disconnect
+	 */
+
+	ret = send_exec_queue_event(d, DRM_XE_EUDEBUG_EVENT_CREATE,
+				    h_vm, h_queue, q->class,
+				    q->width, h_lrc, seqno);
+
+	if (ret)
+		eu_dbg(d, "send_exec_queue_event create error %d", ret);
+
+	return ret;
+}
+
+static int exec_queue_destroy_event(struct xe_eudebug *d,
+				    struct xe_file *xef,
+				    struct xe_exec_queue *q)
+{
+	int h_vm, h_queue;
+	u64 h_lrc[XE_HW_ENGINE_MAX_INSTANCE], seqno;
+	int i;
+	int ret;
+
+	if (!xe_exec_queue_is_lr(q))
+		return 0;
+
+	h_vm = find_handle(d->res, XE_EUDEBUG_RES_TYPE_VM, q->vm);
+	if (h_vm < 0)
+		return h_vm;
+
+	if (XE_WARN_ON(q->width >= XE_HW_ENGINE_MAX_INSTANCE))
+		return -EINVAL;
+
+	h_queue = xe_eudebug_remove_handle(d,
+					   XE_EUDEBUG_RES_TYPE_EXEC_QUEUE,
+					   q,
+					   &seqno);
+	if (h_queue <= 0)
+		return h_queue;
+
+	for (i = 0; i < q->width; i++) {
+		ret = _xe_eudebug_remove_handle(d,
+						XE_EUDEBUG_RES_TYPE_LRC,
+						q->lrc[i],
+						NULL);
+		if (ret < 0 && ret != -ENOENT)
+			return ret;
+
+		XE_WARN_ON(!ret);
+
+		h_lrc[i] = ret;
+	}
+
+	ret = send_exec_queue_event(d, DRM_XE_EUDEBUG_EVENT_DESTROY,
+				    h_vm, h_queue, q->class,
+				    q->width, h_lrc, seqno);
+
+	if (ret)
+		eu_dbg(d, "send_exec_queue_event destroy error %d\n", ret);
+
+	return ret;
+}
+
+void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q)
+{
+	struct xe_eudebug *d;
+
+	if (!xe_engine_supports_eudebug(q->class))
+		return;
+
+	d = xe_eudebug_get(xef);
+	if (!d)
+		return;
+
+	xe_eudebug_event_put(d, exec_queue_create_event(d, xef, q));
+}
+
+void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q)
+{
+	struct xe_eudebug *d;
+
+	if (!xe_engine_supports_eudebug(q->class))
+		return;
+
+	d = xe_eudebug_get(xef);
+	if (!d)
+		return;
+
+	xe_eudebug_event_put(d, exec_queue_destroy_event(d, xef, q));
+}
+
 static struct xe_file *xe_eudebug_target_get(struct xe_eudebug *d)
 {
 	struct xe_file *xef = NULL;
@@ -671,9 +863,10 @@ static struct xe_file *xe_eudebug_target_get(struct xe_eudebug *d)
 static void discover_client(struct xe_eudebug *d)
 {
 	struct xe_file *xef;
+	struct xe_exec_queue *q;
 	struct xe_vm *vm;
 	unsigned long i;
-	unsigned int vm_count = 0;
+	unsigned int vm_count = 0, eq_count = 0;
 	int err = 0;
 
 	xef = xe_eudebug_target_get(d);
@@ -691,14 +884,24 @@ static void discover_client(struct xe_eudebug *d)
 		vm_count++;
 	}
 
+	xa_for_each(&xef->exec_queue.xa, i, q) {
+		if (!xe_engine_supports_eudebug(q->class))
+			continue;
+
+		err = exec_queue_create_event(d, xef, q);
+		if (err)
+			break;
+	}
+
 	complete_all(&d->discovery);
 
 	eu_dbg(d, "Discovery end for %lld: %d", d->session, err);
 
 	up_write(&xef->eudebug.ioctl_lock);
 
-	if (vm_count)
-		eu_dbg(d, "Discovery found %u vms", vm_count);
+	if (vm_count || eq_count)
+		eu_dbg(d, "Discovery found %u vms, %u exec_queues",
+		       vm_count, eq_count);
 
 	xe_file_put(xef);
 }
drivers/gpu/drm/xe/xe_eudebug.h +7 -0
index ba13dc35f161..39c9aca373f2 100644
@@ -13,6 +13,7 @@ struct drm_file;
 struct xe_device;
 struct xe_file;
 struct xe_vm;
+struct xe_exec_queue;
 
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
 
@@ -45,6 +46,9 @@ void xe_eudebug_file_close(struct xe_file *xef);
 void xe_eudebug_vm_create(struct xe_file *xef, struct xe_vm *vm);
 void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm);
 
+void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q);
+void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q);
+
 #else
 
 static inline int xe_eudebug_connect_ioctl(struct drm_device *dev,
@@ -59,6 +63,9 @@ static inline void xe_eudebug_file_close(struct xe_file *xef) { }
 static inline void xe_eudebug_vm_create(struct xe_file *xef, struct xe_vm *vm) { }
 static inline void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm) { }
 
+static inline void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q) { }
+static inline void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q) { }
+
 #endif /* CONFIG_DRM_XE_EUDEBUG */
 
 #endif /* _XE_EUDEBUG_H_ */
drivers/gpu/drm/xe/xe_eudebug_types.h +5 -2
index 55b71ddd92b6..57bff7482163 100644
@@ -33,7 +33,7 @@ enum xe_eudebug_state {
 };
 
 #define CONFIG_DRM_XE_DEBUGGER_EVENT_QUEUE_SIZE 64
-#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_VM
+#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE
 
 /**
  * struct xe_eudebug_handle - eudebug resource handle
@@ -61,7 +61,9 @@ struct xe_eudebug_resource {
 };
 
 #define XE_EUDEBUG_RES_TYPE_VM		0
-#define XE_EUDEBUG_RES_TYPE_COUNT	(XE_EUDEBUG_RES_TYPE_VM + 1)
+#define XE_EUDEBUG_RES_TYPE_EXEC_QUEUE	1
+#define XE_EUDEBUG_RES_TYPE_LRC		2
+#define XE_EUDEBUG_RES_TYPE_COUNT	(XE_EUDEBUG_RES_TYPE_LRC + 1)
 
 /**
  * struct xe_eudebug_resources - eudebug resources for all types
@@ -133,3 +135,4 @@ struct xe_eudebug {
 };
 
 #endif /* _XE_EUDEBUG_TYPES_H_ */
+
drivers/gpu/drm/xe/xe_exec_queue.c +5 -0
index 6c176183ed58..91f259e77c5b 100644
@@ -27,6 +27,7 @@
 #include "xe_trace.h"
 #include "xe_vm.h"
 #include "xe_pxp.h"
+#include "xe_eudebug.h"
 
 enum xe_exec_queue_sched_prop {
 	XE_EXEC_QUEUE_JOB_TIMEOUT = 0,
@@ -750,6 +751,8 @@ int xe_exec_queue_create_ioctl(struct drm_device *dev, void *data,
 
 	args->exec_queue_id = id;
 
+	xe_eudebug_exec_queue_create(xef, q);
+
 	return 0;
 
 kill_exec_queue:
@@ -939,6 +942,8 @@ int xe_exec_queue_destroy_ioctl(struct drm_device *dev, void *data,
 	if (q->vm && q->hwe->hw_engine_group)
 		xe_hw_engine_group_del_exec_queue(q->hwe->hw_engine_group, q);
 
+	xe_eudebug_exec_queue_destroy(xef, q);
+
 	xe_exec_queue_kill(q);
 
 	trace_xe_exec_queue_close(q);
drivers/gpu/drm/xe/xe_hw_engine.h +14 -0
index 6b5f9fa2a594..d8781bf79547 100644
@@ -79,4 +79,18 @@ enum xe_force_wake_domains xe_hw_engine_to_fw_domain(struct xe_hw_engine *hwe);
 void xe_hw_engine_mmio_write32(struct xe_hw_engine *hwe, struct xe_reg reg, u32 val);
 u32 xe_hw_engine_mmio_read32(struct xe_hw_engine *hwe, struct xe_reg reg);
 
+static inline bool xe_engine_supports_eudebug(const enum xe_engine_class ec)
+{
+	if (ec == XE_ENGINE_CLASS_COMPUTE ||
+	    ec == XE_ENGINE_CLASS_RENDER)
+		return true;
+
+	return false;
+}
+
+static inline bool xe_hw_engine_has_eudebug(const struct xe_hw_engine *hwe)
+{
+	return xe_engine_supports_eudebug(hwe->class);
+}
+
 #endif
include/uapi/drm/xe_drm_eudebug.h +11 -0
index fd2a0c911d02..360d7a7ecb67 100644
@@ -48,6 +48,7 @@ struct drm_xe_eudebug_event {
 #define DRM_XE_EUDEBUG_EVENT_NONE		0
 #define DRM_XE_EUDEBUG_EVENT_READ		1
 #define DRM_XE_EUDEBUG_EVENT_VM			2
+#define DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE		3
 
 	__u16 flags;
 #define DRM_XE_EUDEBUG_EVENT_CREATE		(1 << 0)
@@ -70,6 +71,16 @@ struct drm_xe_eudebug_event_vm {
 	__u64 vm_handle;
 };
 
+struct drm_xe_eudebug_event_exec_queue {
+	struct drm_xe_eudebug_event base;
+
+	__u64 vm_handle;
+	__u64 exec_queue_handle;
+	__u32 engine_class;
+	__u32 width;
+	__u64 lrc_handle[];
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 1 line
2.43.0
#5 lore raw

PATCH 4/15 drm/xe: Add EUDEBUG_ENABLE exec queue property

In reply to Mika Kuoppala

From: Dominik Grzegorzek <[email protected]>

This patch introduces an immutable eudebug property for exec_queues, using a flags value to enable eudebug-specific features. For now, the engine LRC uses this flag to enable the runalone hardware feature. Runalone ensures that only one hardware engine in a group [rcs0, ccs0-3] is active on a tile.

v2: - check CONFIG_DRM_XE_EUDEBUG and LR mode (Matthew)
- disable preempt (Dominik)
- lrc_create remove from engine init

---
 drivers/gpu/drm/xe/xe_eudebug.c          |  4 +--
 drivers/gpu/drm/xe/xe_exec_queue.c       | 43 +++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_exec_queue.h       |  2 ++
 drivers/gpu/drm/xe/xe_exec_queue_types.h |  7 ++++
 drivers/gpu/drm/xe/xe_lrc.c              | 10 ++++++
 include/uapi/drm/xe_drm.h                |  2 ++
 6 files changed, 65 insertions(+), 3 deletions(-)
drivers/gpu/drm/xe/xe_eudebug.c +2 -2
index 2b8efa438716..a6c0d2391e0e 100644
@@ -726,7 +726,7 @@ static int exec_queue_create_event(struct xe_eudebug *d,
 	int i;
 	int ret;
 
-	if (!xe_exec_queue_is_lr(q))
+	if (!xe_exec_queue_is_debuggable(q))
 		return 0;
 
 	h_vm = find_handle(d->res, XE_EUDEBUG_RES_TYPE_VM, q->vm);
@@ -780,7 +780,7 @@ static int exec_queue_destroy_event(struct xe_eudebug *d,
 	int i;
 	int ret;
 
-	if (!xe_exec_queue_is_lr(q))
+	if (!xe_exec_queue_is_debuggable(q))
 		return 0;
 
 	h_vm = find_handle(d->res, XE_EUDEBUG_RES_TYPE_VM, q->vm);
drivers/gpu/drm/xe/xe_exec_queue.c +42 -1

67 lines not on this page · raw message

drivers/gpu/drm/xe/xe_exec_queue.h +2 -0
index 4d416f23001c..b180dfc63b15 100644
@@ -94,4 +94,6 @@ int xe_exec_queue_contexts_hwsp_rebase(struct xe_exec_queue *q, void *scratch);
 
 void xe_exec_queue_jobs_ring_restore(struct xe_exec_queue *q);
 
+int xe_exec_queue_is_debuggable(struct xe_exec_queue *q);
+
 #endif
drivers/gpu/drm/xe/xe_exec_queue_types.h +7 -0
index ba443a497b38..fd427a6c65d9 100644
@@ -96,6 +96,13 @@ struct xe_exec_queue {
 	 */
 	unsigned long flags;
 
+	/**
+	 * @eudebug_flags: immutable eudebug flags for this exec queue.
+	 * Set up with DRM_XE_EXEC_QUEUE_SET_PROPERTY_EUDEBUG.
+	 */
+#define EXEC_QUEUE_EUDEBUG_FLAG_ENABLE		BIT(0)
+	unsigned long eudebug_flags;
+
 	union {
 		/** @multi_gt_list: list head for VM bind engines if multi-GT */
 		struct list_head multi_gt_list;
drivers/gpu/drm/xe/xe_lrc.c +10 -0
index 8760c4c2ca38..955d0578d7fc 100644
@@ -1457,6 +1457,16 @@ static int xe_lrc_init(struct xe_lrc *lrc, struct xe_hw_engine *hwe,
 	if (err)
 		goto err_lrc_finish;
 
+	if (init_flags & XE_LRC_CREATE_RUNALONE) {
+		u32 ctx_control = xe_lrc_read_ctx_reg(lrc, CTX_CONTEXT_CONTROL);
+
+		drm_dbg(&xe->drm, "read CTX_CONTEXT_CONTROL: 0x%x\n", ctx_control);
+		ctx_control |= _MASKED_BIT_ENABLE(CTX_CTRL_RUN_ALONE);
+		drm_dbg(&xe->drm, "written CTX_CONTEXT_CONTROL: 0x%x\n", ctx_control);
+
+		xe_lrc_write_ctx_reg(lrc, CTX_CONTEXT_CONTROL, ctx_control);
+	}
+
 	return 0;
 
 err_lrc_finish:
include/uapi/drm/xe_drm.h +2 -0
index 0aeabadd83d0..f61cc092ef8d 100644
@@ -1264,6 +1264,8 @@ struct drm_xe_exec_queue_create {
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PRIORITY		0
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_TIMESLICE		1
 #define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_PXP_TYPE		2
+#define   DRM_XE_EXEC_QUEUE_SET_PROPERTY_EUDEBUG		3
+#define     DRM_XE_EXEC_QUEUE_EUDEBUG_FLAG_ENABLE		(1 << 0)
 	/** @extensions: Pointer to the first extension struct, if any */
 	__u64 extensions;
 
Signature · 1 line
2.43.0
#6 lore raw

PATCH 5/15 drm/xe: Introduce ADD_DEBUG_DATA and REMOVE_DEBUG_DATA vm bind ops

In reply to Mika Kuoppala

From: Christoph Manszewski <[email protected]>

Make it possible to add and remove per vm debug data, which can be used to annotate vm ranges (using pseudopaths) or to associate them with a file which can carry arbitrary debug data (e.g. binary instruction to code line mapping). The debug data is kept separe from the vmas. Each address can be associated with only one debug data entry i.e. debug data entries cannot overlap. Each entry is atomic so to remove it the creation address and range has to be passed for removal.

For debug data manipulation only the 'op' and 'extensions' field from 'struct drm_xe_vm_bind_op' is used. All required parameters are passed through 'struct drm_xe_vm_bind_op_ext_debug_data' and a valid instance should be present in the extension chain pointed by the 'extensions' field.

Debug data will be accessible through the eudebug event interface, introduced in the following patch. An alternative way to access debug data using debugfs, without relying on eudebug, will be proposed as a follow-up to the eudebug series.

---
 drivers/gpu/drm/xe/Makefile              |   1 +
 drivers/gpu/drm/xe/xe_debug_data.c       | 275 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_debug_data.h       |  22 ++
 drivers/gpu/drm/xe/xe_debug_data_types.h |  25 +++
 drivers/gpu/drm/xe/xe_vm.c               | 157 ++++++++++++-
 drivers/gpu/drm/xe/xe_vm_types.h         |  19 ++
 include/uapi/drm/xe_drm.h                |  36 +++
 7 files changed, 529 insertions(+), 6 deletions(-)
 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
drivers/gpu/drm/xe/Makefile +1 -0
index 4ef2da006a87..86f60d1d07d8 100644
@@ -85,6 +85,7 @@ xe-y += xe_bb.o \
 	xe_hw_fence.o \
 	xe_irq.o \
 	xe_lrc.o \
+	xe_debug_data.o \
 	xe_migrate.o \
 	xe_mmio.o \
 	xe_mmio_gem.o \
drivers/gpu/drm/xe/xe_debug_data.c new file +275 -0

275 lines not on this page · raw message

drivers/gpu/drm/xe/xe_debug_data.h new file +22 -0
new file mode 100644
index 000000000000..3436a7023920
@@ -0,0 +1,22 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2025 Intel Corporation
+ */
+
+#ifndef _XE_DEBUG_DATA_H_
+#define _XE_DEBUG_DATA_H_
+
+#include <linux/types.h>
+
+struct drm_gpuva_ops;
+struct xe_vm;
+struct xe_vma_op;
+
+const char *xe_debug_data_pseudo_path_to_string(u64 pseudopath);
+int xe_debug_data_check_extension(struct xe_vm *vm, u32 operation, u64 extension);
+int xe_debug_data_process_extension(struct xe_vm *vm, struct drm_gpuva_ops *ops, u32 operation,
+				    u64 extension);
+int xe_debug_data_op_unwind(struct xe_vm *vm, struct xe_vma_op *vma_op);
+int xe_debug_data_destroy(struct xe_vm *vm);
+
+#endif /* _XE_DEBUG_DATA_H_ */
drivers/gpu/drm/xe/xe_debug_data_types.h new file +25 -0
new file mode 100644
index 000000000000..a8b430af2275
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2025 Intel Corporation
+ */
+
+#ifndef _XE_DEBUG_DATA_TYPES_H_
+#define _XE_DEBUG_DATA_TYPES_H_
+
+#include <linux/limits.h>
+#include <linux/list.h>
+#include <linux/types.h>
+
+struct xe_debug_data {
+	struct list_head link;
+	u64 addr;
+	u64 range;
+	u64 flags;
+	u32 offset;
+	union {
+		u64 pseudopath;
+		char pathname[PATH_MAX];
+	};
+};
+
+#endif /* _XE_DEBUG_DATA_TYPES_H_ */
drivers/gpu/drm/xe/xe_vm.c +151 -6

276 lines not on this page · raw message

drivers/gpu/drm/xe/xe_vm_types.h +19 -0
index bed6088e1bb3..672eeba10499 100644
@@ -14,6 +14,7 @@
 #include <linux/mmu_notifier.h>
 #include <linux/scatterlist.h>
 
+#include "xe_debug_data_types.h"
 #include "xe_device_types.h"
 #include "xe_pt_types.h"
 #include "xe_range_fence.h"
@@ -329,6 +330,12 @@ struct xe_vm {
 	bool batch_invalidate_tlb;
 	/** @xef: XE file handle for tracking this VM's drm client */
 	struct xe_file *xef;
+
+	/** @debug_data: track debug_data mapped to vm */
+	struct {
+		struct list_head list;
+		struct mutex lock;
+	} debug_data;
 };
 
 /** struct xe_vma_op_map - VMA map operation */
@@ -399,6 +406,12 @@ struct xe_vma_op_prefetch_range {
 	u32 region;
 };
 
+/** struct xe_vma_op_debug_data - debug data altering operation */
+struct xe_vma_op_modify_debug_data {
+	/** @debug_data: debug data associated with that operation */
+	struct xe_debug_data debug_data;
+};
+
 /** enum xe_vma_op_flags - flags for VMA operation */
 enum xe_vma_op_flags {
 	/** @XE_VMA_OP_COMMITTED: VMA operation committed */
@@ -415,6 +428,10 @@ enum xe_vma_subop {
 	XE_VMA_SUBOP_MAP_RANGE,
 	/** @XE_VMA_SUBOP_UNMAP_RANGE: Unmap range */
 	XE_VMA_SUBOP_UNMAP_RANGE,
+	/** @XE_VMA_SUBOP_ADD_DEBUG_DATA: Add debug data to vm */
+	XE_VMA_SUBOP_ADD_DEBUG_DATA,
+	/** @XE_VMA_SUBOP_REMOVE_DEBUG_DATA: Remove debug data from vm */
+	XE_VMA_SUBOP_REMOVE_DEBUG_DATA,
 };
 
 /** struct xe_vma_op - VMA operation */
@@ -443,6 +460,8 @@ struct xe_vma_op {
 		struct xe_vma_op_unmap_range unmap_range;
 		/** @prefetch_range: VMA prefetch range operation specific data */
 		struct xe_vma_op_prefetch_range prefetch_range;
+		/** @debug_data: debug_data operation specific data */
+		struct xe_vma_op_modify_debug_data modify_debug_data;
 	};
 };
 
include/uapi/drm/xe_drm.h +36 -0
index f61cc092ef8d..ba8e0d21f468 100644
@@ -6,6 +6,8 @@
 #ifndef _UAPI_XE_DRM_H_
 #define _UAPI_XE_DRM_H_
 
+#include <linux/limits.h>
+
 #include "drm.h"
 
 #if defined(__cplusplus)
@@ -977,6 +979,35 @@ struct drm_xe_vm_destroy {
 	__u64 reserved[2];
 };
 
+struct drm_xe_vm_bind_op_ext_debug_data {
+	/** @base: base user extension */
+	struct drm_xe_user_extension base;
+
+	/** @addr: Address of the metadata mapping */
+	__u64 addr;
+
+	/** @range: Range of the metadata mapping */
+	__u64 range;
+
+#define DRM_XE_VM_BIND_DEBUG_DATA_FLAG_PSEUDO (1 << 0)
+	/** @flags: Debug metadata flags */
+	__u64 flags;
+
+	/** @offset: Offset into the debug data file, MBZ for DEBUG_PSEUDO */
+	__u32 offset;
+
+	/** @reserved: Reserved */
+	__u32 reserved;
+
+	union {
+#define DRM_XE_VM_BIND_DEBUG_DATA_PSEUDO_MODULE_AREA	0x1
+#define DRM_XE_VM_BIND_DEBUG_DATA_PSEUDO_SBA_AREA	0x2
+#define DRM_XE_VM_BIND_DEBUG_DATA_PSEUDO_SIP_AREA	0x3
+		__u64 pseudopath;
+		char pathname[PATH_MAX];
+	};
+};
+
 /**
  * struct drm_xe_vm_bind_op - run bind operations
  *
@@ -986,6 +1017,8 @@ struct drm_xe_vm_destroy {
  *  - %DRM_XE_VM_BIND_OP_MAP_USERPTR
  *  - %DRM_XE_VM_BIND_OP_UNMAP_ALL
  *  - %DRM_XE_VM_BIND_OP_PREFETCH
+ *  - %DRM_XE_VM_BIND_OP_ADD_DEBUG_DATA
+ *  - %DRM_XE_VM_BIND_OP_REMOVE_DEBUG_DATA
  *
  * and the @flags can be:
  *  - %DRM_XE_VM_BIND_FLAG_READONLY - Setup the page tables as read-only
@@ -1011,6 +1044,7 @@ struct drm_xe_vm_destroy {
  *    handle MBZ, and the BO offset MBZ.
  */
 struct drm_xe_vm_bind_op {
+#define	XE_VM_BIND_OP_EXTENSIONS_DEBUG_DATA 0
 	/** @extensions: Pointer to the first extension struct, if any */
 	__u64 extensions;
 
@@ -1102,6 +1136,8 @@ struct drm_xe_vm_bind_op {
 #define DRM_XE_VM_BIND_OP_MAP_USERPTR	0x2
 #define DRM_XE_VM_BIND_OP_UNMAP_ALL	0x3
 #define DRM_XE_VM_BIND_OP_PREFETCH	0x4
+#define DRM_XE_VM_BIND_OP_ADD_DEBUG_DATA	0x5
+#define DRM_XE_VM_BIND_OP_REMOVE_DEBUG_DATA	0x6
 	/** @op: Bind operation to perform */
 	__u32 op;
 
Signature · 1 line
2.43.0
#7 lore raw

PATCH 6/15 drm/xe/eudebug: Introduce vm bind and vm bind debug data events

In reply to Mika Kuoppala

From: Christoph Manszewski <[email protected]>

This patch adds events to track the bind ioctl and associated debug data add and remove operations. As a single bind can involve multiple operations and may fail mid-process, events are stored until the full chain of operations succeeds before relaying to the debugger. If no debug data operations occur, no events are sent to avoid unnecessary debugger notifications.

---
 drivers/gpu/drm/xe/xe_debug_data.c    |   4 +
 drivers/gpu/drm/xe/xe_eudebug.c       | 382 +++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_eudebug.h       |  13 +
 drivers/gpu/drm/xe/xe_eudebug_types.h |   2 +-
 drivers/gpu/drm/xe/xe_vm.c            |  14 +-
 drivers/gpu/drm/xe/xe_vm_types.h      |  13 +
 include/uapi/drm/xe_drm_eudebug.h     |  71 +++++
 7 files changed, 492 insertions(+), 7 deletions(-)
drivers/gpu/drm/xe/xe_debug_data.c +4 -0
index 99044dc477d5..7952fc764815 100644
@@ -3,6 +3,7 @@
  * Copyright © 2025 Intel Corporation
  */
 
+#include "xe_eudebug.h"
 #include "xe_debug_data.h"
 #include "xe_debug_data_types.h"
 #include "xe_vm.h"
@@ -136,6 +137,8 @@ static int xe_debug_data_add(struct xe_vm *vm, struct xe_vma_op *vma_op,
 
 	memcpy(&vma_op->modify_debug_data.debug_data, dd, sizeof(*dd));
 
+	xe_eudebug_vm_bind_op_add(vm, DRM_XE_VM_BIND_OP_ADD_DEBUG_DATA, dd);
+
 	return 0;
 }
 
@@ -153,6 +156,7 @@ static int xe_debug_data_remove(struct xe_vm *vm, struct xe_vma_op *vma_op,
 	mutex_lock(&vm->debug_data.lock);
 	list_for_each_entry(dd, &vm->debug_data.list, link) {
 		if (dd->addr == ext->addr && dd->range == ext->range) {
+			xe_eudebug_vm_bind_op_add(vm, DRM_XE_VM_BIND_OP_REMOVE_DEBUG_DATA, dd);
 			list_del(&dd->link);
 			memcpy(&vma_op->modify_debug_data.debug_data, dd, sizeof(*dd));
 			kfree(dd);
drivers/gpu/drm/xe/xe_eudebug.c +378 -4

430 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug.h +13 -0
index 39c9aca373f2..8e7e1ad726eb 100644
@@ -10,9 +10,11 @@
 
 struct drm_device;
 struct drm_file;
+struct xe_debug_data;
 struct xe_device;
 struct xe_file;
 struct xe_vm;
+struct xe_vma;
 struct xe_exec_queue;
 
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
@@ -49,6 +51,11 @@ void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm);
 void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q);
 void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q);
 
+void xe_eudebug_vm_init(struct xe_vm *vm);
+void xe_eudebug_vm_bind_start(struct xe_vm *vm);
+void xe_eudebug_vm_bind_op_add(struct xe_vm *vm, u32 op, struct xe_debug_data *debug_data);
+void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int err);
+
 #else
 
 static inline int xe_eudebug_connect_ioctl(struct drm_device *dev,
@@ -66,6 +73,12 @@ static inline void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm)
 static inline void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q) { }
 static inline void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q) { }
 
+static inline void xe_eudebug_vm_init(struct xe_vm *vm) { }
+static inline void xe_eudebug_vm_bind_start(struct xe_vm *vm) { }
+static inline void xe_eudebug_vm_bind_op_add(struct xe_vm *vm, u32 op,
+					     struct xe_debug_data *debug_data) { }
+static inline void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int err) { }
+
 #endif /* CONFIG_DRM_XE_EUDEBUG */
 
 #endif /* _XE_EUDEBUG_H_ */
drivers/gpu/drm/xe/xe_eudebug_types.h +1 -1
index 57bff7482163..502b121114df 100644
@@ -33,7 +33,7 @@ enum xe_eudebug_state {
 };
 
 #define CONFIG_DRM_XE_DEBUGGER_EVENT_QUEUE_SIZE 64
-#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE
+#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_VM_BIND_OP_DEBUG_DATA
 
 /**
  * struct xe_eudebug_handle - eudebug resource handle
drivers/gpu/drm/xe/xe_vm.c +12 -2
index 917228ef84a4..59518504448e 100644
@@ -1700,6 +1700,8 @@ struct xe_vm *xe_vm_create(struct xe_device *xe, u32 flags)
 	for_each_tile(tile, xe, id)
 		xe_range_fence_tree_init(&vm->rftree[id]);
 
+	xe_eudebug_vm_init(vm);
+
 	INIT_LIST_HEAD(&vm->debug_data.list);
 	mutex_init(&vm->debug_data.lock);
 
@@ -1984,6 +1986,8 @@ static void vm_destroy_work_func(struct work_struct *w)
 	struct xe_tile *tile;
 	u8 id;
 
+	xe_eudebug_vm_bind_end(vm, 0, -ENOENT);
+
 	/* xe_vm_close_and_put was not called? */
 	xe_assert(xe, !vm->size);
 
@@ -3287,7 +3291,7 @@ static void vm_bind_ioctl_ops_fini(struct xe_vm *vm, struct xe_vma_ops *vops,
 				   struct dma_fence *fence)
 {
 	struct xe_exec_queue *wait_exec_queue = to_wait_exec_queue(vm, vops->q);
-	struct xe_user_fence *ufence;
+	struct xe_user_fence *ufence = NULL;
 	struct xe_vma_op *op;
 	int i;
 
@@ -3302,6 +3306,9 @@ static void vm_bind_ioctl_ops_fini(struct xe_vm *vm, struct xe_vma_ops *vops,
 			xe_vma_destroy(gpuva_to_vma(op->base.remap.unmap->va),
 				       fence);
 	}
+
+	xe_eudebug_vm_bind_end(vm, ufence, 0);
+
 	if (ufence)
 		xe_sync_ufence_put(ufence);
 	if (fence) {
@@ -3859,8 +3866,11 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
 		dma_fence_put(fence);
 
 unwind_ops:
-	if (err && err != -ENODATA)
+	if (err && err != -ENODATA) {
+		xe_eudebug_vm_bind_end(vm, num_ufence > 0, err);
 		vm_bind_ioctl_ops_unwind(vm, ops, args->num_binds);
+	}
+
 	xe_vma_ops_fini(&vops);
 	for (i = args->num_binds - 1; i >= 0; --i)
 		if (ops[i])
drivers/gpu/drm/xe/xe_vm_types.h +13 -0
index 672eeba10499..e20f8341d5e9 100644
@@ -331,6 +331,19 @@ struct xe_vm {
 	/** @xef: XE file handle for tracking this VM's drm client */
 	struct xe_file *xef;
 
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	struct {
+		/** @lock: Lock for eudebug_bind members */
+		spinlock_t lock;
+		/** @events: List of vm bind ops gathered */
+		struct list_head events;
+		/** @ops: How many operations we have stored */
+		u32 ops;
+		/** @ref_seqno: Reference to the VM_BIND that the ops relate */
+		u64 ref_seqno;
+	} eudebug;
+#endif
+
 	/** @debug_data: track debug_data mapped to vm */
 	struct {
 		struct list_head list;
include/uapi/drm/xe_drm_eudebug.h +71 -0

83 lines not on this page · raw message

Signature · 1 line
2.43.0
#8 lore raw

PATCH 7/15 drm/xe/eudebug: Add UFENCE events with acks

In reply to Mika Kuoppala

When vma is in place, debugger needs to intercept before userspace proceeds with the workload. For example to install a breakpoint in a eu shader.

Attach debugger in xe_user_fence, send UFENCE event and stall normal user fence signal path to yield if there is debugger attached to ufence.

When ack (ioctl) is received for the corresponding seqno, signal ufence.

v2: - return err instead of 0 to guarantee signalling (Dominik)
- checkpatch (Tilak)
- Kconfig (Mika, Andrzej)
- use lock instead of cmpxchg (Mika)
v4: - improve ref handling and no ufences nodebug binds

---
 drivers/gpu/drm/xe/xe_eudebug.c       | 312 +++++++++++++++++++++++++-
 drivers/gpu/drm/xe/xe_eudebug.h       |  18 +-
 drivers/gpu/drm/xe/xe_eudebug_types.h |   9 +-
 drivers/gpu/drm/xe/xe_exec.c          |   2 +-
 drivers/gpu/drm/xe/xe_oa.c            |   3 +-
 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            |   8 +-
 include/uapi/drm/xe_drm_eudebug.h     |  15 +-
 10 files changed, 413 insertions(+), 35 deletions(-)
drivers/gpu/drm/xe/xe_eudebug.c +307 -5
index 9c44195b5ceb..23708d4ae923 100644
@@ -19,6 +19,7 @@
 #include "xe_exec_queue.h"
 #include "xe_hw_engine.h"
 #include "xe_macros.h"
+#include "xe_sync.h"
 #include "xe_vm.h"
 
 /*
@@ -186,7 +187,7 @@ static void xe_eudebug_free(struct kref *ref)
 	kfree(d);
 }
 
-static void xe_eudebug_put(struct xe_eudebug *d)
+void xe_eudebug_put(struct xe_eudebug *d)
 {
 	kref_put(&d->ref, xe_eudebug_free);
 }
@@ -217,6 +218,114 @@ static void remove_debugger(struct xe_file *xef)
 	}
 }
 
+struct xe_eudebug_ack {
+	struct rb_node rb_node;
+	u64 seqno;
+	u64 ts_insert;
+	struct xe_user_fence *ufence;
+};
+
+#define fetch_ack(x) rb_entry(x, struct xe_eudebug_ack, rb_node)
+
+static int compare_ack(const u64 a, const u64 b)
+{
+	if (a < b)
+		return -1;
+	else if (a > b)
+		return 1;
+
+	return 0;
+}
+
+static int ack_insert_cmp(struct rb_node * const node,
+			  const struct rb_node * const p)
+{
+	return compare_ack(fetch_ack(node)->seqno,
+			   fetch_ack(p)->seqno);
+}
+
+static int ack_lookup_cmp(const void * const key,
+			  const struct rb_node * const node)
+{
+	return compare_ack(*(const u64 *)key,
+			   fetch_ack(node)->seqno);
+}
+
+static struct xe_eudebug_ack *remove_ack(struct xe_eudebug *d, u64 seqno)
+{
+	struct rb_root * const root = &d->acks.tree;
+	struct rb_node *node;
+
+	spin_lock(&d->acks.lock);
+	node = rb_find(&seqno, root, ack_lookup_cmp);
+	if (node)
+		rb_erase(node, root);
+	spin_unlock(&d->acks.lock);
+
+	if (!node)
+		return NULL;
+
+	return rb_entry_safe(node, struct xe_eudebug_ack, rb_node);
+}
+
+static void ufence_signal_worker(struct work_struct *w)
+{
+	struct xe_user_fence * const ufence =
+		container_of(w, struct xe_user_fence, eudebug.worker);
+
+	if (READ_ONCE(ufence->signalled))
+		xe_sync_ufence_signal(ufence);
+
+	xe_sync_ufence_put(ufence);
+}
+
+static void kick_ufence_worker(struct xe_user_fence *f)
+{
+	queue_work(f->xe->eudebug.wq, &f->eudebug.worker);
+}
+
+static void handle_ack(struct xe_eudebug *d, struct xe_eudebug_ack *ack,
+		       bool on_disconnect)
+{
+	struct xe_user_fence *f = ack->ufence;
+	u64 signalled_by;
+	bool signal = false;
+
+	spin_lock(&f->eudebug.lock);
+	if (!f->eudebug.signalled_seqno) {
+		f->eudebug.signalled_seqno = ack->seqno;
+		signal = true;
+	}
+	signalled_by = f->eudebug.signalled_seqno;
+	spin_unlock(&f->eudebug.lock);
+
+	if (signal)
+		kick_ufence_worker(f);
+	else
+		xe_sync_ufence_put(f);
+
+	eu_dbg(d, "ACK: seqno=%llu: signalled by %llu (%s) (held %lluus)",
+	       ack->seqno, signalled_by,
+	       on_disconnect ? "disconnect" : "debugger",
+	       ktime_us_delta(ktime_get(), ack->ts_insert));
+
+	kfree(ack);
+}
+
+static void release_acks(struct xe_eudebug *d)
+{
+	struct xe_eudebug_ack *ack, *n;
+	struct rb_root root;
+
+	spin_lock(&d->acks.lock);
+	root = d->acks.tree;
+	d->acks.tree = RB_ROOT;
+	spin_unlock(&d->acks.lock);
+
+	rbtree_postorder_for_each_entry_safe(ack, n, &root, rb_node)
+		handle_ack(d, ack, true);
+}
+
 static bool xe_eudebug_detach(struct xe_device *xe,
 			      struct xe_eudebug *d,
 			      const int err)
@@ -240,6 +349,8 @@ static bool xe_eudebug_detach(struct xe_device *xe,
 
 	eu_dbg(d, "session %lld detached with %d", d->session, err);
 
+	release_acks(d);
+
 	remove_debugger(target);
 	xe_file_put(target);
 
@@ -284,7 +395,7 @@ _xe_eudebug_get(struct xe_file *xef)
 	return d;
 }
 
-static struct xe_eudebug *
+struct xe_eudebug *
 xe_eudebug_get(struct xe_file *xef)
 {
 	struct xe_eudebug *d;
@@ -983,6 +1094,142 @@ static int vm_bind_op(struct xe_eudebug *d, struct xe_vm *vm,
 	return 0;
 }
 
+
+void xe_eudebug_ufence_init(struct xe_user_fence *ufence,
+			    struct xe_file *xef,
+			    struct xe_vm *vm)
+{
+	u64 bind_ref;
+
+	/* Drop if OA */
+	if (!vm)
+		return;
+
+	spin_lock(&vm->eudebug.lock);
+	bind_ref = vm->eudebug.ref_seqno;
+	spin_unlock(&vm->eudebug.lock);
+
+	spin_lock_init(&ufence->eudebug.lock);
+	INIT_WORK(&ufence->eudebug.worker, ufence_signal_worker);
+
+	ufence->eudebug.signalled_seqno = 0;
+
+	if (bind_ref) {
+		ufence->eudebug.debugger = xe_eudebug_get(xef);
+
+		if (ufence->eudebug.debugger)
+			ufence->eudebug.bind_ref_seqno = bind_ref;
+	}
+}
+
+void xe_eudebug_ufence_fini(struct xe_user_fence *ufence)
+{
+	XE_WARN_ON(ufence->eudebug.bind_ref_seqno);
+
+	if (!ufence->eudebug.debugger)
+		return;
+
+	xe_eudebug_put(ufence->eudebug.debugger);
+	ufence->eudebug.debugger = NULL;
+}
+
+static int xe_eudebug_track_ufence(struct xe_eudebug *d,
+				   struct xe_user_fence *f,
+				   u64 seqno)
+{
+	struct xe_eudebug_ack *ack;
+	struct rb_node *old;
+
+	ack = kzalloc(sizeof(*ack), GFP_KERNEL);
+	if (!ack)
+		return -ENOMEM;
+
+	ack->seqno = seqno;
+	ack->ts_insert = ktime_get();
+
+	__xe_sync_ufence_get(f);
+
+	spin_lock(&d->acks.lock);
+	old = rb_find_add(&ack->rb_node,
+			  &d->acks.tree, ack_insert_cmp);
+	if (!old)
+		ack->ufence = f;
+	spin_unlock(&d->acks.lock);
+
+	if (ack->ufence)
+		return 0;
+
+	xe_sync_ufence_put(f);
+	kfree(ack);
+
+	return -EEXIST;
+}
+
+static int vm_bind_ufence_event(struct xe_eudebug *d,
+				struct xe_user_fence *ufence,
+				u64 bind_ref_seqno)
+{
+	struct drm_xe_eudebug_event *event;
+	struct drm_xe_eudebug_event_vm_bind_ufence *e;
+	const u32 sz = sizeof(*e);
+	const u32 flags = DRM_XE_EUDEBUG_EVENT_CREATE |
+		DRM_XE_EUDEBUG_EVENT_NEED_ACK;
+	u64 seqno;
+	int ret;
+
+	seqno = atomic_long_inc_return(&d->events.seqno);
+
+	event = xe_eudebug_create_event(d, DRM_XE_EUDEBUG_EVENT_VM_BIND_UFENCE,
+					seqno, flags, sz);
+	if (!event)
+		return -ENOMEM;
+
+	e = cast_event(e, event);
+	e->vm_bind_ref_seqno = bind_ref_seqno;
+
+	ret = xe_eudebug_track_ufence(d, ufence, seqno);
+	if (ret)
+		eu_dbg(d, "tracking of ufence %llu failed with %d\n", seqno, ret);
+
+	if (!ret)
+		ret = xe_eudebug_queue_event(d, event);
+
+	if (ret)
+		kfree(event);
+
+	return ret;
+}
+
+int xe_eudebug_vm_bind_ufence(struct xe_user_fence *ufence)
+{
+	struct xe_eudebug *d;
+	u64 bind_ref_seqno;
+	int err;
+
+	spin_lock(&ufence->eudebug.lock);
+	d = ufence->eudebug.debugger;
+	bind_ref_seqno = ufence->eudebug.bind_ref_seqno;
+	ufence->eudebug.bind_ref_seqno = 0;
+	spin_unlock(&ufence->eudebug.lock);
+
+	if (!d || xe_eudebug_detached(d))
+		return -ENOTCONN;
+
+	/* If there is no bind ref, no need to track */
+	if (!bind_ref_seqno) {
+		eu_dbg(d, "ufence without bind_ref_seqno, omitting send");
+		return -ENOENT;
+	}
+
+	err = vm_bind_ufence_event(d, ufence, bind_ref_seqno);
+	if (err) {
+		eu_err(d, "error %d on %s", err, __func__);
+		xe_eudebug_disconnect(d, err);
+	}
+
+	return err;
+}
+
 void xe_eudebug_vm_init(struct xe_vm *vm)
 {
 	INIT_LIST_HEAD(&vm->eudebug.events);
@@ -1102,7 +1349,9 @@ static void fill_vm_bind_op_fields(struct xe_vm *vm,
 	op->vm_bind_ref_seqno = ref_seqno;
 }
 
-void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int bind_err)
+void xe_eudebug_vm_bind_end(struct xe_vm *vm,
+			    struct xe_user_fence *ufence,
+			    int bind_err)
 {
 	struct drm_xe_eudebug_event *e;
 	struct xe_eudebug *d;
@@ -1119,6 +1368,15 @@ void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int bind_err)
 	vm->eudebug.ops = 0;
 	spin_unlock(&vm->eudebug.lock);
 
+	XE_WARN_ON(ufence && bind_err);
+
+	if (ufence && !bind_ops) {
+		spin_lock(&ufence->eudebug.lock);
+		XE_WARN_ON(!ufence->eudebug.bind_ref_seqno);
+		ufence->eudebug.bind_ref_seqno = 0;
+		spin_unlock(&ufence->eudebug.lock);
+	}
+
 	e = fetch_bind_event(vm);
 	if (!e)
 		return;
@@ -1128,7 +1386,7 @@ void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int bind_err)
 		d = xe_eudebug_get(vm->xef);
 		if (d) {
 			if (bind_ops) {
-				fill_vm_bind_fields(vm, e, has_ufence, bind_ops);
+				fill_vm_bind_fields(vm, e, ufence != NULL, bind_ops);
 			} else {
 				/*
 				 * If there was no ops we are interested in,
@@ -1483,6 +1741,44 @@ static long xe_eudebug_read_event(struct xe_eudebug *d,
 	return ret;
 }
 
+static long
+xe_eudebug_ack_event_ioctl(struct xe_eudebug *d,
+			   const unsigned int cmd,
+			   const u64 arg)
+{
+	struct drm_xe_eudebug_ack_event __user * const user_ptr =
+		u64_to_user_ptr(arg);
+	struct drm_xe_eudebug_ack_event user_arg;
+	struct xe_eudebug_ack *ack;
+	struct xe_device *xe = d->xe;
+
+	if (XE_IOCTL_DBG(xe, _IOC_SIZE(cmd) < sizeof(user_arg)))
+		return -EINVAL;
+
+	/* Userland write */
+	if (XE_IOCTL_DBG(xe, !(_IOC_DIR(cmd) & _IOC_WRITE)))
+		return -EINVAL;
+
+	if (XE_IOCTL_DBG(xe, copy_from_user(&user_arg,
+					    user_ptr,
+					    sizeof(user_arg))))
+		return -EFAULT;
+
+	if (XE_IOCTL_DBG(xe, user_arg.flags))
+		return -EINVAL;
+
+	if (XE_IOCTL_DBG(xe, xe_eudebug_detached(d)))
+		return -ENOTCONN;
+
+	ack = remove_ack(d, user_arg.seqno);
+	if (XE_IOCTL_DBG(xe, !ack))
+		return -EINVAL;
+
+	handle_ack(d, ack, false);
+
+	return 0;
+}
+
 static long xe_eudebug_ioctl(struct file *file,
 			     unsigned int cmd,
 			     unsigned long arg)
@@ -1499,7 +1795,10 @@ static long xe_eudebug_ioctl(struct file *file,
 		ret = xe_eudebug_read_event(d, arg,
 					    !(file->f_flags & O_NONBLOCK));
 		break;
-
+	case DRM_XE_EUDEBUG_IOCTL_ACK_EVENT:
+		ret = xe_eudebug_ack_event_ioctl(d, cmd, arg);
+		eu_dbg(d, "ioctl cmd=EVENT_ACK ret=%ld\n", ret);
+		break;
 	default:
 		ret = -EINVAL;
 	}
@@ -1561,6 +1860,9 @@ xe_eudebug_connect(struct xe_device *xe,
 	INIT_KFIFO(d->events.fifo);
 	INIT_WORK(&d->discovery_work, discovery_work_fn);
 
+	spin_lock_init(&d->acks.lock);
+	d->acks.tree = RB_ROOT;
+
 	d->res = xe_eudebug_resources_alloc();
 	if (XE_IOCTL_DBG(xe, IS_ERR(d->res))) {
 		err = PTR_ERR(d->res);
drivers/gpu/drm/xe/xe_eudebug.h +17 -1
index 8e7e1ad726eb..b2d49d7237ba 100644
@@ -16,6 +16,7 @@ struct xe_file;
 struct xe_vm;
 struct xe_vma;
 struct xe_exec_queue;
+struct xe_user_fence;
 
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
 
@@ -54,7 +55,14 @@ void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q)
 void xe_eudebug_vm_init(struct xe_vm *vm);
 void xe_eudebug_vm_bind_start(struct xe_vm *vm);
 void xe_eudebug_vm_bind_op_add(struct xe_vm *vm, u32 op, struct xe_debug_data *debug_data);
-void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int err);
+void xe_eudebug_vm_bind_end(struct xe_vm *vm, struct xe_user_fence *ufence, int err);
+
+int xe_eudebug_vm_bind_ufence(struct xe_user_fence *ufence);
+void xe_eudebug_ufence_init(struct xe_user_fence *ufence, struct xe_file *xef, struct xe_vm *vm);
+void xe_eudebug_ufence_fini(struct xe_user_fence *ufence);
+
+struct xe_eudebug *xe_eudebug_get(struct xe_file *xef);
+void xe_eudebug_put(struct xe_eudebug *d);
 
 #else
 
@@ -79,6 +87,14 @@ static inline void xe_eudebug_vm_bind_op_add(struct xe_vm *vm, u32 op,
 					     struct xe_debug_data *debug_data) { }
 static inline void xe_eudebug_vm_bind_end(struct xe_vm *vm, bool has_ufence, int err) { }
 
+static inline int xe_eudebug_vm_bind_ufence(struct xe_user_fence *ufence) { return 0; }
+static inline void xe_eudebug_ufence_init(struct xe_user_fence *ufence,
+					  struct xe_file *xef, struct xe_vm *vm) { }
+static inline void xe_eudebug_ufence_fini(struct xe_user_fence *ufence) { }
+
+static inline struct xe_eudebug *xe_eudebug_get(struct xe_file *xef) { return NULL; }
+static inline void xe_eudebug_put(struct xe_eudebug *d) { }
+
 #endif /* CONFIG_DRM_XE_EUDEBUG */
 
 #endif /* _XE_EUDEBUG_H_ */
drivers/gpu/drm/xe/xe_eudebug_types.h +8 -1
index 502b121114df..a294e2f4e7df 100644
@@ -33,7 +33,7 @@ enum xe_eudebug_state {
 };
 
 #define CONFIG_DRM_XE_DEBUGGER_EVENT_QUEUE_SIZE 64
-#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_VM_BIND_OP_DEBUG_DATA
+#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_VM_BIND_UFENCE
 
 /**
  * struct xe_eudebug_handle - eudebug resource handle
@@ -132,6 +132,13 @@ struct xe_eudebug {
 		atomic_long_t seqno;
 	} events;
 
+	/* user fences tracked by this debugger */
+	struct {
+		/** @lock: guards access to tree */
+		spinlock_t lock;
+
+		struct rb_root tree;
+	} acks;
 };
 
 #endif /* _XE_EUDEBUG_TYPES_H_ */
drivers/gpu/drm/xe/xe_exec.c +1 -1
index 44364c042ad7..d638bd13d17c 100644
@@ -159,7 +159,7 @@ int xe_exec_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
 	vm = q->vm;
 
 	for (num_syncs = 0; num_syncs < args->num_syncs; num_syncs++) {
-		err = xe_sync_entry_parse(xe, xef, &syncs[num_syncs],
+		err = xe_sync_entry_parse(xe, xef, vm, &syncs[num_syncs],
 					  &syncs_user[num_syncs], SYNC_PARSE_FLAG_EXEC |
 					  (xe_vm_in_lr_mode(vm) ?
 					   SYNC_PARSE_FLAG_LR_MODE : 0));
drivers/gpu/drm/xe/xe_oa.c +2 -1
index 5729e7d3e335..4474518eab3e 100644
@@ -1408,7 +1408,8 @@ static int xe_oa_parse_syncs(struct xe_oa *oa, struct xe_oa_open_param *param)
 	}
 
 	for (num_syncs = 0; num_syncs < param->num_syncs; num_syncs++) {
-		ret = xe_sync_entry_parse(oa->xe, param->xef, &param->syncs[num_syncs],
+		ret = xe_sync_entry_parse(oa->xe, param->xef, NULL,
+					  &param->syncs[num_syncs],
 					  &param->syncs_user[num_syncs], 0);
 		if (ret)
 			goto err_syncs;
drivers/gpu/drm/xe/xe_sync.c +29 -16

100 lines not on this page · raw message

drivers/gpu/drm/xe/xe_sync.h +7 -1
index 256ffc1e54dc..f5bec2b1b4f6 100644
@@ -9,8 +9,12 @@
 #include "xe_sync_types.h"
 
 struct xe_device;
-struct xe_exec_queue;
 struct xe_file;
+struct xe_exec_queue;
+struct drm_syncobj;
+struct dma_fence;
+struct dma_fence_chain;
+struct drm_xe_sync;
 struct xe_sched_job;
 struct xe_vm;
 
@@ -19,6 +23,7 @@ struct xe_vm;
 #define SYNC_PARSE_FLAG_DISALLOW_USER_FENCE	BIT(2)
 
 int xe_sync_entry_parse(struct xe_device *xe, struct xe_file *xef,
+			struct xe_vm *vm,
 			struct xe_sync_entry *sync,
 			struct drm_xe_sync __user *sync_user,
 			unsigned int flags);
@@ -40,5 +45,6 @@ struct xe_user_fence *__xe_sync_ufence_get(struct xe_user_fence *ufence);
 struct xe_user_fence *xe_sync_ufence_get(struct xe_sync_entry *sync);
 void xe_sync_ufence_put(struct xe_user_fence *ufence);
 int xe_sync_ufence_get_status(struct xe_user_fence *ufence);
+void xe_sync_ufence_signal(struct xe_user_fence *ufence);
 
 #endif
drivers/gpu/drm/xe/xe_sync_types.h +23 -5
index 30ac3f51993b..dcd3165e66a7 100644
@@ -6,13 +6,31 @@
 #ifndef _XE_SYNC_TYPES_H_
 #define _XE_SYNC_TYPES_H_
 
+#include <linux/dma-fence-array.h>
+#include <linux/kref.h>
+#include <linux/spinlock.h>
 #include <linux/types.h>
 
-struct drm_syncobj;
-struct dma_fence;
-struct dma_fence_chain;
-struct drm_xe_sync;
-struct user_fence;
+struct xe_user_fence {
+	struct xe_device *xe;
+	struct kref refcount;
+	struct dma_fence_cb cb;
+	struct work_struct worker;
+	struct mm_struct *mm;
+	u64 __user *addr;
+	u64 value;
+	int signalled;
+
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	struct {
+		spinlock_t lock;
+		struct xe_eudebug *debugger;
+		u64 bind_ref_seqno;
+		u64 signalled_seqno;
+		struct work_struct worker;
+	} eudebug;
+#endif
+};
 
 struct xe_sync_entry {
 	struct drm_syncobj *syncobj;
drivers/gpu/drm/xe/xe_vm.c +5 -3
index 59518504448e..7787c442892a 100644
@@ -1986,7 +1986,7 @@ static void vm_destroy_work_func(struct work_struct *w)
 	struct xe_tile *tile;
 	u8 id;
 
-	xe_eudebug_vm_bind_end(vm, 0, -ENOENT);
+	xe_eudebug_vm_bind_end(vm, NULL, -ENOENT);
 
 	/* xe_vm_close_and_put was not called? */
 	xe_assert(xe, !vm->size);
@@ -3781,9 +3781,11 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
 		}
 	}
 
+	xe_eudebug_vm_bind_start(vm);
+
 	syncs_user = u64_to_user_ptr(args->syncs);
 	for (num_syncs = 0; num_syncs < args->num_syncs; num_syncs++) {
-		err = xe_sync_entry_parse(xe, xef, &syncs[num_syncs],
+		err = xe_sync_entry_parse(xe, xef, vm, &syncs[num_syncs],
 					  &syncs_user[num_syncs],
 					  (xe_vm_in_lr_mode(vm) ?
 					   SYNC_PARSE_FLAG_LR_MODE : 0) |
@@ -3867,7 +3869,7 @@ int xe_vm_bind_ioctl(struct drm_device *dev, void *data, struct drm_file *file)
 
 unwind_ops:
 	if (err && err != -ENODATA) {
-		xe_eudebug_vm_bind_end(vm, num_ufence > 0, err);
+		xe_eudebug_vm_bind_end(vm, NULL, err);
 		vm_bind_ioctl_ops_unwind(vm, ops, args->num_binds);
 	}
 
include/uapi/drm/xe_drm_eudebug.h +14 -1
index b2b2b90bb3a7..e55fa52c2973 100644
@@ -15,7 +15,8 @@ extern "C" {
  *
  * This ioctl is available in debug version 1.
  */
-#define DRM_XE_EUDEBUG_IOCTL_READ_EVENT _IO('j', 0x0)
+#define DRM_XE_EUDEBUG_IOCTL_READ_EVENT		_IO('j', 0x0)
+#define DRM_XE_EUDEBUG_IOCTL_ACK_EVENT		_IOW('j', 0x1, struct drm_xe_eudebug_ack_event)
 
 /**
  * struct drm_xe_eudebug_event - Base type of event delivered by xe_eudebug.
@@ -51,6 +52,7 @@ struct drm_xe_eudebug_event {
 #define DRM_XE_EUDEBUG_EVENT_EXEC_QUEUE		3
 #define DRM_XE_EUDEBUG_EVENT_VM_BIND		4
 #define DRM_XE_EUDEBUG_EVENT_VM_BIND_OP_DEBUG_DATA	5
+#define DRM_XE_EUDEBUG_EVENT_VM_BIND_UFENCE	6
 
 	__u16 flags;
 #define DRM_XE_EUDEBUG_EVENT_CREATE		(1 << 0)
@@ -152,6 +154,17 @@ struct drm_xe_eudebug_event_vm_bind_op_debug_data {
 	};
 };
 
+struct drm_xe_eudebug_event_vm_bind_ufence {
+	struct drm_xe_eudebug_event base;
+	__u64 vm_bind_ref_seqno; /* *_event_vm_bind.base.seqno */
+};
+
+struct drm_xe_eudebug_ack_event {
+	__u32 type;
+	__u32 flags; /* MBZ */
+	__u64 seqno;
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 1 line
2.43.0
#9 lore raw

PATCH 8/15 drm/xe/eudebug: vm open/pread/pwrite

In reply to Mika Kuoppala

Debugger needs access to the client's vm to read and write. For example inspecting ISA/ELF and setting up breakpoints.

Add ioctl to open target vm with debugger client and vm_handle and hook up pread/pwrite possibility.

Open will take timeout argument so that standard fsync can be used for explicit flushing between cpu/gpu for the target vm.

Implement this for bo backed storage. userptr will be done in following patch.

v2: - checkpatch (Maciej)
- 32bit fixes (Andrzej)
- bo_vmap (Mika)
- fix vm leak if can't allocate k_buffer (Mika)
- assert vm write held for vma (Matthew)

v3: - fw ref, ttm_bo_access
- timeout boundary check (Dominik)
- dont try to copy to user on zero bytes (Mika)

v4: - offset as unsigned long (Thomas)
- check XE_VMA_DESTROYED

---
 drivers/gpu/drm/xe/Makefile           |   2 +-
 drivers/gpu/drm/xe/regs/xe_gt_regs.h  |  24 ++
 drivers/gpu/drm/xe/xe_eudebug.c       |  39 ++-
 drivers/gpu/drm/xe/xe_eudebug.h       |   8 +
 drivers/gpu/drm/xe/xe_eudebug_types.h |   5 +
 drivers/gpu/drm/xe/xe_eudebug_vm.c    | 418 ++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h    |   8 +
 include/uapi/drm/xe_drm_eudebug.h     |  15 +
 8 files changed, 516 insertions(+), 3 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_vm.c
 create mode 100644 drivers/gpu/drm/xe/xe_eudebug_vm.h
drivers/gpu/drm/xe/Makefile +1 -1
index 86f60d1d07d8..20d5f7c035f1 100644
@@ -141,7 +141,7 @@ xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o
 xe-$(CONFIG_DRM_XE_GPUSVM) += xe_svm.o
 
 # debugging shaders with gdb (eudebug) support
-xe-$(CONFIG_DRM_XE_EUDEBUG) += xe_eudebug.o
+xe-$(CONFIG_DRM_XE_EUDEBUG) += xe_eudebug.o xe_eudebug_vm.o
 
 # graphics hardware monitoring (HWMON) support
 xe-$(CONFIG_HWMON) += xe_hwmon.o
drivers/gpu/drm/xe/regs/xe_gt_regs.h +24 -0
index f96b2e2b3064..eb88cd3b4189 100644
@@ -560,6 +560,30 @@
 #define   CCS_MODE_CSLICE(cslice, ccs) \
 	((ccs) << ((cslice) * CCS_MODE_CSLICE_WIDTH))
 
+#define RCU_ASYNC_FLUSH				XE_REG(0x149fc)
+#define   RCU_ASYNC_FLUSH_IN_PROGRESS	REG_BIT(31)
+#define   RCU_ASYNC_FLUSH_ENGINE_ID_SHIFT	28
+#define   RCU_ASYNC_FLUSH_ENGINE_ID_DECODE1 REG_BIT(26)
+#define   RCU_ASYNC_FLUSH_AMFS		REG_BIT(8)
+#define   RCU_ASYNC_FLUSH_PREFETCH	REG_BIT(7)
+#define   RCU_ASYNC_FLUSH_DATA_PORT	REG_BIT(6)
+#define   RCU_ASYNC_FLUSH_DATA_CACHE	REG_BIT(5)
+#define   RCU_ASYNC_FLUSH_HDC_PIPELINE	REG_BIT(4)
+#define   RCU_ASYNC_INVALIDATE_HDC_PIPELINE REG_BIT(3)
+#define   RCU_ASYNC_INVALIDATE_CONSTANT_CACHE REG_BIT(2)
+#define   RCU_ASYNC_INVALIDATE_TEXTURE_CACHE REG_BIT(1)
+#define   RCU_ASYNC_INVALIDATE_INSTRUCTION_CACHE REG_BIT(0)
+#define   RCU_ASYNC_FLUSH_AND_INVALIDATE_ALL ( \
+	RCU_ASYNC_FLUSH_AMFS | \
+	RCU_ASYNC_FLUSH_PREFETCH | \
+	RCU_ASYNC_FLUSH_DATA_PORT | \
+	RCU_ASYNC_FLUSH_DATA_CACHE | \
+	RCU_ASYNC_FLUSH_HDC_PIPELINE | \
+	RCU_ASYNC_INVALIDATE_HDC_PIPELINE | \
+	RCU_ASYNC_INVALIDATE_CONSTANT_CACHE | \
+	RCU_ASYNC_INVALIDATE_TEXTURE_CACHE | \
+	RCU_ASYNC_INVALIDATE_INSTRUCTION_CACHE)
+
 #define FORCEWAKE_ACK_GT			XE_REG(0x130044)
 
 /* Applicable for all FORCEWAKE_DOMAIN and FORCEWAKE_ACK_DOMAIN regs */
drivers/gpu/drm/xe/xe_eudebug.c +37 -2
index 23708d4ae923..75af5559ae7a 100644
@@ -16,6 +16,7 @@
 #include "xe_device.h"
 #include "xe_eudebug.h"
 #include "xe_eudebug_types.h"
+#include "xe_eudebug_vm.h"
 #include "xe_exec_queue.h"
 #include "xe_hw_engine.h"
 #include "xe_macros.h"
@@ -52,8 +53,7 @@ event_fifo_num_events_peek(const struct xe_eudebug * const d)
 	return kfifo_len(&d->events.fifo);
 }
 
-static bool
-xe_eudebug_detached(struct xe_eudebug *d)
+bool xe_eudebug_detached(struct xe_eudebug *d)
 {
 	bool connected;
 
@@ -668,6 +668,35 @@ static int xe_eudebug_remove_handle(struct xe_eudebug *d, int type, void *p,
 	return ret;
 }
 
+static void *find_resource__unlocked(struct xe_eudebug_resources *res,
+				     int type,
+				     u32 id)
+{
+
+	struct xe_eudebug_resource *r;
+	struct xe_eudebug_handle *h;
+
+	r = resource_from_type(res, type);
+	h = xa_load(&r->xa, id);
+
+	return h ? (void *)(uintptr_t)h->key : NULL;
+}
+
+struct xe_vm *xe_eudebug_vm_get(struct xe_eudebug *d, u32 id)
+{
+	struct xe_vm *vm;
+
+	mutex_lock(&d->res->lock);
+	vm = find_resource__unlocked(d->res, XE_EUDEBUG_RES_TYPE_VM, id);
+	if (vm)
+		xe_vm_get(vm);
+
+	mutex_unlock(&d->res->lock);
+
+	return vm;
+}
+
+
 static struct drm_xe_eudebug_event *
 xe_eudebug_create_event(struct xe_eudebug *d, u16 type, u64 seqno, u16 flags,
 			u32 len)
@@ -1799,6 +1828,10 @@ static long xe_eudebug_ioctl(struct file *file,
 		ret = xe_eudebug_ack_event_ioctl(d, cmd, arg);
 		eu_dbg(d, "ioctl cmd=EVENT_ACK ret=%ld\n", ret);
 		break;
+	case DRM_XE_EUDEBUG_IOCTL_VM_OPEN:
+		ret = xe_eudebug_vm_open_ioctl(d, arg);
+		eu_dbg(d, "ioctl cmd=VM_OPEN ret=%ld\n", ret);
+		break;
 	default:
 		ret = -EINVAL;
 	}
@@ -1863,6 +1896,8 @@ xe_eudebug_connect(struct xe_device *xe,
 	spin_lock_init(&d->acks.lock);
 	d->acks.tree = RB_ROOT;
 
+	mutex_init(&d->hw.lock);
+
 	d->res = xe_eudebug_resources_alloc();
 	if (XE_IOCTL_DBG(xe, IS_ERR(d->res))) {
 		err = PTR_ERR(d->res);
drivers/gpu/drm/xe/xe_eudebug.h +8 -0
index b2d49d7237ba..638fe310e1ff 100644
@@ -17,6 +17,7 @@ struct xe_vm;
 struct xe_vma;
 struct xe_exec_queue;
 struct xe_user_fence;
+struct xe_eudebug;
 
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
 
@@ -37,6 +38,10 @@ struct xe_user_fence;
 
 #define xe_eudebug_assert(d, ...) xe_assert((d)->xe, ##__VA_ARGS__)
 
+#define xe_eudebug_for_each_hw_engine(__hwe, __gt, __id) \
+	for_each_hw_engine(__hwe, __gt, __id)	       \
+		if (xe_hw_engine_has_eudebug(__hwe))
+
 int xe_eudebug_connect_ioctl(struct drm_device *dev,
 			     void *data,
 			     struct drm_file *file);
@@ -46,8 +51,11 @@ bool xe_eudebug_is_enabled(struct xe_device *xe);
 
 void xe_eudebug_file_close(struct xe_file *xef);
 
+bool xe_eudebug_detached(struct xe_eudebug *d);
+
 void xe_eudebug_vm_create(struct xe_file *xef, struct xe_vm *vm);
 void xe_eudebug_vm_destroy(struct xe_file *xef, struct xe_vm *vm);
+struct xe_vm *xe_eudebug_vm_get(struct xe_eudebug *d, u32 vm_id);
 
 void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q);
 void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q);
drivers/gpu/drm/xe/xe_eudebug_types.h +5 -0
index a294e2f4e7df..292e93c72a64 100644
@@ -139,6 +139,11 @@ struct xe_eudebug {
 
 		struct rb_root tree;
 	} acks;
+
+	struct {
+		/** @lock: guards access to hw state */
+		struct mutex lock;
+	} hw;
 };
 
 #endif /* _XE_EUDEBUG_TYPES_H_ */
drivers/gpu/drm/xe/xe_eudebug_vm.c new file +418 -0

418 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_vm.h new file +8 -0
new file mode 100644
index 000000000000..b3dc5618a5e6
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023-2025 Intel Corporation
+ */
+
+struct xe_eudebug;
+
+long xe_eudebug_vm_open_ioctl(struct xe_eudebug *d, unsigned long arg);
include/uapi/drm/xe_drm_eudebug.h +15 -0
index e55fa52c2973..cc45ebd47143 100644
@@ -17,6 +17,7 @@ extern "C" {
  */
 #define DRM_XE_EUDEBUG_IOCTL_READ_EVENT		_IO('j', 0x0)
 #define DRM_XE_EUDEBUG_IOCTL_ACK_EVENT		_IOW('j', 0x1, struct drm_xe_eudebug_ack_event)
+#define DRM_XE_EUDEBUG_IOCTL_VM_OPEN		_IOW('j', 0x2, struct drm_xe_eudebug_vm_open)
 
 /**
  * struct drm_xe_eudebug_event - Base type of event delivered by xe_eudebug.
@@ -165,6 +166,20 @@ struct drm_xe_eudebug_ack_event {
 	__u64 seqno;
 };
 
+struct drm_xe_eudebug_vm_open {
+	/** @extensions: Pointer to the first extension struct, if any */
+	__u64 extensions;
+
+	/** @vm_handle: id of vm */
+	__u64 vm_handle;
+
+	/** @flags: flags */
+	__u64 flags;
+
+	/** @timeout_ns: Timeout value in nanoseconds operations (fsync) */
+	__u64 timeout_ns;
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 1 line
2.43.0
#10 lore raw

PATCH 9/15 drm/xe/eudebug: userptr vm pread/pwrite

In reply to Mika Kuoppala

Implement debugger vm access for userptrs.

When bind is done, take ref to current task so that we know from which vm the address was bound. Then during debugger pread/pwrite we use this target task as parameter to access the debuggee vm with access_process_vm().

This is based on suggestions from Simona, Thomas and Joonas.

v2: need to add offset into vma (Dominik)

Cc Simona Vetter <[email protected]>
Cc Matthew Brost <[email protected]>
Cc Andrzej Hajda <[email protected]>
Cc Thomas Hellström <[email protected]>
Cc Dominik Grzegorzek <[email protected]>
Cc Christian König <[email protected]>
Cc Joonas Lahtinen <[email protected]>
---
 drivers/gpu/drm/xe/xe_eudebug_vm.c | 16 ++++++++++++++++
 drivers/gpu/drm/xe/xe_vm.c         |  4 ++++
 drivers/gpu/drm/xe/xe_vm.h         | 26 ++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_vm_types.h   |  6 ++++++
 4 files changed, 52 insertions(+)
drivers/gpu/drm/xe/xe_eudebug_vm.c +16 -0
index 6392482683f9..6799dbfe71f1 100644
@@ -51,6 +51,22 @@ static int xe_eudebug_vma_access(struct xe_vma *vma,
 		xe_bo_put(bo);
 
 		return ret;
+	} else if (xe_vma_is_userptr(vma)) {
+		struct xe_userptr *userptr = &to_userptr_vma(vma)->userptr;
+
+		if (XE_WARN_ON(!userptr->eudebug.task))
+			return -EINVAL;
+
+		/*
+		 * access_remote_vm() would fit as userptr notifier has
+		 * mm ref so we would not need to carry task ref at all.
+		 * But access_remote_vm is not exported. access_process_vm()
+		 * is exported so use it instead.
+		 */
+		return access_process_vm(userptr->eudebug.task,
+					 xe_vma_userptr(vma) + offset_in_vma,
+					 buf, bytes,
+					 write ? FOLL_WRITE : 0);
 	}
 
 	return -EINVAL;
drivers/gpu/drm/xe/xe_vm.c +4 -0
index 7787c442892a..ce854ebc0aee 100644
@@ -1264,6 +1264,8 @@ static struct xe_vma *xe_vma_create(struct xe_vm *vm,
 			}
 
 			userptr->notifier_seq = LONG_MAX;
+
+			xe_eudebug_track_userptr_task(userptr);
 		}
 
 		xe_vm_get(vm);
@@ -1288,6 +1290,8 @@ static void xe_vma_destroy_late(struct xe_vma *vma)
 		if (userptr->sg)
 			xe_hmm_userptr_free_sg(uvma);
 
+		xe_eudebug_untrack_userptr_task(userptr);
+
 		/*
 		 * Since userptr pages are not pinned, we can't remove
 		 * the notifier until we're sure the GPU is not accessing
drivers/gpu/drm/xe/xe_vm.h +26 -0
index 3475a118f666..8c28ba095397 100644
@@ -401,4 +401,30 @@ static inline void xe_vma_userptr_force_invalidate(struct xe_userptr_vma *uvma)
 {
 }
 #endif
+
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+static inline void xe_eudebug_track_userptr_task(struct xe_userptr *userptr)
+{
+	/*
+	 * We could use the mm which is on notifier. But
+	 * the access_remote_vm() is not exported. Thus
+	 * we get reference to task for access_process_vm()
+	 */
+	userptr->eudebug.task = get_task_struct(current);
+}
+
+static inline void xe_eudebug_untrack_userptr_task(struct xe_userptr *userptr)
+{
+	put_task_struct(userptr->eudebug.task);
+}
+#else
+static inline void xe_eudebug_track_userptr_task(struct xe_userptr *userptr)
+{
+}
+
+static inline void xe_eudebug_untrack_userptr_task(struct xe_userptr *userptr)
+{
+}
+#endif /* CONFIG_DRM_XE_EUDEBUG */
+
 #endif
drivers/gpu/drm/xe/xe_vm_types.h +6 -0
index e20f8341d5e9..cbf8d4f95afc 100644
@@ -76,6 +76,12 @@ struct xe_userptr {
 #if IS_ENABLED(CONFIG_DRM_XE_USERPTR_INVAL_INJECT)
 	u32 divisor;
 #endif
+
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+	struct {
+		struct task_struct *task;
+	} eudebug;
+#endif
 };
 
 struct xe_vma {
Signature · 1 line
2.43.0
#11 lore raw

PATCH 10/15 drm/xe/eudebug: hw enablement for eudebug

In reply to Mika Kuoppala

From: Dominik Grzegorzek <[email protected]>

In order to turn on debug capabilities, (i.e. breakpoints), TD_CTL and some other registers needs to be programmed. Implement eudebug mode enabling including eudebug related workarounds.

v2: Move workarounds to xe_wa_oob. Use reg_sr directly instead of xe_rtp as it suits better for dynamic manipulation of those register we do later in the series.
v3: get rid of undefining XE_MCR_REG (Mika)

---
 drivers/gpu/drm/xe/Makefile              |   2 +-
 drivers/gpu/drm/xe/regs/xe_engine_regs.h |   4 +
 drivers/gpu/drm/xe/regs/xe_gt_regs.h     |  19 +++
 drivers/gpu/drm/xe/xe_eudebug_hw.c       |  72 +++++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h       |  25 ++++
 drivers/gpu/drm/xe/xe_gt_debug.c         | 179 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_gt_debug.h         |  41 ++++++
 drivers/gpu/drm/xe/xe_reg_sr.c           |  21 ++-
 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_wa_oob.rules       |   4 +
 12 files changed, 365 insertions(+), 10 deletions(-)
 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_gt_debug.c
 create mode 100644 drivers/gpu/drm/xe/xe_gt_debug.h
drivers/gpu/drm/xe/Makefile +1 -1
index 20d5f7c035f1..b932a9e70284 100644
@@ -141,7 +141,7 @@ xe-$(CONFIG_HMM_MIRROR) += xe_hmm.o
 xe-$(CONFIG_DRM_XE_GPUSVM) += xe_svm.o
 
 # debugging shaders with gdb (eudebug) support
-xe-$(CONFIG_DRM_XE_EUDEBUG) += xe_eudebug.o xe_eudebug_vm.o
+xe-$(CONFIG_DRM_XE_EUDEBUG) += xe_eudebug.o xe_eudebug_vm.o xe_eudebug_hw.o xe_gt_debug.o
 
 # graphics hardware monitoring (HWMON) support
 xe-$(CONFIG_HWMON) += xe_hwmon.o
drivers/gpu/drm/xe/regs/xe_engine_regs.h +4 -0
index f4c3e1187a00..07b0bc45d228 100644
@@ -123,6 +123,10 @@
 
 #define INDIRECT_RING_STATE(base)		XE_REG((base) + 0x108)
 
+#define CS_DEBUG_MODE2(base)			XE_REG((base) + 0xd8, XE_REG_OPTION_MASKED)
+#define   INST_STATE_CACHE_INVALIDATE		REG_BIT(6)
+#define   GLOBAL_DEBUG_ENABLE			REG_BIT(5)
+
 #define RING_BBADDR(base)			XE_REG((base) + 0x140)
 #define RING_BBADDR_UDW(base)			XE_REG((base) + 0x168)
 
drivers/gpu/drm/xe/regs/xe_gt_regs.h +19 -0
index eb88cd3b4189..ee09b11bd078 100644
@@ -474,10 +474,20 @@
 #define   DG2_DISABLE_ROUND_ENABLE_ALLOW_FOR_SSLA	REG_BIT(15)
 #define   CLEAR_OPTIMIZATION_DISABLE			REG_BIT(6)
 
+#define TD_CTL					XE_REG_MCR(0xe400)
+#define   TD_CTL_FEH_AND_FEE_ENABLE		REG_BIT(7) /* forced halt and exception */
+#define   TD_CTL_FORCE_EXTERNAL_HALT		REG_BIT(6)
+#define   TD_CTL_FORCE_THREAD_BREAKPOINT_ENABLE	REG_BIT(4)
+#define   TD_CTL_FORCE_EXCEPTION		REG_BIT(3)
+#define   TD_CTL_BREAKPOINT_ENABLE		REG_BIT(2)
+#define   TD_CTL_GLOBAL_DEBUG_ENABLE		REG_BIT(0) /* XeHP */
+
 #define CACHE_MODE_SS				XE_REG_MCR(0xe420, XE_REG_OPTION_MASKED)
 #define   DISABLE_ECC				REG_BIT(5)
 #define   ENABLE_PREFETCH_INTO_IC		REG_BIT(3)
 
+#define EU_ATT(reg, row)			XE_REG_MCR((reg ? 0xe478 : 0xe470) + (row) * 4)
+
 #define ROW_CHICKEN4				XE_REG_MCR(0xe48c, XE_REG_OPTION_MASKED)
 #define   DISABLE_GRF_CLEAR			REG_BIT(13)
 #define   XEHP_DIS_BBL_SYSPIPE			REG_BIT(11)
@@ -487,6 +497,8 @@
 #define   THREAD_EX_ARB_MODE			REG_GENMASK(3, 2)
 #define   THREAD_EX_ARB_MODE_RR_AFTER_DEP	REG_FIELD_PREP(THREAD_EX_ARB_MODE, 0x2)
 
+#define EU_ATT_CLR(reg, row)			XE_REG_MCR((reg ? 0xe698 : 0xe490) + (row) * 4)
+
 #define ROW_CHICKEN3				XE_REG_MCR(0xe49c, XE_REG_OPTION_MASKED)
 #define   XE2_EUPEND_CHK_FLUSH_DIS		REG_BIT(14)
 #define   DIS_FIX_EOT1_FLUSH			REG_BIT(9)
@@ -501,11 +513,13 @@
 #define   MDQ_ARBITRATION_MODE			REG_BIT(12)
 #define   STALL_DOP_GATING_DISABLE		REG_BIT(5)
 #define   EARLY_EOT_DIS				REG_BIT(1)
+#define   STALL_DOP_GATING_DISABLE		REG_BIT(5)
 
 #define ROW_CHICKEN2				XE_REG_MCR(0xe4f4, XE_REG_OPTION_MASKED)
 #define   DISABLE_READ_SUPPRESSION		REG_BIT(15)
 #define   DISABLE_EARLY_READ			REG_BIT(14)
 #define   ENABLE_LARGE_GRF_MODE			REG_BIT(12)
+#define   XEHPC_DISABLE_BTB			REG_BIT(11)
 #define   PUSH_CONST_DEREF_HOLD_DIS		REG_BIT(8)
 #define   DISABLE_TDL_SVHS_GATING		REG_BIT(1)
 #define   DISABLE_DOP_GATING			REG_BIT(0)
@@ -560,6 +574,11 @@
 #define   CCS_MODE_CSLICE(cslice, ccs) \
 	((ccs) << ((cslice) * CCS_MODE_CSLICE_WIDTH))
 
+#define RCU_DEBUG_1				XE_REG(0x14a00)
+#define   RCU_DEBUG_1_ENGINE_STATUS		REG_GENMASK(2, 0)
+#define   RCU_DEBUG_1_RUNALONE_ACTIVE		REG_BIT(2)
+#define   RCU_DEBUG_1_CONTEXT_ACTIVE		REG_BIT(0)
+
 #define RCU_ASYNC_FLUSH				XE_REG(0x149fc)
 #define   RCU_ASYNC_FLUSH_IN_PROGRESS	REG_BIT(31)
 #define   RCU_ASYNC_FLUSH_ENGINE_ID_SHIFT	28
drivers/gpu/drm/xe/xe_eudebug_hw.c new file +72 -0

72 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_hw.h new file +25 -0
new file mode 100644
index 000000000000..7362ed9bde68
@@ -0,0 +1,25 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023-2025 Intel Corporation
+ */
+
+#include <linux/types.h>
+
+#ifndef _XE_EUDEBUG_HW_H_
+#define _XE_EUDEBUG_HW_H_
+
+#include <linux/types.h>
+
+struct xe_eudebug;
+struct xe_hw_engine;
+struct xe_gt;
+
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+
+void xe_eudebug_init_hw_engine(struct xe_hw_engine *hwe, bool enable);
+
+#else /* CONFIG_DRM_XE_EUDEBUG */
+
+#endif /* CONFIG_DRM_XE_EUDEBUG */
+
+#endif /* _XE_EUDEBUG_HW_H_ */
drivers/gpu/drm/xe/xe_gt_debug.c new file +179 -0

179 lines not on this page · raw message

drivers/gpu/drm/xe/xe_gt_debug.h new file +41 -0

41 lines not on this page · raw message

drivers/gpu/drm/xe/xe_reg_sr.c +15 -6
index fc8447a838c4..8f525d6c6765 100644
@@ -73,22 +73,31 @@ static void reg_sr_inc_error(struct xe_reg_sr *sr)
 
 int xe_reg_sr_add(struct xe_reg_sr *sr,
 		  const struct xe_reg_sr_entry *e,
-		  struct xe_gt *gt)
+		  struct xe_gt *gt,
+		  bool overwrite)
 {
 	unsigned long idx = e->reg.addr;
 	struct xe_reg_sr_entry *pentry = xa_load(&sr->xa, idx);
 	int ret;
 
 	if (pentry) {
-		if (!compatible_entries(pentry, e)) {
+		if (overwrite && e->set_bits) {
+			pentry->clr_bits |= e->clr_bits;
+			pentry->set_bits |= e->set_bits;
+			pentry->read_mask |= e->read_mask;
+		} else if (overwrite && !e->set_bits) {
+			pentry->clr_bits |= e->clr_bits;
+			pentry->set_bits &= ~e->clr_bits;
+			pentry->read_mask |= e->read_mask;
+		} else if (!compatible_entries(pentry, e)) {
 			ret = -EINVAL;
 			goto fail;
+		} else {
+			pentry->clr_bits |= e->clr_bits;
+			pentry->set_bits |= e->set_bits;
+			pentry->read_mask |= e->read_mask;
 		}
 
-		pentry->clr_bits |= e->clr_bits;
-		pentry->set_bits |= e->set_bits;
-		pentry->read_mask |= e->read_mask;
-
 		return 0;
 	}
 
drivers/gpu/drm/xe/xe_reg_sr.h +3 -1
index 51fbba423e27..d67fafdcd847 100644
@@ -6,6 +6,8 @@
 #ifndef _XE_REG_SR_
 #define _XE_REG_SR_
 
+#include <linux/types.h>
+
 /*
  * Reg save/restore bookkeeping
  */
@@ -21,7 +23,7 @@ int xe_reg_sr_init(struct xe_reg_sr *sr, const char *name, struct xe_device *xe)
 void xe_reg_sr_dump(struct xe_reg_sr *sr, struct drm_printer *p);
 
 int xe_reg_sr_add(struct xe_reg_sr *sr, const struct xe_reg_sr_entry *e,
-		  struct xe_gt *gt);
+		  struct xe_gt *gt, bool overwrite);
 void xe_reg_sr_apply_mmio(struct xe_reg_sr *sr, struct xe_gt *gt);
 void xe_reg_sr_apply_whitelist(struct xe_hw_engine *hwe);
 
drivers/gpu/drm/xe/xe_reg_whitelist.c +1 -1
index 23f6c81d9994..166ca3d183db 100644
@@ -118,7 +118,7 @@ static void whitelist_apply_to_hwe(struct xe_hw_engine *hwe)
 		}
 
 		xe_reg_whitelist_print_entry(&p, 0, reg, entry);
-		xe_reg_sr_add(&hwe->reg_sr, &hwe_entry, hwe->gt);
+		xe_reg_sr_add(&hwe->reg_sr, &hwe_entry, hwe->gt, false);
 
 		slot++;
 	}
drivers/gpu/drm/xe/xe_rtp.c +1 -1
index 95571b87aa73..a78ce4d206bb 100644
@@ -180,7 +180,7 @@ static void rtp_add_sr_entry(const struct xe_rtp_action *action,
 	};
 
 	sr_entry.reg.addr += mmio_base;
-	xe_reg_sr_add(sr, &sr_entry, gt);
+	xe_reg_sr_add(sr, &sr_entry, gt, false);
 }
 
 static bool rtp_process_one_sr(const struct xe_rtp_entry_sr *entry,
drivers/gpu/drm/xe/xe_wa_oob.rules +4 -0
index 8d0aabab6777..a34fb4558996 100644
@@ -75,3 +75,7 @@ no_media_l3	MEDIA_VERSION(3000)
 
 15015404425_disable	PLATFORM(PANTHERLAKE), MEDIA_STEP(B0, FOREVER)
 16026007364    MEDIA_VERSION(3000)
+
+#eudebug
+18022722726	GRAPHICS_VERSION_RANGE(1250, 1274)
+14015474168	PLATFORM(PVC)
Signature · 1 line
2.43.0
#12 lore raw

PATCH 11/15 drm/xe/eudebug: Introduce EU control interface

In reply to Mika Kuoppala

From: Dominik Grzegorzek <[email protected]>

Introduce EU control functionality, which allows EU debugger to interrupt, resume, and inform about the current state of EU threads during execution. Provide an abstraction layer, so in the future guc will only need to provide appropriate callbacks.

Based on implementation created by authors and other folks within i915 driver.

v2: - checkpatch (Maciej)
- lrc index off by one fix (Mika)
- checkpatch (Tilak)
- 32bit fixes (Andrzej, Mika)
- find_resource_get for client (Mika)

v3: - fw ref (Mika)
- attention register naming

v4: - fused off handling (Dominik)
- squash xe3 parts and ptl attentions (Mika)

---
 drivers/gpu/drm/xe/regs/xe_engine_regs.h |   3 +
 drivers/gpu/drm/xe/xe_eudebug.c          |  47 ++
 drivers/gpu/drm/xe/xe_eudebug.h          |   2 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c       | 658 +++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h       |   7 +
 drivers/gpu/drm/xe/xe_eudebug_types.h    |  25 +
 include/uapi/drm/xe_drm_eudebug.h        |  18 +
 7 files changed, 760 insertions(+)
drivers/gpu/drm/xe/regs/xe_engine_regs.h +3 -0
index 07b0bc45d228..35d40cee4dd4 100644
@@ -145,6 +145,9 @@
 #define   INHIBIT_SWITCH_UNTIL_PREEMPTED	REG_BIT(31)
 #define   IDLE_DELAY				REG_GENMASK(20, 0)
 
+#define RING_CURRENT_LRCA(base)			XE_REG((base) + 0x240)
+#define   CURRENT_LRCA_VALID			REG_BIT(0)
+
 #define RING_CONTEXT_CONTROL(base)		XE_REG((base) + 0x244, XE_REG_OPTION_MASKED)
 #define	  CTX_CTRL_PXP_ENABLE			REG_BIT(10)
 #define	  CTX_CTRL_OAC_CONTEXT_ENABLE		REG_BIT(8)
drivers/gpu/drm/xe/xe_eudebug.c +47 -0

86 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug.h +2 -0
index 638fe310e1ff..63a647c242cc 100644
@@ -59,6 +59,8 @@ struct xe_vm *xe_eudebug_vm_get(struct xe_eudebug *d, u32 vm_id);
 
 void xe_eudebug_exec_queue_create(struct xe_file *xef, struct xe_exec_queue *q);
 void xe_eudebug_exec_queue_destroy(struct xe_file *xef, struct xe_exec_queue *q);
+struct xe_exec_queue *xe_eudebug_exec_queue_get(struct xe_eudebug *d, u32 id);
+struct xe_lrc *xe_eudebug_find_lrc(struct xe_eudebug *d, u32 id);
 
 void xe_eudebug_vm_init(struct xe_vm *vm);
 void xe_eudebug_vm_bind_start(struct xe_vm *vm);
drivers/gpu/drm/xe/xe_eudebug_hw.c +658 -0

661 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_hw.h +7 -0
index 7362ed9bde68..8f59ec574e4e 100644
@@ -16,10 +16,17 @@ struct xe_gt;
 
 #if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
 
+void xe_eudebug_hw_init(struct xe_eudebug *d);
 void xe_eudebug_init_hw_engine(struct xe_hw_engine *hwe, bool enable);
 
+long xe_eudebug_eu_control(struct xe_eudebug *d, const u64 arg);
+
+struct xe_exec_queue *xe_gt_runalone_active_queue_get(struct xe_gt *gt, int *lrc_idx);
+
 #else /* CONFIG_DRM_XE_EUDEBUG */
 
+static inline void xe_eudebug_init_hw_engine(struct xe_hw_engine *hwe, bool enable) { }
+
 #endif /* CONFIG_DRM_XE_EUDEBUG */
 
 #endif /* _XE_EUDEBUG_HW_H_ */
drivers/gpu/drm/xe/xe_eudebug_types.h +25 -0
index 292e93c72a64..205777a851a3 100644
@@ -17,7 +17,11 @@
 
 struct xe_device;
 struct task_struct;
+struct xe_eudebug;
+struct xe_hw_engine;
 struct workqueue_struct;
+struct xe_exec_queue;
+struct xe_lrc;
 
 /**
  * enum xe_eudebug_state - eudebug capability state
@@ -76,6 +80,24 @@ struct xe_eudebug_resources {
 	struct xe_eudebug_resource rt[XE_EUDEBUG_RES_TYPE_COUNT];
 };
 
+/**
+ * struct xe_eudebug_eu_control_ops - interface for eu thread
+ * state control backend
+ */
+struct xe_eudebug_eu_control_ops {
+	/** @interrupt_all: interrupts workload active on given hwe */
+	int (*interrupt_all)(struct xe_eudebug *e, struct xe_exec_queue *q,
+			     struct xe_lrc *lrc);
+
+	/** @resume: resumes threads reflected by bitmask active on given hwe */
+	int (*resume)(struct xe_eudebug *e, struct xe_exec_queue *q,
+		      struct xe_lrc *lrc, u8 *bitmap, unsigned int bitmap_size);
+
+	/** @stopped: returns bitmap reflecting threads which signal attention */
+	int (*stopped)(struct xe_eudebug *e, struct xe_exec_queue *q,
+		       struct xe_lrc *lrc, u8 *bitmap, unsigned int bitmap_size);
+};
+
 /**
  * struct xe_eudebug - Top level struct for eudebug: the connection
  */
@@ -144,6 +166,9 @@ struct xe_eudebug {
 		/** @lock: guards access to hw state */
 		struct mutex lock;
 	} hw;
+
+	/** @ops operations for eu_control */
+	struct xe_eudebug_eu_control_ops *ops;
 };
 
 #endif /* _XE_EUDEBUG_TYPES_H_ */
include/uapi/drm/xe_drm_eudebug.h +18 -0
index cc45ebd47143..24bf3887d556 100644
@@ -18,6 +18,7 @@ extern "C" {
 #define DRM_XE_EUDEBUG_IOCTL_READ_EVENT		_IO('j', 0x0)
 #define DRM_XE_EUDEBUG_IOCTL_ACK_EVENT		_IOW('j', 0x1, struct drm_xe_eudebug_ack_event)
 #define DRM_XE_EUDEBUG_IOCTL_VM_OPEN		_IOW('j', 0x2, struct drm_xe_eudebug_vm_open)
+#define DRM_XE_EUDEBUG_IOCTL_EU_CONTROL		_IOWR('j', 0x3, struct drm_xe_eudebug_eu_control)
 
 /**
  * struct drm_xe_eudebug_event - Base type of event delivered by xe_eudebug.
@@ -180,6 +181,23 @@ struct drm_xe_eudebug_vm_open {
 	__u64 timeout_ns;
 };
 
+struct drm_xe_eudebug_eu_control {
+
+#define DRM_XE_EUDEBUG_EU_CONTROL_CMD_INTERRUPT_ALL	0
+#define DRM_XE_EUDEBUG_EU_CONTROL_CMD_STOPPED		1
+#define DRM_XE_EUDEBUG_EU_CONTROL_CMD_RESUME		2
+	__u32 cmd;
+	__u32 flags;
+
+	__u64 seqno;
+
+	__u64 exec_queue_handle;
+	__u64 lrc_handle;
+	__u32 reserved;
+	__u32 bitmask_size;
+	__u64 bitmask_ptr;
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 1 line
2.43.0
#13 lore raw

PATCH 12/15 drm/xe/eudebug: Introduce per device attention scan worker

In reply to Mika Kuoppala

From: Dominik Grzegorzek <[email protected]>

Scan for EU debugging attention bits periodically to detect if some EU thread has entered the system routine (SIP) due to EU thread exception.

Make the scanning interval 10 times slower when there is no debugger connection open. Send attention event whenever we see attention with debugger presence. If there is no debugger connection active - reset.

Based on work by authors and other folks who were part of attentions in i915.

v2: - use xa_array for files
- null ptr deref fix for non-debugged context (Dominik)
- checkpatch (Tilak)
- use discovery_lock during list traversal

v3: - engine status per gen improvements, force_wake ref
- __counted_by (Mika)

v4: - attention register naming (Dominik)

---
 drivers/gpu/drm/xe/xe_device_types.h  |   3 +
 drivers/gpu/drm/xe/xe_eudebug.c       | 171 ++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.c    |   6 +-
 drivers/gpu/drm/xe/xe_eudebug_types.h |   3 +-
 include/uapi/drm/xe_drm_eudebug.h     |  12 ++
 5 files changed, 190 insertions(+), 5 deletions(-)
drivers/gpu/drm/xe/xe_device_types.h +3 -0
index f6fc455fd286..cfb805686259 100644
@@ -594,6 +594,9 @@ struct xe_device {
 
 		/** @wq: used for client discovery */
 		struct workqueue_struct *wq;
+
+		/** @attention_poll: attention poll work */
+		struct delayed_work attention_dwork;
 	} eudebug;
 #endif
 
drivers/gpu/drm/xe/xe_eudebug.c +171 -0

214 lines not on this page · raw message

drivers/gpu/drm/xe/xe_eudebug_hw.c +3 -3
index bc8cd6ee0e06..f4554a952fc5 100644
@@ -301,7 +301,7 @@ static struct xe_exec_queue *active_hwe_to_exec_queue(struct xe_hw_engine *hwe,
 	return found;
 }
 
-static struct xe_exec_queue *runalone_active_queue_get(struct xe_gt *gt, int *lrc_idx)
+struct xe_exec_queue *xe_gt_runalone_active_queue_get(struct xe_gt *gt, int *lrc_idx)
 {
 	struct xe_hw_engine *active;
 
@@ -612,7 +612,7 @@ static int xe_eu_control_resume(struct xe_eudebug *d,
 	struct xe_exec_queue *active;
 	int lrc_idx;
 
-	active = runalone_active_queue_get(q->gt, &lrc_idx);
+	active = xe_gt_runalone_active_queue_get(q->gt, &lrc_idx);
 	if (IS_ERR(active))
 		return PTR_ERR(active);
 
@@ -654,7 +654,7 @@ static int xe_eu_control_stopped(struct xe_eudebug *d,
 	if (XE_WARN_ON(!q) || XE_WARN_ON(!q->gt))
 		return -EINVAL;
 
-	active = runalone_active_queue_get(q->gt, &lrc_idx);
+	active = xe_gt_runalone_active_queue_get(q->gt, &lrc_idx);
 	if (IS_ERR(active))
 		return PTR_ERR(active);
 
drivers/gpu/drm/xe/xe_eudebug_types.h +1 -2
index 205777a851a3..85fc321f8b0e 100644
@@ -37,7 +37,7 @@ enum xe_eudebug_state {
 };
 
 #define CONFIG_DRM_XE_DEBUGGER_EVENT_QUEUE_SIZE 64
-#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_VM_BIND_UFENCE
+#define XE_EUDEBUG_MAX_EVENT_TYPE DRM_XE_EUDEBUG_EVENT_EU_ATTENTION
 
 /**
  * struct xe_eudebug_handle - eudebug resource handle
@@ -172,4 +172,3 @@ struct xe_eudebug {
 };
 
 #endif /* _XE_EUDEBUG_TYPES_H_ */
-
include/uapi/drm/xe_drm_eudebug.h +12 -0
index 24bf3887d556..1c797a8b4d32 100644
@@ -55,12 +55,14 @@ struct drm_xe_eudebug_event {
 #define DRM_XE_EUDEBUG_EVENT_VM_BIND		4
 #define DRM_XE_EUDEBUG_EVENT_VM_BIND_OP_DEBUG_DATA	5
 #define DRM_XE_EUDEBUG_EVENT_VM_BIND_UFENCE	6
+#define DRM_XE_EUDEBUG_EVENT_EU_ATTENTION	7
 
 	__u16 flags;
 #define DRM_XE_EUDEBUG_EVENT_CREATE		(1 << 0)
 #define DRM_XE_EUDEBUG_EVENT_DESTROY		(1 << 1)
 #define DRM_XE_EUDEBUG_EVENT_STATE_CHANGE	(1 << 2)
 #define DRM_XE_EUDEBUG_EVENT_NEED_ACK		(1 << 3)
+
 	__u64 seqno;
 	__u64 reserved;
 };
@@ -198,6 +200,16 @@ struct drm_xe_eudebug_eu_control {
 	__u64 bitmask_ptr;
 };
 
+struct drm_xe_eudebug_event_eu_attention {
+	struct drm_xe_eudebug_event base;
+
+	__u64 exec_queue_handle;
+	__u64 lrc_handle;
+	__u32 flags;
+	__u32 bitmask_size;
+	__u8 bitmask[];
+};
+
 #if defined(__cplusplus)
 }
 #endif
Signature · 1 line
2.43.0
#14 lore raw

PATCH 13/15 drm/xe/eudebug_test: Introduce xe_eudebug wa kunit test

In reply to Mika Kuoppala

From: Christoph Manszewski <[email protected]>

Introduce kunit test for eudebug. For now it checks the dynamic application of WAs.

v2: adapt to removal of call_for_each_device (Mika)
v3: s/FW_RENDER/FORCEWAKE_ALL (Mika)

---
 drivers/gpu/drm/xe/tests/xe_eudebug.c       | 183 ++++++++++++++++++++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c |   5 +
 drivers/gpu/drm/xe/xe_eudebug.c             |   4 +
 3 files changed, 192 insertions(+)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.c
drivers/gpu/drm/xe/tests/xe_eudebug.c new file +183 -0
new file mode 100644
index 000000000000..f839fb292b9b
@@ -0,0 +1,183 @@
+// SPDX-License-Identifier: GPL-2.0 AND MIT
+/*
+ * Copyright © 2024 Intel Corporation
+ */
+
+#include <kunit/visibility.h>
+
+#include "regs/xe_gt_regs.h"
+#include "regs/xe_engine_regs.h"
+
+#include "xe_force_wake.h"
+#include "xe_gt_mcr.h"
+#include "xe_mmio.h"
+
+#include "tests/xe_kunit_helpers.h"
+#include "tests/xe_pci_test.h"
+#include "tests/xe_test.h"
+
+#undef XE_REG_MCR
+#define XE_REG_MCR(r_, ...)	((const struct xe_reg_mcr){					\
+				 .__reg = XE_REG_INITIALIZER(r_,  ##__VA_ARGS__, .mcr = 1)	\
+				 })
+
+static const char *reg_to_str(struct xe_reg reg)
+{
+	if (reg.raw == TD_CTL.__reg.raw)
+		return "TD_CTL";
+	else if (reg.raw == CS_DEBUG_MODE2(RENDER_RING_BASE).raw)
+		return "CS_DEBUG_MODE2";
+	else if (reg.raw == ROW_CHICKEN.__reg.raw)
+		return "ROW_CHICKEN";
+	else if (reg.raw == ROW_CHICKEN2.__reg.raw)
+		return "ROW_CHICKEN2";
+	else if (reg.raw == ROW_CHICKEN3.__reg.raw)
+		return "ROW_CHICKEN3";
+	else
+		return "UNKNOWN REG";
+}
+
+static u32 get_reg_mask(struct xe_device *xe, struct xe_reg reg)
+{
+	struct kunit *test = kunit_get_current_test();
+	u32 val = 0;
+
+	if (reg.raw == TD_CTL.__reg.raw) {
+		val = TD_CTL_BREAKPOINT_ENABLE |
+		      TD_CTL_FORCE_THREAD_BREAKPOINT_ENABLE |
+		      TD_CTL_FEH_AND_FEE_ENABLE;
+
+		if (GRAPHICS_VERx100(xe) >= 1250)
+			val |= TD_CTL_GLOBAL_DEBUG_ENABLE;
+
+	} else if (reg.raw == CS_DEBUG_MODE2(RENDER_RING_BASE).raw) {
+		val = GLOBAL_DEBUG_ENABLE;
+	} else if (reg.raw == ROW_CHICKEN.__reg.raw) {
+		val = STALL_DOP_GATING_DISABLE;
+	} else if (reg.raw == ROW_CHICKEN2.__reg.raw) {
+		val = XEHPC_DISABLE_BTB;
+	} else if (reg.raw == ROW_CHICKEN3.__reg.raw) {
+		val = XE2_EUPEND_CHK_FLUSH_DIS;
+	} else {
+		kunit_warn(test, "Invalid register selection: %u\n", reg.raw);
+	}
+
+	return val;
+}
+
+static u32 get_reg_expected(struct xe_device *xe, struct xe_reg reg, bool enable_eudebug)
+{
+	u32 reg_mask = get_reg_mask(xe, reg);
+	u32 reg_bits = 0;
+
+	if (enable_eudebug || reg.raw == ROW_CHICKEN3.__reg.raw)
+		reg_bits = reg_mask;
+	else
+		reg_bits = 0;
+
+	return reg_bits;
+}
+
+static void check_reg(struct xe_gt *gt, bool enable_eudebug, struct xe_reg reg)
+{
+	struct kunit *test = kunit_get_current_test();
+	struct xe_device *xe = gt_to_xe(gt);
+	u32 reg_bits_expected = get_reg_expected(xe, reg, enable_eudebug);
+	u32 reg_mask = get_reg_mask(xe, reg);
+	u32 reg_bits = 0;
+
+	if (reg.mcr)
+		reg_bits = xe_gt_mcr_unicast_read_any(gt, (struct xe_reg_mcr){.__reg = reg});
+	else
+		reg_bits = xe_mmio_read32(&gt->mmio, reg);
+
+	reg_bits &= reg_mask;
+
+	kunit_printk(KERN_DEBUG, test, "%s bits: expected == 0x%x; actual == 0x%x\n",
+		     reg_to_str(reg), reg_bits_expected, reg_bits);
+	KUNIT_EXPECT_EQ_MSG(test, reg_bits_expected, reg_bits,
+			    "Invalid bits set for %s\n", reg_to_str(reg));
+}
+
+static void __check_regs(struct xe_gt *gt, bool enable_eudebug)
+{
+	struct xe_device *xe = gt_to_xe(gt);
+
+	if (GRAPHICS_VERx100(xe) >= 1200)
+		check_reg(gt, enable_eudebug, TD_CTL.__reg);
+
+	if (GRAPHICS_VERx100(xe) >= 1250 && GRAPHICS_VERx100(xe) <= 1274)
+		check_reg(gt, enable_eudebug, ROW_CHICKEN.__reg);
+
+	if (xe->info.platform == XE_PVC)
+		check_reg(gt, enable_eudebug, ROW_CHICKEN2.__reg);
+
+	if (GRAPHICS_VERx100(xe) >= 2000 && GRAPHICS_VERx100(xe) <= 2004)
+		check_reg(gt, enable_eudebug, ROW_CHICKEN3.__reg);
+}
+
+static void check_regs(struct xe_device *xe, bool enable_eudebug)
+{
+	struct kunit *test = kunit_get_current_test();
+	struct xe_gt *gt;
+	unsigned int fw_ref;
+	u8 id;
+
+	kunit_printk(KERN_DEBUG, test, "Check regs for eudebug %s\n",
+		     enable_eudebug ? "enabled" : "disabled");
+
+	xe_pm_runtime_get(xe);
+	for_each_gt(gt, xe, id) {
+		if (xe_gt_is_media_type(gt))
+			continue;
+
+		/* XXX: Figure out per platform proper domain */
+		fw_ref = xe_force_wake_get(gt_to_fw(gt), XE_FORCEWAKE_ALL);
+		KUNIT_ASSERT_TRUE_MSG(test, fw_ref, "Forcewake failed.\n");
+
+		__check_regs(gt, enable_eudebug);
+
+		xe_force_wake_put(gt_to_fw(gt), fw_ref);
+	}
+	xe_pm_runtime_put(xe);
+}
+
+static int toggle_reg_value(struct xe_device *xe)
+{
+	struct kunit *test = kunit_get_current_test();
+	bool enable_eudebug = xe_eudebug_is_enabled(xe);
+
+	kunit_printk(KERN_DEBUG, test, "Test eudebug WAs for graphics version: %u\n",
+		     GRAPHICS_VERx100(xe));
+
+	check_regs(xe, enable_eudebug);
+
+	xe_eudebug_enable(xe, !enable_eudebug);
+	check_regs(xe, !enable_eudebug);
+
+	xe_eudebug_enable(xe, enable_eudebug);
+	check_regs(xe, enable_eudebug);
+
+	return 0;
+}
+
+static void xe_eudebug_toggle_reg_kunit(struct kunit *test)
+{
+	struct xe_device *xe = test->priv;
+
+	toggle_reg_value(xe);
+}
+
+static struct kunit_case xe_eudebug_tests[] = {
+	KUNIT_CASE_PARAM(xe_eudebug_toggle_reg_kunit,
+			 xe_pci_live_device_gen_param),
+	{}
+};
+
+VISIBLE_IF_KUNIT
+struct kunit_suite xe_eudebug_test_suite = {
+	.name = "xe_eudebug",
+	.test_cases = xe_eudebug_tests,
+	.init = xe_kunit_helper_xe_device_live_test_init,
+};
+EXPORT_SYMBOL_IF_KUNIT(xe_eudebug_test_suite);
drivers/gpu/drm/xe/tests/xe_live_test_mod.c +5 -0
index 81277c77016d..663ef0e9d13e 100644
@@ -17,6 +17,11 @@ kunit_test_suite(xe_dma_buf_test_suite);
 kunit_test_suite(xe_migrate_test_suite);
 kunit_test_suite(xe_mocs_test_suite);
 
+#if IS_ENABLED(CONFIG_DRM_XE_EUDEBUG)
+extern struct kunit_suite xe_eudebug_test_suite;
+kunit_test_suite(xe_eudebug_test_suite);
+#endif
+
 MODULE_AUTHOR("Intel Corporation");
 MODULE_LICENSE("GPL");
 MODULE_DESCRIPTION("xe live kunit tests");
drivers/gpu/drm/xe/xe_eudebug.c +4 -0
index 5c85c8412754..2426bb92792e 100644
@@ -2270,3 +2270,7 @@ int xe_eudebug_connect_ioctl(struct drm_device *dev,
 
 	return xe_eudebug_connect(xe, file, param);
 }
+
+#if IS_ENABLED(CONFIG_DRM_XE_KUNIT_TEST)
+#include "tests/xe_eudebug.c"
+#endif
Signature · 1 line
2.43.0
#15 lore raw

PATCH 14/15 drm/xe: Implement SR-IOV and eudebug exclusivity

In reply to Mika Kuoppala

From: Christoph Manszewski <[email protected]>

EU debug functionality relies on access to specific mmio registers. Since VFs don't have access to those registers and in order to avoid interference with VFs, make SR-IOV and eudebug functionality exclusive. I.e. don't allow to enable eudebug in VF mode and don't allow to enable eudebug when any VFs are provisioned. Likewise, don't allow to provision VFs when eudebug is enabled.

---
 drivers/gpu/drm/xe/tests/xe_eudebug.c |  6 +++++
 drivers/gpu/drm/xe/xe_eudebug.c       | 33 +++++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h       |  6 +++++
 drivers/gpu/drm/xe/xe_exec_queue.c    |  3 +++
 drivers/gpu/drm/xe/xe_gt.c            |  1 +
 drivers/gpu/drm/xe/xe_pci_sriov.c     | 10 ++++++++
 6 files changed, 59 insertions(+)
drivers/gpu/drm/xe/tests/xe_eudebug.c +6 -0
index f839fb292b9b..c1e5eb091fc4 100644
@@ -147,6 +147,12 @@ static int toggle_reg_value(struct xe_device *xe)
 	struct kunit *test = kunit_get_current_test();
 	bool enable_eudebug = xe_eudebug_is_enabled(xe);
 
+	if (IS_SRIOV_VF(xe))
+		kunit_skip(test, "eudebug not available in SR-IOV VF mode\n");
+
+	if (xe->eudebug.state == XE_EUDEBUG_NOT_SUPPORTED)
+		kunit_skip(test, "eudebug not supported\n");
+
 	kunit_printk(KERN_DEBUG, test, "Test eudebug WAs for graphics version: %u\n",
 		     GRAPHICS_VERx100(xe));
 
drivers/gpu/drm/xe/xe_eudebug.c +33 -0
index 2426bb92792e..8f98233f06f2 100644
@@ -2124,6 +2124,34 @@ bool xe_eudebug_is_enabled(struct xe_device *xe)
 	return READ_ONCE(xe->eudebug.state) == XE_EUDEBUG_ENABLED;
 }
 
+static int __xe_eudebug_toggle_support(struct xe_device *xe,
+				       bool support_enable)
+{
+	mutex_lock(&xe->eudebug.lock);
+
+	if (xe_eudebug_is_enabled(xe)) {
+		mutex_unlock(&xe->eudebug.lock);
+		return -EPERM;
+	}
+
+	xe->eudebug.state = support_enable ?
+		XE_EUDEBUG_DISABLED : XE_EUDEBUG_NOT_SUPPORTED;
+
+	mutex_unlock(&xe->eudebug.lock);
+
+	return 0;
+}
+
+void xe_eudebug_support_enable(struct xe_device *xe)
+{
+	__xe_eudebug_toggle_support(xe, true);
+}
+
+int xe_eudebug_support_disable(struct xe_device *xe)
+{
+	return __xe_eudebug_toggle_support(xe, false);
+}
+
 static int xe_eudebug_enable(struct xe_device *xe, bool enable)
 {
 	struct xe_gt *gt;
@@ -2229,6 +2257,11 @@ void xe_eudebug_init(struct xe_device *xe)
 
 	xe->eudebug.state = XE_EUDEBUG_NOT_SUPPORTED;
 
+	if (IS_SRIOV_VF(xe)) {
+		drm_info(&xe->drm, "eudebug not available in SR-IOV VF mode\n");
+		return;
+	}
+
 	err = drmm_mutex_init(dev, &xe->eudebug.lock);
 	if (err)
 		goto out_err;
drivers/gpu/drm/xe/xe_eudebug.h +6 -0
index 63a647c242cc..428ae70bdc90 100644
@@ -46,6 +46,9 @@ int xe_eudebug_connect_ioctl(struct drm_device *dev,
 			     void *data,
 			     struct drm_file *file);
 
+void xe_eudebug_support_enable(struct xe_device *xe);
+int xe_eudebug_support_disable(struct xe_device *xe);
+
 void xe_eudebug_init(struct xe_device *xe);
 bool xe_eudebug_is_enabled(struct xe_device *xe);
 
@@ -80,6 +83,9 @@ static inline int xe_eudebug_connect_ioctl(struct drm_device *dev,
 					   void *data,
 					   struct drm_file *file) { return 0; }
 
+static inline void xe_eudebug_support_enable(struct xe_device *xe) { }
+static inline int xe_eudebug_support_disable(struct xe_device *xe) { return 0; }
+
 static inline void xe_eudebug_init(struct xe_device *xe) { }
 static inline bool xe_eudebug_is_enabled(struct xe_device *xe) { return false; }
 
drivers/gpu/drm/xe/xe_exec_queue.c +3 -0
index 3c2eedcc2bca..3b85208fcfd0 100644
@@ -524,6 +524,9 @@ static int exec_queue_set_eudebug(struct xe_device *xe, struct xe_exec_queue *q,
 			 !(value & DRM_XE_EXEC_QUEUE_EUDEBUG_FLAG_ENABLE)))
 		return -EINVAL;
 
+	if (XE_IOCTL_DBG(xe, !xe_eudebug_is_enabled(xe)))
+		return -EPERM;
+
 	q->eudebug_flags = EXEC_QUEUE_EUDEBUG_FLAG_ENABLE;
 	q->sched_props.preempt_timeout_us = 0;
 
drivers/gpu/drm/xe/xe_gt.c +1 -0
index 390394bbaadc..4c32d868b5ad 100644
@@ -21,6 +21,7 @@
 #include "xe_bb.h"
 #include "xe_bo.h"
 #include "xe_device.h"
+#include "xe_eudebug.h"
 #include "xe_eu_stall.h"
 #include "xe_exec_queue.h"
 #include "xe_execlist.h"
drivers/gpu/drm/xe/xe_pci_sriov.c +10 -0
index af05db07162e..4b5de4ffe5e4 100644
@@ -9,6 +9,7 @@
 #include "regs/xe_bars.h"
 #include "xe_assert.h"
 #include "xe_device.h"
+#include "xe_eudebug.h"
 #include "xe_gt_sriov_pf_config.h"
 #include "xe_gt_sriov_pf_control.h"
 #include "xe_gt_sriov_printk.h"
@@ -155,6 +156,10 @@ static int pf_enable_vfs(struct xe_device *xe, int num_vfs)
 	xe_assert(xe, num_vfs <= total_vfs);
 	xe_sriov_dbg(xe, "enabling %u VF%s\n", num_vfs, str_plural(num_vfs));
 
+	err = xe_eudebug_support_disable(xe);
+	if (err < 0)
+		goto failed_eudebug;
+
 	err = xe_sriov_pf_wait_ready(xe);
 	if (err)
 		goto out;
@@ -197,6 +202,9 @@ static int pf_enable_vfs(struct xe_device *xe, int num_vfs)
 	pf_unprovision_vfs(xe, num_vfs);
 	xe_pm_runtime_put(xe);
 out:
+	xe_eudebug_support_enable(xe);
+failed_eudebug:
+
 	xe_sriov_notice(xe, "Failed to enable %u VF%s (%pe)\n",
 			num_vfs, str_plural(num_vfs), ERR_PTR(err));
 	return err;
@@ -225,6 +233,8 @@ static int pf_disable_vfs(struct xe_device *xe)
 	/* not needed anymore - see pf_enable_vfs() */
 	xe_pm_runtime_put(xe);
 
+	xe_eudebug_support_enable(xe);
+
 	xe_sriov_info(xe, "Disabled %u VF%s\n", num_vfs, str_plural(num_vfs));
 	return 0;
 }
Signature · 1 line
2.43.0
#16 lore raw

PATCH 15/15 drm/xe: Add xe_client_debugfs and introduce debug_data file

In reply to Mika Kuoppala

From: Christoph Manszewski <[email protected]>

Create a debug_data file for each xe file/client which is supposed to list all mapped debug data and attempts to mimic '/proc/pid/maps'. Each line represents a single mapping and has the following format:

<vm id> <begin>-<end> <flags> <offset> <pathname>

---
 drivers/gpu/drm/xe/Makefile            |   3 +-
 drivers/gpu/drm/xe/xe_client_debugfs.c | 118 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_client_debugfs.h |  19 ++++
 drivers/gpu/drm/xe/xe_device.c         |   3 +
 4 files changed, 142 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.c
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.h
drivers/gpu/drm/xe/Makefile +2 -1
index b932a9e70284..c1d8068d2a97 100644
@@ -319,7 +319,8 @@ ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y)
 endif
 
 ifeq ($(CONFIG_DEBUG_FS),y)
-	xe-y += xe_debugfs.o \
+	xe-y += xe_client_debugfs.o \
+		xe_debugfs.o \
 		xe_gt_debugfs.o \
 		xe_gt_sriov_vf_debugfs.o \
 		xe_gt_stats.o \
drivers/gpu/drm/xe/xe_client_debugfs.c new file +118 -0

118 lines not on this page · raw message

drivers/gpu/drm/xe/xe_client_debugfs.h new file +19 -0
new file mode 100644
index 000000000000..9eace15c0a49
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2025 Intel Corporation
+ */
+
+#ifndef _XE_CLIENT_DEBUGFS_H_
+#define _XE_CLIENT_DEBUGFS_H_
+
+#include <linux/debugfs.h>
+
+struct xe_file;
+
+#ifdef CONFIG_DEBUG_FS
+void xe_client_debugfs_register(struct xe_file *xef);
+#else
+static inline void xe_client_debugfs_register(struct xe_file *xef) { }
+#endif
+
+#endif // _XE_CLIENT_DEBUGFS_H_
drivers/gpu/drm/xe/xe_device.c +3 -0
index 0249fb4aa966..af9c98a4f3a3 100644
@@ -24,6 +24,7 @@
 #include "regs/xe_regs.h"
 #include "xe_bo.h"
 #include "xe_bo_evict.h"
+#include "xe_client_debugfs.h"
 #include "xe_debugfs.h"
 #include "xe_devcoredump.h"
 #include "xe_device_sysfs.h"
@@ -117,6 +118,8 @@ static int xe_file_open(struct drm_device *dev, struct drm_file *file)
 		put_task_struct(task);
 	}
 
+	xe_client_debugfs_register(xef);
+
 	return 0;
 }
 
Signature · 1 line
2.43.0
#17 lore raw

Re: [PATCH 15/15] drm/xe: Add xe_client_debugfs and introduce debug_data file

Quoted 9 lines · Mika Kuoppala

From: Christoph Manszewski <[email protected]>

Create a debug_data file for each xe file/client which is supposed to list all mapped debug data and attempts to mimic '/proc/pid/maps'. Each line represents a single mapping and has the following format:

<vm id> <begin>-<end> <flags> <offset> <pathname>

Please make sure to CC Sunil on that stuff as well since he created the per client debugfs stuff.

The patch itself looks completely sane to me.

Regards,
Christian.

Quoted 193 lines
---
 drivers/gpu/drm/xe/Makefile            |   3 +-
 drivers/gpu/drm/xe/xe_client_debugfs.c | 118 +++++++++++++++++++++++++
 drivers/gpu/drm/xe/xe_client_debugfs.h |  19 ++++
 drivers/gpu/drm/xe/xe_device.c         |   3 +
 4 files changed, 142 insertions(+), 1 deletion(-)
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.c
 create mode 100644 drivers/gpu/drm/xe/xe_client_debugfs.h
drivers/gpu/drm/xe/Makefile +2 -1
index b932a9e70284..c1d8068d2a97 100644
@@ -319,7 +319,8 @@ ifeq ($(CONFIG_DRM_FBDEV_EMULATION),y)
 endif
 
 ifeq ($(CONFIG_DEBUG_FS),y)
-	xe-y += xe_debugfs.o \
+	xe-y += xe_client_debugfs.o \
+		xe_debugfs.o \
 		xe_gt_debugfs.o \
 		xe_gt_sriov_vf_debugfs.o \
 		xe_gt_stats.o \
drivers/gpu/drm/xe/xe_client_debugfs.c new file +118 -0
new file mode 100644
index 000000000000..0b952038e698
@@ -0,0 +1,118 @@
+// SPDX-License-Identifier: MIT
+/*
+ * Copyright © 2025 Intel Corporation
+ */
+
+#include "xe_client_debugfs.h"
+
+#include <linux/debugfs.h>
+
+#include "xe_debug_data.h"
+#include "xe_debug_data_types.h"
+#include "xe_device_types.h"
+#include "xe_vm_types.h"
+
+#define MAX_LINE_LEN (64 + PATH_MAX)
+
+static ssize_t debug_data_read(struct file *file, char __user *buf, size_t count,
+			       loff_t *ppos)
+{
+	struct xe_debug_data *dd;
+	unsigned long vm_index;
+	const char *path;
+	char *kbuf;
+	struct xe_vm *vm;
+
+	struct xe_file *xef = file->private_data;
+	ssize_t total = 0;
+	loff_t pos = 0;
+
+	if (!xef || !buf)
+		return -EINVAL;
+
+	kbuf = kmalloc(MAX_LINE_LEN, GFP_KERNEL);
+	if (!kbuf)
+		return -ENOMEM;
+
+	mutex_lock(&xef->vm.lock);
+
+	xa_for_each(&xef->vm.xa, vm_index, vm) {
+		mutex_lock(&vm->debug_data.lock);
+		list_for_each_entry(dd, &vm->debug_data.list, link) {
+			int len;
+
+			path = dd->flags & DRM_XE_VM_BIND_DEBUG_DATA_FLAG_PSEUDO ?
+				xe_debug_data_pseudo_path_to_string(dd->pseudopath) :
+				dd->pathname;
+
+			/* Format: <vm id> <begin>-<end> <flags> <offset> <pathname> */
+			len = snprintf(kbuf, MAX_LINE_LEN, "%lu 0x%llx-0x%llx 0x%llx 0x%x\t%s\n",
+				vm_index,
+				dd->addr,
+				dd->addr + dd->range,
+				dd->flags,
+				dd->offset,
+				path);
+
+			if (pos + len <= *ppos) {
+				pos += len;
+				continue;
+			}
+
+			if (pos < *ppos) {
+				const int skip = *ppos - pos;
+
+				len -= skip;
+				memmove(kbuf, kbuf + skip, len);
+				pos = *ppos;
+			}
+
+			if (total + len > count)
+				len = count - total;
+
+			if (copy_to_user(buf + total, kbuf, len)) {
+				mutex_unlock(&vm->debug_data.lock);
+				mutex_unlock(&xef->vm.lock);
+				kfree(kbuf);
+				return -EFAULT;
+			}
+
+			total += len;
+			pos += len;
+
+			if (total >= count) {
+				mutex_unlock(&vm->debug_data.lock);
+				mutex_unlock(&xef->vm.lock);
+				kfree(kbuf);
+				*ppos = pos;
+				return total;
+			}
+		}
+		mutex_unlock(&vm->debug_data.lock);
+	}
+
+	mutex_unlock(&xef->vm.lock);
+	kfree(kbuf);
+	*ppos = pos;
+	return total;
+}
+
+static int debug_data_open(struct inode *inode, struct file *file)
+{
+	struct xe_file *xef = inode->i_private;
+
+	file->private_data = xef;
+	return 0;
+}
+
+static const struct file_operations maps_fops = {
+	.owner = THIS_MODULE,
+	.open = debug_data_open,
+	.read = debug_data_read,
+	.llseek = default_llseek,
+};
+
+void xe_client_debugfs_register(struct xe_file *xef)
+{
+	debugfs_create_file("debug_data", 0444, xef->drm->debugfs_client, xef, &maps_fops);
+}
drivers/gpu/drm/xe/xe_client_debugfs.h new file +19 -0
new file mode 100644
index 000000000000..9eace15c0a49
@@ -0,0 +1,19 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2025 Intel Corporation
+ */
+
+#ifndef _XE_CLIENT_DEBUGFS_H_
+#define _XE_CLIENT_DEBUGFS_H_
+
+#include <linux/debugfs.h>
+
+struct xe_file;
+
+#ifdef CONFIG_DEBUG_FS
+void xe_client_debugfs_register(struct xe_file *xef);
+#else
+static inline void xe_client_debugfs_register(struct xe_file *xef) { }
+#endif
+
+#endif // _XE_CLIENT_DEBUGFS_H_
drivers/gpu/drm/xe/xe_device.c +3 -0
index 0249fb4aa966..af9c98a4f3a3 100644
@@ -24,6 +24,7 @@
 #include "regs/xe_regs.h"
 #include "xe_bo.h"
 #include "xe_bo_evict.h"
+#include "xe_client_debugfs.h"
 #include "xe_debugfs.h"
 #include "xe_devcoredump.h"
 #include "xe_device_sysfs.h"
@@ -117,6 +118,8 @@ static int xe_file_open(struct drm_device *dev, struct drm_file *file)
 		put_task_struct(task);
 	}
 
+	xe_client_debugfs_register(xef);
+
 	return 0;
 }
 
#18 lore raw
In reply to Mika Kuoppala
Quoted 21 lines · Mika Kuoppala

Hi,

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

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

This is a major cleanup and rework of eudebug patch series to address the feedback for v3. Page fault handling is omitted for until we receive ack on core design, as there was no feedback on it on previous iterations.

### Major Changes

#### 1. Elimination of ptrace_may_access() and pid

In previous series, the connection attempt was made using the process ID (PID) as the target. Access was checked using the ptrace_may_access() helper to achieve security parity with CPU-side debugging.

Quoted 9 lines

In v4, this has been changed to connect to a DRM client, using a file descriptor as the target. This approach eliminates the need for the ptrace_may_access() symbol export, as access control is now managed through the debugger process's access to the file descriptor. For example, accessing a remote DRM client requires the debugger process to successfully call pidfd_getfd() to obtain a duplicate of the target file descriptor.The 1:1 mapping between DRM clients and their debuggers eliminates the need for EVENT_OPEN and simplifies overall connection tracking.

It would be really nice if we could document that approach under Documentation/gpu.

Quoted 10 lines

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

Quoted 6 lines

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

I need to take a closer look but that sounds like it takes a big step into the right direction.

Regards,
Christian.

Quoted 93 lines

### Supported Hardware with v4
- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)

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

Christoph Manszewski (5):
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 xe_eudebug wa kunit test drm/xe: Implement SR-IOV and eudebug exclusivity drm/xe: Add xe_client_debugfs and introduce debug_data file

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

Mika Kuoppala (5):
drm/xe/eudebug: Introduce eudebug interface 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: userptr vm pread/pwrite

 drivers/gpu/drm/xe/Kconfig                  |   10 +
 drivers/gpu/drm/xe/Makefile                 |    7 +-
 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       |  189 ++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c |    5 +
 drivers/gpu/drm/xe/xe_client_debugfs.c      |  118 +
 drivers/gpu/drm/xe/xe_client_debugfs.h      |   19 +
 drivers/gpu/drm/xe/xe_debug_data.c          |  279 +++
 drivers/gpu/drm/xe/xe_debug_data.h          |   22 +
 drivers/gpu/drm/xe/xe_debug_data_types.h    |   25 +
 drivers/gpu/drm/xe/xe_device.c              |   30 +-
 drivers/gpu/drm/xe/xe_device.h              |   42 +
 drivers/gpu/drm/xe/xe_device_types.h        |   40 +
 drivers/gpu/drm/xe/xe_eudebug.c             | 2309 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h             |  116 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c          |  730 ++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h          |   32 +
 drivers/gpu/drm/xe/xe_eudebug_types.h       |  174 ++
 drivers/gpu/drm/xe/xe_eudebug_vm.c          |  434 ++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h          |    8 +
 drivers/gpu/drm/xe/xe_exec.c                |    2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c          |   51 +-
 drivers/gpu/drm/xe/xe_exec_queue.h          |    2 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |    7 +
 drivers/gpu/drm/xe/xe_gt.c                  |    1 +
 drivers/gpu/drm/xe/xe_gt_debug.c            |  179 ++
 drivers/gpu/drm/xe/xe_gt_debug.h            |   41 +
 drivers/gpu/drm/xe/xe_hw_engine.h           |   14 +
 drivers/gpu/drm/xe/xe_lrc.c                 |   10 +
 drivers/gpu/drm/xe/xe_oa.c                  |    3 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c           |   10 +
 drivers/gpu/drm/xe/xe_reg_sr.c              |   21 +-
 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                |   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                  |  186 +-
 drivers/gpu/drm/xe/xe_vm.h                  |   26 +
 drivers/gpu/drm/xe/xe_vm_types.h            |   38 +
 drivers/gpu/drm/xe/xe_wa_oob.rules          |    4 +
 include/uapi/drm/xe_drm.h                   |   59 +
 include/uapi/drm/xe_drm_eudebug.h           |  217 ++
 45 files changed, 5552 insertions(+), 47 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.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
#19 lore raw

Christian König <[email protected]> writes:

Hi Christian,

Quoted 44 lines · Mika Kuoppala
Quoted 21 lines

Hi,

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

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

This is a major cleanup and rework of eudebug patch series to address the feedback for v3. Page fault handling is omitted for until we receive ack on core design, as there was no feedback on it on previous iterations.

### Major Changes

#### 1. Elimination of ptrace_may_access() and pid

In previous series, the connection attempt was made using the process ID (PID) as the target. Access was checked using the ptrace_may_access() helper to achieve security parity with CPU-side debugging.

Quoted 9 lines

In v4, this has been changed to connect to a DRM client, using a file descriptor as the target. This approach eliminates the need for the ptrace_may_access() symbol export, as access control is now managed through the debugger process's access to the file descriptor. For example, accessing a remote DRM client requires the debugger process to successfully call pidfd_getfd() to obtain a duplicate of the target file descriptor.The 1:1 mapping between DRM clients and their debuggers eliminates the need for EVENT_OPEN and simplifies overall connection tracking.

It would be really nice if we could document that approach under Documentation/gpu.

Quoted 10 lines

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

Quoted 8 lines
Quoted 6 lines

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

I need to take a closer look but that sounds like it takes a big step into the right direction.

Encouraged by this positive feedback, we iterated the series further. VM binds state handling has reworked on top of vm_ops, metada and ufence handling improved and we added pagefaults on top.

v6 series can be found here:
https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html

Thanks,
-Mika

Quoted 97 lines

Regards,
Christian.

Quoted 93 lines

### Supported Hardware with v4
- Lunarlake (LNL)
- Battlemage (BMG)
- Pantherlake (PTL)

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

Christoph Manszewski (5):
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 xe_eudebug wa kunit test drm/xe: Implement SR-IOV and eudebug exclusivity drm/xe: Add xe_client_debugfs and introduce debug_data file

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

Mika Kuoppala (5):
drm/xe/eudebug: Introduce eudebug interface 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: userptr vm pread/pwrite

 drivers/gpu/drm/xe/Kconfig                  |   10 +
 drivers/gpu/drm/xe/Makefile                 |    7 +-
 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       |  189 ++
 drivers/gpu/drm/xe/tests/xe_live_test_mod.c |    5 +
 drivers/gpu/drm/xe/xe_client_debugfs.c      |  118 +
 drivers/gpu/drm/xe/xe_client_debugfs.h      |   19 +
 drivers/gpu/drm/xe/xe_debug_data.c          |  279 +++
 drivers/gpu/drm/xe/xe_debug_data.h          |   22 +
 drivers/gpu/drm/xe/xe_debug_data_types.h    |   25 +
 drivers/gpu/drm/xe/xe_device.c              |   30 +-
 drivers/gpu/drm/xe/xe_device.h              |   42 +
 drivers/gpu/drm/xe/xe_device_types.h        |   40 +
 drivers/gpu/drm/xe/xe_eudebug.c             | 2309 +++++++++++++++++++
 drivers/gpu/drm/xe/xe_eudebug.h             |  116 +
 drivers/gpu/drm/xe/xe_eudebug_hw.c          |  730 ++++++
 drivers/gpu/drm/xe/xe_eudebug_hw.h          |   32 +
 drivers/gpu/drm/xe/xe_eudebug_types.h       |  174 ++
 drivers/gpu/drm/xe/xe_eudebug_vm.c          |  434 ++++
 drivers/gpu/drm/xe/xe_eudebug_vm.h          |    8 +
 drivers/gpu/drm/xe/xe_exec.c                |    2 +-
 drivers/gpu/drm/xe/xe_exec_queue.c          |   51 +-
 drivers/gpu/drm/xe/xe_exec_queue.h          |    2 +
 drivers/gpu/drm/xe/xe_exec_queue_types.h    |    7 +
 drivers/gpu/drm/xe/xe_gt.c                  |    1 +
 drivers/gpu/drm/xe/xe_gt_debug.c            |  179 ++
 drivers/gpu/drm/xe/xe_gt_debug.h            |   41 +
 drivers/gpu/drm/xe/xe_hw_engine.h           |   14 +
 drivers/gpu/drm/xe/xe_lrc.c                 |   10 +
 drivers/gpu/drm/xe/xe_oa.c                  |    3 +-
 drivers/gpu/drm/xe/xe_pci_sriov.c           |   10 +
 drivers/gpu/drm/xe/xe_reg_sr.c              |   21 +-
 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                |   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                  |  186 +-
 drivers/gpu/drm/xe/xe_vm.h                  |   26 +
 drivers/gpu/drm/xe/xe_vm_types.h            |   38 +
 drivers/gpu/drm/xe/xe_wa_oob.rules          |    4 +
 include/uapi/drm/xe_drm.h                   |   59 +
 include/uapi/drm/xe_drm_eudebug.h           |  217 ++
 45 files changed, 5552 insertions(+), 47 deletions(-)
 create mode 100644 drivers/gpu/drm/xe/tests/xe_eudebug.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
#20 lore raw

Quoting Mika Kuoppala (2025-12-03 11:18:45)

Quoted 2 lines
Quoted 1 line · Christian König

On 08.08.25 12:43, Mika Kuoppala wrote:

<SNIP>

Quoted 16 lines
Quoted 16 lines
Quoted 15 lines

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

Quoted 8 lines
Quoted 1 line

I need to take a closer look but that sounds like it takes a big step into the right direction.

Encouraged by this positive feedback, we iterated the series further. VM binds state handling has reworked on top of vm_ops, metada and ufence handling improved and we added pagefaults on top.

v6 series can be found here:
https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html

Christian, would it be possible for you to take a quick look before the holiday season? Would be very much appreciated.

That way we could start polishing the documentation etc. assuming we still agree on the direction. At least from our viewpoint, we're running short of ideas where to simplify or improve on the implementation.

The page-faults are the freshest piece of the code, however it is rather well separated patches, so would be great if as a minimum the foundational patches before them could be agreed upon initially.

Best Regards, Joonas

Quoted 2 lines

Thanks,
-Mika

#21 lore raw
Quoted 28 lines · Joonas Lahtinen

Quoting Mika Kuoppala (2025-12-03 11:18:45)

Quoted 2 lines
Quoted 1 line · Christian König

On 08.08.25 12:43, Mika Kuoppala wrote:

<SNIP>

Quoted 22 lines
Quoted 9 lines
Quoted 9 lines

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

Quoted 8 lines
Quoted 6 lines

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

I need to take a closer look but that sounds like it takes a big step into the right direction.

Encouraged by this positive feedback, we iterated the series further. VM binds state handling has reworked on top of vm_ops, metada and ufence handling improved and we added pagefaults on top.

Quoted 5 lines
Quoted 2 lines

v6 series can be found here:
https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html

Christian, would it be possible for you to take a quick look before the holiday season? Would be very much appreciated.

I'm just back from a week of sick leave today (stupid flu season) and drowning in work.

But from a ten mile high view it looks sane to me now.

Quoted 8 lines

That way we could start polishing the documentation etc. assuming we still agree on the direction. At least from our viewpoint, we're running short of ideas where to simplify or improve on the implementation.

The page-faults are the freshest piece of the code, however it is rather well separated patches, so would be great if as a minimum the foundational patches before them could be agreed upon initially.

The only requirement I have is that you don't mix page faults, single step debugging and dma_fences for graphics contexts, but you already knew that.

In other words as long as you make sure that you can't attach a debugger to a process which does graphics rendering and uses dma_fences for that everything should be fine from my side.

Regards,
Christian.

Quoted 5 lines

Best Regards, Joonas

Quoted 2 lines

Thanks,
-Mika

#22 lore raw

Quoting Christian König (2025-12-08 10:49:37)

Quoted 32 lines · Joonas Lahtinen
Quoted 31 lines

Quoting Mika Kuoppala (2025-12-03 11:18:45)

Quoted 2 lines
Quoted 1 line · Christian König

On 08.08.25 12:43, Mika Kuoppala wrote:

<SNIP>

Quoted 24 lines
Quoted 9 lines
Quoted 9 lines

#### 2. ELF binaries not held in kernel memory

In v4, debug data is delivered as a VM bind 'OP_ADD_DEBUG_DATA' extension. The ELF binaries are no longer stored within the Xe KMD but are instead kept in a file. The file path is passed as part of an extension in the newly introduced 'OP_ADD_DEBUG_DATA' VM bind operation. Alternatively pseudo-paths can be used to annotate special address ranges similar to /proc/<pid>/maps.

Quoted 8 lines
Quoted 6 lines

#### 3. Debug metadata not carried in VMA struct

Instead of attaching debug data to vma created by 'OP_MAP', we introduce separate ops for managing the metadata. Debug data is no longer held in the VMA struct. xe_vm contains a list of all associated debug data.

I need to take a closer look but that sounds like it takes a big step into the right direction.

Encouraged by this positive feedback, we iterated the series further. VM binds state handling has reworked on top of vm_ops, metada and ufence handling improved and we added pagefaults on top.

v6 series can be found here:
https://lists.freedesktop.org/archives/intel-xe/2025-December/106405.html

Quoted 6 lines
Quoted 2 lines

Christian, would it be possible for you to take a quick look before the holiday season? Would be very much appreciated.

I'm just back from a week of sick leave today (stupid flu season) and drowning in work.

But from a ten mile high view it looks sane to me now.

Understandable and thanks for the high level check, we'll continue with the current direction then.

Quoted 11 lines
Quoted 7 lines

That way we could start polishing the documentation etc. assuming we still agree on the direction. At least from our viewpoint, we're running short of ideas where to simplify or improve on the implementation.

The page-faults are the freshest piece of the code, however it is rather well separated patches, so would be great if as a minimum the foundational patches before them could be agreed upon initially.

The only requirement I have is that you don't mix page faults, single step debugging and dma_fences for graphics contexts, but you already knew that.

In other words as long as you make sure that you can't attach a debugger to a process which does graphics rendering and uses dma_fences for that everything should be fine from my side.

Yeah, it's all already completely detached from dma_fences for now, being stuck in a breakpoint would otherwise already be problematic given we currently can't switch a stalled context off the hardware.

Page-faults during debug make no difference in that sense, they just got freshly reworked on top of the xe refactoring of page-fault infra. This means its more likely something will appear in review of those patches compared to the rest of the series which have been pretty logically unchanged for a while.

Regards, Joonas

Quoted 9 lines

Regards,
Christian.

Quoted 5 lines

Best Regards, Joonas

Quoted 2 lines

Thanks,
-Mika

#23 lore raw

✗ CI.checkpatch: warning for Intel Xe GPU Debug Support (eudebug) v4

In reply to Mika Kuoppala
== Series Details ==

== Series Details ==

Series: Intel Xe GPU Debug Support (eudebug) v4
URL : https://patchwork.freedesktop.org/series/152682/
State : warning

== Summary ==

+ KERNEL=/kernel
+ git clone https://gitlab.freedesktop.org/drm/maintainer-tools mt Cloning into 'mt'...
warning: redirecting to https://gitlab.freedesktop.org/drm/maintainer-tools.git/
+ git -C mt rev-list -n1 origin/master c298eac5978c38dcc62a70c0d73c91765e7cc296
+ cd /kernel
+ git config --global --add safe.directory /kernel
+ git log -n1
commit 661233e829023403fa3a46d8ef6d0a0e5a130e1b

Author: Christoph Manszewski <[email protected]>
Date:   Fri Aug 8 13:43:50 2025 +0300

drm/xe: Add xe_client_debugfs and introduce debug_data file

Create a debug_data file for each xe file/client which is supposed to list all mapped debug data and attempts to mimic '/proc/pid/maps'. Each line represents a single mapping and has the following format:

<vm id> <begin>-<end> <flags> <offset> <pathname>

+ /mt/dim checkpatch 2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b drm-intel 68cf7e3e7e4f drm/xe/eudebug: Introduce eudebug interface
-:220: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #220:
new file mode 100644

-:475: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_err' - possible side-effects? #475: FILE: drivers/gpu/drm/xe/xe_eudebug.c:251:
+#define xe_eudebug_disconnect(_d, _err) ({ \
+ if (_xe_eudebug_disconnect((_d), (_err))) { \
+ if ((_err) == 0 || (_err) == -ETIMEDOUT) \
+ eu_dbg(d, "Session closed (%d)", (_err)); \
+ else \
+ eu_err(d, "Session disconnected, err = %d (%s:%d)", \
+ (_err), __func__, __LINE__); \
+ } \
+})

-:824: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_d' - possible side-effects? #824: FILE: drivers/gpu/drm/xe/xe_eudebug.c:600:
+#define xe_eudebug_event_put(_d, _err) ({ \
+ if ((_err)) \
+ xe_eudebug_disconnect((_d), (_err)); \
+ xe_eudebug_put((_d)); \
+ })

-:824: CHECK:MACRO_ARG_REUSE: Macro argument reuse '_err' - possible side-effects? #824: FILE: drivers/gpu/drm/xe/xe_eudebug.c:600:
+#define xe_eudebug_event_put(_d, _err) ({ \
+ if ((_err)) \
+ xe_eudebug_disconnect((_d), (_err)); \
+ xe_eudebug_put((_d)); \
+ })

-:1288: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #1288: FILE: drivers/gpu/drm/xe/xe_eudebug.h:20:
+#define XE_EUDEBUG_DBG_ARGS(d) (d)->session, \
+ atomic_long_read(&(d)->events.seqno), \
+ !READ_ONCE(d->target.xef) ? "disconnected" : "", \
+ current->pid, \
+ task_tgid_nr(current), \
+ READ_ONCE(d->target.xef) ? d->target.xef->pid : -1

BUT SEE:

do {} while (0) advice is over-stated in a few situations:

The more obvious case is macros, like MODULE_PARM_DESC, invoked at file-scope, where C disallows code (it must be in functions). See $exceptions if you have one to add by name.

More troublesome is declarative macros used at top of new scope, like DECLARE_PER_CPU. These might just compile with a do-while-0 wrapper, but would be incorrect. Most of these are handled by detecting struct,union,etc declaration primitives in $exceptions.

Theres also macros called inside an if (block), which "return" an expression. These cannot do-while, and need a ({}) wrapper.

Enjoy this qualification while we work to improve our heuristics.

-:1288: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'd' - possible side-effects? #1288: FILE: drivers/gpu/drm/xe/xe_eudebug.h:20:
+#define XE_EUDEBUG_DBG_ARGS(d) (d)->session, \
+ atomic_long_read(&(d)->events.seqno), \
+ !READ_ONCE(d->target.xef) ? "disconnected" : "", \
+ current->pid, \
+ task_tgid_nr(current), \
+ READ_ONCE(d->target.xef) ? d->target.xef->pid : -1

-:1295: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'd' - possible side-effects? #1295: FILE: drivers/gpu/drm/xe/xe_eudebug.h:27:
+#define eu_err(d, fmt, ...) drm_err(&(d)->xe->drm, XE_EUDEBUG_DBG_STR # fmt, \
+ XE_EUDEBUG_DBG_ARGS(d), ##__VA_ARGS__)

-:1297: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'd' - possible side-effects? #1297: FILE: drivers/gpu/drm/xe/xe_eudebug.h:29:
+#define eu_warn(d, fmt, ...) drm_warn(&(d)->xe->drm, XE_EUDEBUG_DBG_STR # fmt, \
+ XE_EUDEBUG_DBG_ARGS(d), ##__VA_ARGS__)

-:1299: CHECK:MACRO_ARG_REUSE: Macro argument reuse 'd' - possible side-effects? #1299: FILE: drivers/gpu/drm/xe/xe_eudebug.h:31:
+#define eu_dbg(d, fmt, ...) drm_dbg(&(d)->xe->drm, XE_EUDEBUG_DBG_STR # fmt, \
+ XE_EUDEBUG_DBG_ARGS(d), ##__VA_ARGS__)

-:1516: WARNING:LONG_LINE: line length of 130 exceeds 100 columns #1516: FILE: include/uapi/drm/xe_drm.h:121:
+#define DRM_IOCTL_XE_EUDEBUG_CONNECT DRM_IOWR(DRM_COMMAND_BASE + DRM_XE_EUDEBUG_CONNECT, struct drm_xe_eudebug_connect)

total: 1 errors, 2 warnings, 7 checks, 1496 lines checked
c3e29a81b6cf drm/xe/eudebug: Introduce discovery for resources
-:8: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?) #8:
currently existing resources to the debugger. The client is held on selected

total: 0 errors, 1 warnings, 0 checks, 295 lines checked
fef08eb1019d drm/xe/eudebug: Introduce exec_queue events
3c7af8a08a0d drm/xe: Add EUDEBUG_ENABLE exec queue property
41d8134d1d7f drm/xe: Introduce ADD_DEBUG_DATA and REMOVE_DEBUG_DATA vm bind ops -:41: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #41:
new file mode 100644

-:77: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #77: FILE: drivers/gpu/drm/xe/xe_debug_data.c:32:
+ if (XE_IOCTL_DBG(xe, (dd->addr < ext->addr + ext->range) &&
+ (ext->addr < dd->addr + dd->range))) {

-:119: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #119: FILE: drivers/gpu/drm/xe/xe_debug_data.c:74:
+ if (XE_IOCTL_DBG(xe, operation != DRM_XE_VM_BIND_OP_ADD_DEBUG_DATA &&
+ operation != DRM_XE_VM_BIND_OP_REMOVE_DEBUG_DATA))

-:133: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #133: FILE: drivers/gpu/drm/xe/xe_debug_data.c:88:
+ XE_IOCTL_DBG(xe, ext->flags & DRM_XE_VM_BIND_DEBUG_DATA_FLAG_PSEUDO &&
+ ext->offset != 0) ||

-:135: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #135: FILE: drivers/gpu/drm/xe/xe_debug_data.c:90:
+ XE_IOCTL_DBG(xe, ext->flags & DRM_XE_VM_BIND_DEBUG_DATA_FLAG_PSEUDO &&
+ (ext->pseudopath < DRM_XE_VM_BIND_DEBUG_DATA_PSEUDO_MODULE_AREA ||

-:138: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #138: FILE: drivers/gpu/drm/xe/xe_debug_data.c:93:
+ XE_IOCTL_DBG(xe, !(ext->flags & DRM_XE_VM_BIND_DEBUG_DATA_FLAG_PSEUDO) &&
+ strnlen(ext->pathname, PATH_MAX) >= PATH_MAX)) {

-:575: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #575: FILE: drivers/gpu/drm/xe/xe_vm.c:3403:
+ if (XE_IOCTL_DBG(xe, operation != DRM_XE_VM_BIND_OP_ADD_DEBUG_DATA &&
+ operation != DRM_XE_VM_BIND_OP_REMOVE_DEBUG_DATA &&

-:578: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #578: FILE: drivers/gpu/drm/xe/xe_vm.c:3406:
+ XE_IOCTL_DBG(xe, ext.name == XE_VM_BIND_OP_EXTENSIONS_DEBUG_DATA &&
+ ++debug_data_count > 1))

-:698: CHECK:UNCOMMENTED_DEFINITION: struct mutex definition without comment #698: FILE: drivers/gpu/drm/xe/xe_vm_types.h:337:
+ struct mutex lock;

total: 0 errors, 1 warnings, 8 checks, 720 lines checked
3b6e470bce74 drm/xe/eudebug: Introduce vm bind and vm bind debug data events
-:7: WARNING:COMMIT_LOG_LONG_LINE: Prefer a maximum 75 chars per line (possible unwrapped commit description?) #7:
This patch adds events to track the bind ioctl and associated debug data add

-:641: WARNING:LONG_LINE_COMMENT: line length of 102 exceeds 100 columns #641: FILE: include/uapi/drm/xe_drm_eudebug.h:92:
+ * │ EVENT_VM_BIND ├──────────────────┬─┬┄┐

-:642: WARNING:LONG_LINE_COMMENT: line length of 108 exceeds 100 columns #642: FILE: include/uapi/drm/xe_drm_eudebug.h:93:
+ * └───────────────────────┘ │ │ ┊

-:643: WARNING:LONG_LINE_COMMENT: line length of 130 exceeds 100 columns #643: FILE: include/uapi/drm/xe_drm_eudebug.h:94:
+ * ┌──────────────────────────────────┐ │ │ ┊

-:645: WARNING:LONG_LINE_COMMENT: line length of 128 exceeds 100 columns #645: FILE: include/uapi/drm/xe_drm_eudebug.h:96:
+ * └──────────────────────────────────┘ │ ┊

-:647: WARNING:LONG_LINE_COMMENT: line length of 128 exceeds 100 columns #647: FILE: include/uapi/drm/xe_drm_eudebug.h:98:
+ * ┌──────────────────────────────────┐ │ ┊

-:649: WARNING:LONG_LINE_COMMENT: line length of 126 exceeds 100 columns #649: FILE: include/uapi/drm/xe_drm_eudebug.h:100:
+ * └──────────────────────────────────┘ ┊

-:651: WARNING:LONG_LINE_COMMENT: line length of 126 exceeds 100 columns #651: FILE: include/uapi/drm/xe_drm_eudebug.h:102:
+ * ┌┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┐ ┊

-:653: WARNING:LONG_LINE_COMMENT: line length of 116 exceeds 100 columns #653: FILE: include/uapi/drm/xe_drm_eudebug.h:104:
+ * └┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┄┘

total: 0 errors, 9 warnings, 0 checks, 641 lines checked b4689918317b drm/xe/eudebug: Add UFENCE events with acks -:184: CHECK:LINE_SPACING: Please don't use multiple blank lines #184: FILE: drivers/gpu/drm/xe/xe_eudebug.c:1097:

+

-:355: CHECK:COMPARISON_TO_NULL: Comparison to NULL could be written "ufence" #355: FILE: drivers/gpu/drm/xe/xe_eudebug.c:1389:
+ fill_vm_bind_fields(vm, e, ufence != NULL, bind_ops);

-:696: CHECK:UNCOMMENTED_DEFINITION: spinlock_t definition without comment #696: FILE: drivers/gpu/drm/xe/xe_sync_types.h:26:
+ spinlock_t lock;

total: 0 errors, 0 warnings, 3 checks, 681 lines checked 998f2efed412 drm/xe/eudebug: vm open/pread/pwrite
-:113: CHECK:BRACES: Blank lines aren't necessary after an open brace '{' #113: FILE: drivers/gpu/drm/xe/xe_eudebug.c:675:
+{
+

-:137: CHECK:LINE_SPACING: Please don't use multiple blank lines #137: FILE: drivers/gpu/drm/xe/xe_eudebug.c:699:
+
+

-:177: ERROR:COMPLEX_MACRO: Macros with complex values should be enclosed in parentheses #177: FILE: drivers/gpu/drm/xe/xe_eudebug.h:41:
+#define xe_eudebug_for_each_hw_engine(__hwe, __gt, __id) \
+ for_each_hw_engine(__hwe, __gt, __id) \
+ if (xe_hw_engine_has_eudebug(__hwe))

BUT SEE:

do {} while (0) advice is over-stated in a few situations:

The more obvious case is macros, like MODULE_PARM_DESC, invoked at file-scope, where C disallows code (it must be in functions). See $exceptions if you have one to add by name.

More troublesome is declarative macros used at top of new scope, like DECLARE_PER_CPU. These might just compile with a do-while-0 wrapper, but would be incorrect. Most of these are handled by detecting struct,union,etc declaration primitives in $exceptions.

Theres also macros called inside an if (block), which "return" an expression. These cannot do-while, and need a ({}) wrapper.

Enjoy this qualification while we work to improve our heuristics.

-:177: CHECK:MACRO_ARG_REUSE: Macro argument reuse '__hwe' - possible side-effects? #177: FILE: drivers/gpu/drm/xe/xe_eudebug.h:41:
+#define xe_eudebug_for_each_hw_engine(__hwe, __gt, __id) \
+ for_each_hw_engine(__hwe, __gt, __id) \
+ if (xe_hw_engine_has_eudebug(__hwe))

-:213: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #213:
new file mode 100644

total: 1 errors, 1 warnings, 3 checks, 599 lines checked
2658ec32785d drm/xe/eudebug: userptr vm pread/pwrite
be47d563271c drm/xe/eudebug: hw enablement for eudebug
-:107: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #107:
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 463 lines checked f1a8db89f118 drm/xe/eudebug: Introduce EU control interface -:272: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #272: FILE: drivers/gpu/drm/xe/xe_eudebug_hw.c:183:
+static bool engine_has_runalone_set(const struct xe_hw_engine * const hwe,
+ u32 rcu_debug1)

-:278: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #278: FILE: drivers/gpu/drm/xe/xe_eudebug_hw.c:189:
+static bool engine_has_context_set(const struct xe_hw_engine * const hwe,
+ u32 rcu_debug1)

-:910: CHECK:BRACES: Blank lines aren't necessary after an open brace '{' #910: FILE: include/uapi/drm/xe_drm_eudebug.h:185:
+struct drm_xe_eudebug_eu_control {
+

total: 0 errors, 0 warnings, 3 checks, 855 lines checked
4998a58f01f2 drm/xe/eudebug: Introduce per device attention scan worker 599ac1c9ef4e drm/xe/eudebug_test: Introduce xe_eudebug wa kunit test
-:16: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #16:
new file mode 100644

total: 0 errors, 1 warnings, 0 checks, 201 lines checked
492a2cde2be8 drm/xe: Implement SR-IOV and eudebug exclusivity
661233e82902 drm/xe: Add xe_client_debugfs and introduce debug_data file
-:29: WARNING:FILE_PATH_CHANGES: added, moved or deleted file(s), does MAINTAINERS need updating? #29:
new file mode 100644

-:83: CHECK:PARENTHESIS_ALIGNMENT: Alignment should match open parenthesis #83: FILE: drivers/gpu/drm/xe/xe_client_debugfs.c:50:
+ len = snprintf(kbuf, MAX_LINE_LEN, "%lu 0x%llx-0x%llx 0x%llx 0x%x\t%s\n",
+ vm_index,

total: 0 errors, 1 warnings, 1 checks, 161 lines checked

#24 lore raw

✓ CI.KUnit: success for Intel Xe GPU Debug Support (eudebug) v4

In reply to Mika Kuoppala
== Series Details ==

== Series Details ==

Series: Intel Xe GPU Debug Support (eudebug) v4
URL : https://patchwork.freedesktop.org/series/152682/
State : success

== Summary ==

+ trap cleanup EXIT
+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/xe/.kunitconfig [13:18:32] Configuring KUnit Kernel ...
Generating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[13:18:36] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=25
[13:19:10] Starting KUnit Kernel (1/1)...
[13:19:10] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[13:19:10] ================== guc_buf (11 subtests) ===================
[13:19:10] [PASSED] test_smallest
[13:19:10] [PASSED] test_largest
[13:19:10] [PASSED] test_granular
[13:19:10] [PASSED] test_unique
[13:19:10] [PASSED] test_overlap
[13:19:10] [PASSED] test_reusable
[13:19:10] [PASSED] test_too_big
[13:19:10] [PASSED] test_flush
[13:19:10] [PASSED] test_lookup
[13:19:10] [PASSED] test_data
[13:19:10] [PASSED] test_class
[13:19:10] ===================== [PASSED] guc_buf =====================
[13:19:10] =================== guc_dbm (7 subtests) ===================
[13:19:10] [PASSED] test_empty
[13:19:10] [PASSED] test_default
[13:19:10] ======================== test_size  ========================
[13:19:10] [PASSED] 4
[13:19:10] [PASSED] 8
[13:19:10] [PASSED] 32
[13:19:10] [PASSED] 256
[13:19:10] ==================== [PASSED] test_size ====================
[13:19:10] ======================= test_reuse  ========================
[13:19:10] [PASSED] 4
[13:19:10] [PASSED] 8
[13:19:10] [PASSED] 32
[13:19:10] [PASSED] 256
[13:19:10] =================== [PASSED] test_reuse ====================
[13:19:10] =================== test_range_overlap  ====================
[13:19:10] [PASSED] 4
[13:19:10] [PASSED] 8
[13:19:10] [PASSED] 32
[13:19:10] [PASSED] 256
[13:19:10] =============== [PASSED] test_range_overlap ================
[13:19:10] =================== test_range_compact  ====================
[13:19:10] [PASSED] 4
[13:19:10] [PASSED] 8
[13:19:10] [PASSED] 32
[13:19:10] [PASSED] 256
[13:19:10] =============== [PASSED] test_range_compact ================
[13:19:10] ==================== test_range_spare  =====================
[13:19:10] [PASSED] 4
[13:19:10] [PASSED] 8
[13:19:10] [PASSED] 32
[13:19:10] [PASSED] 256
[13:19:10] ================ [PASSED] test_range_spare =================
[13:19:10] ===================== [PASSED] guc_dbm =====================
[13:19:10] =================== guc_idm (6 subtests) ===================
[13:19:10] [PASSED] bad_init
[13:19:10] [PASSED] no_init
[13:19:10] [PASSED] init_fini
[13:19:10] [PASSED] check_used
[13:19:10] [PASSED] check_quota
[13:19:10] [PASSED] check_all
[13:19:10] ===================== [PASSED] guc_idm =====================
[13:19:10] ================== no_relay (3 subtests) ===================
[13:19:10] [PASSED] xe_drops_guc2pf_if_not_ready
[13:19:10] [PASSED] xe_drops_guc2vf_if_not_ready
[13:19:10] [PASSED] xe_rejects_send_if_not_ready
[13:19:10] ==================== [PASSED] no_relay =====================
[13:19:10] ================== pf_relay (14 subtests) ==================
[13:19:10] [PASSED] pf_rejects_guc2pf_too_short
[13:19:10] [PASSED] pf_rejects_guc2pf_too_long
[13:19:10] [PASSED] pf_rejects_guc2pf_no_payload
[13:19:10] [PASSED] pf_fails_no_payload
[13:19:10] [PASSED] pf_fails_bad_origin
[13:19:10] [PASSED] pf_fails_bad_type
[13:19:10] [PASSED] pf_txn_reports_error
[13:19:10] [PASSED] pf_txn_sends_pf2guc
[13:19:10] [PASSED] pf_sends_pf2guc
[13:19:10] [SKIPPED] pf_loopback_nop
[13:19:10] [SKIPPED] pf_loopback_echo
[13:19:10] [SKIPPED] pf_loopback_fail
[13:19:10] [SKIPPED] pf_loopback_busy
[13:19:10] [SKIPPED] pf_loopback_retry
[13:19:10] ==================== [PASSED] pf_relay =====================
[13:19:10] ================== vf_relay (3 subtests) ===================
[13:19:10] [PASSED] vf_rejects_guc2vf_too_short
[13:19:10] [PASSED] vf_rejects_guc2vf_too_long
[13:19:10] [PASSED] vf_rejects_guc2vf_no_payload
[13:19:10] ==================== [PASSED] vf_relay =====================
[13:19:10] ===================== lmtt (1 subtest) =====================
[13:19:10] ======================== test_ops  =========================
[13:19:10] [PASSED] 2-level
[13:19:10] [PASSED] multi-level
[13:19:10] ==================== [PASSED] test_ops =====================
[13:19:10] ====================== [PASSED] lmtt =======================
[13:19:10] ================= pf_service (11 subtests) =================
[13:19:10] [PASSED] pf_negotiate_any
[13:19:10] [PASSED] pf_negotiate_base_match
[13:19:10] [PASSED] pf_negotiate_base_newer
[13:19:10] [PASSED] pf_negotiate_base_next
[13:19:10] [SKIPPED] pf_negotiate_base_older
[13:19:10] [PASSED] pf_negotiate_base_prev
[13:19:10] [PASSED] pf_negotiate_latest_match
[13:19:10] [PASSED] pf_negotiate_latest_newer
[13:19:10] [PASSED] pf_negotiate_latest_next
[13:19:10] [SKIPPED] pf_negotiate_latest_older
[13:19:10] [SKIPPED] pf_negotiate_latest_prev
[13:19:10] =================== [PASSED] pf_service ====================
[13:19:10] ================== xe_eudebug (1 subtest) ==================
[13:19:10] =============== xe_eudebug_toggle_reg_kunit  ===============
[13:19:10] ========== [SKIPPED] xe_eudebug_toggle_reg_kunit ===========
[13:19:10] =================== [SKIPPED] xe_eudebug ===================
[13:19:10] =================== xe_mocs (2 subtests) ===================
[13:19:10] ================ xe_live_mocs_kernel_kunit  ================
[13:19:10] =========== [SKIPPED] xe_live_mocs_kernel_kunit ============
[13:19:10] ================ xe_live_mocs_reset_kunit  =================
[13:19:10] ============ [SKIPPED] xe_live_mocs_reset_kunit ============
[13:19:10] ==================== [SKIPPED] xe_mocs =====================
[13:19:10] ================= xe_migrate (2 subtests) ==================
[13:19:10] ================= xe_migrate_sanity_kunit  =================
[13:19:10] ============ [SKIPPED] xe_migrate_sanity_kunit =============
[13:19:10] ================== xe_validate_ccs_kunit  ==================
[13:19:10] ============= [SKIPPED] xe_validate_ccs_kunit ==============
[13:19:10] =================== [SKIPPED] xe_migrate ===================
[13:19:10] ================== xe_dma_buf (1 subtest) ==================
[13:19:10] ==================== xe_dma_buf_kunit  =====================
[13:19:10] ================ [SKIPPED] xe_dma_buf_kunit ================
[13:19:10] =================== [SKIPPED] xe_dma_buf ===================
[13:19:10] ================= xe_bo_shrink (1 subtest) =================
[13:19:10] =================== xe_bo_shrink_kunit  ====================
[13:19:10] =============== [SKIPPED] xe_bo_shrink_kunit ===============
[13:19:10] ================== [SKIPPED] xe_bo_shrink ==================
[13:19:10] ==================== xe_bo (2 subtests) ====================
[13:19:10] ================== xe_ccs_migrate_kunit  ===================
[13:19:10] ============== [SKIPPED] xe_ccs_migrate_kunit ==============
[13:19:10] ==================== xe_bo_evict_kunit  ====================
[13:19:10] =============== [SKIPPED] xe_bo_evict_kunit ================
[13:19:10] ===================== [SKIPPED] xe_bo ======================
[13:19:10] ==================== args (11 subtests) ====================
[13:19:10] [PASSED] count_args_test
[13:19:10] [PASSED] call_args_example
[13:19:10] [PASSED] call_args_test
[13:19:10] [PASSED] drop_first_arg_example
[13:19:10] [PASSED] drop_first_arg_test
[13:19:10] [PASSED] first_arg_example
[13:19:10] [PASSED] first_arg_test
[13:19:10] [PASSED] last_arg_example
[13:19:10] [PASSED] last_arg_test
[13:19:10] [PASSED] pick_arg_example
[13:19:10] [PASSED] sep_comma_example
[13:19:10] ====================== [PASSED] args =======================
[13:19:10] =================== xe_pci (3 subtests) ====================
[13:19:10] ==================== check_graphics_ip  ====================
[13:19:10] [PASSED] 12.70 Xe_LPG
[13:19:10] [PASSED] 12.71 Xe_LPG
[13:19:10] [PASSED] 12.74 Xe_LPG+
[13:19:10] [PASSED] 20.01 Xe2_HPG
[13:19:10] [PASSED] 20.02 Xe2_HPG
[13:19:10] [PASSED] 20.04 Xe2_LPG
[13:19:10] [PASSED] 30.00 Xe3_LPG
[13:19:10] [PASSED] 30.01 Xe3_LPG
[13:19:10] [PASSED] 30.03 Xe3_LPG
[13:19:10] ================ [PASSED] check_graphics_ip ================
[13:19:10] ===================== check_media_ip  ======================
[13:19:10] [PASSED] 13.00 Xe_LPM+
[13:19:10] [PASSED] 13.01 Xe2_HPM
[13:19:10] [PASSED] 20.00 Xe2_LPM
[13:19:10] [PASSED] 30.00 Xe3_LPM
[13:19:10] [PASSED] 30.02 Xe3_LPM
[13:19:10] ================= [PASSED] check_media_ip ==================
[13:19:10] ================= check_platform_gt_count  =================
[13:19:10] [PASSED] 0x9A60 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A68 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A70 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A40 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A49 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A59 (TIGERLAKE)
[13:19:10] [PASSED] 0x9A78 (TIGERLAKE)
[13:19:10] [PASSED] 0x9AC0 (TIGERLAKE)
[13:19:10] [PASSED] 0x9AC9 (TIGERLAKE)
[13:19:10] [PASSED] 0x9AD9 (TIGERLAKE)
[13:19:10] [PASSED] 0x9AF8 (TIGERLAKE)
[13:19:10] [PASSED] 0x4C80 (ROCKETLAKE)
[13:19:10] [PASSED] 0x4C8A (ROCKETLAKE)
[13:19:10] [PASSED] 0x4C8B (ROCKETLAKE)
[13:19:10] [PASSED] 0x4C8C (ROCKETLAKE)
[13:19:10] [PASSED] 0x4C90 (ROCKETLAKE)
[13:19:10] [PASSED] 0x4C9A (ROCKETLAKE)
[13:19:10] [PASSED] 0x4680 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4682 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4688 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x468A (ALDERLAKE_S)
[13:19:10] [PASSED] 0x468B (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4690 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4692 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4693 (ALDERLAKE_S)
[13:19:10] [PASSED] 0x46A0 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46A1 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46A2 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46A3 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46A6 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46A8 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46AA (ALDERLAKE_P)
[13:19:10] [PASSED] 0x462A (ALDERLAKE_P)
[13:19:10] [PASSED] 0x4626 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x4628 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46B0 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46B1 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46B2 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46B3 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46C0 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46C1 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46C2 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46C3 (ALDERLAKE_P)
[13:19:10] [PASSED] 0x46D0 (ALDERLAKE_N)
[13:19:10] [PASSED] 0x46D1 (ALDERLAKE_N)
[13:19:10] [PASSED] 0x46D2 (ALDERLAKE_N)
[13:19:10] [PASSED] 0x46D3 (ALDERLAKE_N)
[13:19:10] [PASSED] 0x46D4 (ALDERLAKE_N)
[13:19:10] [PASSED] 0xA721 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7A1 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7A9 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7AC (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7AD (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA720 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7A0 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7A8 (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7AA (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA7AB (ALDERLAKE_P)
[13:19:10] [PASSED] 0xA780 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA781 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA782 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA783 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA788 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA789 (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA78A (ALDERLAKE_S)
[13:19:10] [PASSED] 0xA78B (ALDERLAKE_S)
[13:19:10] [PASSED] 0x4905 (DG1)
[13:19:10] [PASSED] 0x4906 (DG1)
[13:19:10] [PASSED] 0x4907 (DG1)
[13:19:10] [PASSED] 0x4908 (DG1)
[13:19:10] [PASSED] 0x4909 (DG1)
[13:19:10] [PASSED] 0x56C0 (DG2)
[13:19:10] [PASSED] 0x56C2 (DG2)
[13:19:10] [PASSED] 0x56C1 (DG2)
[13:19:10] [PASSED] 0x7D51 (METEORLAKE)
[13:19:10] [PASSED] 0x7DD1 (METEORLAKE)
[13:19:10] [PASSED] 0x7D41 (METEORLAKE)
[13:19:10] [PASSED] 0x7D67 (METEORLAKE)
[13:19:10] [PASSED] 0xB640 (METEORLAKE)
[13:19:10] [PASSED] 0x56A0 (DG2)
[13:19:10] [PASSED] 0x56A1 (DG2)
[13:19:10] [PASSED] 0x56A2 (DG2)
[13:19:10] [PASSED] 0x56BE (DG2)
[13:19:10] [PASSED] 0x56BF (DG2)
[13:19:10] [PASSED] 0x5690 (DG2)
[13:19:10] [PASSED] 0x5691 (DG2)
[13:19:10] [PASSED] 0x5692 (DG2)
[13:19:10] [PASSED] 0x56A5 (DG2)
[13:19:10] [PASSED] 0x56A6 (DG2)
[13:19:10] [PASSED] 0x56B0 (DG2)
[13:19:10] [PASSED] 0x56B1 (DG2)
[13:19:10] [PASSED] 0x56BA (DG2)
[13:19:10] [PASSED] 0x56BB (DG2)
[13:19:10] [PASSED] 0x56BC (DG2)
[13:19:10] [PASSED] 0x56BD (DG2)
[13:19:10] [PASSED] 0x5693 (DG2)
[13:19:10] [PASSED] 0x5694 (DG2)
[13:19:10] [PASSED] 0x5695 (DG2)
[13:19:10] [PASSED] 0x56A3 (DG2)
[13:19:10] [PASSED] 0x56A4 (DG2)
[13:19:10] [PASSED] 0x56B2 (DG2)
[13:19:10] [PASSED] 0x56B3 (DG2)
[13:19:10] [PASSED] 0x5696 (DG2)
[13:19:10] [PASSED] 0x5697 (DG2)
[13:19:10] [PASSED] 0xB69 (PVC)
[13:19:10] [PASSED] 0xB6E (PVC)
[13:19:10] [PASSED] 0xBD4 (PVC)
[13:19:10] [PASSED] 0xBD5 (PVC)
[13:19:10] [PASSED] 0xBD6 (PVC)
[13:19:10] [PASSED] 0xBD7 (PVC)
[13:19:10] [PASSED] 0xBD8 (PVC)
[13:19:10] [PASSED] 0xBD9 (PVC)
[13:19:10] [PASSED] 0xBDA (PVC)
[13:19:10] [PASSED] 0xBDB (PVC)
[13:19:10] [PASSED] 0xBE0 (PVC)
[13:19:10] [PASSED] 0xBE1 (PVC)
[13:19:10] [PASSED] 0xBE5 (PVC)
[13:19:10] [PASSED] 0x7D40 (METEORLAKE)
[13:19:10] [PASSED] 0x7D45 (METEORLAKE)
[13:19:10] [PASSED] 0x7D55 (METEORLAKE)
[13:19:10] [PASSED] 0x7D60 (METEORLAKE)
[13:19:10] [PASSED] 0x7DD5 (METEORLAKE)
[13:19:10] [PASSED] 0x6420 (LUNARLAKE)
[13:19:10] [PASSED] 0x64A0 (LUNARLAKE)
[13:19:10] [PASSED] 0x64B0 (LUNARLAKE)
[13:19:10] [PASSED] 0xE202 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE209 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE20B (BATTLEMAGE)
[13:19:10] [PASSED] 0xE20C (BATTLEMAGE)
[13:19:10] [PASSED] 0xE20D (BATTLEMAGE)
[13:19:10] [PASSED] 0xE210 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE211 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE212 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE216 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE220 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE221 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE222 (BATTLEMAGE)
[13:19:10] [PASSED] 0xE223 (BATTLEMAGE)
[13:19:10] [PASSED] 0xB080 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB081 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB082 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB083 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB084 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB085 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB086 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB087 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB08F (PANTHERLAKE)
[13:19:10] [PASSED] 0xB090 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB0A0 (PANTHERLAKE)
[13:19:10] [PASSED] 0xB0B0 (PANTHERLAKE)
[13:19:10] [PASSED] 0xFD80 (PANTHERLAKE)
[13:19:10] [PASSED] 0xFD81 (PANTHERLAKE)
[13:19:10] ============= [PASSED] check_platform_gt_count =============
[13:19:10] ===================== [PASSED] xe_pci ======================
[13:19:10] =================== xe_rtp (2 subtests) ====================
[13:19:10] =============== xe_rtp_process_to_sr_tests  ================
[13:19:10] [PASSED] coalesce-same-reg
[13:19:10] [PASSED] no-match-no-add
[13:19:10] [PASSED] match-or
[13:19:10] [PASSED] match-or-xfail
[13:19:10] [PASSED] no-match-no-add-multiple-rules
[13:19:10] [PASSED] two-regs-two-entries
[13:19:10] [PASSED] clr-one-set-other
[13:19:10] [PASSED] set-field
[13:19:10] [PASSED] conflict-duplicate
[13:19:10] [PASSED] conflict-not-disjoint
[13:19:10] [PASSED] conflict-reg-type
[13:19:10] =========== [PASSED] xe_rtp_process_to_sr_tests ============
[13:19:10] ================== xe_rtp_process_tests  ===================
[13:19:10] [PASSED] active1
[13:19:10] [PASSED] active2
[13:19:10] [PASSED] active-inactive
[13:19:10] [PASSED] inactive-active
[13:19:10] [PASSED] inactive-1st_or_active-inactive
[13:19:10] [PASSED] inactive-2nd_or_active-inactive
[13:19:10] [PASSED] inactive-last_or_active-inactive
[13:19:10] [PASSED] inactive-no_or_active-inactive
[13:19:10] ============== [PASSED] xe_rtp_process_tests ===============
[13:19:10] ===================== [PASSED] xe_rtp ======================
[13:19:10] ==================== xe_wa (1 subtest) =====================
[13:19:10] ======================== xe_wa_gt  =========================
[13:19:10] [PASSED] TIGERLAKE (B0)
[13:19:10] [PASSED] DG1 (A0)
[13:19:10] [PASSED] DG1 (B0)
[13:19:10] [PASSED] ALDERLAKE_S (A0)
[13:19:10] [PASSED] ALDERLAKE_S (B0)
[13:19:10] [PASSED] ALDERLAKE_S (C0)
[13:19:10] [PASSED] ALDERLAKE_S (D0)
[13:19:10] [PASSED] ALDERLAKE_P (A0)
[13:19:10] [PASSED] ALDERLAKE_P (B0)
[13:19:10] [PASSED] ALDERLAKE_P (C0)
[13:19:10] [PASSED] ALDERLAKE_S_RPLS (D0)
[13:19:10] [PASSED] ALDERLAKE_P_RPLU (E0)
stty: 'standard input': Inappropriate ioctl for device
[13:19:10] [PASSED] DG2_G10 (C0)
[13:19:10] [PASSED] DG2_G11 (B1)
[13:19:10] [PASSED] DG2_G12 (A1)
[13:19:10] [PASSED] METEORLAKE (g:A0, m:A0)
[13:19:10] [PASSED] METEORLAKE (g:A0, m:A0)
[13:19:10] [PASSED] METEORLAKE (g:A0, m:A0)
[13:19:10] [PASSED] LUNARLAKE (g:A0, m:A0)
[13:19:10] [PASSED] LUNARLAKE (g:B0, m:A0)
[13:19:10] [PASSED] BATTLEMAGE (g:A0, m:A1)
[13:19:10] ==================== [PASSED] xe_wa_gt =====================
[13:19:10] ====================== [PASSED] xe_wa ======================
[13:19:10] ============================================================
[13:19:10] Testing complete. Ran 298 tests: passed: 281, skipped: 17
[13:19:10] Elapsed time: 38.057s total, 4.185s configuring, 33.505s building, 0.326s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/tests/.kunitconfig [13:19:10] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[13:19:12] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=25
[13:19:38] Starting KUnit Kernel (1/1)...
[13:19:38] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[13:19:38] == drm_test_atomic_get_connector_for_encoder (1 subtest) ===
[13:19:38] [PASSED] drm_test_drm_atomic_get_connector_for_encoder
[13:19:38] ==== [PASSED] drm_test_atomic_get_connector_for_encoder ====
[13:19:38] =========== drm_validate_clone_mode (2 subtests) ===========
[13:19:38] ============== drm_test_check_in_clone_mode  ===============
[13:19:38] [PASSED] in_clone_mode
[13:19:38] [PASSED] not_in_clone_mode
[13:19:38] ========== [PASSED] drm_test_check_in_clone_mode ===========
[13:19:38] =============== drm_test_check_valid_clones  ===============
[13:19:38] [PASSED] not_in_clone_mode
[13:19:38] [PASSED] valid_clone
[13:19:38] [PASSED] invalid_clone
[13:19:38] =========== [PASSED] drm_test_check_valid_clones ===========
[13:19:38] ============= [PASSED] drm_validate_clone_mode =============
[13:19:38] ============= drm_validate_modeset (1 subtest) =============
[13:19:38] [PASSED] drm_test_check_connector_changed_modeset
[13:19:38] ============== [PASSED] drm_validate_modeset ===============
[13:19:38] ====== drm_test_bridge_get_current_state (2 subtests) ======
[13:19:38] [PASSED] drm_test_drm_bridge_get_current_state_atomic
[13:19:38] [PASSED] drm_test_drm_bridge_get_current_state_legacy
[13:19:38] ======== [PASSED] drm_test_bridge_get_current_state ========
[13:19:38] ====== drm_test_bridge_helper_reset_crtc (3 subtests) ======
[13:19:38] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic
[13:19:38] [PASSED] drm_test_drm_bridge_helper_reset_crtc_atomic_disabled
[13:19:38] [PASSED] drm_test_drm_bridge_helper_reset_crtc_legacy
[13:19:38] ======== [PASSED] drm_test_bridge_helper_reset_crtc ========
[13:19:38] ============== drm_bridge_alloc (2 subtests) ===============
[13:19:38] [PASSED] drm_test_drm_bridge_alloc_basic
[13:19:38] [PASSED] drm_test_drm_bridge_alloc_get_put
[13:19:38] ================ [PASSED] drm_bridge_alloc =================
[13:19:38] ================== drm_buddy (7 subtests) ==================
[13:19:38] [PASSED] drm_test_buddy_alloc_limit
[13:19:38] [PASSED] drm_test_buddy_alloc_optimistic
[13:19:38] [PASSED] drm_test_buddy_alloc_pessimistic
[13:19:38] [PASSED] drm_test_buddy_alloc_pathological
[13:19:38] [PASSED] drm_test_buddy_alloc_contiguous
[13:19:38] [PASSED] drm_test_buddy_alloc_clear
[13:19:38] [PASSED] drm_test_buddy_alloc_range_bias
[13:19:38] ==================== [PASSED] drm_buddy ====================
[13:19:38] ============= drm_cmdline_parser (40 subtests) =============
[13:19:38] [PASSED] drm_test_cmdline_force_d_only
[13:19:38] [PASSED] drm_test_cmdline_force_D_only_dvi
[13:19:38] [PASSED] drm_test_cmdline_force_D_only_hdmi
[13:19:38] [PASSED] drm_test_cmdline_force_D_only_not_digital
[13:19:38] [PASSED] drm_test_cmdline_force_e_only
[13:19:38] [PASSED] drm_test_cmdline_res
[13:19:38] [PASSED] drm_test_cmdline_res_vesa
[13:19:38] [PASSED] drm_test_cmdline_res_vesa_rblank
[13:19:38] [PASSED] drm_test_cmdline_res_rblank
[13:19:38] [PASSED] drm_test_cmdline_res_bpp
[13:19:38] [PASSED] drm_test_cmdline_res_refresh
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_margins
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_off
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_analog
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_force_on_digital
[13:19:38] [PASSED] drm_test_cmdline_res_bpp_refresh_interlaced_margins_force_on
[13:19:38] [PASSED] drm_test_cmdline_res_margins_force_on
[13:19:38] [PASSED] drm_test_cmdline_res_vesa_margins
[13:19:38] [PASSED] drm_test_cmdline_name
[13:19:38] [PASSED] drm_test_cmdline_name_bpp
[13:19:38] [PASSED] drm_test_cmdline_name_option
[13:19:38] [PASSED] drm_test_cmdline_name_bpp_option
[13:19:38] [PASSED] drm_test_cmdline_rotate_0
[13:19:38] [PASSED] drm_test_cmdline_rotate_90
[13:19:38] [PASSED] drm_test_cmdline_rotate_180
[13:19:38] [PASSED] drm_test_cmdline_rotate_270
[13:19:38] [PASSED] drm_test_cmdline_hmirror
[13:19:38] [PASSED] drm_test_cmdline_vmirror
[13:19:38] [PASSED] drm_test_cmdline_margin_options
[13:19:38] [PASSED] drm_test_cmdline_multiple_options
[13:19:38] [PASSED] drm_test_cmdline_bpp_extra_and_option
[13:19:38] [PASSED] drm_test_cmdline_extra_and_option
[13:19:38] [PASSED] drm_test_cmdline_freestanding_options
[13:19:38] [PASSED] drm_test_cmdline_freestanding_force_e_and_options
[13:19:38] [PASSED] drm_test_cmdline_panel_orientation
[13:19:38] ================ drm_test_cmdline_invalid  =================
[13:19:38] [PASSED] margin_only
[13:19:38] [PASSED] interlace_only
[13:19:38] [PASSED] res_missing_x
[13:19:38] [PASSED] res_missing_y
[13:19:38] [PASSED] res_bad_y
[13:19:38] [PASSED] res_missing_y_bpp
[13:19:38] [PASSED] res_bad_bpp
[13:19:38] [PASSED] res_bad_refresh
[13:19:38] [PASSED] res_bpp_refresh_force_on_off
[13:19:38] [PASSED] res_invalid_mode
[13:19:38] [PASSED] res_bpp_wrong_place_mode
[13:19:38] [PASSED] name_bpp_refresh
[13:19:38] [PASSED] name_refresh
[13:19:38] [PASSED] name_refresh_wrong_mode
[13:19:38] [PASSED] name_refresh_invalid_mode
[13:19:38] [PASSED] rotate_multiple
[13:19:38] [PASSED] rotate_invalid_val
[13:19:38] [PASSED] rotate_truncated
[13:19:38] [PASSED] invalid_option
[13:19:38] [PASSED] invalid_tv_option
[13:19:38] [PASSED] truncated_tv_option
[13:19:38] ============ [PASSED] drm_test_cmdline_invalid =============
[13:19:38] =============== drm_test_cmdline_tv_options  ===============
[13:19:38] [PASSED] NTSC
[13:19:38] [PASSED] NTSC_443
[13:19:38] [PASSED] NTSC_J
[13:19:38] [PASSED] PAL
[13:19:38] [PASSED] PAL_M
[13:19:38] [PASSED] PAL_N
[13:19:38] [PASSED] SECAM
[13:19:38] [PASSED] MONO_525
[13:19:38] [PASSED] MONO_625
[13:19:38] =========== [PASSED] drm_test_cmdline_tv_options ===========
[13:19:38] =============== [PASSED] drm_cmdline_parser ================
[13:19:38] ========== drmm_connector_hdmi_init (20 subtests) ==========
[13:19:38] [PASSED] drm_test_connector_hdmi_init_valid
[13:19:38] [PASSED] drm_test_connector_hdmi_init_bpc_8
[13:19:38] [PASSED] drm_test_connector_hdmi_init_bpc_10
[13:19:38] [PASSED] drm_test_connector_hdmi_init_bpc_12
[13:19:38] [PASSED] drm_test_connector_hdmi_init_bpc_invalid
[13:19:38] [PASSED] drm_test_connector_hdmi_init_bpc_null
[13:19:38] [PASSED] drm_test_connector_hdmi_init_formats_empty
[13:19:38] [PASSED] drm_test_connector_hdmi_init_formats_no_rgb
[13:19:38] === drm_test_connector_hdmi_init_formats_yuv420_allowed  ===
[13:19:38] [PASSED] supported_formats=0x9 yuv420_allowed=1
[13:19:38] [PASSED] supported_formats=0x9 yuv420_allowed=0
[13:19:38] [PASSED] supported_formats=0x3 yuv420_allowed=1
[13:19:38] [PASSED] supported_formats=0x3 yuv420_allowed=0
[13:19:38] === [PASSED] drm_test_connector_hdmi_init_formats_yuv420_allowed ===
[13:19:38] [PASSED] drm_test_connector_hdmi_init_null_ddc
[13:19:38] [PASSED] drm_test_connector_hdmi_init_null_product
[13:19:38] [PASSED] drm_test_connector_hdmi_init_null_vendor
[13:19:38] [PASSED] drm_test_connector_hdmi_init_product_length_exact
[13:19:38] [PASSED] drm_test_connector_hdmi_init_product_length_too_long
[13:19:38] [PASSED] drm_test_connector_hdmi_init_product_valid
[13:19:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_exact
[13:19:38] [PASSED] drm_test_connector_hdmi_init_vendor_length_too_long
[13:19:38] [PASSED] drm_test_connector_hdmi_init_vendor_valid
[13:19:38] ========= drm_test_connector_hdmi_init_type_valid  =========
[13:19:38] [PASSED] HDMI-A
[13:19:38] [PASSED] HDMI-B
[13:19:38] ===== [PASSED] drm_test_connector_hdmi_init_type_valid =====
[13:19:38] ======== drm_test_connector_hdmi_init_type_invalid  ========
[13:19:38] [PASSED] Unknown
[13:19:38] [PASSED] VGA
[13:19:38] [PASSED] DVI-I
[13:19:38] [PASSED] DVI-D
[13:19:38] [PASSED] DVI-A
[13:19:38] [PASSED] Composite
[13:19:38] [PASSED] SVIDEO
[13:19:38] [PASSED] LVDS
[13:19:38] [PASSED] Component
[13:19:38] [PASSED] DIN
[13:19:38] [PASSED] DP
[13:19:38] [PASSED] TV
[13:19:38] [PASSED] eDP
[13:19:38] [PASSED] Virtual
[13:19:38] [PASSED] DSI
[13:19:38] [PASSED] DPI
[13:19:38] [PASSED] Writeback
[13:19:38] [PASSED] SPI
[13:19:38] [PASSED] USB
[13:19:38] ==== [PASSED] drm_test_connector_hdmi_init_type_invalid ====
[13:19:38] ============ [PASSED] drmm_connector_hdmi_init =============
[13:19:38] ============= drmm_connector_init (3 subtests) =============
[13:19:38] [PASSED] drm_test_drmm_connector_init
[13:19:38] [PASSED] drm_test_drmm_connector_init_null_ddc
[13:19:38] ========= drm_test_drmm_connector_init_type_valid  =========
[13:19:38] [PASSED] Unknown
[13:19:38] [PASSED] VGA
[13:19:38] [PASSED] DVI-I
[13:19:38] [PASSED] DVI-D
[13:19:38] [PASSED] DVI-A
[13:19:38] [PASSED] Composite
[13:19:38] [PASSED] SVIDEO
[13:19:38] [PASSED] LVDS
[13:19:38] [PASSED] Component
[13:19:38] [PASSED] DIN
[13:19:38] [PASSED] DP
[13:19:38] [PASSED] HDMI-A
[13:19:38] [PASSED] HDMI-B
[13:19:38] [PASSED] TV
[13:19:38] [PASSED] eDP
[13:19:38] [PASSED] Virtual
[13:19:38] [PASSED] DSI
[13:19:38] [PASSED] DPI
[13:19:38] [PASSED] Writeback
[13:19:38] [PASSED] SPI
[13:19:38] [PASSED] USB
[13:19:38] ===== [PASSED] drm_test_drmm_connector_init_type_valid =====
[13:19:38] =============== [PASSED] drmm_connector_init ===============
[13:19:38] ========= drm_connector_dynamic_init (6 subtests) ==========
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_init
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_init_null_ddc
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_init_not_added
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_init_properties
[13:19:38] ===== drm_test_drm_connector_dynamic_init_type_valid  ======
[13:19:38] [PASSED] Unknown
[13:19:38] [PASSED] VGA
[13:19:38] [PASSED] DVI-I
[13:19:38] [PASSED] DVI-D
[13:19:38] [PASSED] DVI-A
[13:19:38] [PASSED] Composite
[13:19:38] [PASSED] SVIDEO
[13:19:38] [PASSED] LVDS
[13:19:38] [PASSED] Component
[13:19:38] [PASSED] DIN
[13:19:38] [PASSED] DP
[13:19:38] [PASSED] HDMI-A
[13:19:38] [PASSED] HDMI-B
[13:19:38] [PASSED] TV
[13:19:38] [PASSED] eDP
[13:19:38] [PASSED] Virtual
[13:19:38] [PASSED] DSI
[13:19:38] [PASSED] DPI
[13:19:38] [PASSED] Writeback
[13:19:38] [PASSED] SPI
[13:19:38] [PASSED] USB
[13:19:38] = [PASSED] drm_test_drm_connector_dynamic_init_type_valid ==
[13:19:38] ======== drm_test_drm_connector_dynamic_init_name  =========
[13:19:38] [PASSED] Unknown
[13:19:38] [PASSED] VGA
[13:19:38] [PASSED] DVI-I
[13:19:38] [PASSED] DVI-D
[13:19:38] [PASSED] DVI-A
[13:19:38] [PASSED] Composite
[13:19:38] [PASSED] SVIDEO
[13:19:38] [PASSED] LVDS
[13:19:38] [PASSED] Component
[13:19:38] [PASSED] DIN
[13:19:38] [PASSED] DP
[13:19:38] [PASSED] HDMI-A
[13:19:38] [PASSED] HDMI-B
[13:19:38] [PASSED] TV
[13:19:38] [PASSED] eDP
[13:19:38] [PASSED] Virtual
[13:19:38] [PASSED] DSI
[13:19:38] [PASSED] DPI
[13:19:38] [PASSED] Writeback
[13:19:38] [PASSED] SPI
[13:19:38] [PASSED] USB
[13:19:38] ==== [PASSED] drm_test_drm_connector_dynamic_init_name =====
[13:19:38] =========== [PASSED] drm_connector_dynamic_init ============
[13:19:38] ==== drm_connector_dynamic_register_early (4 subtests) =====
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_early_on_list
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_early_defer
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_early_no_init
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_early_no_mode_object
[13:19:38] ====== [PASSED] drm_connector_dynamic_register_early =======
[13:19:38] ======= drm_connector_dynamic_register (7 subtests) ========
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_on_list
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_no_defer
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_no_init
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_mode_object
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_sysfs
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_sysfs_name
[13:19:38] [PASSED] drm_test_drm_connector_dynamic_register_debugfs
[13:19:38] ========= [PASSED] drm_connector_dynamic_register ==========
[13:19:38] = drm_connector_attach_broadcast_rgb_property (2 subtests) =
[13:19:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property
[13:19:38] [PASSED] drm_test_drm_connector_attach_broadcast_rgb_property_hdmi_connector
[13:19:38] === [PASSED] drm_connector_attach_broadcast_rgb_property ===
[13:19:38] ========== drm_get_tv_mode_from_name (2 subtests) ==========
[13:19:38] ========== drm_test_get_tv_mode_from_name_valid  ===========
[13:19:38] [PASSED] NTSC
[13:19:38] [PASSED] NTSC-443
[13:19:38] [PASSED] NTSC-J
[13:19:38] [PASSED] PAL
[13:19:38] [PASSED] PAL-M
[13:19:38] [PASSED] PAL-N
[13:19:38] [PASSED] SECAM
[13:19:38] [PASSED] Mono
[13:19:38] ====== [PASSED] drm_test_get_tv_mode_from_name_valid =======
[13:19:38] [PASSED] drm_test_get_tv_mode_from_name_truncated
[13:19:38] ============ [PASSED] drm_get_tv_mode_from_name ============
[13:19:38] = drm_test_connector_hdmi_compute_mode_clock (12 subtests) =
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_10bpc_vic_1
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_12bpc_vic_1
[13:19:38] [PASSED] drm_test_drm_hdmi_compute_mode_clock_rgb_double
[13:19:38] = drm_test_connector_hdmi_compute_mode_clock_yuv420_valid  =
[13:19:38] [PASSED] VIC 96
[13:19:38] [PASSED] VIC 97
[13:19:38] [PASSED] VIC 101
[13:19:38] [PASSED] VIC 102
[13:19:38] [PASSED] VIC 106
[13:19:38] [PASSED] VIC 107
[13:19:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_valid ===
[13:19:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_10_bpc
[13:19:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv420_12_bpc
[13:19:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_8_bpc
[13:19:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_10_bpc
[13:19:38] [PASSED] drm_test_connector_hdmi_compute_mode_clock_yuv422_12_bpc
[13:19:38] === [PASSED] drm_test_connector_hdmi_compute_mode_clock ====
[13:19:38] == drm_hdmi_connector_get_broadcast_rgb_name (2 subtests) ==
[13:19:38] === drm_test_drm_hdmi_connector_get_broadcast_rgb_name  ====
[13:19:38] [PASSED] Automatic
[13:19:38] [PASSED] Full
[13:19:38] [PASSED] Limited 16:235
[13:19:38] === [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name ===
[13:19:38] [PASSED] drm_test_drm_hdmi_connector_get_broadcast_rgb_name_invalid
[13:19:38] ==== [PASSED] drm_hdmi_connector_get_broadcast_rgb_name ====
[13:19:38] == drm_hdmi_connector_get_output_format_name (2 subtests) ==
[13:19:38] === drm_test_drm_hdmi_connector_get_output_format_name  ====
[13:19:38] [PASSED] RGB
[13:19:38] [PASSED] YUV 4:2:0
[13:19:38] [PASSED] YUV 4:2:2
[13:19:38] [PASSED] YUV 4:4:4
[13:19:38] === [PASSED] drm_test_drm_hdmi_connector_get_output_format_name ===
[13:19:38] [PASSED] drm_test_drm_hdmi_connector_get_output_format_name_invalid
[13:19:38] ==== [PASSED] drm_hdmi_connector_get_output_format_name ====
[13:19:38] ============= drm_damage_helper (21 subtests) ==============
[13:19:38] [PASSED] drm_test_damage_iter_no_damage
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_src_moved
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_fractional_src_moved
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_not_visible
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_no_crtc
[13:19:38] [PASSED] drm_test_damage_iter_no_damage_no_fb
[13:19:38] [PASSED] drm_test_damage_iter_simple_damage
[13:19:38] [PASSED] drm_test_damage_iter_single_damage
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_intersect_src
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_outside_src
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_intersect_fractional_src
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_outside_fractional_src
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_src_moved
[13:19:38] [PASSED] drm_test_damage_iter_single_damage_fractional_src_moved
[13:19:38] [PASSED] drm_test_damage_iter_damage
[13:19:38] [PASSED] drm_test_damage_iter_damage_one_intersect
[13:19:38] [PASSED] drm_test_damage_iter_damage_one_outside
[13:19:38] [PASSED] drm_test_damage_iter_damage_src_moved
[13:19:38] [PASSED] drm_test_damage_iter_damage_not_visible
[13:19:38] ================ [PASSED] drm_damage_helper ================
[13:19:38] ============== drm_dp_mst_helper (3 subtests) ==============
[13:19:38] ============== drm_test_dp_mst_calc_pbn_mode  ==============
[13:19:38] [PASSED] Clock 154000 BPP 30 DSC disabled
[13:19:38] [PASSED] Clock 234000 BPP 30 DSC disabled
[13:19:38] [PASSED] Clock 297000 BPP 24 DSC disabled
[13:19:38] [PASSED] Clock 332880 BPP 24 DSC enabled
[13:19:38] [PASSED] Clock 324540 BPP 24 DSC enabled
[13:19:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_mode ==========
[13:19:38] ============== drm_test_dp_mst_calc_pbn_div  ===============
[13:19:38] [PASSED] Link rate 2000000 lane count 4
[13:19:38] [PASSED] Link rate 2000000 lane count 2
[13:19:38] [PASSED] Link rate 2000000 lane count 1
[13:19:38] [PASSED] Link rate 1350000 lane count 4
[13:19:38] [PASSED] Link rate 1350000 lane count 2
[13:19:38] [PASSED] Link rate 1350000 lane count 1
[13:19:38] [PASSED] Link rate 1000000 lane count 4
[13:19:38] [PASSED] Link rate 1000000 lane count 2
[13:19:38] [PASSED] Link rate 1000000 lane count 1
[13:19:38] [PASSED] Link rate 810000 lane count 4
[13:19:38] [PASSED] Link rate 810000 lane count 2
[13:19:38] [PASSED] Link rate 810000 lane count 1
[13:19:38] [PASSED] Link rate 540000 lane count 4
[13:19:38] [PASSED] Link rate 540000 lane count 2
[13:19:38] [PASSED] Link rate 540000 lane count 1
[13:19:38] [PASSED] Link rate 270000 lane count 4
[13:19:38] [PASSED] Link rate 270000 lane count 2
[13:19:38] [PASSED] Link rate 270000 lane count 1
[13:19:38] [PASSED] Link rate 162000 lane count 4
[13:19:38] [PASSED] Link rate 162000 lane count 2
[13:19:38] [PASSED] Link rate 162000 lane count 1
[13:19:38] ========== [PASSED] drm_test_dp_mst_calc_pbn_div ===========
[13:19:38] ========= drm_test_dp_mst_sideband_msg_req_decode  =========
[13:19:38] [PASSED] DP_ENUM_PATH_RESOURCES with port number
[13:19:38] [PASSED] DP_POWER_UP_PHY with port number
[13:19:38] [PASSED] DP_POWER_DOWN_PHY with port number
[13:19:38] [PASSED] DP_ALLOCATE_PAYLOAD with SDP stream sinks
[13:19:38] [PASSED] DP_ALLOCATE_PAYLOAD with port number
[13:19:38] [PASSED] DP_ALLOCATE_PAYLOAD with VCPI
[13:19:38] [PASSED] DP_ALLOCATE_PAYLOAD with PBN
[13:19:38] [PASSED] DP_QUERY_PAYLOAD with port number
[13:19:38] [PASSED] DP_QUERY_PAYLOAD with VCPI
[13:19:38] [PASSED] DP_REMOTE_DPCD_READ with port number
[13:19:38] [PASSED] DP_REMOTE_DPCD_READ with DPCD address
[13:19:38] [PASSED] DP_REMOTE_DPCD_READ with max number of bytes
[13:19:38] [PASSED] DP_REMOTE_DPCD_WRITE with port number
[13:19:38] [PASSED] DP_REMOTE_DPCD_WRITE with DPCD address
[13:19:38] [PASSED] DP_REMOTE_DPCD_WRITE with data array
[13:19:38] [PASSED] DP_REMOTE_I2C_READ with port number
[13:19:38] [PASSED] DP_REMOTE_I2C_READ with I2C device ID
[13:19:38] [PASSED] DP_REMOTE_I2C_READ with transactions array
[13:19:38] [PASSED] DP_REMOTE_I2C_WRITE with port number
[13:19:38] [PASSED] DP_REMOTE_I2C_WRITE with I2C device ID
[13:19:38] [PASSED] DP_REMOTE_I2C_WRITE with data array
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream ID
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with client ID
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream event
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with valid stream event
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with stream behavior
[13:19:38] [PASSED] DP_QUERY_STREAM_ENC_STATUS with a valid stream behavior
[13:19:38] ===== [PASSED] drm_test_dp_mst_sideband_msg_req_decode =====
[13:19:38] ================ [PASSED] drm_dp_mst_helper ================
[13:19:38] ================== drm_exec (7 subtests) ===================
[13:19:38] [PASSED] sanitycheck
[13:19:38] [PASSED] test_lock
[13:19:38] [PASSED] test_lock_unlock
[13:19:38] [PASSED] test_duplicates
[13:19:38] [PASSED] test_prepare
[13:19:38] [PASSED] test_prepare_array
[13:19:38] [PASSED] test_multiple_loops
[13:19:38] ==================== [PASSED] drm_exec =====================
[13:19:38] =========== drm_format_helper_test (17 subtests) ===========
[13:19:38] ============== drm_test_fb_xrgb8888_to_gray8  ==============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========== [PASSED] drm_test_fb_xrgb8888_to_gray8 ==========
[13:19:38] ============= drm_test_fb_xrgb8888_to_rgb332  ==============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb332 ==========
[13:19:38] ============= drm_test_fb_xrgb8888_to_rgb565  ==============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb565 ==========
[13:19:38] ============ drm_test_fb_xrgb8888_to_xrgb1555  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xrgb1555 =========
[13:19:38] ============ drm_test_fb_xrgb8888_to_argb1555  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb1555 =========
[13:19:38] ============ drm_test_fb_xrgb8888_to_rgba5551  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_rgba5551 =========
[13:19:38] ============= drm_test_fb_xrgb8888_to_rgb888  ==============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========= [PASSED] drm_test_fb_xrgb8888_to_rgb888 ==========
[13:19:38] ============= drm_test_fb_xrgb8888_to_bgr888  ==============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========= [PASSED] drm_test_fb_xrgb8888_to_bgr888 ==========
[13:19:38] ============ drm_test_fb_xrgb8888_to_argb8888  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_argb8888 =========
[13:19:38] =========== drm_test_fb_xrgb8888_to_xrgb2101010  ===========
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======= [PASSED] drm_test_fb_xrgb8888_to_xrgb2101010 =======
[13:19:38] =========== drm_test_fb_xrgb8888_to_argb2101010  ===========
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======= [PASSED] drm_test_fb_xrgb8888_to_argb2101010 =======
[13:19:38] ============== drm_test_fb_xrgb8888_to_mono  ===============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ========== [PASSED] drm_test_fb_xrgb8888_to_mono ===========
[13:19:38] ==================== drm_test_fb_swab  =====================
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ================ [PASSED] drm_test_fb_swab =================
[13:19:38] ============ drm_test_fb_xrgb8888_to_xbgr8888  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_xbgr8888 =========
[13:19:38] ============ drm_test_fb_xrgb8888_to_abgr8888  =============
[13:19:38] [PASSED] single_pixel_source_buffer
[13:19:38] [PASSED] single_pixel_clip_rectangle
[13:19:38] [PASSED] well_known_colors
[13:19:38] [PASSED] destination_pitch
[13:19:38] ======== [PASSED] drm_test_fb_xrgb8888_to_abgr8888 =========
[13:19:38] ================= drm_test_fb_clip_offset  =================
[13:19:38] [PASSED] pass through
[13:19:38] [PASSED] horizontal offset
[13:19:38] [PASSED] vertical offset
[13:19:38] [PASSED] horizontal and vertical offset
[13:19:38] [PASSED] horizontal offset (custom pitch)
[13:19:38] [PASSED] vertical offset (custom pitch)
[13:19:38] [PASSED] horizontal and vertical offset (custom pitch)
[13:19:38] ============= [PASSED] drm_test_fb_clip_offset =============
[13:19:38] =================== drm_test_fb_memcpy  ====================
[13:19:38] [PASSED] single_pixel_source_buffer: XR24 little-endian (0x34325258)
[13:19:38] [PASSED] single_pixel_source_buffer: XRA8 little-endian (0x38415258)
[13:19:38] [PASSED] single_pixel_source_buffer: YU24 little-endian (0x34325559)
[13:19:38] [PASSED] single_pixel_clip_rectangle: XB24 little-endian (0x34324258)
[13:19:38] [PASSED] single_pixel_clip_rectangle: XRA8 little-endian (0x38415258)
[13:19:38] [PASSED] single_pixel_clip_rectangle: YU24 little-endian (0x34325559)
[13:19:38] [PASSED] well_known_colors: XB24 little-endian (0x34324258)
[13:19:38] [PASSED] well_known_colors: XRA8 little-endian (0x38415258)
[13:19:38] [PASSED] well_known_colors: YU24 little-endian (0x34325559)
[13:19:38] [PASSED] destination_pitch: XB24 little-endian (0x34324258)
[13:19:38] [PASSED] destination_pitch: XRA8 little-endian (0x38415258)
[13:19:38] [PASSED] destination_pitch: YU24 little-endian (0x34325559)
[13:19:38] =============== [PASSED] drm_test_fb_memcpy ================
[13:19:38] ============= [PASSED] drm_format_helper_test ==============
[13:19:38] ================= drm_format (18 subtests) =================
[13:19:38] [PASSED] drm_test_format_block_width_invalid
[13:19:38] [PASSED] drm_test_format_block_width_one_plane
[13:19:38] [PASSED] drm_test_format_block_width_two_plane
[13:19:38] [PASSED] drm_test_format_block_width_three_plane
[13:19:38] [PASSED] drm_test_format_block_width_tiled
[13:19:38] [PASSED] drm_test_format_block_height_invalid
[13:19:38] [PASSED] drm_test_format_block_height_one_plane
[13:19:38] [PASSED] drm_test_format_block_height_two_plane
[13:19:38] [PASSED] drm_test_format_block_height_three_plane
[13:19:38] [PASSED] drm_test_format_block_height_tiled
[13:19:38] [PASSED] drm_test_format_min_pitch_invalid
[13:19:38] [PASSED] drm_test_format_min_pitch_one_plane_8bpp
[13:19:38] [PASSED] drm_test_format_min_pitch_one_plane_16bpp
[13:19:38] [PASSED] drm_test_format_min_pitch_one_plane_24bpp
[13:19:38] [PASSED] drm_test_format_min_pitch_one_plane_32bpp
[13:19:38] [PASSED] drm_test_format_min_pitch_two_plane
[13:19:38] [PASSED] drm_test_format_min_pitch_three_plane_8bpp
[13:19:38] [PASSED] drm_test_format_min_pitch_tiled
[13:19:38] =================== [PASSED] drm_format ====================
[13:19:38] ============== drm_framebuffer (10 subtests) ===============
[13:19:38] ========== drm_test_framebuffer_check_src_coords  ==========
[13:19:38] [PASSED] Success: source fits into fb
[13:19:38] [PASSED] Fail: overflowing fb with x-axis coordinate
[13:19:38] [PASSED] Fail: overflowing fb with y-axis coordinate
[13:19:38] [PASSED] Fail: overflowing fb with source width
[13:19:38] [PASSED] Fail: overflowing fb with source height
[13:19:38] ====== [PASSED] drm_test_framebuffer_check_src_coords ======
[13:19:38] [PASSED] drm_test_framebuffer_cleanup
[13:19:38] =============== drm_test_framebuffer_create  ===============
[13:19:38] [PASSED] ABGR8888 normal sizes
[13:19:38] [PASSED] ABGR8888 max sizes
[13:19:38] [PASSED] ABGR8888 pitch greater than min required
[13:19:38] [PASSED] ABGR8888 pitch less than min required
[13:19:38] [PASSED] ABGR8888 Invalid width
[13:19:38] [PASSED] ABGR8888 Invalid buffer handle
[13:19:38] [PASSED] No pixel format
[13:19:38] [PASSED] ABGR8888 Width 0
[13:19:38] [PASSED] ABGR8888 Height 0
[13:19:38] [PASSED] ABGR8888 Out of bound height * pitch combination
[13:19:38] [PASSED] ABGR8888 Large buffer offset
[13:19:38] [PASSED] ABGR8888 Buffer offset for inexistent plane
[13:19:38] [PASSED] ABGR8888 Invalid flag
[13:19:38] [PASSED] ABGR8888 Set DRM_MODE_FB_MODIFIERS without modifiers
[13:19:38] [PASSED] ABGR8888 Valid buffer modifier
[13:19:38] [PASSED] ABGR8888 Invalid buffer modifier(DRM_FORMAT_MOD_SAMSUNG_64_32_TILE)
[13:19:38] [PASSED] ABGR8888 Extra pitches without DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] ABGR8888 Extra pitches with DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] NV12 Normal sizes
[13:19:38] [PASSED] NV12 Max sizes
[13:19:38] [PASSED] NV12 Invalid pitch
[13:19:38] [PASSED] NV12 Invalid modifier/missing DRM_MODE_FB_MODIFIERS flag
[13:19:38] [PASSED] NV12 different  modifier per-plane
[13:19:38] [PASSED] NV12 with DRM_FORMAT_MOD_SAMSUNG_64_32_TILE
[13:19:38] [PASSED] NV12 Valid modifiers without DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] NV12 Modifier for inexistent plane
[13:19:38] [PASSED] NV12 Handle for inexistent plane
[13:19:38] [PASSED] NV12 Handle for inexistent plane without DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] YVU420 DRM_MODE_FB_MODIFIERS set without modifier
[13:19:38] [PASSED] YVU420 Normal sizes
[13:19:38] [PASSED] YVU420 Max sizes
[13:19:38] [PASSED] YVU420 Invalid pitch
[13:19:38] [PASSED] YVU420 Different pitches
[13:19:38] [PASSED] YVU420 Different buffer offsets/pitches
[13:19:38] [PASSED] YVU420 Modifier set just for plane 0, without DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] YVU420 Modifier set just for planes 0, 1, without DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] YVU420 Modifier set just for plane 0, 1, with DRM_MODE_FB_MODIFIERS
[13:19:38] [PASSED] YVU420 Valid modifier
[13:19:38] [PASSED] YVU420 Different modifiers per plane
[13:19:38] [PASSED] YVU420 Modifier for inexistent plane
[13:19:38] [PASSED] YUV420_10BIT Invalid modifier(DRM_FORMAT_MOD_LINEAR)
[13:19:38] [PASSED] X0L2 Normal sizes
[13:19:38] [PASSED] X0L2 Max sizes
[13:19:38] [PASSED] X0L2 Invalid pitch
[13:19:38] [PASSED] X0L2 Pitch greater than minimum required
[13:19:38] [PASSED] X0L2 Handle for inexistent plane
[13:19:38] [PASSED] X0L2 Offset for inexistent plane, without DRM_MODE_FB_MODIFIERS set
[13:19:38] [PASSED] X0L2 Modifier without DRM_MODE_FB_MODIFIERS set
[13:19:38] [PASSED] X0L2 Valid modifier
[13:19:38] [PASSED] X0L2 Modifier for inexistent plane
[13:19:38] =========== [PASSED] drm_test_framebuffer_create ===========
[13:19:38] [PASSED] drm_test_framebuffer_free
[13:19:38] [PASSED] drm_test_framebuffer_init
[13:19:38] [PASSED] drm_test_framebuffer_init_bad_format
[13:19:38] [PASSED] drm_test_framebuffer_init_dev_mismatch
[13:19:38] [PASSED] drm_test_framebuffer_lookup
[13:19:38] [PASSED] drm_test_framebuffer_lookup_inexistent
[13:19:38] [PASSED] drm_test_framebuffer_modifiers_not_supported
[13:19:38] ================= [PASSED] drm_framebuffer =================
[13:19:38] ================ drm_gem_shmem (8 subtests) ================
[13:19:38] [PASSED] drm_gem_shmem_test_obj_create
[13:19:38] [PASSED] drm_gem_shmem_test_obj_create_private
[13:19:38] [PASSED] drm_gem_shmem_test_pin_pages
[13:19:38] [PASSED] drm_gem_shmem_test_vmap
[13:19:38] [PASSED] drm_gem_shmem_test_get_pages_sgt
[13:19:38] [PASSED] drm_gem_shmem_test_get_sg_table
[13:19:38] [PASSED] drm_gem_shmem_test_madvise
[13:19:38] [PASSED] drm_gem_shmem_test_purge
[13:19:38] ================== [PASSED] drm_gem_shmem ==================
[13:19:38] === drm_atomic_helper_connector_hdmi_check (27 subtests) ===
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_auto_cea_mode_vic_1
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_full_cea_mode_vic_1
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_limited_cea_mode_vic_1
[13:19:38] ====== drm_test_check_broadcast_rgb_cea_mode_yuv420  =======
[13:19:38] [PASSED] Automatic
[13:19:38] [PASSED] Full
[13:19:38] [PASSED] Limited 16:235
[13:19:38] == [PASSED] drm_test_check_broadcast_rgb_cea_mode_yuv420 ===
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_changed
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_crtc_mode_not_changed
[13:19:38] [PASSED] drm_test_check_disable_connector
[13:19:38] [PASSED] drm_test_check_hdmi_funcs_reject_rate
[13:19:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_rgb
[13:19:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_yuv420
[13:19:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv422
[13:19:38] [PASSED] drm_test_check_max_tmds_rate_bpc_fallback_ignore_yuv420
[13:19:38] [PASSED] drm_test_check_driver_unsupported_fallback_yuv420
[13:19:38] [PASSED] drm_test_check_output_bpc_crtc_mode_changed
[13:19:38] [PASSED] drm_test_check_output_bpc_crtc_mode_not_changed
[13:19:38] [PASSED] drm_test_check_output_bpc_dvi
[13:19:38] [PASSED] drm_test_check_output_bpc_format_vic_1
[13:19:38] [PASSED] drm_test_check_output_bpc_format_display_8bpc_only
[13:19:38] [PASSED] drm_test_check_output_bpc_format_display_rgb_only
[13:19:38] [PASSED] drm_test_check_output_bpc_format_driver_8bpc_only
[13:19:38] [PASSED] drm_test_check_output_bpc_format_driver_rgb_only
[13:19:38] [PASSED] drm_test_check_tmds_char_rate_rgb_8bpc
[13:19:38] [PASSED] drm_test_check_tmds_char_rate_rgb_10bpc
[13:19:38] [PASSED] drm_test_check_tmds_char_rate_rgb_12bpc
[13:19:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_check ======
[13:19:38] === drm_atomic_helper_connector_hdmi_reset (6 subtests) ====
[13:19:38] [PASSED] drm_test_check_broadcast_rgb_value
[13:19:38] [PASSED] drm_test_check_bpc_8_value
[13:19:38] [PASSED] drm_test_check_bpc_10_value
[13:19:38] [PASSED] drm_test_check_bpc_12_value
[13:19:38] [PASSED] drm_test_check_format_value
[13:19:38] [PASSED] drm_test_check_tmds_char_value
[13:19:38] ===== [PASSED] drm_atomic_helper_connector_hdmi_reset ======
[13:19:38] = drm_atomic_helper_connector_hdmi_mode_valid (4 subtests) =
[13:19:38] [PASSED] drm_test_check_mode_valid
[13:19:38] [PASSED] drm_test_check_mode_valid_reject
[13:19:38] [PASSED] drm_test_check_mode_valid_reject_rate
[13:19:38] [PASSED] drm_test_check_mode_valid_reject_max_clock
[13:19:38] === [PASSED] drm_atomic_helper_connector_hdmi_mode_valid ===
[13:19:38] ================= drm_managed (2 subtests) =================
[13:19:38] [PASSED] drm_test_managed_release_action
[13:19:38] [PASSED] drm_test_managed_run_action
[13:19:38] =================== [PASSED] drm_managed ===================
[13:19:38] =================== drm_mm (6 subtests) ====================
[13:19:38] [PASSED] drm_test_mm_init
[13:19:38] [PASSED] drm_test_mm_debug
[13:19:38] [PASSED] drm_test_mm_align32
[13:19:38] [PASSED] drm_test_mm_align64
[13:19:38] [PASSED] drm_test_mm_lowest
[13:19:38] [PASSED] drm_test_mm_highest
[13:19:38] ===================== [PASSED] drm_mm ======================
[13:19:38] ============= drm_modes_analog_tv (5 subtests) =============
[13:19:38] [PASSED] drm_test_modes_analog_tv_mono_576i
[13:19:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i
[13:19:38] [PASSED] drm_test_modes_analog_tv_ntsc_480i_inlined
[13:19:38] [PASSED] drm_test_modes_analog_tv_pal_576i
[13:19:38] [PASSED] drm_test_modes_analog_tv_pal_576i_inlined
[13:19:38] =============== [PASSED] drm_modes_analog_tv ===============
[13:19:38] ============== drm_plane_helper (2 subtests) ===============
[13:19:38] =============== drm_test_check_plane_state  ================
[13:19:38] [PASSED] clipping_simple
[13:19:38] [PASSED] clipping_rotate_reflect
[13:19:38] [PASSED] positioning_simple
[13:19:38] [PASSED] upscaling
[13:19:38] [PASSED] downscaling
[13:19:38] [PASSED] rounding1
[13:19:38] [PASSED] rounding2
[13:19:38] [PASSED] rounding3
[13:19:38] [PASSED] rounding4
[13:19:38] =========== [PASSED] drm_test_check_plane_state ============
[13:19:38] =========== drm_test_check_invalid_plane_state  ============
[13:19:38] [PASSED] positioning_invalid
[13:19:38] [PASSED] upscaling_invalid
[13:19:38] [PASSED] downscaling_invalid
[13:19:38] ======= [PASSED] drm_test_check_invalid_plane_state ========
[13:19:38] ================ [PASSED] drm_plane_helper =================
[13:19:38] ====== drm_connector_helper_tv_get_modes (1 subtest) =======
[13:19:38] ====== drm_test_connector_helper_tv_get_modes_check  =======
[13:19:38] [PASSED] None
[13:19:38] [PASSED] PAL
[13:19:38] [PASSED] NTSC
[13:19:38] [PASSED] Both, NTSC Default
[13:19:38] [PASSED] Both, PAL Default
[13:19:38] [PASSED] Both, NTSC Default, with PAL on command-line
[13:19:38] [PASSED] Both, PAL Default, with NTSC on command-line
[13:19:38] == [PASSED] drm_test_connector_helper_tv_get_modes_check ===
[13:19:38] ======== [PASSED] drm_connector_helper_tv_get_modes ========
[13:19:38] ================== drm_rect (9 subtests) ===================
[13:19:38] [PASSED] drm_test_rect_clip_scaled_div_by_zero
[13:19:38] [PASSED] drm_test_rect_clip_scaled_not_clipped
[13:19:38] [PASSED] drm_test_rect_clip_scaled_clipped
[13:19:38] [PASSED] drm_test_rect_clip_scaled_signed_vs_unsigned
[13:19:38] ================= drm_test_rect_intersect  =================
[13:19:38] [PASSED] top-left x bottom-right: 2x2+1+1 x 2x2+0+0
[13:19:38] [PASSED] top-right x bottom-left: 2x2+0+0 x 2x2+1-1
[13:19:38] [PASSED] bottom-left x top-right: 2x2+1-1 x 2x2+0+0
[13:19:38] [PASSED] bottom-right x top-left: 2x2+0+0 x 2x2+1+1
[13:19:38] [PASSED] right x left: 2x1+0+0 x 3x1+1+0
[13:19:38] [PASSED] left x right: 3x1+1+0 x 2x1+0+0
[13:19:38] [PASSED] up x bottom: 1x2+0+0 x 1x3+0-1
[13:19:38] [PASSED] bottom x up: 1x3+0-1 x 1x2+0+0
[13:19:38] [PASSED] touching corner: 1x1+0+0 x 2x2+1+1
[13:19:38] [PASSED] touching side: 1x1+0+0 x 1x1+1+0
[13:19:38] [PASSED] equal rects: 2x2+0+0 x 2x2+0+0
[13:19:38] [PASSED] inside another: 2x2+0+0 x 1x1+1+1
[13:19:38] [PASSED] far away: 1x1+0+0 x 1x1+3+6
[13:19:38] [PASSED] points intersecting: 0x0+5+10 x 0x0+5+10
[13:19:38] [PASSED] points not intersecting: 0x0+0+0 x 0x0+5+10
[13:19:38] ============= [PASSED] drm_test_rect_intersect =============
[13:19:38] ================ drm_test_rect_calc_hscale  ================
[13:19:38] [PASSED] normal use
[13:19:38] [PASSED] out of max range
[13:19:38] [PASSED] out of min range
[13:19:38] [PASSED] zero dst
[13:19:38] [PASSED] negative src
[13:19:38] [PASSED] negative dst
[13:19:38] ============ [PASSED] drm_test_rect_calc_hscale ============
[13:19:38] ================ drm_test_rect_calc_vscale  ================
[13:19:38] [PASSED] normal use
[13:19:38] [PASSED] out of max range
[13:19:38] [PASSED] out of min range
[13:19:38] [PASSED] zero dst
[13:19:38] [PASSED] negative src
[13:19:38] [PASSED] negative dst
[13:19:38] ============ [PASSED] drm_test_rect_calc_vscale ============
[13:19:38] ================== drm_test_rect_rotate  ===================
[13:19:38] [PASSED] reflect-x
[13:19:38] [PASSED] reflect-y
[13:19:38] [PASSED] rotate-0
[13:19:38] [PASSED] rotate-90
[13:19:38] [PASSED] rotate-180
[13:19:38] [PASSED] rotate-270
stty: 'standard input': Inappropriate ioctl for device
[13:19:38] ============== [PASSED] drm_test_rect_rotate ===============
[13:19:38] ================ drm_test_rect_rotate_inv  =================
[13:19:38] [PASSED] reflect-x
[13:19:38] [PASSED] reflect-y
[13:19:38] [PASSED] rotate-0
[13:19:38] [PASSED] rotate-90
[13:19:38] [PASSED] rotate-180
[13:19:38] [PASSED] rotate-270
[13:19:38] ============ [PASSED] drm_test_rect_rotate_inv =============
[13:19:38] ==================== [PASSED] drm_rect =====================
[13:19:38] ============ drm_sysfb_modeset_test (1 subtest) ============
[13:19:38] ============ drm_test_sysfb_build_fourcc_list  =============
[13:19:38] [PASSED] no native formats
[13:19:38] [PASSED] XRGB8888 as native format
[13:19:38] [PASSED] remove duplicates
[13:19:38] [PASSED] convert alpha formats
[13:19:38] [PASSED] random formats
[13:19:38] ======== [PASSED] drm_test_sysfb_build_fourcc_list =========
[13:19:38] ============= [PASSED] drm_sysfb_modeset_test ==============
[13:19:38] ============================================================
[13:19:38] Testing complete. Ran 616 tests: passed: 616
[13:19:38] Elapsed time: 27.666s total, 1.598s configuring, 25.901s building, 0.134s running

+ /kernel/tools/testing/kunit/kunit.py run --kunitconfig /kernel/drivers/gpu/drm/ttm/tests/.kunitconfig [13:19:38] Configuring KUnit Kernel ...
Regenerating .config ...
Populating config with:

$ make ARCH=um O=.kunit olddefconfig
[13:19:40] Building KUnit Kernel ...
Populating config with:
$ make ARCH=um O=.kunit olddefconfig
Building with:
$ make all compile_commands.json scripts_gdb ARCH=um O=.kunit --jobs=25
[13:19:47] Starting KUnit Kernel (1/1)...
[13:19:47] ============================================================
Running tests with:
$ .kunit/linux kunit.enable=1 mem=1G console=tty kunit_shutdown=halt
[13:19:48] ================= ttm_device (5 subtests) ==================
[13:19:48] [PASSED] ttm_device_init_basic
[13:19:48] [PASSED] ttm_device_init_multiple
[13:19:48] [PASSED] ttm_device_fini_basic
[13:19:48] [PASSED] ttm_device_init_no_vma_man
[13:19:48] ================== ttm_device_init_pools  ==================
[13:19:48] [PASSED] No DMA allocations, no DMA32 required
[13:19:48] [PASSED] DMA allocations, DMA32 required
[13:19:48] [PASSED] No DMA allocations, DMA32 required
[13:19:48] [PASSED] DMA allocations, no DMA32 required
[13:19:48] ============== [PASSED] ttm_device_init_pools ==============
[13:19:48] =================== [PASSED] ttm_device ====================
[13:19:48] ================== ttm_pool (8 subtests) ===================
[13:19:48] ================== ttm_pool_alloc_basic  ===================
[13:19:48] [PASSED] One page
[13:19:48] [PASSED] More than one page
[13:19:48] [PASSED] Above the allocation limit
[13:19:48] [PASSED] One page, with coherent DMA mappings enabled
[13:19:48] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[13:19:48] ============== [PASSED] ttm_pool_alloc_basic ===============
[13:19:48] ============== ttm_pool_alloc_basic_dma_addr  ==============
[13:19:48] [PASSED] One page
[13:19:48] [PASSED] More than one page
[13:19:48] [PASSED] Above the allocation limit
[13:19:48] [PASSED] One page, with coherent DMA mappings enabled
[13:19:48] [PASSED] Above the allocation limit, with coherent DMA mappings enabled
[13:19:48] ========== [PASSED] ttm_pool_alloc_basic_dma_addr ==========
[13:19:48] [PASSED] ttm_pool_alloc_order_caching_match
[13:19:48] [PASSED] ttm_pool_alloc_caching_mismatch
[13:19:48] [PASSED] ttm_pool_alloc_order_mismatch
[13:19:48] [PASSED] ttm_pool_free_dma_alloc
[13:19:48] [PASSED] ttm_pool_free_no_dma_alloc
[13:19:48] [PASSED] ttm_pool_fini_basic
[13:19:48] ==================== [PASSED] ttm_pool =====================
[13:19:48] ================ ttm_resource (8 subtests) =================
[13:19:48] ================= ttm_resource_init_basic  =================
[13:19:48] [PASSED] Init resource in TTM_PL_SYSTEM
[13:19:48] [PASSED] Init resource in TTM_PL_VRAM
[13:19:48] [PASSED] Init resource in a private placement
[13:19:48] [PASSED] Init resource in TTM_PL_SYSTEM, set placement flags
[13:19:48] ============= [PASSED] ttm_resource_init_basic =============
[13:19:48] [PASSED] ttm_resource_init_pinned
[13:19:48] [PASSED] ttm_resource_fini_basic
[13:19:48] [PASSED] ttm_resource_manager_init_basic
[13:19:48] [PASSED] ttm_resource_manager_usage_basic
[13:19:48] [PASSED] ttm_resource_manager_set_used_basic
[13:19:48] [PASSED] ttm_sys_man_alloc_basic
[13:19:48] [PASSED] ttm_sys_man_free_basic
[13:19:48] ================== [PASSED] ttm_resource ===================
[13:19:48] =================== ttm_tt (15 subtests) ===================
[13:19:48] ==================== ttm_tt_init_basic  ====================
[13:19:48] [PASSED] Page-aligned size
[13:19:48] [PASSED] Extra pages requested
[13:19:48] ================ [PASSED] ttm_tt_init_basic ================
[13:19:48] [PASSED] ttm_tt_init_misaligned
[13:19:48] [PASSED] ttm_tt_fini_basic
[13:19:48] [PASSED] ttm_tt_fini_sg
[13:19:48] [PASSED] ttm_tt_fini_shmem
[13:19:48] [PASSED] ttm_tt_create_basic
[13:19:48] [PASSED] ttm_tt_create_invalid_bo_type
[13:19:48] [PASSED] ttm_tt_create_ttm_exists
[13:19:48] [PASSED] ttm_tt_create_failed
[13:19:48] [PASSED] ttm_tt_destroy_basic
[13:19:48] [PASSED] ttm_tt_populate_null_ttm
[13:19:48] [PASSED] ttm_tt_populate_populated_ttm
[13:19:48] [PASSED] ttm_tt_unpopulate_basic
[13:19:48] [PASSED] ttm_tt_unpopulate_empty_ttm
[13:19:48] [PASSED] ttm_tt_swapin_basic
[13:19:48] ===================== [PASSED] ttm_tt ======================
[13:19:48] =================== ttm_bo (14 subtests) ===================
[13:19:48] =========== ttm_bo_reserve_optimistic_no_ticket  ===========
[13:19:48] [PASSED] Cannot be interrupted and sleeps
[13:19:48] [PASSED] Cannot be interrupted, locks straight away
[13:19:48] [PASSED] Can be interrupted, sleeps
[13:19:48] ======= [PASSED] ttm_bo_reserve_optimistic_no_ticket =======
[13:19:48] [PASSED] ttm_bo_reserve_locked_no_sleep
[13:19:48] [PASSED] ttm_bo_reserve_no_wait_ticket
[13:19:48] [PASSED] ttm_bo_reserve_double_resv
[13:19:48] [PASSED] ttm_bo_reserve_interrupted
[13:19:48] [PASSED] ttm_bo_reserve_deadlock
[13:19:48] [PASSED] ttm_bo_unreserve_basic
[13:19:48] [PASSED] ttm_bo_unreserve_pinned
[13:19:48] [PASSED] ttm_bo_unreserve_bulk
[13:19:48] [PASSED] ttm_bo_put_basic
[13:19:48] [PASSED] ttm_bo_put_shared_resv
[13:19:48] [PASSED] ttm_bo_pin_basic
[13:19:48] [PASSED] ttm_bo_pin_unpin_resource
[13:19:48] [PASSED] ttm_bo_multiple_pin_one_unpin
[13:19:48] ===================== [PASSED] ttm_bo ======================
[13:19:48] ============== ttm_bo_validate (21 subtests) ===============
[13:19:48] ============== ttm_bo_init_reserved_sys_man  ===============
[13:19:48] [PASSED] Buffer object for userspace
[13:19:48] [PASSED] Kernel buffer object
[13:19:48] [PASSED] Shared buffer object
[13:19:48] ========== [PASSED] ttm_bo_init_reserved_sys_man ===========
[13:19:48] ============== ttm_bo_init_reserved_mock_man  ==============
[13:19:48] [PASSED] Buffer object for userspace
[13:19:48] [PASSED] Kernel buffer object
[13:19:48] [PASSED] Shared buffer object
[13:19:48] ========== [PASSED] ttm_bo_init_reserved_mock_man ==========
[13:19:48] [PASSED] ttm_bo_init_reserved_resv
[13:19:48] ================== ttm_bo_validate_basic  ==================
[13:19:48] [PASSED] Buffer object for userspace
[13:19:48] [PASSED] Kernel buffer object
[13:19:48] [PASSED] Shared buffer object
[13:19:48] ============== [PASSED] ttm_bo_validate_basic ==============
[13:19:48] [PASSED] ttm_bo_validate_invalid_placement
[13:19:48] ============= ttm_bo_validate_same_placement  ==============
[13:19:48] [PASSED] System manager
[13:19:48] [PASSED] VRAM manager
[13:19:48] ========= [PASSED] ttm_bo_validate_same_placement ==========
[13:19:48] [PASSED] ttm_bo_validate_failed_alloc
[13:19:48] [PASSED] ttm_bo_validate_pinned
[13:19:48] [PASSED] ttm_bo_validate_busy_placement
[13:19:48] ================ ttm_bo_validate_multihop  =================
[13:19:48] [PASSED] Buffer object for userspace
[13:19:48] [PASSED] Kernel buffer object
[13:19:48] [PASSED] Shared buffer object
[13:19:48] ============ [PASSED] ttm_bo_validate_multihop =============
[13:19:48] ========== ttm_bo_validate_no_placement_signaled  ==========
[13:19:48] [PASSED] Buffer object in system domain, no page vector
[13:19:48] [PASSED] Buffer object in system domain with an existing page vector
[13:19:48] ====== [PASSED] ttm_bo_validate_no_placement_signaled ======
[13:19:48] ======== ttm_bo_validate_no_placement_not_signaled  ========
[13:19:48] [PASSED] Buffer object for userspace
[13:19:48] [PASSED] Kernel buffer object
[13:19:48] [PASSED] Shared buffer object
[13:19:48] ==== [PASSED] ttm_bo_validate_no_placement_not_signaled ====
[13:19:48] [PASSED] ttm_bo_validate_move_fence_signaled
[13:19:48] ========= ttm_bo_validate_move_fence_not_signaled  =========
[13:19:48] [PASSED] Waits for GPU
[13:19:48] [PASSED] Tries to lock straight away
[13:19:48] ===== [PASSED] ttm_bo_validate_move_fence_not_signaled =====
[13:19:48] [PASSED] ttm_bo_validate_happy_evict
[13:19:48] [PASSED] ttm_bo_validate_all_pinned_evict
[13:19:48] [PASSED] ttm_bo_validate_allowed_only_evict
[13:19:48] [PASSED] ttm_bo_validate_deleted_evict
[13:19:48] [PASSED] ttm_bo_validate_busy_domain_evict
[13:19:48] [PASSED] ttm_bo_validate_evict_gutting
[13:19:48] [PASSED] ttm_bo_validate_recrusive_evict
stty: 'standard input': Inappropriate ioctl for device
[13:19:48] ================= [PASSED] ttm_bo_validate =================
[13:19:48] ============================================================
[13:19:48] Testing complete. Ran 101 tests: passed: 101
[13:19:48] Elapsed time: 9.558s total, 1.609s configuring, 7.682s building, 0.227s running

+ cleanup
++ stat -c %u:%g /kernel
+ chown -R 1003:1003 /kernel

#25 lore raw

✗ Xe.CI.BAT: failure for Intel Xe GPU Debug Support (eudebug) v4

In reply to Mika Kuoppala
== Series Details ==

== Series Details ==

Series: Intel Xe GPU Debug Support (eudebug) v4
URL : https://patchwork.freedesktop.org/series/152682/
State : failure

== Summary ==

CI Bug Log - changes from xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b_BAT -> xe-pw-152682v1_BAT
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-152682v1_BAT absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-152682v1_BAT, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (11 -> 9)
------------------------------

Missing (2): bat-adlp-vm bat-ptl-vm

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in xe-pw-152682v1_BAT:

### IGT changes ###

#### Possible regressions ####

* igt@xe_compute@compute-square:
- bat-lnl-1: [PASS][1] -> [ABORT][2]
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-lnl-1/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-lnl-1/igt@[email protected]
- bat-bmg-2: [PASS][3] -> [ABORT][4]
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-bmg-2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-bmg-2/igt@[email protected]
- bat-bmg-1: [PASS][5] -> [ABORT][6]
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-bmg-1/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-bmg-1/igt@[email protected]
- bat-adlp-7: [PASS][7] -> [ABORT][8]
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-adlp-7/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-adlp-7/igt@[email protected]
- bat-lnl-2: [PASS][9] -> [ABORT][10]
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-lnl-2/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-lnl-2/igt@[email protected]
- bat-dg2-oem2: [PASS][11] -> [ABORT][12]
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-dg2-oem2/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-dg2-oem2/igt@[email protected]
- bat-atsm-2: [PASS][13] -> [ABORT][14]
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-atsm-2/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-atsm-2/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* igt@xe_compute@compute-square:
- {bat-ptl-1}: [PASS][15] -> [ABORT][16]
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-ptl-1/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-ptl-1/igt@[email protected]
- {bat-ptl-2}: [PASS][17] -> [ABORT][18]
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/bat-ptl-2/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/bat-ptl-2/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

Build changes
-------------

* Linux: xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b -> xe-pw-152682v1

IGT_8489: 4972020ea0f3d0ac8a0d7dd4f5419119b1b30995 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b: 2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b
xe-pw-152682v1: 152682v1

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/index.html

#26 lore raw

✗ Xe.CI.Full: failure for Intel Xe GPU Debug Support (eudebug) v4

In reply to Mika Kuoppala
== Series Details ==

== Series Details ==

Series: Intel Xe GPU Debug Support (eudebug) v4
URL : https://patchwork.freedesktop.org/series/152682/
State : failure

== Summary ==

CI Bug Log - changes from xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b_FULL -> xe-pw-152682v1_FULL
====================================================

Summary
-------

**FAILURE**

Serious unknown changes coming with xe-pw-152682v1_FULL absolutely need to be verified manually.

If you think the reported changes have nothing to do with the changes
introduced in xe-pw-152682v1_FULL, please notify your bug team ([email protected]) to allow them to document this new failure mode, which will reduce false positives in CI.

Participating hosts (4 -> 4)
------------------------------

No changes in participating hosts

Possible new issues
-------------------

Here are the unknown changes that may have been introduced in xe-pw-152682v1_FULL:

### IGT changes ###

#### Possible regressions ####

* igt@xe_eudebug_online@single-step-one@drm_xe_engine_class_render0:
- shard-dg2-set2: NOTRUN -> [FAIL][1] +5 other tests fail
[1]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-466/igt@xe_eudebug_online@single-step-one@drm_xe_engine_class_render0.html

* igt@xe_eudebug_online@single-step@drm_xe_engine_class_render0:
- shard-adlp: NOTRUN -> [FAIL][2] +3 other tests fail
[2]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@xe_eudebug_online@single-step@drm_xe_engine_class_render0.html

* igt@xe_exec_compute_mode@many-bindexecqueue-userptr-invalidate-race:
- shard-adlp: [PASS][3] -> [ABORT][4] +23 other tests abort
[3]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-8/igt@xe_exec_compute_mode@many-bindexecqueue-userptr-invalidate-race.html
[4]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-3/igt@xe_exec_compute_mode@many-bindexecqueue-userptr-invalidate-race.html

* igt@xe_exec_system_allocator@many-large-free:
- shard-lnl: [PASS][5] -> [ABORT][6] +20 other tests abort
[5]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-3/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-7/igt@[email protected]

* igt@xe_exec_system_allocator@many-stride-free:
- shard-bmg: [PASS][7] -> [ABORT][8] +20 other tests abort
[7]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-8/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-6/igt@[email protected]

* igt@xe_exec_threads@threads-bal-mixed-fd-userptr-invalidate:
- shard-dg2-set2: [PASS][9] -> [ABORT][10] +23 other tests abort
[9]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-435/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-433/igt@[email protected]

#### Warnings ####

* igt@xe_eudebug@basic-vm-access-parameters-userptr-faultable:
- shard-adlp: [SKIP][11] ([Intel XE#4837] / [Intel XE#5565]) -> [SKIP][12] +1 other test skip
[11]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-3/igt@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-1/igt@[email protected]

* igt@xe_eudebug@vm-bind-clear-faultable:
- shard-dg2-set2: [SKIP][13] ([Intel XE#4837]) -> [SKIP][14] +1 other test skip
[13]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-436/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-435/igt@[email protected]

* igt@xe_eudebug_online@interrupt-all-set-breakpoint:
- shard-dg2-set2: [SKIP][15] ([Intel XE#4837]) -> [FAIL][16] +8 other tests fail
[15]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-433/igt@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-466/igt@[email protected]

* igt@xe_eudebug_online@single-step:
- shard-adlp: [SKIP][17] ([Intel XE#4837] / [Intel XE#5565]) -> [FAIL][18] +6 other tests fail
[17]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@[email protected]

#### Suppressed ####

The following results come from untrusted machines, tests, or statuses. They do not affect the overall result.

* {igt@xe_exec_system_allocator@many-64k-malloc-busy}:
- shard-bmg: [PASS][19] -> [ABORT][20] +3 other tests abort
[19]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-1/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-1/igt@[email protected]

* {igt@xe_exec_system_allocator@many-large-execqueues-malloc-prefetch-race}:
- shard-lnl: [PASS][21] -> [ABORT][22] +3 other tests abort
[21]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-7/igt@xe_exec_system_allocator@many-large-execqueues-malloc-prefetch-race.html
[22]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-8/igt@xe_exec_system_allocator@many-large-execqueues-malloc-prefetch-race.html

Known issues
------------

Here are the changes found in xe-pw-152682v1_FULL that come from known issues:

### IGT changes ###

#### Issues hit ####

* igt@kms_ccs@crc-sprite-planes-basic-4-tiled-lnl-ccs@pipe-b-dp-2:
- shard-bmg: NOTRUN -> [SKIP][23] ([Intel XE#2652] / [Intel XE#787]) +3 other tests skip
[23]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-5/igt@kms_ccs@[email protected]

* igt@kms_cursor_legacy@2x-nonblocking-modeset-vs-cursor-atomic:
- shard-bmg: [PASS][24] -> [SKIP][25] ([Intel XE#2291])
[24]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-7/igt@[email protected]
[25]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-6/igt@[email protected]

* igt@xe_eudebug_online@writes-caching-vram-bb-sram-target-sram@drm_xe_engine_class_render0:
- shard-adlp: NOTRUN -> [SKIP][26] ([Intel XE#455]) +1 other test skip
[26]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-2/igt@xe_eudebug_online@writes-caching-vram-bb-sram-target-sram@drm_xe_engine_class_render0.html

#### Possible fixes ####

* igt@xe_exec_basic@multigpu-no-exec-userptr-invalidate:
- shard-dg2-set2: [SKIP][27] ([Intel XE#1392]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-432/igt@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-436/igt@[email protected]

* igt@xe_exec_sip_eudebug@wait-writesip-nodebug:
- shard-dg2-set2: [SKIP][29] ([Intel XE#4837]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-433/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-466/igt@[email protected]
- shard-adlp: [SKIP][31] ([Intel XE#4837] / [Intel XE#5565]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-3/igt@[email protected]

* igt@xe_module_load@load:
- shard-lnl: ([PASS][33], [PASS][34], [PASS][35], [PASS][36], [PASS][37], [PASS][38], [PASS][39], [PASS][40], [PASS][41], [PASS][42], [PASS][43], [PASS][44], [PASS][45], [PASS][46], [PASS][47], [PASS][48], [PASS][49], [PASS][50], [PASS][51], [PASS][52], [PASS][53], [PASS][54], [PASS][55], [PASS][56], [SKIP][57], [PASS][58]) ([Intel XE#378]) -> ([PASS][59], [PASS][60], [PASS][61], [PASS][62], [PASS][63], [PASS][64], [PASS][65], [PASS][66], [PASS][67], [PASS][68], [PASS][69], [PASS][70], [PASS][71], [PASS][72], [PASS][73], [PASS][74], [PASS][75], [PASS][76], [PASS][77], [PASS][78], [PASS][79], [PASS][80], [PASS][81], [PASS][82], [PASS][83])
[33]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-8/igt@[email protected]
[34]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-8/igt@[email protected]
[35]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-4/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-4/igt@[email protected]
[37]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-4/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-1/igt@[email protected]
[39]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-4/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-8/igt@[email protected]
[41]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-7/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-7/igt@[email protected]
[43]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-8/igt@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-1/igt@[email protected]
[45]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-1/igt@[email protected]
[46]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-2/igt@[email protected]
[47]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-7/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-7/igt@[email protected]
[49]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-2/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-3/igt@[email protected]
[51]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-5/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-5/igt@[email protected]
[53]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-3/igt@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-3/igt@[email protected]
[55]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-1/igt@[email protected]
[56]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-5/igt@[email protected]
[57]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-3/igt@[email protected]
[58]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-lnl-2/igt@[email protected]
[59]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-4/igt@[email protected]
[60]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-4/igt@[email protected]
[61]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-5/igt@[email protected]
[62]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-3/igt@[email protected]
[63]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-3/igt@[email protected]
[64]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-3/igt@[email protected]
[65]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-1/igt@[email protected]
[66]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-8/igt@[email protected]
[67]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-8/igt@[email protected]
[68]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-1/igt@[email protected]
[69]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-1/igt@[email protected]
[70]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-1/igt@[email protected]
[71]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-4/igt@[email protected]
[72]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-2/igt@[email protected]
[73]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-2/igt@[email protected]
[74]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-5/igt@[email protected]
[75]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-7/igt@[email protected]
[76]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-7/igt@[email protected]
[77]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-7/igt@[email protected]
[78]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-4/igt@[email protected]
[79]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-8/igt@[email protected]
[80]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-8/igt@[email protected]
[81]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-7/igt@[email protected]
[82]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-5/igt@[email protected]
[83]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-lnl-5/igt@[email protected]
- shard-bmg: ([PASS][84], [PASS][85], [PASS][86], [PASS][87], [PASS][88], [PASS][89], [PASS][90], [PASS][91], [PASS][92], [PASS][93], [SKIP][94], [PASS][95], [PASS][96], [PASS][97], [PASS][98], [PASS][99], [PASS][100], [PASS][101], [PASS][102], [PASS][103], [PASS][104], [PASS][105], [PASS][106], [PASS][107], [PASS][108], [PASS][109]) ([Intel XE#2457]) -> ([PASS][110], [PASS][111], [PASS][112], [PASS][113], [PASS][114], [PASS][115], [PASS][116], [PASS][117], [PASS][118], [PASS][119], [PASS][120], [PASS][121], [PASS][122], [PASS][123], [PASS][124], [PASS][125], [PASS][126], [PASS][127], [PASS][128], [PASS][129], [PASS][130], [PASS][131], [PASS][132], [PASS][133], [PASS][134])
[84]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-6/igt@[email protected]
[85]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-1/igt@[email protected]
[86]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-1/igt@[email protected]
[87]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-2/igt@[email protected]
[88]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-1/igt@[email protected]
[89]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-5/igt@[email protected]
[90]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-2/igt@[email protected]
[91]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-2/igt@[email protected]
[92]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-5/igt@[email protected]
[93]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-5/igt@[email protected]
[94]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-1/igt@[email protected]
[95]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-7/igt@[email protected]
[96]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-7/igt@[email protected]
[97]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-4/igt@[email protected]
[98]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-4/igt@[email protected]
[99]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-3/igt@[email protected]
[100]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-3/igt@[email protected]
[101]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-8/igt@[email protected]
[102]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-7/igt@[email protected]
[103]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-3/igt@[email protected]
[104]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-8/igt@[email protected]
[105]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-4/igt@[email protected]
[106]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-8/igt@[email protected]
[107]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-6/igt@[email protected]
[108]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-6/igt@[email protected]
[109]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-bmg-6/igt@[email protected]
[110]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-2/igt@[email protected]
[111]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-5/igt@[email protected]
[112]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-5/igt@[email protected]
[113]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-4/igt@[email protected]
[114]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-6/igt@[email protected]
[115]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-6/igt@[email protected]
[116]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-4/igt@[email protected]
[117]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-1/igt@[email protected]
[118]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-2/igt@[email protected]
[119]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-2/igt@[email protected]
[120]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-4/igt@[email protected]
[121]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-1/igt@[email protected]
[122]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-4/igt@[email protected]
[123]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-8/igt@[email protected]
[124]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-7/igt@[email protected]
[125]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-3/igt@[email protected]
[126]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-3/igt@[email protected]
[127]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-3/igt@[email protected]
[128]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-5/igt@[email protected]
[129]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-7/igt@[email protected]
[130]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-8/igt@[email protected]
[131]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-6/igt@[email protected]
[132]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-1/igt@[email protected]
[133]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-7/igt@[email protected]
[134]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-bmg-5/igt@[email protected]
- shard-adlp: ([PASS][135], [PASS][136], [PASS][137], [PASS][138], [PASS][139], [PASS][140], [PASS][141], [PASS][142], [PASS][143], [PASS][144], [PASS][145], [PASS][146], [PASS][147], [PASS][148], [SKIP][149], [PASS][150], [PASS][151], [PASS][152], [PASS][153], [PASS][154], [PASS][155], [PASS][156], [PASS][157], [PASS][158], [PASS][159], [PASS][160]) ([Intel XE#378] / [Intel XE#5612]) -> ([PASS][161], [PASS][162], [PASS][163], [PASS][164], [PASS][165], [PASS][166], [PASS][167], [PASS][168], [PASS][169], [PASS][170], [PASS][171], [PASS][172], [PASS][173], [PASS][174], [PASS][175], [PASS][176], [PASS][177], [PASS][178], [PASS][179], [PASS][180], [PASS][181], [PASS][182], [PASS][183], [PASS][184], [PASS][185])
[135]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-6/igt@[email protected]
[136]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[137]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[138]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-1/igt@[email protected]
[139]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-3/igt@[email protected]
[140]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-4/igt@[email protected]
[141]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-4/igt@[email protected]
[142]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[143]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[144]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-8/igt@[email protected]
[145]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-3/igt@[email protected]
[146]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-2/igt@[email protected]
[147]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-2/igt@[email protected]
[148]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-2/igt@[email protected]
[149]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-4/igt@[email protected]
[150]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-6/igt@[email protected]
[151]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-3/igt@[email protected]
[152]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-3/igt@[email protected]
[153]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-8/igt@[email protected]
[154]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-8/igt@[email protected]
[155]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-8/igt@[email protected]
[156]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-1/igt@[email protected]
[157]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-1/igt@[email protected]
[158]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-4/igt@[email protected]
[159]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-6/igt@[email protected]
[160]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-6/igt@[email protected]
[161]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@[email protected]
[162]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@[email protected]
[163]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-9/igt@[email protected]
[164]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-1/igt@[email protected]
[165]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-1/igt@[email protected]
[166]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-4/igt@[email protected]
[167]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-4/igt@[email protected]
[168]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-4/igt@[email protected]
[169]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-9/igt@[email protected]
[170]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-9/igt@[email protected]
[171]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-3/igt@[email protected]
[172]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-3/igt@[email protected]
[173]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-3/igt@[email protected]
[174]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@[email protected]
[175]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-6/igt@[email protected]
[176]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-1/igt@[email protected]
[177]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-8/igt@[email protected]
[178]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-8/igt@[email protected]
[179]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-4/igt@[email protected]
[180]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-2/igt@[email protected]
[181]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-2/igt@[email protected]
[182]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-1/igt@[email protected]
[183]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-8/igt@[email protected]
[184]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-8/igt@[email protected]
[185]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-2/igt@[email protected]
- shard-dg2-set2: ([PASS][186], [PASS][187], [PASS][188], [PASS][189], [PASS][190], [PASS][191], [PASS][192], [PASS][193], [PASS][194], [PASS][195], [PASS][196], [PASS][197], [PASS][198], [PASS][199], [PASS][200], [PASS][201], [PASS][202], [PASS][203], [PASS][204], [PASS][205], [PASS][206], [PASS][207], [SKIP][208], [PASS][209], [PASS][210], [PASS][211]) ([Intel XE#378]) -> ([PASS][212], [PASS][213], [PASS][214], [PASS][215], [PASS][216], [PASS][217], [PASS][218], [PASS][219], [PASS][220], [PASS][221], [PASS][222], [PASS][223], [PASS][224], [PASS][225], [PASS][226], [PASS][227], [PASS][228], [PASS][229], [PASS][230], [PASS][231], [PASS][232], [PASS][233], [PASS][234], [PASS][235], [PASS][236])
[186]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-434/igt@[email protected]
[187]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-432/igt@[email protected]
[188]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-432/igt@[email protected]
[189]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-432/igt@[email protected]
[190]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-463/igt@[email protected]
[191]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-435/igt@[email protected]
[192]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-434/igt@[email protected]
[193]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-436/igt@[email protected]
[194]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-434/igt@[email protected]
[195]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-436/igt@[email protected]
[196]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-436/igt@[email protected]
[197]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-435/igt@[email protected]
[198]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-435/igt@[email protected]
[199]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-466/igt@[email protected]
[200]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-466/igt@[email protected]
[201]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-433/igt@[email protected]
[202]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-466/igt@[email protected]
[203]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-466/igt@[email protected]
[204]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-463/igt@[email protected]
[205]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-463/igt@[email protected]
[206]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-433/igt@[email protected]
[207]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-433/igt@[email protected]
[208]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-466/igt@[email protected]
[209]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-464/igt@[email protected]
[210]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-464/igt@[email protected]
[211]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-dg2-464/igt@[email protected]
[212]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-435/igt@[email protected]
[213]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-435/igt@[email protected]
[214]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-435/igt@[email protected]
[215]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-464/igt@[email protected]
[216]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-432/igt@[email protected]
[217]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-432/igt@[email protected]
[218]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-432/igt@[email protected]
[219]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-432/igt@[email protected]
[220]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-466/igt@[email protected]
[221]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-466/igt@[email protected]
[222]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-464/igt@[email protected]
[223]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-434/igt@[email protected]
[224]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-434/igt@[email protected]
[225]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-434/igt@[email protected]
[226]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-433/igt@[email protected]
[227]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-433/igt@[email protected]
[228]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-433/igt@[email protected]
[229]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-464/igt@[email protected]
[230]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-433/igt@[email protected]
[231]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-436/igt@[email protected]
[232]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-436/igt@[email protected]
[233]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-436/igt@[email protected]
[234]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-463/igt@[email protected]
[235]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-463/igt@[email protected]
[236]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-dg2-436/igt@[email protected]

#### Warnings ####

* igt@xe_eudebug_online@writes-caching-vram-bb-vram-target-sram:
- shard-adlp: [SKIP][237] ([Intel XE#4837] / [Intel XE#5565]) -> [SKIP][238] ([Intel XE#455]) +1 other test skip
[237]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b/shard-adlp-9/igt@[email protected]
[238]: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/shard-adlp-4/igt@[email protected]

{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).

[Intel XE#1392]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/1392
[Intel XE#2291]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2291
[Intel XE#2457]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2457
[Intel XE#2652]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/2652
[Intel XE#378]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/378
[Intel XE#455]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/455
[Intel XE#4837]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/4837
[Intel XE#5565]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5565
[Intel XE#5612]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/5612
[Intel XE#787]: https://gitlab.freedesktop.org/drm/xe/kernel/issues/787

Build changes
-------------

* Linux: xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b -> xe-pw-152682v1

IGT_8489: 4972020ea0f3d0ac8a0d7dd4f5419119b1b30995 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
xe-3518-2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b: 2632d3c5d7f7c1b80996fc74d27bed6612a0ff9b
xe-pw-152682v1: 152682v1

== Logs ==

For more details see: https://intel-gfx-ci.01.org/tree/intel-xe/xe-pw-152682v1/index.html