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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 7 Feb 2021 14:37:16 +0000 (15:37 +0100)
commita2245a995563ff684aa5cbeb25aea2fb157c3675
treed3eb4e67950234b8ba58f3d72cf78291b6c26f16
parentaf2fc0f4acb618ac66c0820ad84c9da1a8e95d95
drm/amd/display: Allow PSTATE chnage when no displays are enabled

[ Upstream commit 8bc3d461d0a95bbcc2a0a908bbadc87e198a86a8 ]

[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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/dc/clk_mgr/dcn30/dcn30_clk_mgr.c