From: Matthew Brost <matthew.brost@intel.com>
To: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: <intel-xe@lists.freedesktop.org>
Subject: Re: [PATCH 1/1] drm/xe/svm: Avoid duplicate eviction on get_pages() failure
Date: Tue, 27 May 2025 11:28:02 -0700 [thread overview]
Message-ID: <aDYEMuvMKNaU46UP@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20250526163907.1011529-1-himal.prasad.ghimiray@intel.com>
On Mon, May 26, 2025 at 10:09:07PM +0530, Himal Prasad Ghimiray wrote:
> xe_svm_range_get_pages() already calls drm_gpusvm_range_evict()
> internally when it fails with -EOPNOTSUPP. Remove the redundant eviction
> call in the caller to prevent duplicate handling.
>
> Fixes: e0ff0d7cf928 ("drm/xe/svm: Refactor usage of drm_gpusvm* function in xe_svm")
> Cc: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
> Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
> ---
> drivers/gpu/drm/xe/xe_svm.c | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/drivers/gpu/drm/xe/xe_svm.c b/drivers/gpu/drm/xe/xe_svm.c
> index 4432685936ed..871ac81bb04a 100644
> --- a/drivers/gpu/drm/xe/xe_svm.c
> +++ b/drivers/gpu/drm/xe/xe_svm.c
> @@ -914,11 +914,6 @@ int xe_svm_handle_pagefault(struct xe_vm *vm, struct xe_vma *vma,
> if (err == -EOPNOTSUPP || err == -EFAULT || err == -EPERM) {
> ctx.timeslice_ms <<= 1; /* Double timeslice if we have to retry */
> if (migrate_try_count > 0 || !ctx.devmem_only) {
> - if (err == -EOPNOTSUPP) {
> - range_debug(range, "PAGE FAULT - EVICT PAGES");
> - drm_gpusvm_range_evict(&vm->svm.gpusvm,
> - &range->base);
> - }
> drm_dbg(&vm->xe->drm,
> "Get pages failed, falling back to retrying, asid=%u, gpusvm=%p, errno=%pe\n",
> vm->usm.asid, &vm->svm.gpusvm, ERR_PTR(err));
> --
> 2.34.1
>
prev parent reply other threads:[~2025-05-27 18:27 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-26 16:39 [PATCH 1/1] drm/xe/svm: Avoid duplicate eviction on get_pages() failure Himal Prasad Ghimiray
2025-05-27 13:04 ` ✓ CI.Patch_applied: success for series starting with [1/1] " Patchwork
2025-05-27 13:04 ` ✓ CI.checkpatch: " Patchwork
2025-05-27 13:05 ` ✓ CI.KUnit: " Patchwork
2025-05-27 13:16 ` ✓ CI.Build: " Patchwork
2025-05-27 13:18 ` ✓ CI.Hooks: " Patchwork
2025-05-27 13:20 ` ✓ CI.checksparse: " Patchwork
2025-05-27 13:58 ` ✓ Xe.CI.BAT: " Patchwork
2025-05-27 15:49 ` ✓ Xe.CI.Full: " Patchwork
2025-05-27 18:28 ` Matthew Brost [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=aDYEMuvMKNaU46UP@lstrano-desk.jf.intel.com \
--to=matthew.brost@intel.com \
--cc=himal.prasad.ghimiray@intel.com \
--cc=intel-xe@lists.freedesktop.org \
/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