]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amd/display: fix potential gpu reset deadlock
authorRoman Li <Roman.Li@amd.com>
Mon, 19 Apr 2021 15:47:00 +0000 (11:47 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 14 Jul 2021 14:59:46 +0000 (16:59 +0200)
commita3775532207927d694c2c86904f778537e8f1412
tree5dcb5b1b03d36f58d4dc8320620247c98ab25b22
parente6706ff6fc6eea045d808af0a87ea4dfe1b62161
drm/amd/display: fix potential gpu reset deadlock

[ Upstream commit cf8b92a75646735136053ce51107bfa8cfc23191 ]

[Why]
In gpu reset dc_lock acquired in dm_suspend().
Asynchronously handle_hpd_rx_irq can also be called
through amdgpu_dm_irq_suspend->flush_work, which also
tries to acquire dc_lock. That causes a deadlock.

[How]
Check if amdgpu executing reset before acquiring dc_lock.

Signed-off-by: Lang Yu <Lang.Yu@amd.com>
Signed-off-by: Roman Li <Roman.Li@amd.com>
Reviewed-by: Qingqing Zhuo <Qingqing.Zhuo@amd.com>
Acked-by: Wayne Lin <Wayne.Lin@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c