]> 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)
commitf1963ae97d329ebdff817a320d8cdb4170b8efef
tree88971cc05b8acc8f7e3ba0a9cee5d88e2aa68e97
parent8a870de2097818aabfedc43b6d5fb7435a7ed453
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