OSDN Git Service

drm/amd/pm: Fix incorrect power limit readback in smu11 if POWER_SOURCE_DC
authorDarren Powell <darren.powell@amd.com>
Sat, 21 Aug 2021 02:08:07 +0000 (22:08 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Oct 2021 18:15:02 +0000 (14:15 -0400)
commit02f8aa9f2a3249d32316d745d1e4a3afef4180e5
treeb8eaa2b9d308a8cd27aeb4e5f374e40eaf917376
parent2d1ac1cbe57b306b244c43aa11610b89ea5a3178
drm/amd/pm: Fix incorrect power limit readback in smu11 if POWER_SOURCE_DC

 when smu->adev->pm.ac_power == 0, message parameter with bit 16 set is saved
 to smu->current_power_limit.

Fixes: 0cb4c62125a9 ("drm/amd/pm: correct power limit setting for SMU V11)"

Signed-off-by: Darren Powell <darren.powell@amd.com>
Reviewed-by: Lijo Lazar <lijo.lazar@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/pm/swsmu/smu11/smu_v11_0.c