drm/amd/powerplay: update OD to take voltage value instead of offset
authorEvan Quan <evan.quan@amd.com>
Thu, 13 Sep 2018 08:14:33 +0000 (16:14 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 19 Sep 2018 17:37:55 +0000 (12:37 -0500)
commitb1f82cb21231ccfec3c15b628f8deed778cce22b
tree35186e49e0ef6f21a65895b196d9ca370716c083
parent8a1304a5b4310b941d08c988326d15673ed0f689
drm/amd/powerplay: update OD to take voltage value instead of offset

With the latest SMC fw, we are able to get the voltage value for
specific frequency point. So, we update the OD relates to take
absolute voltage instead of offset.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega20_hwmgr.h
drivers/gpu/drm/amd/powerplay/inc/smu11_driver_if.h
drivers/gpu/drm/amd/powerplay/inc/vega20_ppsmc.h