Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Matthew Brost <matthew.brost@intel.com>
To: Raag Jadav <raag.jadav@intel.com>
Cc: <intel-xe@lists.freedesktop.org>,
	<thomas.hellstrom@linux.intel.com>,
	<himal.prasad.ghimiray@intel.com>, <rodrigo.vivi@intel.com>,
	<riana.tauro@intel.com>
Subject: Re: [PATCH v2] drm/xe/bo: Redirect faults to dummy page for wedged device
Date: Wed, 11 Feb 2026 22:18:53 -0800	[thread overview]
Message-ID: <aY1wzdGSnjp0RJvJ@lstrano-desk.jf.intel.com> (raw)
In-Reply-To: <20260212055622.2054991-1-raag.jadav@intel.com>

On Thu, Feb 12, 2026 at 11:26:22AM +0530, Raag Jadav wrote:
> As per uapi documentation[1], the prerequisite for wedged device is to
> redirected page faults to a dummy page. Follow it.
> 
> [1] Documentation/gpu/drm-uapi.rst
> 
> v2: Add uapi reference and fixes tag (Matthew Brost)
> 
> Fixes: 7bc00751f877 ("drm/xe: Use device wedged event")
> Signed-off-by: Raag Jadav <raag.jadav@intel.com>

Reviewed-by: Matthew Brost <matthew.brost@intel.com>

> ---
>  drivers/gpu/drm/xe/xe_bo.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
> index cb8a177ec02b..d6c2cb959cdd 100644
> --- a/drivers/gpu/drm/xe/xe_bo.c
> +++ b/drivers/gpu/drm/xe/xe_bo.c
> @@ -1941,7 +1941,7 @@ static vm_fault_t xe_bo_cpu_fault(struct vm_fault *vmf)
>  	int err = 0;
>  	int idx;
>  
> -	if (!drm_dev_enter(&xe->drm, &idx))
> +	if (xe_device_wedged(xe) || !drm_dev_enter(&xe->drm, &idx))
>  		return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot);
>  
>  	ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);
> -- 
> 2.43.0
> 

  parent reply	other threads:[~2026-02-12  6:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-12  5:56 [PATCH v2] drm/xe/bo: Redirect faults to dummy page for wedged device Raag Jadav
2026-02-12  6:09 ` ✓ CI.KUnit: success for drm/xe/bo: Redirect faults to dummy page for wedged device (rev2) Patchwork
2026-02-12  6:18 ` Matthew Brost [this message]
2026-02-12  6:43 ` ✓ Xe.CI.BAT: " Patchwork
2026-02-13  9:36 ` ✗ Xe.CI.FULL: failure " Patchwork
2026-02-13 14:44   ` Raag Jadav
2026-02-13 17:23     ` Matt Roper

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=aY1wzdGSnjp0RJvJ@lstrano-desk.jf.intel.com \
    --to=matthew.brost@intel.com \
    --cc=himal.prasad.ghimiray@intel.com \
    --cc=intel-xe@lists.freedesktop.org \
    --cc=raag.jadav@intel.com \
    --cc=riana.tauro@intel.com \
    --cc=rodrigo.vivi@intel.com \
    --cc=thomas.hellstrom@linux.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox