linux/drivers/gpu/drm/amd
Sandeep Raghuraman 349eb8ed73 drm/amdgpu: Fix bug in reporting voltage for CIK
[ Upstream commit d98299885c ]

On my R9 390, the voltage was reported as a constant 1000 mV.
This was due to a bug in smu7_hwmgr.c, in the smu7_read_sensor()
function, where some magic constants were used in a condition,
to determine whether the voltage should be read from PLANE2_VID
or PLANE1_VID. The VDDC mask was incorrectly used, instead of
the VDDGFX mask.

This patch changes the code to use the correct defined constants
(and apply the correct bitshift), thus resulting in correct voltage reporting.

Signed-off-by: Sandeep Raghuraman <sandy.8925@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-09-17 13:45:26 +02:00
..
acp
amdgpu drm/amdgpu: Fix buffer overflow in INFO ioctl 2020-09-03 11:24:29 +02:00
amdkfd drm/amdkfd: Fix reference count leaks. 2020-09-03 11:24:19 +02:00
display drm/amd/display: fix pow() crashing when given base 0 2020-08-26 10:31:00 +02:00
include amdgpu/gmc_v9: save/restore sdpif regs during S3 2020-03-05 16:42:18 +01:00
lib
powerplay drm/amdgpu: Fix bug in reporting voltage for CIK 2020-09-17 13:45:26 +02:00