drm/amd/amdgpu: enable GUI idle INT after enabling CGCG
authorArindam Nath <arindam.nath@amd.com>
Fri, 25 Nov 2016 11:25:16 +0000 (16:55 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jan 2017 07:32:19 +0000 (08:32 +0100)
commitc2a51dd3138df107432fc2ff452cf43ee49a7dff
treec274ebdc8a19365680759be7cd93bdba40609bc3
parent8e1b86f30bc1e3d213d269a74b3375a06ba8199f
drm/amd/amdgpu: enable GUI idle INT after enabling CGCG

commit dd31ae9ac933636c3712b7dd0f6152c1d71f81fe upstream.

GUI idle interrupts should be enabled only after we
have enabled coarse grain clock gating (CGCG). This
prevents GFX engine generating idle interrupt even
though CGCG is not completely enabled.

Most of the time this goes un-noticed, but on some
Stoney ASICs this results in GFX engine hang after
system resumes from suspend. The issue is not
particular to Stoney though and could have occured
on any ASIC. The patch fixes this issue.

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Reported-by: Sunil Uttarwar <Sunil.Uttarwar1@amd.com>
Signed-off-by: Arindam Nath <arindam.nath@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c