]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: Correct DPMS disable IP version check
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 4 Nov 2021 15:44:50 +0000 (10:44 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 5 Nov 2021 18:11:43 +0000 (14:11 -0400)
commit88ed10d5c17dae233c1e05754d99dce8336d5842
tree1daad9c8cf5593edfe795aa7b7422679976127d6
parented42c4595a8877023f289e1576efa0cb0cf2e6d4
drm/amd/pm: Correct DPMS disable IP version check

Previously there was a check based on chip # for chips that aligned to
>=CHIP_NAVI10 to have RLC stopped as part of DPMS check.  This was because
of gfxclk being controlled by RLC in the newer designs.

As part of IP version checking though, this got changed to match IP
version for SMU.  Because Renoir designs also include smu11 that meant
that even GFX9 started to stop RLC earlier.

Adjust to match GFX IP version instead of SMU IP version to restore the
previous behavior.

Fixes: 342641a45376 ("drm/amdgpu/amdgpu_smu: convert to IP version checking")
Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/amdgpu_smu.c