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>
Thu, 22 Aug 2019 22:17:35 +0000 (17:17 -0500)
commit32e40ffbced3b14ceac1ae13a1a66c5849a6d2d3
treebf617e730df6fd4065c7206e06c24709d85ce797
parentea207b29ae7718a8717de6ea784e99d41826e642
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