]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe: Allow fault injection in vm create and vm bind IOCTLs
authorFrancois Dugast <francois.dugast@intel.com>
Wed, 13 Nov 2024 16:22:12 +0000 (17:22 +0100)
committerFrancois Dugast <francois.dugast@intel.com>
Thu, 14 Nov 2024 10:48:13 +0000 (11:48 +0100)
commit9d42476f71a9a000ea2d72aae5f4d43c5061fe10
treee28a514443ac5ce017e6d78455937547991702f8
parentb107c63d2953907908fd0cafb0e543b3c3167b75
drm/xe: Allow fault injection in vm create and vm bind IOCTLs

Use fault injection infrastructure to allow specific functions to
be configured over debugfs for failing during the execution of
xe_vm_create_ioctl() and xe_vm_bind_ioctl(). 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.

v2: Add xe_pt_update_ops_{prepare,run} (Matthew Brost)

Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241113162212.2154103-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_pt.c
drivers/gpu/drm/xe/xe_vm.c