drm/amd/display: Set irq state only on existing crtcs
authorMikita Lipski <mikita.lipski@amd.com>
Thu, 18 Jan 2018 19:53:57 +0000 (14:53 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 7 Mar 2018 21:27:43 +0000 (16:27 -0500)
commit43b9d27360cbf51ec4fced5bf00c40cf37bba10d
treeb9424347a4cf00561eb55ffd4cc46892a5853732
parent4a2df0d1f28eba7bd49ad1a1527af996f54df137
drm/amd/display: Set irq state only on existing crtcs

Because AMDGPU_CRTC_IRQ_VLINE1 = 6, it expected 6 more crtcs to be
programed with disabled irq state in amdgpu_irq_disable_all. That caused errors and accessed
the wrong memory location.

Signed-off-by: Mikita Lipski <mikita.lipski@amd.com>
Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
Reviewed-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c