]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Allow to inject error in early probe
authorLucas De Marchi <lucas.demarchi@intel.com>
Fri, 14 Mar 2025 13:54:27 +0000 (06:54 -0700)
committerLucas De Marchi <lucas.demarchi@intel.com>
Fri, 21 Mar 2025 18:48:22 +0000 (11:48 -0700)
commit676da6ba5bdc1997910ac1cc901cbf16bc6f6d97
tree025fadabcaaed9f6559c77a449ea1aaf52bcbe76
parent14efa739ca70514e8b923a02b5bcb42511dd1ee8
drm/xe: Allow to inject error in early probe

Allow to test if driver behaves correctly when xe_pcode_probe_early()
fails. Note that this is not sufficient for testing survivability mode
as it's still required to read the hw to check for errors, which doesn't
happen on an injected failure.

To complete the early probe coverage, allow injection in the other
functions as well: xe_mmio_probe_early() and xe_device_probe_early().

Reviewed-by: Francois Dugast <francois.dugast@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250314-fix-survivability-v5-3-fdb3559ea965@intel.com
Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
drivers/gpu/drm/xe/xe_device.c
drivers/gpu/drm/xe/xe_mmio.c
drivers/gpu/drm/xe/xe_pcode.c