Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Add fault injection for xe_oa_alloc_regs
@ 2025-02-27 10:23 nakshtra.goyal
  2025-02-27 10:56 ` Francois Dugast
                   ` (9 more replies)
  0 siblings, 10 replies; 12+ messages in thread
From: nakshtra.goyal @ 2025-02-27 10:23 UTC (permalink / raw)
  To: intel-xe, ramadevi.gandi; +Cc: francois.dugast

From: Nakshtra Goyal <nakshtra.goyal@intel.com>

Add fault injection for xe_oa_alloc_regs to allow it to fail while
executing xe_oa_add_config_ioctl().
This need to be added as it cannot be reached by injecting error through
IOCTL arguments.

Signed-off-by: Nakshtra Goyal <nakshtra.goyal@intel.com>
---
 drivers/gpu/drm/xe/xe_oa.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_oa.c b/drivers/gpu/drm/xe/xe_oa.c
index d89e6cabf5a5..b8704360f998 100644
--- a/drivers/gpu/drm/xe/xe_oa.c
+++ b/drivers/gpu/drm/xe/xe_oa.c
@@ -2231,6 +2231,7 @@ xe_oa_alloc_regs(struct xe_oa *oa, bool (*is_valid)(struct xe_oa *oa, u32 addr),
 	kfree(oa_regs);
 	return ERR_PTR(err);
 }
+ALLOW_ERROR_INJECTION(xe_oa_alloc_regs, ERRNO);
 
 static ssize_t show_dynamic_id(struct kobject *kobj,
 			       struct kobj_attribute *attr,
-- 
2.34.1


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

end of thread, other threads:[~2025-03-26  9:14 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-27 10:23 [PATCH] drm/xe: Add fault injection for xe_oa_alloc_regs nakshtra.goyal
2025-02-27 10:56 ` Francois Dugast
2025-02-27 11:53 ` ✓ CI.Patch_applied: success for " Patchwork
2025-02-27 11:53 ` ✓ CI.checkpatch: " Patchwork
2025-02-27 11:54 ` ✓ CI.KUnit: " Patchwork
2025-02-27 12:11 ` ✓ CI.Build: " Patchwork
2025-02-27 12:13 ` ✓ CI.Hooks: " Patchwork
2025-02-27 12:15 ` ✓ CI.checksparse: " Patchwork
2025-02-27 12:33 ` ✓ Xe.CI.BAT: " Patchwork
2025-02-27 14:41 ` ✗ Xe.CI.Full: failure " Patchwork
2025-03-26  9:12   ` Goyal, Nakshtra
2025-03-26  9:14 ` [PATCH] " Ghimiray, Himal Prasad

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox