]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amd/pm: bug fix for pcie dpm
authorKenneth Feng <kenneth.feng@amd.com>
Tue, 9 Mar 2021 13:10:16 +0000 (21:10 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 10 Mar 2021 21:20:34 +0000 (16:20 -0500)
commitc61c8a49b501bbea0174be2fb6f5a828ab44733a
tree20a8f8003f893fa2c1310aa34a414b79fb46559f
parent53ec040cff2c4196a15bf4e0ed3f36c74d4d47f9
drm/amd/pm: bug fix for pcie dpm

Currently the pcie dpm has two problems.
1. Only the high dpm level speed/width can be overrided
if the requested values are out of the pcie capability.
2. The high dpm level is always overrided though sometimes
it's not necesarry.

Signed-off-by: Kenneth Feng <kenneth.feng@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega10_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/pm/powerplay/hwmgr/vega20_hwmgr.c