]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc4d81710b78c204df4a5b5fb1c95e2f02cfb09c9
tree88971cc05b8acc8f7e3ba0a9cee5d88e2aa68e97
parent67f4e93204652eb4335014dc01907a35c474a2dc
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