summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Brost <matthew.brost@intel.com>2024-06-11 07:40:51 -0700
committerMatthew Brost <matthew.brost@intel.com>2024-06-12 19:10:25 -0700
commitfc592a81ff9f0e5a46d7fb652a74db97fed5ef1b (patch)
tree4eda1b2f121bc50b7f8cd421b2511a499c8cc52e
parent716ce587a81e6165a4133ea32f63f3d69f80e1e7 (diff)
downloadlinux-fc592a81ff9f0e5a46d7fb652a74db97fed5ef1b.tar.gz
linux-fc592a81ff9f0e5a46d7fb652a74db97fed5ef1b.zip
drm/xe: Add pending disable assert to handle_sched_done
Will help catch bugs in GuC state machine. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Jonathan Cavitt <jonathan.cavitt@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240611144053.2805091-10-matthew.brost@intel.com
-rw-r--r--drivers/gpu/drm/xe/xe_guc_submit.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/xe/xe_guc_submit.c b/drivers/gpu/drm/xe/xe_guc_submit.c
index 26c27ca51b2e..25240b50a59c 100644
--- a/drivers/gpu/drm/xe/xe_guc_submit.c
+++ b/drivers/gpu/drm/xe/xe_guc_submit.c
@@ -1611,6 +1611,7 @@ static void handle_sched_done(struct xe_guc *guc, struct xe_exec_queue *q,
wake_up_all(&guc->ct.wq);
} else {
xe_gt_assert(guc_to_gt(guc), runnable_state == 0);
+ xe_gt_assert(guc_to_gt(guc), exec_queue_pending_disable(q));
clear_exec_queue_pending_disable(q);
if (q->guc->suspend_pending) {