Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

drm/xe/bo: Redirect faults to dummy page for wedged device

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>
Link: https://patch.msgid.link/20260212055622.2054991-1-raag.jadav@intel.com
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
(cherry picked from commit c020fff70d757612933711dd3cc3751d7d782d3c)
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>

authored by

Raag Jadav and committed by
Rodrigo Vivi
4e83a8d5 1acec6ef

+1 -1
+1 -1
drivers/gpu/drm/xe/xe_bo.c
··· 1941 1941 int err = 0; 1942 1942 int idx; 1943 1943 1944 - if (!drm_dev_enter(&xe->drm, &idx)) 1944 + if (xe_device_wedged(xe) || !drm_dev_enter(&xe->drm, &idx)) 1945 1945 return ttm_bo_vm_dummy_page(vmf, vmf->vma->vm_page_prot); 1946 1946 1947 1947 ret = xe_bo_cpu_fault_fastpath(vmf, xe, bo, needs_rpm);