drm/powerplay: Fix Vega20 Average Power value v4
authorKent Russell <kent.russell@amd.com>
Thu, 22 Aug 2019 12:17:40 +0000 (08:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Aug 2019 21:20:02 +0000 (16:20 -0500)
commit21649c0b6b7899f4fa3099c46d3d027f60b107ec
tree3da564293ea121394df45d2e5263d38d217bd4d7
parent42068e1ef961c719f967dbbb4ddcb394a0ba7917
drm/powerplay: Fix Vega20 Average Power value v4

The SMU changed reading from CurrSocketPower to AverageSocketPower, so
reflect this accordingly. This fixes the issue where Average Power
Consumption was being reported as 0 from SMU 40.46-onward

v2: Fixed headline prefix
v3: Add check for SMU version for proper compatibility
v4: Style fix

Signed-off-by: Kent Russell <kent.russell@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/vega20_ppt.c