]> git.hungrycats.org Git - linux/commitdiff
drm/xe: Remove redundant exec_queue_suspended() check in submit_exec_queue()
authorLu Yao <yaolu@kylinos.cn>
Wed, 17 Jun 2026 01:25:16 +0000 (09:25 +0800)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Wed, 17 Jun 2026 10:14:19 +0000 (06:14 -0400)
There already has a check for exec_queue_suspended(q) that returns early
if suspended.

Fixes: b7fb55cc3364 ("drm/xe/multi_queue: skip submit when primary queue is suspended")
Signed-off-by: Lu Yao <yaolu@kylinos.cn>
Reviewed-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Link: https://patch.msgid.link/20260617012516.19930-1-yaolu@kylinos.cn
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_guc_submit.c

index afe5d99cdd8bccc37110a0d0894abe77537b01b3..9458bf477fa6e96b9ccd5d90876d22bed63207ca 100644 (file)
@@ -1163,7 +1163,7 @@ static void submit_exec_queue(struct xe_exec_queue *q, struct xe_sched_job *job)
        if (exec_queue_suspended(q))
                return;
 
-       if (!exec_queue_enabled(q) && !exec_queue_suspended(q)) {
+       if (!exec_queue_enabled(q)) {
                action[len++] = XE_GUC_ACTION_SCHED_CONTEXT_MODE_SET;
                action[len++] = q->guc->id;
                action[len++] = GUC_CONTEXT_ENABLE;