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
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#16357): https://lists.yoctoproject.org/g/meta-ti/message/16357 Mute This Topic: https://lists.yoctoproject.org/mt/98112282/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/leave/6695321/21656/1393940836/xyzzy [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
