[RFC PATCH] drm: Add plane event

Ville Syrjälä ville.syrjala at linux.intel.com
Wed Apr 18 11:19:42 PDT 2012


On Wed, Apr 18, 2012 at 07:06:10PM +0300, Ville Syrjälä wrote:
> On Wed, Apr 18, 2012 at 05:27:57PM +0200, Daniel Vetter wrote:
> > Also, I'm toying around with ideas to split up the big modeset lock such
> > that operations that only touch the crtc (like pageflip, plane changes and
> > cursor changes) do not take the big modeset lock but only a per-crtc
> > mutex.
> 
> Plane operations might well involve multiple CRTCs (when moving the
> planes between pipes for example). You have to be careful with the
> locking order when doing stuff like that. One option would be to
> always take the per-CRTC locks in the same order (based on the
> object ID for example).

Multiple locks will also cause problems for the atomic mode set. The
full device state may be needed to evaluate whether a certain change
is allowed, which means any change happening in parallel can screw
things up.

-- 
Ville Syrjälä
Intel OTC


More information about the dri-devel mailing list