Commit 7c5f3b63 authored by Timur Kristóf's avatar Timur Kristóf Committed by Greg Kroah-Hartman
Browse files

drm/amd/display: Don't overclock DCE 6 by 15%



[ Upstream commit cb7b7ae5 ]

The extra 15% clock was added as a workaround for a Polaris issue
which uses DCE 11, and should not have been used on DCE 6 which
is already hardcoded to the highest possible display clock.
Unfortunately, the extra 15% was mistakenly copied and kept
even on code paths which don't affect Polaris.

This commit fixes that and also adds a check to make sure
not to exceed the maximum DCE 6 display clock.

Fixes: 8cd61c31 ("drm/amd/display: Raise dispclk value for Polaris")
Fixes: dc88b4a6 ("drm/amd/display: make clk mgr soc specific")
Fixes: 3ecb3b79 ("drm/amd/display: dc/clk_mgr: add support for SI parts (v2)")
Signed-off-by: default avatarTimur Kristóf <timur.kristof@gmail.com>
Acked-by: default avatarAlex Deucher <alexander.deucher@amd.com>
Reviewed-by: default avatarRodrigo Siqueira <siqueira@igalia.com>
Reviewed-by: default avatarAlex Hung <alex.hung@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
(cherry picked from commit 427980c1)
Cc: stable@vger.kernel.org
[ `MIN` => `min` ]
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dfe40159
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment