From: Arvind Yadav <arvind.yadav@intel.com>
To: intel-xe@lists.freedesktop.org
Cc: rodrigo.vivi@intel.com, badal.nilawar@intel.com,
michal.wajdeczko@intel.com, himal.prasad.ghimiray@intel.com,
dnyaneshwar.bhadane@intel.com, mallesh.koujalagi@intel.com,
matthew.brost@intel.com
Subject: [PATCH v7 3/4] drm/xe/svm: Report terminal page-fault failures using SIGID
Date: Thu, 3 Sep 2026 11:16:09 +0530 [thread overview]
Message-ID: <20260903054610.3640788-4-arvind.yadav@intel.com> (raw)
In-Reply-To: <20260903054610.3640788-1-arvind.yadav@intel.com>
Use structured SIGID logging for SVM page-fault errors after
retries are exhausted.
Report these failures with the PAGEFAULT component, which maps to
XE_SIGID_MEM_FAULT.
Cc: Badal Nilawar <badal.nilawar@intel.com>
Cc: Matthew Brost <matthew.brost@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Michal Wajdeczko <michal.wajdeczko@intel.com>
Cc: Rodrigo Vivi <rodrigo.vivi@intel.com>
Reviewed-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Suggested-by: Mallesh Koujalagi <mallesh.koujalagi@intel.com>
Signed-off-by: Arvind Yadav <arvind.yadav@intel.com>
---
v7:
- Simplified the commit message. (Michal)
- Changed "asid" to "ASID" in the log messages. (Michal)
- Log the GPUVM name instead of the pointer. (Michal)
drivers/gpu/drm/xe/xe_svm.c | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/drivers/gpu/drm/xe/xe_svm.c b/drivers/gpu/drm/xe/xe_svm.c
index 627a741293d5..a7fb1b357d8c 100644
--- a/drivers/gpu/drm/xe/xe_svm.c
+++ b/drivers/gpu/drm/xe/xe_svm.c
@@ -13,6 +13,7 @@
#include "xe_bo.h"
#include "xe_exec_queue_types.h"
#include "xe_gt_stats.h"
+#include "xe_log.h"
#include "xe_migrate.h"
#include "xe_module.h"
#include "xe_pagefault.h"
@@ -1361,9 +1362,9 @@ static int __xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma,
else
goto retry;
} else {
- drm_err(&vm->xe->drm,
- "VRAM allocation failed, retry count exceeded, asid=%u, errno=%pe\n",
- vm->usm.asid, ERR_PTR(err));
+ xe_log_err(gt, PAGEFAULT, err,
+ "VRAM allocation failed, retry count exceeded, ASID=%u\n",
+ vm->usm.asid);
goto err_out;
}
}
@@ -1384,9 +1385,9 @@ static int __xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma,
range_debug(range, "PAGE FAULT - RETRY PAGES");
goto retry;
} else {
- drm_err(&vm->xe->drm,
- "Get pages failed, retry count exceeded, asid=%u, gpusvm=%p, errno=%pe\n",
- vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err));
+ xe_log_err(gt, PAGEFAULT, err,
+ "Get pages failed, retry count exceeded, ASID=%u, GPUVM=%s\n",
+ vm->usm.asid, vm->svm.gpusvm.name);
}
}
if (err) {
--
2.43.0
next prev parent reply other threads:[~2026-09-03 5:46 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-03 5:46 [PATCH v7 0/4] drm/xe: Report GT TDR and VM rebind faults using SIGID Arvind Yadav
2026-09-03 5:46 ` [PATCH v7 1/4] drm/xe/log: Add GUCSUBMIT component Arvind Yadav
2026-09-03 5:46 ` [PATCH v7 2/4] drm/xe/guc: Report reset failure using SIGID Arvind Yadav
2026-09-03 5:46 ` Arvind Yadav [this message]
2026-09-03 5:46 ` [PATCH v7 4/4] drm/xe/gt: Report GT " Arvind Yadav
2026-09-03 5:54 ` ✓ CI.KUnit: success for drm/xe: Report GT TDR and VM rebind faults using SIGID (rev7) Patchwork
2026-09-03 6:32 ` ✓ Xe.CI.BAT: " Patchwork
2026-09-03 18:05 ` ✗ Xe.CI.FULL: failure " 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=20260903054610.3640788-4-arvind.yadav@intel.com \
--to=arvind.yadav@intel.com \
--cc=badal.nilawar@intel.com \
--cc=dnyaneshwar.bhadane@intel.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=mallesh.koujalagi@intel.com \
--cc=matthew.brost@intel.com \
--cc=michal.wajdeczko@intel.com \
--cc=rodrigo.vivi@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