Skip to content

Commit 5e9209c

Browse files
committed
drm/xe: Assert G2H outstanding when releasing G2H
Ensure we are managing G2H credits correctly. Extra important now that this is tied to PM. Signed-off-by: Matthew Brost <matthew.brost@intel.com> Reviewed-by: Michal Wajdeczko <michal.wajdeczko@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240725231801.1958038-1-matthew.brost@intel.com
1 parent be8f9f4 commit 5e9209c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

drivers/gpu/drm/xe/xe_guc_ct.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -516,6 +516,7 @@ static void __g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len)
516516
lockdep_assert_held(&ct->fast_lock);
517517
xe_gt_assert(ct_to_gt(ct), ct->ctbs.g2h.info.space + g2h_len <=
518518
ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space);
519+
xe_gt_assert(ct_to_gt(ct), ct->g2h_outstanding);
519520

520521
ct->ctbs.g2h.info.space += g2h_len;
521522
if (!--ct->g2h_outstanding)

0 commit comments

Comments
 (0)