drm/amd/display: FCLK P-state support updates
authorChaitanya Dhere <chaitanya.dhere@amd.com>
Mon, 11 Apr 2022 17:37:21 +0000 (13:37 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Jun 2022 20:45:01 +0000 (16:45 -0400)
commit0c9ed6044c5d08562d38d56e94279badef39e4c7
treee38794d0c659efb92060374d9179d7e2b184b998
parente127306d433ff99f29d1b083c6b3aa128bbd9c5e
drm/amd/display: FCLK P-state support updates

[Why]
Previously we used to send FCLK P-state enable messages upon each call
to update_clocks based on dml output. This resulted in increased message
transactions between DC and PMFW.

[How]
Update the code to check safe_to_lower status and send the message based
on dml input only on boot. This reduces message transactions. Also
remove other unwanted code based on current code status.

Signed-off-by: Chaitanya Dhere <chaitanya.dhere@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn32/dcn32_clk_mgr_smu_msg.h