]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
drm/xe/pxp: Clear restart flag in pxp_start after jumping back
authorDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Tue, 24 Mar 2026 15:37:22 +0000 (08:37 -0700)
committerDaniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Fri, 27 Mar 2026 13:54:31 +0000 (06:54 -0700)
If we don't clear the flag we'll keep jumping back at the beginning of
the function once we reach the end.

Fixes: ccd3c6820a90 ("drm/xe/pxp: Decouple queue addition from PXP start")
Signed-off-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Cc: Julia Filipchuk <julia.filipchuk@intel.com>
Reviewed-by: Julia Filipchuk <julia.filipchuk@intel.com>
Link: https://patch.msgid.link/20260324153718.3155504-9-daniele.ceraolospurio@intel.com
drivers/gpu/drm/xe/xe_pxp.c

index a054b57f5ae5185b098719936b42d378caa2180b..aad3dfa3156eeb7c0676a94f5a1616a5a832d19f 100644 (file)
@@ -512,7 +512,7 @@ static int __exec_queue_add(struct xe_pxp *pxp, struct xe_exec_queue *q)
 static int pxp_start(struct xe_pxp *pxp, u8 type)
 {
        int ret = 0;
-       bool restart = false;
+       bool restart;
 
        if (!xe_pxp_is_enabled(pxp))
                return -ENODEV;
@@ -541,6 +541,8 @@ wait_for_idle:
                                         msecs_to_jiffies(PXP_ACTIVATION_TIMEOUT_MS)))
                return -ETIMEDOUT;
 
+       restart = false;
+
        mutex_lock(&pxp->mutex);
 
        /* If PXP is not already active, turn it on */