drm/amdgpu: Add amdgpu_gfx_off_ctrl function
authorRex Zhu <Rex.Zhu@amd.com>
Mon, 30 Jul 2018 08:59:09 +0000 (16:59 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 27 Aug 2018 16:09:51 +0000 (11:09 -0500)
commitd23ee13fba23a3039971a976b2c4857cb5ba9c73
tree88971cc05b8acc8f7e3ba0a9cee5d88e2aa68e97
parent5a83c93249098df2ee3b0039ec8f4495b959fcd0
drm/amdgpu: Add amdgpu_gfx_off_ctrl function

v2:
   1. drop the special handling for the hw IP
      suggested by hawking and Christian.
   2. refine the variable name suggested by Flora.

This funciton as the entry of gfx off feature.
we arbitrat gfx off feature enable/disable in this
function.

Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Reviewed-by: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu.h
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/amdgpu_gfx.c