From: Lucas Stach <l.stach@pengutronix.de>
To: Daniel Vetter <daniel@ffwll.ch>
Cc: Eric Anholt <eric@anholt.net>,
stable@vger.kernel.org,
Russell King <linux+etnaviv@armlinux.org.uk>,
linux-kernel@vger.kernel.org, dri-devel@lists.freedesktop.org,
etnaviv@lists.freedesktop.org
Subject: Re: [PATCH 2/3] drm/etnaviv: Expose our reservation object when exporting a dmabuf.
Date: Wed, 12 Apr 2017 14:54:05 +0200 [thread overview]
Message-ID: <1492001645.15082.14.camel@pengutronix.de> (raw)
In-Reply-To: <20170412124715.j75nrmrdlycl4edm@phenom.ffwll.local>
Am Mittwoch, den 12.04.2017, 14:47 +0200 schrieb Daniel Vetter:
> On Mon, Apr 10, 2017 at 06:44:13PM -0700, Eric Anholt wrote:
> > Without this, polling on the dma-buf (and presumably other devices
> > synchronizing against our rendering) would return immediately, even
> > while the BO was busy.
> >
> > Signed-off-by: Eric Anholt <eric@anholt.net>
> > Cc: stable@vger.kernel.org
> > Cc: Lucas Stach <l.stach@pengutronix.de>
> > Cc: Russell King <linux+etnaviv@armlinux.org.uk>
> > Cc: Christian Gmeiner <christian.gmeiner@gmail.com>
> > Cc: etnaviv@lists.freedesktop.org
>
> On the first 2 patches:
>
> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
>
> If you get an ack from Rob/Lucas I guess we could push these also through
> drm-misc.
Patch itself looks fine. I prefer to route the etnaviv change through my
tree, to give it the usual exposure to our testing.
Regards,
Lucas
>
> > ---
> >
> > Note: compile-tested only.
> >
> > drivers/gpu/drm/etnaviv/etnaviv_drv.c | 1 +
> > drivers/gpu/drm/etnaviv/etnaviv_drv.h | 1 +
> > drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c | 7 +++++++
> > 3 files changed, 9 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.c b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> > index 587e45043542..ff6db8f0d966 100644
> > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.c
> > @@ -495,6 +495,7 @@ static struct drm_driver etnaviv_drm_driver = {
> > .prime_fd_to_handle = drm_gem_prime_fd_to_handle,
> > .gem_prime_export = drm_gem_prime_export,
> > .gem_prime_import = drm_gem_prime_import,
> > + .gem_prime_res_obj = etnaviv_gem_prime_res_obj,
> > .gem_prime_pin = etnaviv_gem_prime_pin,
> > .gem_prime_unpin = etnaviv_gem_prime_unpin,
> > .gem_prime_get_sg_table = etnaviv_gem_prime_get_sg_table,
> > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_drv.h b/drivers/gpu/drm/etnaviv/etnaviv_drv.h
> > index e41f38667c1c..058389f93b69 100644
> > --- a/drivers/gpu/drm/etnaviv/etnaviv_drv.h
> > +++ b/drivers/gpu/drm/etnaviv/etnaviv_drv.h
> > @@ -80,6 +80,7 @@ void *etnaviv_gem_prime_vmap(struct drm_gem_object *obj);
> > void etnaviv_gem_prime_vunmap(struct drm_gem_object *obj, void *vaddr);
> > int etnaviv_gem_prime_mmap(struct drm_gem_object *obj,
> > struct vm_area_struct *vma);
> > +struct reservation_object *etnaviv_gem_prime_res_obj(struct drm_gem_object *obj);
> > struct drm_gem_object *etnaviv_gem_prime_import_sg_table(struct drm_device *dev,
> > struct dma_buf_attachment *attach, struct sg_table *sg);
> > int etnaviv_gem_prime_pin(struct drm_gem_object *obj);
> > diff --git a/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c b/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c
> > index 62b47972a52e..abed6f781281 100644
> > --- a/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c
> > +++ b/drivers/gpu/drm/etnaviv/etnaviv_gem_prime.c
> > @@ -150,3 +150,10 @@ struct drm_gem_object *etnaviv_gem_prime_import_sg_table(struct drm_device *dev,
> >
> > return ERR_PTR(ret);
> > }
> > +
> > +struct reservation_object *etnaviv_gem_prime_res_obj(struct drm_gem_object *obj)
> > +{
> > + struct etnaviv_gem_object *etnaviv_obj = to_etnaviv_bo(obj);
> > +
> > + return etnaviv_obj->resv;
> > +}
> > --
> > 2.11.0
> >
> > _______________________________________________
> > dri-devel mailing list
> > dri-devel@lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/dri-devel
>
next prev parent reply other threads:[~2017-04-12 12:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-11 1:44 [PATCH 1/3] drm/msm: " Eric Anholt
2017-04-11 1:44 ` [PATCH 2/3] drm/etnaviv: " Eric Anholt
2017-04-12 12:47 ` Daniel Vetter
2017-04-12 12:54 ` Lucas Stach [this message]
2017-04-12 17:32 ` Eric Anholt
2017-04-11 1:44 ` [PATCH 3/3] drm/vc4: Add support for dma-buf fencing Eric Anholt
2017-04-11 9:35 ` Chris Wilson
2017-04-11 17:43 ` Eric Anholt
2017-04-12 12:49 ` Daniel Vetter
2017-04-12 12:48 ` Daniel Vetter
2017-04-12 17:33 ` Eric Anholt
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=1492001645.15082.14.camel@pengutronix.de \
--to=l.stach@pengutronix.de \
--cc=daniel@ffwll.ch \
--cc=dri-devel@lists.freedesktop.org \
--cc=eric@anholt.net \
--cc=etnaviv@lists.freedesktop.org \
--cc=linux+etnaviv@armlinux.org.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=stable@vger.kernel.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
all inboxes | Powered by JetHome®