[PATCH 2/2] drm/xe: Add fault injection for xe_hw_engine_class_to_str

Sobin Thomas sobin.thomas at intel.com
Tue Apr 15 06:42:11 UTC 2025


- Added fault injection for `xe_hw_engine_class_to_str` to enhance coverage.
- can be tested with igt at inject-fault-probe-function-xe_hw_engine_class_to_str

Signed-off-by: Sobin Thomas <sobin.thomas at intel.com>
---
 drivers/gpu/drm/xe/xe_hw_engine.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_hw_engine.c b/drivers/gpu/drm/xe/xe_hw_engine.c
index 93241fd0a4ba..56d95635374a 100644
--- a/drivers/gpu/drm/xe/xe_hw_engine.c
+++ b/drivers/gpu/drm/xe/xe_hw_engine.c
@@ -1011,6 +1011,7 @@ const char *xe_hw_engine_class_to_str(enum xe_engine_class class)
 
 	return NULL;
 }
+ALLOW_ERROR_INJECTION(xe_hw_engine_class_to_str, NULL);
 
 u64 xe_hw_engine_read_timestamp(struct xe_hw_engine *hwe)
 {
-- 
2.34.1



More information about the Intel-xe mailing list