]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
drm/amd/display: Guard Freesync HDMI parsing with dc_lock
authorStylon Wang <stylon.wang@amd.com>
Wed, 21 Dec 2022 11:28:16 +0000 (19:28 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 24 Jan 2023 17:25:28 +0000 (12:25 -0500)
commit53f4da731bf36afc32e46c3b7a5f3bd563c93e83
tree5bb6f65c5c52e536bef03e5295e4623bafb64967
parent3a9c6f9a6159d8ecdf715f7eda0777ead96bcdc0
drm/amd/display: Guard Freesync HDMI parsing with dc_lock

[Why]
All calls into DC must be guarded by dc_lock because DC code
is not safe against multi-thread or re-entry.

[How]
Hold dc_lock when calling DC interfaces to parse Freesync HDMI.

Reviewed-by: Roman Li <Roman.Li@amd.com>
Acked-by: Alan Liu <HaoPing.Liu@amd.com>
Signed-off-by: Stylon Wang <stylon.wang@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c