drm/amdgpu/si: fix crash on headless asics
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 15:31:52 +0000 (10:31 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 2 Feb 2017 16:13:50 +0000 (11:13 -0500)
commit57bcd0a6364cd4eaa362d7ff1777e88ddf501602
treee3157947adf0b224421bf5b6bfc4cf7dd2ae39ed
parent52b679f60e2a68af88411f12318675a2424a0e14
drm/amdgpu/si: fix crash on headless asics

Missing check for crtcs present.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=193341
https://bugs.freedesktop.org/show_bug.cgi?id=99387

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c