OSDN Git Service

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)
commit50ceb1fe7acd50831180f4b5597bf7b39e8059c8
tree20a8f8003f893fa2c1310aa34a414b79fb46559f
parent521f04f9e3ffc73ef96c776035f8a0a31b4cdd81
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