drm/amd/pp: Add update_avfs call when set_power_state
authorRex Zhu <Rex.Zhu@amd.com>
Tue, 2 Jan 2018 07:20:55 +0000 (15:20 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 19 Feb 2018 19:18:20 +0000 (14:18 -0500)
commit3c9d1fde7f63b6f7f30e9a5366fbc2fe249e0b74
tree022392e8d9914d7b2485ce878f0cf5d5fa17b283
parent49fd66e5d50477c7c54df4a2006c5ccb125420fd
drm/amd/pp: Add update_avfs call when set_power_state

when Overdrive voltage, need to disable AVFS.
when OverDriv engine clock, need to recalculate
AVFS voltage by disable/enable avfs feature.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/hwmgr/smu7_hwmgr.c