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>
Fri, 23 Aug 2019 16:31:16 +0000 (11:31 -0500)
commit951e15c2b58436b30e435f3169c97e9f4e265b58
tree0e653a00eef78ef72c6b5c791b6c5a296a16c327
parentb313bbebd79f73c151413a86e205ded32ec71c85
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