]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
drm/xe: Allow error injection for xe_pxp_exec_queue_add
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 9 Sep 2025 22:12:41 +0000 (15:12 -0700)
committerJohn Harrison <John.C.Harrison@Intel.com>
Tue, 16 Sep 2025 22:54:31 +0000 (15:54 -0700)
This will allow us to simulate this function returning an error like
we do for other functions called in the exec_queue_create path.

Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: John Harrison <John.C.Harrison@Intel.com>
Reviewed-by: John Harrison <John.C.Harrison@Intel.com>
Signed-off-by: John Harrison <John.C.Harrison@Intel.com>
Link: https://lore.kernel.org/r/20250909221240.3711023-4-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_pxp.c

index 3d62008c99f15ab6d248f5370fa77a292864eb67..bdbdbbf6a6781adebb12e2286888f21f7d212cfb 100644 (file)
@@ -688,6 +688,7 @@ start:
 
        return ret;
 }
+ALLOW_ERROR_INJECTION(xe_pxp_exec_queue_add, ERRNO);
 
 static void __pxp_exec_queue_remove(struct xe_pxp *pxp, struct xe_exec_queue *q, bool lock)
 {