mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
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:
parent
86e2d052c2
commit
10201c7de5
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user