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:21:49 +0000 (08:21 +0100)
commitfef542735a48d2029c8c1e509772884e4ec321e7
treeda153c7a4d4f226852fa395a7f8f818f3c0614bf
parentbab520835f81565c2e88ca15063de00f22e56331
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