]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
drm/xe: Add fault injection for xe_sync_entry_parse
authorPriyanka Dandamudi <priyanka.dandamudi@intel.com>
Wed, 12 Feb 2025 09:32:12 +0000 (09:32 +0000)
committerHimal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Fri, 21 Feb 2025 07:32:54 +0000 (13:02 +0530)
Add fault injection for xe_sync_entry_parse to allow it to fail while
executing xe_vm_bind_ioctl(). This needs to be added as it cannot be
reached by injecting error through IOCTL arguments.

Signed-off-by: Priyanka Dandamudi <priyanka.dandamudi@intel.com>
Reviewed-by: Satyanarayana K V P <satyanarayana.k.v.p@intel.com>
Reviewed-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250212093212.3069356-1-priyanka.dandamudi@intel.com
Signed-off-by: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
drivers/gpu/drm/xe/xe_sync.c

index 42f5bebd09e50c1b9bd3f3eae55245f530b7bed3..f87276df18f280ea0dacc875952a75caf405841f 100644 (file)
@@ -210,6 +210,7 @@ int xe_sync_entry_parse(struct xe_device *xe, struct xe_file *xef,
 
        return 0;
 }
+ALLOW_ERROR_INJECTION(xe_sync_entry_parse, ERRNO);
 
 int xe_sync_entry_add_deps(struct xe_sync_entry *sync, struct xe_sched_job *job)
 {