]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Reduce the time we hold struct mutex in intel_pipe_set_base()
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 11 Mar 2014 17:37:33 +0000 (19:37 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 12 Mar 2014 15:13:31 +0000 (16:13 +0100)
commitb3e4cb6654b21a34d66f798869225a87d1eb0f31
tree0fbecce623e05e731b0edd2b2b0776d9b14055be
parent5ed57c59a0da3a17301940db2b702315c359a72a
drm/i915: Reduce the time we hold struct mutex in intel_pipe_set_base()

We don't need to hold struct_mutex all through intel_pipe_set_base(),
just need to hold it while pinning/unpinning the buffers.

So reduce the struct_mutext usage in intel_pipe_set_base() just like we
did for the sprite code in:
 commit 10cbad0a6030d9ccde1976d6f612bf500bf1cb0f
 Author: Ville Syrjälä <ville.syrjala@linux.intel.com>
 Date:   Tue Oct 1 18:02:12 2013 +0300

    drm/i915: Reduce the time we hold struct mutex in sprite update_plane code

The FBC and PSR locking is still entirely fubar. That stuff was
previouly done while holding struct_mutex, so leave it there for now.

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_display.c