From: Daniel Vetter <daniel@ffwll.ch>
To: Dmitry Osipenko <digetx@gmail.com>
Cc: Mikko Perttunen <cyndis@kapsi.fi>,
Karol Herbst <kherbst@redhat.com>,
David Airlie <airlied@linux.ie>,
gustavo@padovan.org, dri-devel <dri-devel@lists.freedesktop.org>,
Jon Hunter <jonathanh@nvidia.com>,
talho@nvidia.com, bhuntsman@nvidia.com,
Thierry Reding <thierry.reding@gmail.com>,
"linux-tegra@vger.kernel.org" <linux-tegra@vger.kernel.org>
Subject: Re: [RFC] Host1x/TegraDRM UAPI
Date: Tue, 30 Jun 2020 11:09:10 +0200 [thread overview]
Message-ID: <20200630090910.GS3278063@phenom.ffwll.local> (raw)
In-Reply-To: <b46516eb-4077-c3ac-83d0-d8c57660dc3e@gmail.com>
On Fri, Jun 26, 2020 at 04:59:45PM +0300, Dmitry Osipenko wrote:
> 26.06.2020 16:38, Daniel Vetter пишет:
> > On Fri, Jun 26, 2020 at 01:40:40PM +0200, Thierry Reding wrote:
> >> On Fri, Jun 26, 2020 at 01:06:58PM +0200, Karol Herbst wrote:
> >>> On Tue, Jun 23, 2020 at 3:03 PM Mikko Perttunen <cyndis@kapsi.fi> wrote:
> >>>>
> >>>> # Host1x/TegraDRM UAPI proposal
> >>>>
> >>>> This is a proposal for a stable UAPI for Host1x and TegraDRM, to replace
> >>>> the current TegraDRM UAPI that is behind `STAGING` and quite obsolete in
> >>>> many ways.
> >>>>
> >>>> I haven't written any implementation yet -- I'll do that once there is
> >>>> some agreement on the high-level design.
> >>>>
> >>>> Current open items:
> >>>>
> >>>> * The syncpoint UAPI allows userspace to create sync_file FDs with
> >>>> arbitrary syncpoint fences. dma_fence code currently seems to assume all
> >>>> fences will be signaled, which would not necessarily be the case with
> >>>> this interface.
> >>>> * Previously present GEM IOCTLs (GEM_CREATE, GEM_MMAP) are not present.
> >>>> Not sure if they are still needed.
> >>>>
> >>>
> >>> Hi, as this wasn't addressed here (and sorry if I missed it): is there
> >>> an open source userspace making use of this UAPI? Because this is
> >>> something which needs to be seen before it can be included at all.
> >>
> >> There's a set of commits that implement an earlier draft here:
> >>
> >> https://github.com/thierryreding/linux/tree/for-5.6/drm-tegra-destage-abi
> >>
> >> and corresponding changes to libdrm to make use of that and implement
> >> tests using the various generations of VIC here:
> >>
> >> https://cgit.freedesktop.org/~tagr/drm/log/
> >>
> >> Before actually jumping to an implementation we wanted to go over the
> >> design a bit more to avoid wasting a lot of work, like we've done in
> >> the past. Turns out it isn't easy to get everyone to agree on a good
> >> ABI. Who would've thought? =)
> >>
> >> I expect that once the discussion around the ABI settles Mikko will
> >> start on implementing this ABI in the kernel and we'll update the
> >> libdrm patches to make use of the new ABI as well.
> >
> > Do we have more than libdrm and tests for this, like something somewhat
> > functional? Since tegradrm landed years ago we've refined the criteria a
> > bit in this regard, latest version is explicit in that it needs to be
> > something that's functional (for end-users in some form), not just
> > infrastructure and tests.
>
> We have Opentegra [1] and VDPAU [2] userspace drivers for older Tegra
> SoCs that have been using the staging UAPI for years now.
>
> [1] https://github.com/grate-driver/xf86-video-opentegra
> [2] https://github.com/grate-driver/libvdpau-tegra
>
> The UAPI and the kernel driver updates are very needed for these drivers
> because of the missing UAPI synchronization features and performance
> problems of the kernel driver.
>
> So we already have some real-world userspace for the testing!
Awesome! Maybe for future rounds include the links for the vdpau driver. I
didn't know about that one at all. -opentegra is probably not so relevant
anymore (and I flat out forgot it exists) ... Including the userspace side
links is good so that forgetful people like me don't nag :-)
-Daniel
> It's not the first and not the second time we're discussing the Tegra
> DRM UAPI changes, but this time it feels like there is a good chance
> that it will finally materialize and I'm very happy about it :)
--
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel
next prev parent reply other threads:[~2020-06-30 9:09 UTC|newest]
Thread overview: 50+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-23 12:09 [RFC] Host1x/TegraDRM UAPI Mikko Perttunen
2020-06-24 20:55 ` Dmitry Osipenko
2020-06-25 9:17 ` Mikko Perttunen
2020-06-24 22:33 ` Dmitry Osipenko
2020-06-25 9:27 ` Mikko Perttunen
2020-06-25 22:50 ` [RFC] Host1x/TegraDRM UAPI (drm_tegra_submit_relocation) Dmitry Osipenko
2020-06-26 9:01 ` Mikko Perttunen
2020-06-24 23:11 ` [RFC] Host1x/TegraDRM UAPI Dmitry Osipenko
2020-06-25 9:16 ` Mikko Perttunen
2020-06-25 23:24 ` Dmitry Osipenko
2020-06-26 9:05 ` Mikko Perttunen
2020-06-24 23:18 ` Dmitry Osipenko
2020-06-25 0:59 ` Dmitry Osipenko
2020-06-24 23:23 ` Dmitry Osipenko
2020-06-25 9:19 ` Mikko Perttunen
2020-06-25 0:47 ` Dmitry Osipenko
2020-06-25 9:23 ` Mikko Perttunen
2020-06-25 22:47 ` [RFC] Host1x/TegraDRM UAPI (drm_tegra_channel_map) Dmitry Osipenko
2020-06-26 7:34 ` Thierry Reding
2020-06-26 16:35 ` Dmitry Osipenko
2020-06-28 11:16 ` Mikko Perttunen
2020-06-28 22:59 ` Dmitry Osipenko
2020-06-30 10:55 ` Mikko Perttunen
2020-06-30 19:48 ` Dmitry Osipenko
2020-06-26 11:06 ` [RFC] Host1x/TegraDRM UAPI Karol Herbst
2020-06-26 11:13 ` Mikko Perttunen
2020-06-26 11:16 ` Karol Herbst
2020-06-26 11:40 ` Thierry Reding
2020-06-26 13:38 ` Daniel Vetter
2020-06-26 13:59 ` Dmitry Osipenko
2020-06-30 9:09 ` Daniel Vetter [this message]
2020-06-27 21:47 ` [RFC] Host1x/TegraDRM UAPI (drm_tegra_submit_syncpt_incr) Dmitry Osipenko
2020-06-28 11:10 ` Mikko Perttunen
2020-06-27 22:32 ` [RFC] Host1x/TegraDRM UAPI (drm_tegra_submit_command) Dmitry Osipenko
2020-06-28 10:28 ` Mikko Perttunen
2020-06-29 0:00 ` Dmitry Osipenko
2020-06-30 10:40 ` Mikko Perttunen
2020-06-27 23:27 ` [RFC] Host1x/TegraDRM UAPI (sync points) Dmitry Osipenko
2020-06-28 9:44 ` Mikko Perttunen
2020-06-29 2:36 ` Dmitry Osipenko
2020-06-29 10:27 ` Mikko Perttunen
2020-06-29 19:28 ` Dmitry Osipenko
2020-06-29 19:33 ` Dmitry Osipenko
2020-06-29 19:42 ` Dmitry Osipenko
2020-06-30 10:26 ` Mikko Perttunen
2020-07-01 0:22 ` Dmitry Osipenko
2020-07-02 12:10 ` Mikko Perttunen
2020-07-07 11:06 ` Dmitry Osipenko
2020-07-08 10:06 ` Mikko Perttunen
2020-07-09 9:28 ` Dmitry Osipenko
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=20200630090910.GS3278063@phenom.ffwll.local \
--to=daniel@ffwll.ch \
--cc=airlied@linux.ie \
--cc=bhuntsman@nvidia.com \
--cc=cyndis@kapsi.fi \
--cc=digetx@gmail.com \
--cc=dri-devel@lists.freedesktop.org \
--cc=gustavo@padovan.org \
--cc=jonathanh@nvidia.com \
--cc=kherbst@redhat.com \
--cc=linux-tegra@vger.kernel.org \
--cc=talho@nvidia.com \
--cc=thierry.reding@gmail.com \
/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