drm/xe: Reorder 'Get pages failed' message

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

Signed-off-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>>
Link: https://lore.kernel.org/r/20250610045649.3149801-1-matthew.brost@intel.com
This commit is contained in:
Matthew Brost 2025-06-09 21:56:49 -07:00
parent 86e2d052c2
commit 10201c7de5

View File

@ -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");