Files
linux/drivers
Chris Wilson 43a8f684b6 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 <chris@chris-wilson.co.uk>
Cc: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Mika Kuoppala <mika.kuoppala@linux.intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190221102924.13442-1-chris@chris-wilson.co.uk
2019-02-21 14:49:19 +00:00
..
2019-02-18 13:27:15 +10:00
2018-12-29 08:20:44 -07:00
2018-12-10 10:17:45 +01:00
2019-01-09 19:20:31 -05:00
2019-01-26 11:14:25 +01:00
2019-02-01 15:53:54 +01:00
2019-02-13 08:41:15 +01:00
2018-12-06 15:45:46 +01:00
2019-02-18 13:27:15 +10:00
2018-12-24 12:06:56 +01:00
2019-02-18 13:27:15 +10:00
2019-01-28 22:53:09 -08:00