Intel-XE Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/xe: Assert G2H outstanding when releasing G2H
@ 2024-07-25 23:18 Matthew Brost
  2024-07-25 23:23 ` ✓ CI.Patch_applied: success for " Patchwork
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Matthew Brost @ 2024-07-25 23:18 UTC (permalink / raw)
  To: intel-xe

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>
---
 drivers/gpu/drm/xe/xe_guc_ct.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/xe/xe_guc_ct.c b/drivers/gpu/drm/xe/xe_guc_ct.c
index 64afc90ad2c5..beeeb120d1fc 100644
--- a/drivers/gpu/drm/xe/xe_guc_ct.c
+++ b/drivers/gpu/drm/xe/xe_guc_ct.c
@@ -516,6 +516,7 @@ static void __g2h_release_space(struct xe_guc_ct *ct, u32 g2h_len)
 	lockdep_assert_held(&ct->fast_lock);
 	xe_gt_assert(ct_to_gt(ct), ct->ctbs.g2h.info.space + g2h_len <=
 		     ct->ctbs.g2h.info.size - ct->ctbs.g2h.info.resv_space);
+	xe_gt_assert(ct_to_gt(ct), ct->g2h_outstanding);
 
 	ct->ctbs.g2h.info.space += g2h_len;
 	if (!--ct->g2h_outstanding)
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2024-07-26 12:36 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-25 23:18 [PATCH] drm/xe: Assert G2H outstanding when releasing G2H Matthew Brost
2024-07-25 23:23 ` ✓ CI.Patch_applied: success for " Patchwork
2024-07-25 23:23 ` ✓ CI.checkpatch: " Patchwork
2024-07-25 23:24 ` ✓ CI.KUnit: " Patchwork
2024-07-25 23:36 ` ✓ CI.Build: " Patchwork
2024-07-25 23:39 ` ✓ CI.Hooks: " Patchwork
2024-07-25 23:40 ` ✓ CI.checksparse: " Patchwork
2024-07-26  0:03 ` ✓ CI.BAT: " Patchwork
2024-07-26  8:45 ` ✗ CI.FULL: failure " Patchwork
2024-07-26 12:36 ` [PATCH] " Michal Wajdeczko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox