All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thierry Reding <treding@nvidia.com>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: dri-devel@lists.freedesktop.org
Subject: Re: [PATCH i915 v6 2/2] i915: wait for fence in prepare_plane_fb
Date: Tue, 24 Nov 2015 11:05:21 +0100	[thread overview]
Message-ID: <20151124100518.GB17658@ulmo.nvidia.com> (raw)
In-Reply-To: <20151124085535.GF17050@phenom.ffwll.local>


[-- Attachment #1.1: Type: text/plain, Size: 2537 bytes --]

On Tue, Nov 24, 2015 at 09:55:35AM +0100, Daniel Vetter wrote:
> On Mon, Nov 23, 2015 at 03:08:53PM -0800, Alex Goins wrote:
> > In intel_prepare_plane_fb, if fb is backed by dma-buf, wait for exclusive
> > fence
> > 
> > v2: First commit
> > v3: Remove object_name_lock acquire
> >     Move wait from intel_atomic_commit() to intel_prepare_plane_fb()
> > v4: Wait only on exclusive fences, interruptible with no timeout
> > v5: Style tweaks to more closely match rest of file
> > v6: Properly handle interrupted waits
> > 
> > Signed-off-by: Alex Goins <agoins@nvidia.com>
> > ---
> >  drivers/gpu/drm/i915/intel_display.c | 11 +++++++++++
> >  1 file changed, 11 insertions(+)
> > 
> > diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c
> > index bacf336..604186b 100644
> > --- a/drivers/gpu/drm/i915/intel_display.c
> > +++ b/drivers/gpu/drm/i915/intel_display.c
> > @@ -13347,6 +13347,17 @@ intel_prepare_plane_fb(struct drm_plane *plane,
> >  	if (!obj)
> >  		return 0;
> >  
> > +	/* For framebuffer backed by dmabuf, wait for fence */
> > +	if (obj->base.dma_buf) {
> > +		ret = reservation_object_wait_timeout_rcu(obj->base.dma_buf->resv,
> > +							  false, true,
> > +							  MAX_SCHEDULE_TIMEOUT);
> > +		if (ret == -ERESTARTSYS)
> > +			return ret;
> > +
> > +		WARN_ON(ret < 0);
> > +	}
> > +
> >  	mutex_lock(&dev->struct_mutex);
> >  
> >  	if (plane->type == DRM_PLANE_TYPE_CURSOR &&
> > -- 
> > 1.9.1
> > 
> > 
> > -----------------------------------------------------------------------------------
> > This email message is for the sole use of the intended recipient(s) and may contain
> > confidential information.  Any unauthorized review, use, disclosure or distribution
> > is prohibited.  If you are not the intended recipient, please contact the sender by
> > reply email and destroy all copies of the original message.
> > -----------------------------------------------------------------------------------
> 
> This disclaimer here pretty much tells me this isn't for public
> consumption and I can't merge this patch ... Would be good if you can make
> the final submission without this. Easiest way is usually to send the
> patches out over your private mail account (but with git author and sob
> still @nvidia.com).

Alternatively to the private account there's a way to prevent the
corporate email system from attaching the confidentiality statement.
I've sent instructions to Alex internally.

Thierry

[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]

[-- Attachment #2: Type: text/plain, Size: 159 bytes --]

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

  reply	other threads:[~2015-11-24 10:05 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-23 23:08 [PATCH i915 v6 0/2] PRIME Synchronization Alex Goins
2015-11-23 23:08 ` [PATCH i915 v6 1/2] i915: wait for fence in mmio_flip_work_func Alex Goins
2015-11-23 23:08 ` [PATCH i915 v6 2/2] i915: wait for fence in prepare_plane_fb Alex Goins
2015-11-24  8:55   ` Daniel Vetter
2015-11-24 10:05     ` Thierry Reding [this message]
2015-11-24 19:22       ` Alex Goins

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=20151124100518.GB17658@ulmo.nvidia.com \
    --to=treding@nvidia.com \
    --cc=daniel@ffwll.ch \
    --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 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.