Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2] drm/xe/bo: Redirect faults to dummy page for wedged device
@ 2026-02-12  5:56 Raag Jadav
  2026-02-12  6:09 ` ✓ CI.KUnit: success for drm/xe/bo: Redirect faults to dummy page for wedged device (rev2) Patchwork
                   ` (3 more replies)
  0 siblings, 4 replies; 7+ messages in thread
From: Raag Jadav @ 2026-02-12  5:56 UTC (permalink / raw)
  To: intel-xe
  Cc: matthew.brost, thomas.hellstrom, himal.prasad.ghimiray,
	rodrigo.vivi, riana.tauro, Raag Jadav

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>
---
 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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2026-02-13 17:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [PATCH v2] drm/xe/bo: Redirect faults to dummy page for wedged device Matthew Brost
2026-02-12  6:43 ` ✓ Xe.CI.BAT: success for drm/xe/bo: Redirect faults to dummy page for wedged device (rev2) 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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox