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)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 6 Dec 2016 23:08:26 +0000 (18:08 -0500)
commitdd31ae9ac933636c3712b7dd0f6152c1d71f81fe
tree3ecb4e84fc885198bf0f538b5d6d128fde50a357
parentecc2cf7cc8baa1fdb73a7bb9495f6befbcac8cd8
drm/amd/amdgpu: enable GUI idle INT after enabling CGCG

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c