Skip to content

Commit

Permalink
drm/xe/hw_engine_class_sysfs: Allow to inject error during probe
Browse files Browse the repository at this point in the history
Allow fault injection in a function used during initialization by
xe_hw_engine_class_sysfs_init() so that its error handling can be
tested.

Signed-off-by: Francois Dugast <francois.dugast@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Reviewed-by: Lucas De Marchi <lucas.demarchi@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20250314105050.636983-1-francois.dugast@intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
  • Loading branch information
Francois Dugast authored and Rodrigo Vivi committed Mar 24, 2025
1 parent 6895828 commit ac7759c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -558,6 +558,7 @@ static int xe_add_hw_engine_class_defaults(struct xe_device *xe,
kobject_put(kobj);
return err;
}
ALLOW_ERROR_INJECTION(xe_add_hw_engine_class_defaults, ERRNO); /* See xe_pci_probe() */

static void xe_hw_engine_sysfs_kobj_release(struct kobject *kobj)
{
Expand Down

0 comments on commit ac7759c

Please sign in to comment.