drm/powerplay: Fix Vega20 power reading again
authorKent Russell <kent.russell@amd.com>
Fri, 23 Aug 2019 13:13:18 +0000 (09:13 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 26 Aug 2019 21:20:32 +0000 (16:20 -0500)
commit23b7f6c41d4717b1638eca47e09d7e99fc7b9fd9
tree1e2a4c3d5b4417e94ed243c022fecf4a7f20804c
parent21649c0b6b7899f4fa3099c46d3d027f60b107ec
drm/powerplay: Fix Vega20 power reading again

For the 40.46 SMU release, they changed CurrSocketPower to
AverageSocketPower, but this was changed back in 40.47 so just check if
it's 40.46 and make the appropriate change

Tested with 40.45, 40.46 and 40.47 successfully

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