All of lore.kernel.org
 help / color / mirror / Atom feed
From: Chris Wilson <chris@chris-wilson.co.uk>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: intel-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/i915/dp: Flush any outstanding work to turn the VDD off
Date: Mon, 16 Apr 2012 22:01:42 +0100	[thread overview]
Message-ID: <1334610116_9592@CP5-2952> (raw)
In-Reply-To: <20120416203951.GH4199@phenom.ffwll.local>

On Mon, 16 Apr 2012 22:39:51 +0200, Daniel Vetter <daniel@ffwll.ch> wrote:
> On Mon, Apr 16, 2012 at 03:18:33PM +0100, Chris Wilson wrote:
> > As we may kick off a delayed workqueue task to switch of the VDD lines, we
> > need to complete that task prior to turning off the panel (which itself
> > depends upon VDD being off).
> > 
> > Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
> > Cc: Keith Packard <keithp@keithp.com>
> 
> I've looked a bit at this and I think we just need a call to
> ironlake_panel_vdd_off_sync instead of the WARN. The work will do the
> right thing when the vdd is already off, so no problem there.

The WARN is valid and did help to document the design of the code.
Good point about the cancel_sync taking the mutex again, oops, and
indeed all we need here is just the call to sync.

As far as I can see, the timer will expire gracefully under normal
conditions with the only cancel_sync being during shutdown, so
serialisation of the tasklet under mode_config looks robust.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre

  reply	other threads:[~2012-04-16 21:02 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-16 14:18 [PATCH] drm/i915/dp: Flush any outstanding work to turn the VDD off Chris Wilson
2012-04-16 20:39 ` Daniel Vetter
2012-04-16 21:01   ` Chris Wilson [this message]
2012-04-16 21:53     ` Daniel Vetter
2012-04-16 21:43   ` Chris Wilson
2012-04-16 22:35     ` Daniel Vetter

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=1334610116_9592@CP5-2952 \
    --to=chris@chris-wilson.co.uk \
    --cc=daniel@ffwll.ch \
    --cc=intel-gfx@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.