]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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>
Mon, 19 Feb 2018 19:19:28 +0000 (14:19 -0500)
commita83ccf7cad8d13d3667a4e2157114e8bd7170770
tree02d487f0b8b768e9917f0c043745e0209fdc3a21
parentf9549850a4cd3114fa1faeb97264cdad5c656edf
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