diff options
| author | Daniel Vetter <[email protected]> | 2020-07-27 23:30:18 +0200 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2020-07-30 15:36:44 -0400 |
| commit | 178b0013f074da545492662ec76dc2be363ca85c (patch) | |
| tree | 134f00356eb1f4606447766ec91b24a3a28e38a4 /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 317469f695c27e290b8001a0df0fdbb95f27bfa9 (diff) | |
drm/amdgpu/dc: Stop dma_resv_lock inversion in commit_tail
Trying to grab dma_resv_lock while in commit_tail before we've done
all the code that leads to the eventual signalling of the vblank event
(which can be a dma_fence) is deadlock-y. Don't do that.
Here the solution is easy because just grabbing locks to read
something races anyway. We don't need to bother, READ_ONCE is
equivalent. And avoids the locking issue.
v2: Also take into account tmz_surface boolean, plus just delete the
old code.
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: Chris Wilson <[email protected]>
Cc: Maarten Lankhorst <[email protected]>
Cc: Christian König <[email protected]>
Reviewed-by: Christian König <[email protected]>
Signed-off-by: Daniel Vetter <[email protected]>
Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions