]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
drm/xe/ct: Separate waiting for retry from ct send function
authorTomasz Lis <tomasz.lis@intel.com>
Thu, 9 Oct 2025 17:08:44 +0000 (19:08 +0200)
committerMichal Wajdeczko <michal.wajdeczko@intel.com>
Tue, 14 Oct 2025 10:37:02 +0000 (12:37 +0200)
commitbb3d208250424ef25d34f2f05f18f094e5cebfa5
tree17f7451c4759d47427cb8afd1adb9c0c2199e837
parent82ee50252dc891e3f3b32d923bb4f656d300b772
drm/xe/ct: Separate waiting for retry from ct send function

The function `guc_ct_send_locked()` is really quite simple, but still
looks complex due to exposed internals. It is sending a message,
and in case of lack of space, waiting for a proper moment to send
a retry.

Clear separation of send function and wait function will help with
readability. This is a cosmetic change only, no functional difference
is expected.

This patch introduces `guc_ct_send_wait_for_retry()`, and uses it to
greatly simplify `guc_ct_send_locked()`.

Signed-off-by: Tomasz Lis <tomasz.lis@intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Signed-off-by: Michal Wajdeczko <michal.wajdeczko@intel.com>
Link: https://lore.kernel.org/r/20251009170844.178199-1-tomasz.lis@intel.com
drivers/gpu/drm/xe/xe_guc_ct.c