From: Denys Dmytriyenko <denis@denix.org>
To: afd@ti.com
Cc: Randolph Sapp <rs@ti.com>, Denys Dmytriyenko <denys@konsulko.com>,
Ryan Eatmon <reatmon@ti.com>,
meta-ti@lists.yoctoproject.org
Subject: Re: [meta-ti][master/kirkstone][PATCH 5/5] meta-ti-bsp: graphics: Correct dependency chain
Date: Tue, 11 Apr 2023 16:03:49 -0400 [thread overview]
Message-ID: <20230411200349.GZ9226@denix.org> (raw)
In-Reply-To: <d7ff8d60-748c-1657-509e-3a19947c00cb@ti.com>
On Mon, Apr 10, 2023 at 09:16:27AM -0500, Andrew Davis via lists.yoctoproject.org wrote:
> On 4/6/23 4:30 PM, Randolph Sapp wrote:
> >On 4/6/23 16:25, Denys Dmytriyenko wrote:
> >>On Thu, Apr 06, 2023 at 03:58:41PM -0500, Andrew Davis via lists.yoctoproject.org wrote:
> >>>On 4/6/23 2:46 PM, Denys Dmytriyenko wrote:
> >>>>On Thu, Apr 06, 2023 at 02:28:47PM -0500, Andrew Davis via lists.yoctoproject.org wrote:
> >>>>>Previously the virtual/gpudriver provider would point to the kernel-mode
> >>>>>driver, which would cause Mesa libraries to depend on those and not the
> >>>>>user-mode driver. It is the user-mode driver that should depend on the
> >>>>>kernel-mode driver, not the other way around. The logical dependency
> >>>>>chain should be:
> >>>>
> >>>>No, umlibs already has lots of virtual providers to choose from - virtual/egl,
> >>>>virtual/gles and even virtual/mesa. And virtual/gpudriver was specifically
> >>>>added to point to a kernel-mode driver - rogue-driver or sgx-km.
> >>>>
> >>>
> >>>But none of these virtual providers actually point to the umlibs anymore,
> >>>those all point to Mesa.
> >>
> >>Ah, right...
> >>
> >>
> >>>>So, flipping the dependency chain is probably the correct change, but changing
> >>>>what virtual/gpudriver means seems wrong.
> >>>>
> >>>
> >>>Not sure what the issue is with changing what this virtual provider means.
> >>>It is our creation that no one else uses, it exists today only as a flag to
> >>>tell our Mesa bbappend which backend to choose.
> >>
> >>It seems confusing - the kernel-mode for Rogue has the word "driver" in it.
> >>If it's not being used anywhere else any longer, and it should point to
> >>user-mode part now, why not also rename it to, let's say, virtual/gpulibs?
> >>
>
> For GPU drivers, they are always two part drivers, so both mode drivers are
> "drivers". In SGX we use "UM/KM" instead of "umlib/driver", we could always
> rename the Rogue recipes if it's more clear.
Heh, and both ti-sgx-ddk-km and ti-img-rogue-driver recipes reside in the
powervr-drivers directory... :) I know we've discussed already that it's
no longer correct to call all these GPUs as PowerVR, but that's historic
and isn't absolutely wrong. We have other references to "pvr" in other
places, like Mesa now...
> Since both are parts of the
> "gpudriver" I still don't see an issue with pointing to either with that
> label.
>
> If a rename like "virtual/umlibs" makes it easier then I also have no
> issue doing that.
I'd hate changing the behavior of an existing old variable, even if it's
not that widely used in meta-ti - we don't know if there are any downstream
layers using it, so don't want to break that.
So, the safest approach would be to leave KM recipes still providing this
virtual/gpudriver, but add a new virtual provider for UM recipes to be
used a dependency for Mesa. Whether it's "umlibs" or something else - I
don't have strong preferences. Ryan?
> >>How does Imagination Tech call this proprietary piece?
> >>
> >They just refer to the whole bag of software as the DDK. No specific terminology for the components. Even if there was it, wouldn't apply here, unfortunately, as this is specifically our packaged version. But no, they don't even give us a hint to create a naming convention here.
>
> In the DDK they just call the UM side without a postfix, and the KM
> side with "_km". So maybe "driver" and "driver_km", but as you say
> it doesn't much matter here.
>
> Andrew
next prev parent reply other threads:[~2023-04-11 20:04 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-04-06 19:28 [meta-ti][master/kirkstone][PATCH 1/5] ti-sgx-ddk-um: Remove RDEPENDS on libdrm-omap Andrew Davis
2023-04-06 19:28 ` [meta-ti][master/kirkstone][PATCH 2/5] ti-sgx-ddk-um: Remove no longer needed CLEANBROKEN and INSANE_SKIPs Andrew Davis
2023-04-06 19:28 ` [meta-ti][master/kirkstone][PATCH 3/5] ti-sgx-ddk-km: Be specific on supported K3 machines Andrew Davis
2023-04-06 19:28 ` [meta-ti][master/kirkstone][PATCH 4/5] ti-sgx-ddk-km: Use PVR_BUILD and PVR_WS to match Rogue Andrew Davis
2023-04-06 19:28 ` [meta-ti][master/kirkstone][PATCH 5/5] meta-ti-bsp: graphics: Correct dependency chain Andrew Davis
2023-04-06 19:46 ` Denys Dmytriyenko
2023-04-06 20:58 ` Andrew Davis
2023-04-06 21:25 ` Denys Dmytriyenko
2023-04-06 21:30 ` [EXTERNAL] " Randolph Sapp
2023-04-10 14:16 ` Andrew Davis
2023-04-11 20:03 ` Denys Dmytriyenko [this message]
2023-04-06 20:28 ` Randolph Sapp
2023-04-06 20:47 ` Andrew Davis
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=20230411200349.GZ9226@denix.org \
--to=denis@denix.org \
--cc=afd@ti.com \
--cc=denys@konsulko.com \
--cc=meta-ti@lists.yoctoproject.org \
--cc=reatmon@ti.com \
--cc=rs@ti.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 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.