]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/xe: Allow fault injection in exec queue IOCTLs
authorFrancois Dugast <francois.dugast@intel.com>
Wed, 5 Mar 2025 15:06:59 +0000 (16:06 +0100)
committerFrancois Dugast <francois.dugast@intel.com>
Thu, 6 Mar 2025 11:16:35 +0000 (12:16 +0100)
commit5148da09dcd3f00913ddfc5d03901c4de56b61e3
treefa10bac3c85ceecd440012935f9f64a49a2623c7
parent22adf7c51ed19078fba77eff95d74642e3411c13
drm/xe: Allow fault injection in exec queue IOCTLs

Use fault injection infrastructure to allow specific functions to
be configured over debugfs for failing during the execution of
xe_exec_queue_create_ioctl(). xe_exec_queue_destroy_ioctl() and
xe_exec_queue_get_property_ioctl() are not considered as there is
no unwinding code to test with fault injection.

This allows more thorough testing from user space by going through
code paths for error handling and unwinding which cannot be reached
by simply injecting errors in IOCTL arguments. This can help
increase code robustness.

The corresponding IGT series is:
https://patchwork.freedesktop.org/series/144138/

Reviewed-by: Sai Teja Pottumuttu <sai.teja.pottumuttu@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250305150659.46276-1-francois.dugast@intel.com
Signed-off-by: Francois Dugast <francois.dugast@intel.com>
drivers/gpu/drm/xe/xe_exec_queue.c
drivers/gpu/drm/xe/xe_hw_engine_group.c
drivers/gpu/drm/xe/xe_vm.c