]> 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)
commit77c238a5116aa317547001cacdab791b4f013b40
tree20a8f8003f893fa2c1310aa34a414b79fb46559f
parent038cdd41301aeb04e44c55e162679a162598e4e7
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