public inbox for intel-gfx@lists.freedesktop.org
 help / color / mirror / Atom feed
From: Gustavo Padovan <gustavo@padovan.org>
To: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Gustavo Padovan <gustavo.padovan@collabora.com>,
	intel-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	Daniel Vetter <daniel.vetter@intel.com>
Subject: Re: [-PATCH v5 1/5] drm/i915: update cursors asynchronously through atomic
Date: Fri, 8 Sep 2017 18:04:04 -0300	[thread overview]
Message-ID: <20170908210404.GA23204@jade> (raw)
In-Reply-To: <150490013655.23880.15812699019398253302@mail.alporthouse.com>

2017-09-08 Chris Wilson <chris@chris-wilson.co.uk>:

> Quoting Gustavo Padovan (2017-09-08 20:24:15)
> > @@ -13167,6 +13170,26 @@ static int intel_atomic_commit(struct drm_device *dev,
> >         struct drm_i915_private *dev_priv = to_i915(dev);
> >         int ret = 0;
> >  
> > +       /*
> > +        * The atomic async update fast path takes care
> > +        * of avoiding the vblank waits for simple cursor
> > +        * movement and flips. For cursor on/off and size changes,
> > +        * we want to perform the vblank waits so that watermark
> > +        * updates happen during the correct frames. Gen9+ have
> > +        * double buffered watermarks and so shouldn't need this.
> > +        */
> > +       if (state->async_update) {
> > +               ret = mutex_lock_interruptible(&dev->struct_mutex);
> > +               if (ret)
> > +                       return ret;
> 
> This deadlock should be found by the test suite, or else we are missing
> tests!

It seems that I missed the fact that the driver changed when I rebased and
resent. I'll investigate this further and come back with another patch.

Gustavo
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

      reply	other threads:[~2017-09-08 21:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-09-08 19:24 [-PATCH v5 1/5] drm/i915: update cursors asynchronously through atomic Gustavo Padovan
2017-09-08 19:24 ` [-PATCH v5 2/5] drm/i915: remove intel_cursor_plane_funcs Gustavo Padovan
2017-09-08 19:48 ` [-PATCH v5 1/5] drm/i915: update cursors asynchronously through atomic Chris Wilson
2017-09-08 21:04   ` Gustavo Padovan [this message]

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=20170908210404.GA23204@jade \
    --to=gustavo@padovan.org \
    --cc=chris@chris-wilson.co.uk \
    --cc=daniel.vetter@intel.com \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=gustavo.padovan@collabora.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox