Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Jonathan Cavitt <jonathan.cavitt@intel.com>
To: igt-dev@lists.freedesktop.org
Cc: jonathan.cavitt@intel.com, saurabhg.gupta@intel.com,
	alex.zuo@intel.com, michal.mrozek@intel.com,
	ashutosh.dixit@intel.com
Subject: [PATCH i-g-t v2] include/drm-uapi/xe_drm: Add srcid to drm_xe_fault struct
Date: Thu,  4 Jun 2026 01:52:40 +0800	[thread overview]
Message-ID: <20260603175240.3759188-1-jonathan.cavitt@intel.com> (raw)

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>
Cc: Ashutosh Dixit <ashutosh.dixit@intel.com>
Link: https://lore.kernel.org/all/20260603150828.3751112-1-jonathan.cavitt@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


             reply	other threads:[~2026-06-03 17:53 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-06-03 17:52 Jonathan Cavitt [this message]
2026-06-03 23:01 ` ✓ Xe.CI.BAT: success for include/drm-uapi/xe_drm: Add srcid to drm_xe_fault struct (rev2) Patchwork
2026-06-03 23:06 ` ✓ i915.CI.BAT: " Patchwork
2026-06-04 13:44 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-06-04 22:12 ` ✗ i915.CI.Full: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260603175240.3759188-1-jonathan.cavitt@intel.com \
    --to=jonathan.cavitt@intel.com \
    --cc=alex.zuo@intel.com \
    --cc=ashutosh.dixit@intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    --cc=michal.mrozek@intel.com \
    --cc=saurabhg.gupta@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox