drm/amd/powerplay: refine avfs enable code on fiji.
authorRex Zhu <Rex.Zhu@amd.com>
Thu, 15 Jun 2017 06:02:51 +0000 (14:02 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jul 2017 15:06:15 +0000 (11:06 -0400)
commitb37afd41a1f5a7d9dbc4cc6ede62e590a31e2192
tree9ebbce035abec3004ae0d3046b37ce2ca03807df
parentbcadae84232d42260f802152609060cc766e1166
drm/amd/powerplay: refine avfs enable code on fiji.

1. simplify avfs state switch.
2. delete save/restore VFT table functions as not support
   by fiji.
3. implement thermal_avfs_enable funciton.

Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.c
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smc.h
drivers/gpu/drm/amd/powerplay/smumgr/fiji_smumgr.c