drm/amd/display: Wait for mailbox ready when powering up DMCUB
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Fri, 12 Jan 2024 15:06:15 +0000 (10:06 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jan 2024 20:41:36 +0000 (15:41 -0500)
commit2812b5add41ea1b608923d5fb6a0d4f5b0d3186c
tree88b0151e67a08cea1eb0ce8e1a4101baaff94984
parent05d3dfd3edba097596d8fef5c69efe0df61ce59e
drm/amd/display: Wait for mailbox ready when powering up DMCUB

[Why]
Otherwise we can send commands too early and they don't execute until
the next command is sent.

[How]
Check the extra status bit when polling for HW powered up.

Reviewed-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Tom Chung <chiahsuan.chung@amd.com>
Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c