Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Reorder 'Get pages failed' message
@ 2025-06-10  4:56 Matthew Brost
  2025-06-10  4:57 ` Ghimiray, Himal Prasad
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: Matthew Brost @ 2025-06-10  4:56 UTC (permalink / raw)
  To: intel-xe; +Cc: himal.prasad.ghimiray

Print the error from get pages failing, not the cast to -ENODATA.

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
---
 drivers/gpu/drm/xe/xe_vm.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/xe/xe_vm.c b/drivers/gpu/drm/xe/xe_vm.c
index 18f967ce1f1a..d18807b92b18 100644
--- a/drivers/gpu/drm/xe/xe_vm.c
+++ b/drivers/gpu/drm/xe/xe_vm.c
@@ -2924,10 +2924,10 @@ static int prefetch_ranges(struct xe_vm *vm, struct xe_vma_op *op)
 
 		err = xe_svm_range_get_pages(vm, svm_range, &ctx);
 		if (err) {
-			if (err == -EOPNOTSUPP || err == -EFAULT || err == -EPERM)
-				err = -ENODATA;
 			drm_dbg(&vm->xe->drm, "Get pages failed, asid=%u, gpusvm=%p, errno=%pe\n",
 				vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err));
+			if (err == -EOPNOTSUPP || err == -EFAULT || err == -EPERM)
+				err = -ENODATA;
 			return err;
 		}
 		xe_svm_range_debug(svm_range, "PREFETCH - RANGE GET PAGES DONE");
-- 
2.34.1


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

end of thread, other threads:[~2025-06-11 19:24 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-06-10  4:56 [PATCH] drm/xe: Reorder 'Get pages failed' message Matthew Brost
2025-06-10  4:57 ` Ghimiray, Himal Prasad
2025-06-10  5:01 ` ✓ CI.Patch_applied: success for " Patchwork
2025-06-10  5:01 ` ✓ CI.checkpatch: " Patchwork
2025-06-10  5:02 ` ✓ CI.KUnit: " Patchwork
2025-06-10  5:13 ` ✓ CI.Build: " Patchwork
2025-06-10  5:15 ` ✓ CI.Hooks: " Patchwork
2025-06-10  5:17 ` ✓ CI.checksparse: " Patchwork
2025-06-10  6:05 ` ✓ Xe.CI.BAT: " Patchwork
2025-06-10  7:00 ` ✗ Xe.CI.Full: failure " Patchwork
2025-06-11 18:54 ` [PATCH] " Summers, Stuart
2025-06-11 19:24 ` Maarten Lankhorst

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