diff options
| author | Chris Wilson <[email protected]> | 2019-02-21 10:29:19 +0000 |
|---|---|---|
| committer | Chris Wilson <[email protected]> | 2019-02-21 14:49:19 +0000 |
| commit | 43a8f684b6d1e16c6ecf918332f9b35686bf7edd (patch) | |
| tree | 58571970eb7fffb2598576bbce4adcb72036591a /tools/perf/scripts/python | |
| parent | 2a3902bd5c14a4946739c9da14071f5aa6e85549 (diff) | |
drm/i915: Reorder struct_mutex-vs-reset_lock in i915_gem_fault()
Annoyingly, struct_mutex was not entirely eliminated from the reset
pathway; for reasons of its own, intel_display_resume() requires
struct_mutex to prepare the planes it already captured. To avoid the
immediate problem of a deadlock between the struct_mutex and the reset
srcu, we have to acquire the reset_lock before struct_mutex in
i915_gem_fault(). Now any wait underneath struct_mutex will result us in
having to forcibly reset all inflight rendering, less than ideal, but
better than a deadlock (and will do for the short term).
Signed-off-by: Chris Wilson <[email protected]>
Cc: Mika Kuoppala <[email protected]>
Reviewed-by: Mika Kuoppala <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions