1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/gpu/drm/amd/display/modules
Nicholas Kazlauskas f638d7505f drm/amd/display: Fix deadlock when falling back to v2 from v3
[Why]
A deadlock in the kernel occurs when we fallback from the V3 to V2
add_topology_to_display or remove_topology_to_display because they
both try to acquire the dtm_mutex but recursive locking isn't
supported on mutex_lock().

[How]
Make the mutex_lock/unlock more fine grained and move them up such that
they're only required for the psp invocation itself.

Fixes: bf62221e9d ("drm/amd/display: Add DCN3.1 HDCP support")

Signed-off-by: Nicholas Kazlauskas <nicholas.kazlauskas@amd.com>
Reviewed-by: Aric Cyr <aric.cyr@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2021-10-28 14:26:51 -04:00
..
color drm/amd/display: Revert adding degamma coefficients 2021-09-14 15:57:10 -04:00
freesync drm/amd/display: Get ceiling for v_total calc 2021-10-28 14:26:14 -04:00
hdcp drm/amd/display: Fix deadlock when falling back to v2 from v3 2021-10-28 14:26:51 -04:00
inc drm/amd/display: Add support for USB4 on C20 PHY for DCN3.1 2021-10-28 14:26:14 -04:00
info_packet drm/amd/display/modules/info_packet/info_packet: Correct kernel-doc formatting 2021-01-14 13:20:20 -05:00
power drm/amd/display: tune backlight ramping profiles 2021-06-15 17:25:40 -04:00
vmid drm/amd/display: correct rn NUM_VMID 2020-05-21 12:48:43 -04:00