drm/amd/powerplay: force the trim of the mclk dpm_levels if OD is enabled
authorSergei Lopatin <magist3r@gmail.com>
Wed, 26 Jun 2019 09:56:59 +0000 (14:56 +0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 21 Apr 2020 07:06:43 +0000 (09:06 +0200)
commitba59ac209bb8290501661280fa6d721a0e05c505
tree053d4f212e3f5959314709c9b92b34408d32d687
parenta501f1473537037a38e4dae9de5b8ffa28a85efd
drm/amd/powerplay: force the trim of the mclk dpm_levels if OD is enabled

commit 8c7f0a44b4b4ef16df8f44fbaee6d1f5d1593c83 upstream.

Should prevent flicker if PP_OVERDRIVE_MASK is set.

bug: https://bugs.freedesktop.org/show_bug.cgi?id=102646
bug: https://bugs.freedesktop.org/show_bug.cgi?id=108941
bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1088
bug: https://gitlab.freedesktop.org/drm/amd/-/issues/628

Signed-off-by: Sergei Lopatin <magist3r@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c