Skip to content

Commit

Permalink
drm/xe: Add pending disable assert to handle_sched_done
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Matthew Brost committed Jun 13, 2024
1 parent 716ce58 commit fc592a8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/gpu/drm/xe/xe_guc_submit.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit fc592a8

Please sign in to comment.