Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH i-g-t] include/drm-uapi/xe_drm: Add srcid to drm_xe_fault struct
@ 2026-06-03 15:01 Jonathan Cavitt
  2026-06-03 16:58 ` ✓ i915.CI.BAT: success for " Patchwork
                   ` (4 more replies)
  0 siblings, 5 replies; 7+ messages in thread
From: Jonathan Cavitt @ 2026-06-03 15:01 UTC (permalink / raw)
  To: igt-dev; +Cc: jonathan.cavitt, saurabhg.gupta, alex.zuo, michal.mrozek

Add srcid to drm_xe_fault struct, aligning with a KMD change.
Additionally, add logging for the new information to the associated
xe_vm test.

Signed-off-by: Jonathan Cavitt <jonathan.cavitt@intel.com>
Cc: Michal Mrozek <michal.mrozek@intel.com>
---
 include/drm-uapi/xe_drm.h | 4 ++--
 tests/intel/xe_vm.c       | 1 +
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/drm-uapi/xe_drm.h b/include/drm-uapi/xe_drm.h
index 5a96a7910b..273bac9e1f 100644
--- a/include/drm-uapi/xe_drm.h
+++ b/include/drm-uapi/xe_drm.h
@@ -1290,8 +1290,8 @@ struct xe_vm_fault {
 #define FAULT_LEVEL_PML4	3
 #define FAULT_LEVEL_PML5	4
 	__u8 fault_level;
-	/** @pad: MBZ */
-	__u8 pad;
+	/** @srcid: ID of the faulting hardware unit */
+	__u8 srcid;
 	/** @reserved: MBZ */
 	__u64 reserved[4];
 };
diff --git a/tests/intel/xe_vm.c b/tests/intel/xe_vm.c
index 408bfdb718..260dae9cae 100644
--- a/tests/intel/xe_vm.c
+++ b/tests/intel/xe_vm.c
@@ -3023,6 +3023,7 @@ static void print_pf(struct xe_vm_fault *fault)
 	igt_debug("access type = %u\n", fault->access_type);
 	igt_debug("fault type = %u\n", fault->fault_type);
 	igt_debug("fault level = %u\n", fault->fault_level);
+	igt_debug("srcid = 0x%08x\n", fault->srcid);
 	igt_debug("\n");
 }
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-06-04 14:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 15:01 [PATCH i-g-t] include/drm-uapi/xe_drm: Add srcid to drm_xe_fault struct Jonathan Cavitt
2026-06-03 16:58 ` ✓ i915.CI.BAT: success for " Patchwork
2026-06-03 16:58 ` ✓ Xe.CI.BAT: " Patchwork
2026-06-03 17:22 ` [PATCH i-g-t] " Dixit, Ashutosh
2026-06-03 18:42   ` Dixit, Ashutosh
2026-06-04  4:00 ` ✗ Xe.CI.FULL: failure for " Patchwork
2026-06-04 14:20 ` ✗ i915.CI.Full: " Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox