drm/amd/display: Only wait for required free space in DMUB mailbox
authorDillon Varone <dillon.varone@amd.com>
Thu, 24 Apr 2025 15:48:46 +0000 (11:48 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 17:28:59 +0000 (13:28 -0400)
commitdbc5b24fffa7d11c77e62e7334309906ac9e45b5
treee5ff39e9e7c497d360d539928210905739d99c17
parent59510792baa9402c8ec2913423a2db5d17af8a58
drm/amd/display: Only wait for required free space in DMUB mailbox

[WHY&HOW]
When command submission is blocked by a full mailbox, only wait for
enough space to free to submit the command, instead of waiting for idle.

Reviewed-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Signed-off-by: Dillon Varone <dillon.varone@amd.com>
Signed-off-by: Ray Wu <ray.wu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dc_dmub_srv.c
drivers/gpu/drm/amd/display/dmub/dmub_srv.h
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c