]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/guc: Limit sleep while waiting for H2G credits
authorMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 27 Jan 2026 19:37:23 +0000 (20:37 +0100)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Mon, 2 Feb 2026 21:35:43 +0000 (22:35 +0100)
commit943c4d0637cff358f7be8e71694475538e7b1ce3
tree2142804a70a8e2dc6c92197fc13aa47f5c0fc5a1
parenteec43f368466e0de9a4aaa4d09ac23815186d2a6
drm/xe/guc: Limit sleep while waiting for H2G credits

Instead of endlessly increasing the sleep timeout while waiting
for the H2G credits, use exponential increase only up to the given
limit, like it was initially done in the GuC submission code.

While here, fix the actual timeout to the 1s as it was documented.

Suggested-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patch.msgid.link/20260127193727.601-4-michal.wajdeczko@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c