dri-devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Daniel Vetter <daniel@ffwll.ch>
To: Dave Airlie <airlied@gmail.com>
Cc: dri-devel <dri-devel@lists.freedesktop.org>
Subject: Re: [PATCH 7/8] drm: convert crtc and connection_mutex to ww_mutex (v3)
Date: Wed, 4 Jun 2014 11:21:09 +0200	[thread overview]
Message-ID: <20140604092109.GK7416@phenom.ffwll.local> (raw)
In-Reply-To: <CAPM=9tyzeSY1Tp4a4_m+d6BgAMU27ZvSi-fGXkFiT4qeZjEKfQ@mail.gmail.com>

On Wed, Jun 04, 2014 at 01:38:38PM +1000, Dave Airlie wrote:
> On 3 June 2014 23:29, Daniel Vetter <daniel@ffwll.ch> wrote:
> > On Fri, May 30, 2014 at 01:12:09PM -0400, Rob Clark wrote:
> >> For atomic, it will be quite necessary to not need to care so much
> >> about locking order.  And 'state' gives us a convenient place to stash a
> >> ww_ctx for any sort of update that needs to grab multiple crtc locks.
> >>
> >> Because we will want to eventually make locking even more fine grained
> >> (giving locks to planes, connectors, etc), split out drm_modeset_lock
> >> and drm_modeset_acquire_ctx to track acquired locks.
> >>
> >> Atomic will use this to keep track of which locks have been acquired
> >> in a transaction.
> >>
> >> v1: original
> >> v2: remove a few things not needed until atomic, for now
> >> v3: update for v3 of connection_mutex patch..
> >>
> >> Signed-off-by: Rob Clark <robdclark@gmail.com>
> >
> > Still meh about the lock_all_crtcs helper, imo that one should die. But
> > one todo you've missed from my fixup patch is to add kerneldoc for all the
> > locking helpers (maybe that convinces you to inline lock_all_crtcs ;-) and
> > pull it into the drm docbook template. Otherwise nothing stuck out any
> > more.
> 
> I'm happy to apply this one if we get some kerneldoc into it.
> 
> I've applied the previous patches to drm-next, there was one conflict in i915,
> but I think I fixed it up okay, f7ef3fa77fa85b3a8a15b464efd56d0314a3231c
> was what it was conflicting with.

Yeah, I've done the modeset_lock_all specifically because of that
conflict, so looks good. Could have dropped the braces too ;-)
-Daniel
-- 
Daniel Vetter
Software Engineer, Intel Corporation
+41 (0) 79 365 57 48 - http://blog.ffwll.ch

  reply	other threads:[~2014-06-04  9:21 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-30 17:12 [PATCH 0/8] prepare for preparing for atomic (v2) Rob Clark
2014-05-30 17:12 ` [PATCH 1/8] drm: helpers to find mode objects Rob Clark
2014-06-03 13:22   ` Daniel Vetter
2014-05-30 17:12 ` [PATCH 2/8] drm: add extended property types Rob Clark
2014-06-03 13:25   ` Daniel Vetter
2014-05-30 17:12 ` [PATCH 3/8] drm: add object property type Rob Clark
2014-06-03 13:24   ` Daniel Vetter
2014-05-30 17:12 ` [PATCH 4/8] drm: add signed-range " Rob Clark
2014-05-30 17:12 ` [PATCH 5/8] drm: spiff out FB refcnting traces Rob Clark
2014-05-30 17:12 ` [PATCH 6/8] drm: Split connection_mutex out of mode_config.mutex (v3) Rob Clark
2014-05-30 17:12 ` [PATCH 7/8] drm: convert crtc and connection_mutex to ww_mutex (v3) Rob Clark
2014-06-03 13:29   ` Daniel Vetter
2014-06-04  3:38     ` Dave Airlie
2014-06-04  9:21       ` Daniel Vetter [this message]
2014-05-30 17:12 ` [PATCH 8/8] drm: add drm_fb_helper_restore_fbdev_mode_unlocked() Rob Clark
2014-06-03 13:33   ` Daniel Vetter
2014-06-03 14:44     ` Rob Clark
2014-06-02  8:11 ` [PATCH 0/8] prepare for preparing for atomic (v2) Daniel Vetter
2014-06-02 15:33   ` Rob Clark

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140604092109.GK7416@phenom.ffwll.local \
    --to=daniel@ffwll.ch \
    --cc=airlied@gmail.com \
    --cc=dri-devel@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox