From: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
To: Matthew Brost <matthew.brost@intel.com>, intel-xe@lists.freedesktop.org
Cc: himal.prasad.ghimiray@intel.com
Subject: Re: [PATCH] drm/xe: Reorder 'Get pages failed' message
Date: Wed, 11 Jun 2025 21:24:30 +0200 [thread overview]
Message-ID: <528516d9-fb17-4656-8bc0-3288aaa2bd66@linux.intel.com> (raw)
In-Reply-To: <20250610045649.3149801-1-matthew.brost@intel.com>
On 2025-06-10 06:56, Matthew Brost wrote:
> 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 -ENODATA; ?
Regardless,
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
> return err;
> }
> xe_svm_range_debug(svm_range, "PREFETCH - RANGE GET PAGES DONE");
prev parent reply other threads:[~2025-06-11 19:24 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
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=528516d9-fb17-4656-8bc0-3288aaa2bd66@linux.intel.com \
--to=maarten.lankhorst@linux.intel.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
--cc=matthew.brost@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.