drm/amd/display: Allow PSTATE chnage when no displays are enabled
authorAric Cyr <aric.cyr@amd.com>
Thu, 29 Oct 2020 21:45:19 +0000 (17:45 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 20 Jan 2021 21:38:21 +0000 (16:38 -0500)
commit8aeb42bd2b360bfb095ec0983a96bdaf0a9f36d0
tree8604a5001bcb22c6057c9d62429682b94be821fb
parent4ef37e2703d97878a44687878cc7145777da335e
drm/amd/display: Allow PSTATE chnage when no displays are enabled

[Why]
When no displays are currently enabled, display driver should not
disallow PSTATE switching.

[How]
Allow PSTATE switching if either the active configuration supports it,
or there are no active displays.

Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Aric Cyr <aric.cyr@amd.com>
Reviewed-by: Jun Lei <Jun.Lei@amd.com>
Acked-by: Anson Jacob <anson.jacob@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c