]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix CG enabling hang with gfxoff enabled
authorHuang Rui <ray.huang@amd.com>
Fri, 1 Jun 2018 06:41:04 +0000 (14:41 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 13 Jun 2018 18:45:21 +0000 (13:45 -0500)
commit581ad4a226c570cf779543afd4032214d6d178fe
tree03798c38b14c361d3f2bf2c9d8cbef50fc23bd5f
parent6d1e0ea866e9ed2a1a03661d4f7da2b07cfa57ca
drm/amdgpu: fix CG enabling hang with gfxoff enabled

After defer the execution of clockgating enabling, at that time, gfx already
enter into "off" state. Howerver, clockgating enabling will use MMIO to access
the gfx registers, then get the gfx hung.

So here we should move the gfx powergating and gfxoff enabling behavior at the
end of initialization behind clockgating.

Signed-off-by: Huang Rui <ray.huang@amd.com>
Reviewed-by: Hawking Zhang <Hawking.Zhang@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Cc: Felix Kuehling <Felix.Kuehling@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c
drivers/gpu/drm/amd/powerplay/amd_powerplay.c
drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c