drm/amd/powerplay: add vega12 SMU gfxoff support v3
authorEvan Quan <evan.quan@amd.com>
Wed, 4 Jul 2018 08:44:07 +0000 (16:44 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 13 Jul 2018 19:45:01 +0000 (14:45 -0500)
commit991a6b32ce647e9827acc0c72a998e4ffed1d753
tree9159ebde664f8cab70b0c875b879290cd8f20a2c
parenta5aedc2d18bcb33816545f39f13a37a0c86b3b3d
drm/amd/powerplay: add vega12 SMU gfxoff support v3

Export apis for enabling/disabling SMU gfxoff support.

v2: fit the latest gfxoff support framework
v3: add feature_mask control

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-by: Huang Rui <ray.huang at amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.c
drivers/gpu/drm/amd/powerplay/hwmgr/vega12_hwmgr.h