projects
/
linux
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
be8f9f4
)
drm/xe: Assert G2H outstanding when releasing G2H
author
Matthew Brost
<matthew.brost@intel.com>
Thu, 25 Jul 2024 23:18:01 +0000
(16:18 -0700)
committer
Matthew Brost
<matthew.brost@intel.com>
Fri, 26 Jul 2024 13:05:07 +0000
(06:05 -0700)
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
drivers/gpu/drm/xe/xe_guc_ct.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/xe/xe_guc_ct.c
b/drivers/gpu/drm/xe/xe_guc_ct.c
index 64afc90ad2c51942069efcd5ac078962a11bcce3..beeeb120d1fcc6a4f70426f739abd84de2df6e04 100644
(file)
--- 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)