drm/xe: Add GuC state asserts to deregister_exec_queue
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-9-matthew.brost@intel.com
This commit is contained in:
parent
7f4f492c70
commit
716ce587a8
@ -1587,6 +1587,11 @@ static void deregister_exec_queue(struct xe_guc *guc, struct xe_exec_queue *q)
|
||||
q->guc->id,
|
||||
};
|
||||
|
||||
xe_gt_assert(guc_to_gt(guc), exec_queue_destroyed(q));
|
||||
xe_gt_assert(guc_to_gt(guc), exec_queue_registered(q));
|
||||
xe_gt_assert(guc_to_gt(guc), !exec_queue_pending_disable(q));
|
||||
xe_gt_assert(guc_to_gt(guc), !exec_queue_pending_enable(q));
|
||||
|
||||
trace_xe_exec_queue_deregister(q);
|
||||
|
||||
xe_guc_ct_send_g2h_handler(&guc->ct, action, ARRAY_SIZE(action));
|
||||
|
Loading…
x
Reference in New Issue
Block a user