All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe/hw_engine_class_sysfs: Allow to inject error during probe
@ 2025-03-14 10:50 Francois Dugast
  2025-03-14 14:12 ` ✓ CI.Patch_applied: success for drm/xe/hw_engine_class_sysfs: Allow to inject error during probe (rev2) Patchwork
                   ` (9 more replies)
  0 siblings, 10 replies; 13+ messages in thread
From: Francois Dugast @ 2025-03-14 10:50 UTC (permalink / raw)
  To: intel-xe; +Cc: Francois Dugast

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>
---
 drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c b/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
index b53e8d2accdb..e238c0e9fdd0 100644
--- a/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
+++ b/drivers/gpu/drm/xe/xe_hw_engine_class_sysfs.c
@@ -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)
 {
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2025-03-24 15:03 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-14 10:50 [PATCH] drm/xe/hw_engine_class_sysfs: Allow to inject error during probe Francois Dugast
2025-03-14 14:12 ` ✓ CI.Patch_applied: success for drm/xe/hw_engine_class_sysfs: Allow to inject error during probe (rev2) Patchwork
2025-03-14 14:12 ` ✓ CI.checkpatch: " Patchwork
2025-03-14 14:13 ` ✓ CI.KUnit: " Patchwork
2025-03-14 14:30 ` ✓ CI.Build: " Patchwork
2025-03-14 14:32 ` ✓ CI.Hooks: " Patchwork
2025-03-14 14:34 ` ✓ CI.checksparse: " Patchwork
2025-03-14 14:54 ` ✓ Xe.CI.BAT: " Patchwork
2025-03-14 17:59 ` [PATCH] drm/xe/hw_engine_class_sysfs: Allow to inject error during probe Lucas De Marchi
2025-03-14 21:53 ` ✗ Xe.CI.Full: failure for drm/xe/hw_engine_class_sysfs: Allow to inject error during probe (rev2) Patchwork
2025-03-24 14:37   ` Rodrigo Vivi
2025-03-24 15:03     ` Lucas De Marchi
2025-03-17  7:12 ` [PATCH] drm/xe/hw_engine_class_sysfs: Allow to inject error during probe Upadhyay, Tejas

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.