drm/amd/display: Wait before sending idle allow and after idle disallow
authorNicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Mon, 15 Jan 2024 22:24:26 +0000 (17:24 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 29 Jan 2024 20:41:29 +0000 (15:41 -0500)
commit05d3dfd3edba097596d8fef5c69efe0df61ce59e
tree3d070b052e04f18b2694d140df8e38192de942e3
parent6bd0960644ed424683995cb6b9bece03e8ccfcee
drm/amd/display: Wait before sending idle allow and after idle disallow

[Why]
We want acknowledgment of the driver idle disallow from DMCUB before
continuing with any further programming.

For idle allow we want to minimize the chance of DMCUB actively
interacing with other firmware components on the system (eg. PMFW)
at the same time.

[How]
Ensure that DMCUB isn't in the middle of processing other command
submissions prior to allowing idle and after disallowing idle by
inserting a wait before the allow and by changing the wait type for
the idle disallow.

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/dc/dc_dmub_srv.c