diff options
author | Nicholas Kazlauskas <nicholas.kazlauskas@amd.com> | 2021-10-22 16:14:24 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2021-10-28 14:26:51 -0400 |
commit | f638d7505f99bca9436aac37b2a1ecb3f84803a5 (patch) | |
tree | cb145f3963cfa46a481161481bf90aafc7eb0c99 /tools/perf/scripts/python/sched-migration.py | |
parent | 1e5588d14065eeb154ef15fbe3f74ace9460a386 (diff) |
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: bf62221e9d0e ("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>
Diffstat (limited to 'tools/perf/scripts/python/sched-migration.py')
0 files changed, 0 insertions, 0 deletions