]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix to disable powergating in hw_fini
authorHuang Rui <ray.huang@amd.com>
Tue, 27 Feb 2018 05:43:59 +0000 (13:43 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:43:42 +0000 (13:43 -0500)
commit5a489a9547a31b627f1997e96ed042461fb2bcaf
tree0f7274e51b46d512bf69d942d2546328abc4301f
parent480e8608ed7aecf41e28046f04b99fe1f5fd05bd
drm/amdgpu: fix to disable powergating in hw_fini

We need enable CGPG and GFXOFF together. If only enable one of them, this system
will get hang after startx (do draw command). So when gfxoff is disabled, it
also need disable CGPG after that.

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