Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1387535
| From | Gustavo Padovan <gustavo.padovan@collabora.co.uk> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc |
| Date | 2016-04-26 16:30 +0200 |
| Message-ID | <rsc9Y-OI-31@gated-at.bofh.it> (permalink) |
| References | <rrXkB-57R-3@gated-at.bofh.it> <rrXkC-57R-23@gated-at.bofh.it> <rs8g2-5TZ-37@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
2016-04-26 Ville Syrjälä <ville.syrjala@linux.intel.com>:
> On Mon, Apr 25, 2016 at 07:33:27PM -0300, Gustavo Padovan wrote:
> > From: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> >
> > Create one timeline context for each CRTC to be able to handle out-fences
> > and signal them. It adds a few members to struct drm_crtc: fence_context,
> > where we store the context we get from fence_context_alloc(), the
> > fence seqno and the fence lock, that we pass in fence_init() to be
> > used by the fence.
> >
> > Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
> > ---
> > drivers/gpu/drm/drm_crtc.c | 29 +++++++++++++++++++++++++++++
> > include/drm/drm_crtc.h | 19 +++++++++++++++++++
> > 2 files changed, 48 insertions(+)
> >
> > diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
> > index 65212ce..cf9750a 100644
> > --- a/drivers/gpu/drm/drm_crtc.c
> > +++ b/drivers/gpu/drm/drm_crtc.c
> > @@ -659,6 +659,32 @@ static unsigned int drm_num_crtcs(struct drm_device *dev)
> > return num;
> > }
> >
> > +static const char *drm_crtc_fence_get_driver_name(struct fence *fence)
> > +{
> > + struct drm_crtc *crtc = fence_to_crtc(fence);
> > +
> > + return crtc->dev->driver->name;
> > +}
> > +
> > +static const char *drm_crtc_fence_get_timeline_name(struct fence *fence)
> > +{
> > + struct drm_crtc *crtc = fence_to_crtc(fence);
> > +
> > + return crtc->name;
> > +}
>
> Is that exported to userspace? crtc->name is an internal thing, not
> meant for outside consumption.
No. However it may be exported via debugfs at some point. Maybe have
drm_crtc->timeline_name which has the obj_id instead, eg., "drm_crtc19" ?
Gustavo
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[RFC v2 7/8] drm/fence: add fence timeline to drm_crtc Gustavo Padovan <gustavo@padovan.org> - 2016-04-26 00:40 +0200
Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc Ville Syrjälä <ville.syrjala@linux.intel.com> - 2016-04-26 12:20 +0200
Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc Gustavo Padovan <gustavo.padovan@collabora.co.uk> - 2016-04-26 16:30 +0200
Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc Ville Syrjälä <ville.syrjala@linux.intel.com> - 2016-04-26 18:40 +0200
Re: [RFC v2 7/8] drm/fence: add fence timeline to drm_crtc Daniel Stone <daniel@fooishbar.org> - 2016-04-27 10:30 +0200
csiph-web