drm/amd/display: Fix deadlock when flushing irq
authorMikita Lipski <mikita.lipski@amd.com>
Wed, 10 Jan 2018 15:01:38 +0000 (10:01 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 15 May 2018 18:44:06 +0000 (13:44 -0500)
commit40c21ed6b372c58fb214307f8186f7a0c1885bfc
tree4c8a04d19bbbe3fca520bd23c460b1962e02480f
parent6e9c2b88eb42bdda6ba1f1a39238c446782d443e
drm/amd/display: Fix deadlock when flushing irq

Lock irq table when reading a work in queue,
unlock to flush the work, lock again till all tasks
are cleared

Signed-off-by: Mikita Lipski <mikita.lipski@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