drm/amd/display: Request PHYCLK adjustment on PHY enable/disable
authorJoshua Aberback <joshua.aberback@amd.com>
Fri, 26 Jun 2020 07:57:57 +0000 (03:57 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 8 Jul 2020 13:02:24 +0000 (09:02 -0400)
commitefc7d1653817a6a82d6640dee9e8ea6feb441344
tree07b4e7879e1b02bb67320d2db91029d5446bd678
parentd3d847d8f25f2d0a82a3a18f36c1cfa86f2e93ac
drm/amd/display: Request PHYCLK adjustment on PHY enable/disable

[Why]
Currently we don't explicitly send a request for a minimum PHYCLK, and
we hope that the dependencies other clocks have will raise PHYCLK when
needed.

[How]
- new clk_mgr function to keep track of PHYCLK requirements
- request maximum requirement across all links
- remove PHYCLK from clock state comparator, as it doesn't come from DML

Signed-off-by: Joshua Aberback <joshua.aberback@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Eryk Brol <eryk.brol@amd.com>
Acked-by: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn20/dcn20_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn21/rn_clk_mgr.c
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c
drivers/gpu/drm/amd/display/dc/core/dc_link_hwss.c
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr.h
drivers/gpu/drm/amd/display/dc/inc/hw/clk_mgr_internal.h