drm/amdgpu/pm: properly handle sclk for profiling modes on vangogh
authorAlex Deucher <alexander.deucher@amd.com>
Mon, 4 Oct 2021 15:33:00 +0000 (11:33 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Nov 2021 18:16:17 +0000 (19:16 +0100)
commit1e7edd183481e719df76e86798b1a4bc20882d2b
treef32f04e0a61d0281a63d7972c82fc8fed19aa50a
parent451be8bcdc17c12e01a28d95ec5d8578a13b543a
drm/amdgpu/pm: properly handle sclk for profiling modes on vangogh

[ Upstream commit 68e3871dcd6e547f6c47454492bc452356cb9eac ]

When selecting between levels in the force performance levels interface
sclk (gfxclk) was not set correctly for all levels.  Select the proper
sclk settings for all levels.

Bug: https://gitlab.freedesktop.org/drm/amd/-/issues/1726
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/pm/swsmu/smu11/vangogh_ppt.c