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>
Wed, 25 Apr 2018 15:07:29 +0000 (10:07 -0500)
commitad64dc0137968f09800e58174bbfd5eac9fe5418
treea4a8b0ca36699ba24dd112bf36162fe5f07421c8
parent75569c182e4f65cd8826a5853dc9cbca703cbd0e
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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_irq.c