ti-sgx-ddk-um: UM side driver depends on KM side driver
RFC 1/6 ti-sgx-ddk-um: UM side driver depends on KM side driver
This also matches what is done for ti-img-rogue-umlibs.
--- .../powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
meta-ti-bsp/recipes-graphics/powervr-umlibs/ti-sgx-ddk-um_1.17.4948957.bb +1 -3
@@ -40,9 +40,7 @@ TARGET_PRODUCT:ti43x = "ti437x_linux" TARGET_PRODUCT:omap-a15 = "ti572x_linux" TARGET_PRODUCT:am65xx = "ti654x_linux" -RDEPENDS:${PN} += "libdrm" - -RRECOMMENDS:${PN} += "ti-sgx-ddk-km" +RDEPENDS:${PN} += "libdrm ti-sgx-ddk-km" S = "${WORKDIR}/git"
Signature · 1 line
2.39.2
RFC 2/6 ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Setting or removing the gpu MACHINE_FEATURE does not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.
--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)
meta-ti-bsp/conf/machine/include/ti-bsp.inc +0 -8
@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"
@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"
Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 2/6] ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Setting or removing the gpu
MACHINE_FEATUREdoes not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.
While cleaning the remaining uses of "gpu" MACHINE_FEATURE, why not remove it completely from all the machine configs?
Quoted 33 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-8@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 2/6] ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Quoted 11 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Setting or removing the gpu
MACHINE_FEATUREdoes not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.While cleaning the remaining uses of "gpu"
MACHINE_FEATURE, why not remove it completely from all the machine configs?
I thought about that, but it could still be useful to key off of that for other reasons, or even maybe turn the "gpu" MACHINE_FEATURE into "rgx" and "sgx" so we can later switch on that in the mesa-pvr driver.
Andrew
Quoted 34 lines
Quoted 34 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-8@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 2/6] ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Quoted 9 lines · Andrew Davis
Quoted 8 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Setting or removing the gpu
MACHINE_FEATUREdoes not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.
Quoted 7 lines
Quoted 3 lines
While cleaning the remaining uses of "gpu"
MACHINE_FEATURE, why not remove it completely from all the machine configs?I thought about that, but it could still be useful to key off of that for other reasons, or even maybe turn the "gpu"
MACHINE_FEATUREinto "rgx" and "sgx" so we can later switch on that in the mesa-pvr driver.
Heh, this MACHINE_FEATURE used to be called "sgx" back in the day. When Rogue was being added, I briefly had a separate "rgx" flag, but eventually combined both into "gpu" one...
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-8@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 2/6] ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Quoted 14 lines · Denys Dmytriyenko
Quoted 13 lines · Andrew Davis
Quoted 11 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Setting or removing the gpu
MACHINE_FEATUREdoes not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.While cleaning the remaining uses of "gpu"
MACHINE_FEATURE, why not remove it completely from all the machine configs?
Quoted 8 lines
Quoted 3 lines
I thought about that, but it could still be useful to key off of that for other reasons, or even maybe turn the "gpu"
MACHINE_FEATUREinto "rgx" and "sgx" so we can later switch on that in the mesa-pvr driver.Heh, this
MACHINE_FEATUREused to be called "sgx" back in the day. When Rogue was being added, I briefly had a separate "rgx" flag, but eventually combined both into "gpu" one...
Okay so then I have two options, I can switch back to "sgx" and "rgx" for some later use, or I can just drop the MACHINE_FEATURE completely, any preference?
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Quoted 30 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-8@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 2/6] ti-bsp: Do not remove gpu MACHINE_FEATURE conditionally on BSP version
Quoted 19 lines · Andrew Davis
Quoted 18 lines · Denys Dmytriyenko
Quoted 16 lines · Andrew Davis
Quoted 11 lines · Denys Dmytriyenko
Quoted 6 lines · Andrew Davis via lists.yoctoproject.org
Setting or removing the gpu
MACHINE_FEATUREdoes not actually change if the GPU driver is built or not. That is done based on the setting of the BSP_{SGX,ROGUE}_{DRIVER,UMLIBS}_{PROVIDER,VERSION} vars. These are default empty for BSP versions without supported GPU drivers, which will correctly cause a fallback to SW rendering when the GPU driver is not available.While cleaning the remaining uses of "gpu"
MACHINE_FEATURE, why not remove it completely from all the machine configs?I thought about that, but it could still be useful to key off of that for other reasons, or even maybe turn the "gpu"
MACHINE_FEATUREinto "rgx" and "sgx" so we can later switch on that in the mesa-pvr driver.
Quoted 8 lines
Quoted 4 lines
Heh, this
MACHINE_FEATUREused to be called "sgx" back in the day. When Rogue was being added, I briefly had a separate "rgx" flag, but eventually combined both into "gpu" one...Okay so then I have two options, I can switch back to "sgx" and "rgx" for some later use, or I can just drop the
MACHINE_FEATUREcompletely, any preference?
I'm partial to just dropping it entirely. If we don't intend external layers to read it, then it shouldn't be a MACHINE_FEATURE. We're already tracking that information in other variables anyway.
- Randolph
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Quoted 29 lines
Signed-off-by Andrew Davis <[email protected]>--- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 -------- 1 file changed, 8 deletions(-)meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-8@@ -18,10 +18,6 @@ BSP_KERNEL_VERSION:bsp-mainline = "%" BSP_BOOTLOADER_PROVIDER:bsp-mainline = "u-boot-ti-mainline" BSP_BOOTLOADER_VERSION:bsp-mainline = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in mainline, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-mainline = "gpu" - # GC320 support requires out-of-tree drivers not available in mainline MACHINE_FEATURES:remove:bsp-mainline = "gc320"@@ -34,10 +30,6 @@ BSP_KERNEL_VERSION:bsp-next = "%" BSP_BOOTLOADER_PROVIDER:bsp-next = "u-boot-ti-next" BSP_BOOTLOADER_VERSION:bsp-next = "%" -# GPU support requires out-of-tree SGX and Rogue drivers not available -# in next, usually present in TI staging or derivative like BB.org -MACHINE_FEATURES:remove:bsp-next = "gpu" - # GC320 support requires out-of-tree drivers not available in next MACHINE_FEATURES:remove:bsp-next = "gc320"Signature · 1 line
2.39.2
RFC 3/6 ti-bsp: Use same version for both UM and KM driver
In reply to Andrew DavisThe DRIVER and matching UMLIBS must always match, no need to define a version number for both. Keep this simple and remove the extra defines.
--- meta-beagle/conf/machine/include/beagle-bsp.inc | 4 ---- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 10 ++-------- 2 files changed, 2 insertions(+), 12 deletions(-)
meta-beagle/conf/machine/include/beagle-bsp.inc +0 -4
@@ -18,10 +18,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_12 = "" BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_12 = "24%" # GC320 support requires out-of-tree drivers not yet available in bb.org 6.12
@@ -41,10 +39,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_6 = "" BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_6 = "24%" # GC320 support requires out-of-tree drivers not yet available in bb.org 6.6
meta-ti-bsp/conf/machine/include/ti-bsp.inc +2 -8
@@ -44,10 +44,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2025.01%" BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_12 = "24%" # ==========
@@ -61,10 +59,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%" BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "24%" # GC320 support requires out-of-tree drivers not yet available in 6.6
@@ -84,8 +80,6 @@ BSP_SGX_DRIVER_PROVIDER ?= "" BSP_SGX_DRIVER_VERSION ?= "" BSP_ROGUE_DRIVER_PROVIDER ?= "" BSP_ROGUE_DRIVER_VERSION ?= "" -BSP_SGX_UMLIBS_VERSION ?= "" -BSP_ROGUE_UMLIBS_VERSION ?= "" BSP_MESA_PVR_VERSION ?= "" # ==========
@@ -101,7 +95,7 @@ PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" # GPU provider gets set in machine configs, as some machines are headless # Select default preferred versions here PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}" -PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_DRIVER_VERSION}" PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}" -PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_DRIVER_VERSION}" PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"
Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 3/6] ti-bsp: Use same version for both UM and KM driver
Quoted 71 lines · Andrew Davis
The DRIVER and matching UMLIBS must always match, no need to define a version number for both. Keep this simple and remove the extra defines.
Signed-off-by Andrew Davis <[email protected]>--- meta-beagle/conf/machine/include/beagle-bsp.inc | 4 ---- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 10 ++-------- 2 files changed, 2 insertions(+), 12 deletions(-)meta-beagle/conf/machine/include/beagle-bsp.inc +0
-4@@ -18,10 +18,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_12 = "" BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_12 = "24%" # GC320 support requires out-of-tree drivers not yet available in bb.org 6.12@@ -41,10 +39,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_6 = "" BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_6 = "24%" # GC320 support requires out-of-tree drivers not yet available in bb.org 6.6meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-6@@ -44,10 +44,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2025.01%" BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_12 = "24%" # ==========@@ -61,10 +59,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%" BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "24%" # GC320 support requires out-of-tree drivers not yet available in 6.6@@ -84,8 +80,6 @@ BSP_SGX_DRIVER_PROVIDER ?= "" BSP_SGX_DRIVER_VERSION ?= "" BSP_ROGUE_DRIVER_PROVIDER ?= "" BSP_ROGUE_DRIVER_VERSION ?= "" -BSP_SGX_UMLIBS_VERSION ?= "" -BSP_ROGUE_UMLIBS_VERSION ?= "" BSP_MESA_PVR_VERSION ?= "" # ==========
meta-ti-bsp/conf/machine/include/ti-bsp.inc PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" · line 98
Quoted 5 lines
meta-ti-bsp/conf/machine/include/ti-bsp.inc +1
-1@@ -101,7 +95,7 @@ PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" # GPU provider gets set in machine configs, as some machines are headless # Select default preferred versions here PREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}" -PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_DRIVER_VERSION}"
Since we are simplifying, do we want to take it further and rename the XXX_DRIVER_VERSION to just XXX_VERSION?
BSP_ROGUE_DRIVER_VERSION -> BSP_ROGUE_VERSIONBSP_SGX_DRIVER_VERSION -> BSP_SGX_VERSION
Quoted 4 lines
meta-ti-bsp/conf/machine/include/ti-bsp.inc +1
-1PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}" -PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_DRIVER_VERSION}" PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"
Signature · 3 lines
Ryan Eatmon [email protected] ----------------------------------------- Texas Instruments, Inc. - LCPD - MGTS
Re: [meta-ti][scarthgap][RFC 3/6] ti-bsp: Use same version for both UM and KM driver
Quoted 73 lines · Ryan Eatmon
Quoted 65 lines · Andrew Davis
The DRIVER and matching UMLIBS must always match, no need to define a version number for both. Keep this simple and remove the extra defines.
Signed-off-by Andrew Davis <[email protected]>---
meta-beagle/conf/machine/include/beagle-bsp.inc | 4 ---- meta-ti-bsp/conf/machine/include/ti-bsp.inc | 10 ++--------2 files changed, 2 insertions(+), 12 deletions(-)meta-beagle/conf/machine/include/beagle-bsp.inc +0
-0@@ -18,10 +18,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_12 = ""BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_12 = "24%"
# GC320 support requires out-of-tree drivers not yet available in bb.org 6.12meta-beagle/conf/machine/include/beagle-bsp.inc +0
-0@@ -41,10 +39,8 @@ KERNEL_DEVICETREE_PREFIX:bsp-bb_org-6_6 = ""BSP_SGX_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-bb_org-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-bb_org-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-bb_org-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-bb_org-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-bb_org-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-bb_org-6_6 = "24%"
# GC320 support requires out-of-tree drivers not yet available in bb.org 6.6meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-0@@ -44,10 +44,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_12 = "2025.01%"BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_12 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_12 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_12 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_12 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_12 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_12 = "24%"
# ==========meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-0@@ -61,10 +59,8 @@ BSP_BOOTLOADER_VERSION:bsp-ti-6_6 = "2024.04%"BSP_SGX_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-sgx-ddk-km" BSP_SGX_DRIVER_VERSION:bsp-ti-6_6 = "1.17%" -BSP_SGX_UMLIBS_VERSION:bsp-ti-6_6 = "1.17%" BSP_ROGUE_DRIVER_PROVIDER:bsp-ti-6_6 = "ti-img-rogue-driver" BSP_ROGUE_DRIVER_VERSION:bsp-ti-6_6 = "24%" -BSP_ROGUE_UMLIBS_VERSION:bsp-ti-6_6 = "24%" BSP_MESA_PVR_VERSION:bsp-ti-6_6 = "24%"
# GC320 support requires out-of-tree drivers not yet available in 6.6meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-0@@ -84,8 +80,6 @@ BSP_SGX_DRIVER_PROVIDER ?= ""
BSP_SGX_DRIVER_VERSION?= ""
BSP_ROGUE_DRIVER_PROVIDER?= ""
BSP_ROGUE_DRIVER_VERSION?= ""meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-2-BSP_SGX_UMLIBS_VERSION ?= "" -BSP_ROGUE_UMLIBS_VERSION ?= ""
BSP_MESA_PVR_VERSION?= ""
# ==========meta-ti-bsp/conf/machine/include/ti-bsp.inc +0
-0@@ -101,7 +95,7 @@ PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" # GPU provider gets set in machine configs, as some machines are headless # Select default preferred versions herePREFERRED_VERSION_ti-sgx-ddk-km ?= "${BSP_SGX_DRIVER_VERSION}"
meta-ti-bsp/conf/machine/include/ti-bsp.inc PREFERRED_VERSION_${BSP_BOOTLOADER_PROVIDER} ?= "${BSP_BOOTLOADER_VERSION}" · line 98
Quoted 2 lines
meta-ti-bsp/conf/machine/include/ti-bsp.inc +1
-1-PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_DRIVER_VERSION}"Since we are simplifying, do we want to take it further and rename the
XXX_DRIVER_VERSIONto justXXX_VERSION?
Quoted 2 lines
BSP_ROGUE_DRIVER_VERSION->BSP_ROGUE_VERSIONBSP_SGX_DRIVER_VERSION->BSP_SGX_VERSION
My only worry would be to me this looks like it should contain the version of the GPU itself. Including "driver" makes it clear this is for the SW version. No huge preference either way.
Andrew
Quoted 6 lines
Quoted 5 lines
PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}"
meta-ti-bsp/conf/machine/include/ti-bsp.inc +1
-1-PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_UMLIBS_VERSION}" +PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_DRIVER_VERSION}"PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}"
RFC 4/6 mesa-pvr: Remove need for PVR/SGX display aliases
In reply to Andrew DavisUpdate mesa-pvr which includes a default set of display controller aliases for the supported display controllers. This means we do not have to manually set the alias for each device here in the integration layer. Remove that here.
--- meta-ti-bsp/conf/machine/include/omap-a15.inc | 1 - meta-ti-bsp/conf/machine/include/ti33x.inc | 1 - meta-ti-bsp/conf/machine/include/ti43x.inc | 1 - meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb | 7 +------ 4 files changed, 1 insertion(+), 9 deletions(-)
meta-ti-bsp/conf/machine/include/omap-a15.inc +0 -1
@@ -9,7 +9,6 @@ require conf/machine/include/ti-bsp.inc # Graphics providers and variables require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" -PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" KERNEL_IMAGETYPE = "zImage" KERNEL_IMAGETYPES = "zImage uImage"
meta-ti-bsp/conf/machine/include/ti33x.inc +0 -1
@@ -9,7 +9,6 @@ require conf/machine/include/ti-bsp.inc # Graphics providers and variables require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" -PVR_DISPLAY_CONTROLLER_ALIAS ?= "tilcdc" KERNEL_IMAGETYPE = "zImage"
meta-ti-bsp/conf/machine/include/ti43x.inc +0 -1
@@ -9,7 +9,6 @@ require conf/machine/include/ti-bsp.inc # Graphics providers and variables require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" -PVR_DISPLAY_CONTROLLER_ALIAS ?= "omapdrm" KERNEL_IMAGETYPE = "zImage"
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb +1 -6
@@ -28,14 +28,9 @@ PACKAGECONFIG:append = " \ ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \ " -SRCREV = "82e6a9293c476267417c5b6b906b01fb73a34e38" +SRCREV = "68af6a102c2298569e77d1aa8bccc1ff61438b3e" PV = "24.0.1" -PVR_DISPLAY_CONTROLLER_ALIAS ??= "tidss" -PACKAGECONFIG[pvr] = "-Dgallium-pvr-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," -PACKAGECONFIG[sgx] = "-Dgallium-sgx-alias=${PVR_DISPLAY_CONTROLLER_ALIAS}," - - PACKAGE_ARCH = "${MACHINE_ARCH}" GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}"
Signature · 1 line
2.39.2
RFC 5/6 mesa-pvr: Use PREFERRED_PROVIDER directly for GPU selection
In reply to Andrew DavisNow that display controller aliases are not set using PACKAGECONFIG, instead of using PREFERRED_PROVIDER to add either "sgx" or "pvr" to PACKAGECONFIG, followed by reading it back out, simply use PREFERRED_PROVIDER directly.
--- meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-)
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb +3 -8
@@ -23,20 +23,15 @@ SRC_URI = " \ S = "${WORKDIR}/git" -PACKAGECONFIG:append = " \ - ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', 'pvr', '', d)} \ - ${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', 'sgx', '', d)} \ -" - SRCREV = "68af6a102c2298569e77d1aa8bccc1ff61438b3e" PV = "24.0.1" PACKAGE_ARCH = "${MACHINE_ARCH}" -GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}" -GALLIUMDRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'sgx', ',sgx', '', d)}" +GALLIUMDRIVERS:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', ',pvr', '', d)}" +GALLIUMDRIVERS:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-sgx-ddk-km', ',sgx', '', d)}" -VULKAN_DRIVERS:append = "${@bb.utils.contains('PACKAGECONFIG', 'pvr', ',pvr', '', d)}" +VULKAN_DRIVERS:append = "${@bb.utils.contains('PREFERRED_PROVIDER_virtual/gpudriver', 'ti-img-rogue-driver', ',pvr', '', d)}" do_install:append () { # remove pvr custom pkgconfig
Signature · 1 line
2.39.2
RFC 6/6 mesa-pvr: Use mesa-pvr for all TI SoCs
In reply to Andrew DavisTI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
--- meta-ti-bsp/conf/machine/beagleplay-ti.conf | 1 - meta-ti-bsp/conf/machine/include/am62pxx.inc | 1 - meta-ti-bsp/conf/machine/include/am62xx.inc | 1 - meta-ti-bsp/conf/machine/include/am65xx.inc | 1 - meta-ti-bsp/conf/machine/include/am68.inc | 1 - meta-ti-bsp/conf/machine/include/am69.inc | 1 - meta-ti-bsp/conf/machine/include/j721e.inc | 1 - meta-ti-bsp/conf/machine/include/j721s2.inc | 1 - meta-ti-bsp/conf/machine/include/j722s.inc | 1 - meta-ti-bsp/conf/machine/include/j742s2.inc | 1 - meta-ti-bsp/conf/machine/include/j784s4.inc | 1 - meta-ti-bsp/conf/machine/include/mesa-pvr.inc | 8 -------- meta-ti-bsp/conf/machine/include/omap-a15.inc | 1 - meta-ti-bsp/conf/machine/include/ti-bsp.inc | 8 ++++++++ meta-ti-bsp/conf/machine/include/ti33x.inc | 1 - meta-ti-bsp/conf/machine/include/ti43x.inc | 1 - meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb | 1 + 17 files changed, 9 insertions(+), 22 deletions(-) delete mode 100644 meta-ti-bsp/conf/machine/include/mesa-pvr.inc
meta-ti-bsp/conf/machine/beagleplay-ti.conf +0 -1
@@ -11,7 +11,6 @@ MACHINE_FEATURES += "screen gpu" SERIAL_CONSOLES = "115200;ttyS2" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "lite"
meta-ti-bsp/conf/machine/include/am62pxx.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":am62pxx" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "lite"
meta-ti-bsp/conf/machine/include/am62xx.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":am62xx" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" # Bitmap image tarball for early splashscreen
meta-ti-bsp/conf/machine/include/am65xx.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":am65xx" MACHINE_FEATURES += "screen touchscreen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" KERNEL_DEVICETREE_PREFIX = "ti/k3-am654"
meta-ti-bsp/conf/machine/include/am68.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j721s2" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "generic"
meta-ti-bsp/conf/machine/include/am69.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j784s4" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "j784s4"
meta-ti-bsp/conf/machine/include/j721e.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j721e" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" # Deploy SYSFW and any variants
meta-ti-bsp/conf/machine/include/j721s2.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j721s2" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "generic"
meta-ti-bsp/conf/machine/include/j722s.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j722s" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "lite"
meta-ti-bsp/conf/machine/include/j742s2.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j742s2" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "j784s4"
meta-ti-bsp/conf/machine/include/j784s4.inc +0 -1
@@ -5,7 +5,6 @@ SOC_FAMILY:append = ":j784s4" MACHINE_FEATURES += "screen gpu" -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_ROGUE_DRIVER_PROVIDER}" TFA_BOARD = "j784s4"
meta-ti-bsp/conf/machine/include/mesa-pvr.inc deleted +0 -8
@@ -1,8 +0,0 @@ -PREFERRED_PROVIDER_virtual/mesa ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/egl ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libgbm ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libglx ?= "mesa-pvr" -PREFERRED_PROVIDER_virtual/libgl ?= "mesa-pvr"
meta-ti-bsp/conf/machine/include/omap-a15.inc +0 -1
@@ -7,7 +7,6 @@ require conf/machine/include/arm/armv7a/tune-cortexa15.inc require conf/machine/include/ti-bsp.inc # Graphics providers and variables -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" KERNEL_IMAGETYPE = "zImage"
meta-ti-bsp/conf/machine/include/ti-bsp.inc +8 -0
@@ -99,3 +99,11 @@ PREFERRED_VERSION_ti-sgx-ddk-um ?= "${BSP_SGX_DRIVER_VERSION}" PREFERRED_VERSION_ti-img-rogue-driver ?= "${BSP_ROGUE_DRIVER_VERSION}" PREFERRED_VERSION_ti-img-rogue-umlibs ?= "${BSP_ROGUE_DRIVER_VERSION}" PREFERRED_VERSION_mesa-pvr ?= "${BSP_MESA_PVR_VERSION}" +PREFERRED_PROVIDER_virtual/mesa ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/egl ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libgles1 ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libgles2 ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libgles3 ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libgbm ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libglx ?= "mesa-pvr" +PREFERRED_PROVIDER_virtual/libgl ?= "mesa-pvr"
meta-ti-bsp/conf/machine/include/ti33x.inc +0 -1
@@ -7,7 +7,6 @@ require conf/machine/include/arm/armv7a/tune-cortexa8.inc require conf/machine/include/ti-bsp.inc # Graphics providers and variables -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" KERNEL_IMAGETYPE = "zImage"
meta-ti-bsp/conf/machine/include/ti43x.inc +0 -1
@@ -7,7 +7,6 @@ require conf/machine/include/arm/armv7a/tune-cortexa9.inc require conf/machine/include/ti-bsp.inc # Graphics providers and variables -require conf/machine/include/mesa-pvr.inc PREFERRED_PROVIDER_virtual/gpudriver ?= "${BSP_SGX_DRIVER_PROVIDER}" KERNEL_IMAGETYPE = "zImage"
meta-ti-bsp/recipes-graphics/mesa/mesa-pvr_24.0.1.bb +1 -0
@@ -41,4 +41,5 @@ do_install:append () { FILES:${PN}-dev += "${datadir}/mesa/wayland-drm.xml" FILES:mesa-vulkan-drivers += "${libdir}/libpvr_mesa_wsi.so" +PREFERRED_PROVIDER_virtual/gpudriver ?= "" RRECOMMENDS:mesa-megadriver:append:class-target = " ${@d.getVar('PREFERRED_PROVIDER_virtual/gpudriver')}"
Signature · 1 line
2.39.2
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
- Randolph
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Andrew
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 29 lines · Andrew Davis
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Quoted 4 lines
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Andrew
Ah, not much to expand on really. Upstream driver needs vanilla mesa, and I'd like to avoid shipping hacked libraries on devices that don't need em.
- Randolph
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 33 lines · Randolph Sapp
Quoted 32 lines · Andrew Davis
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Quoted 6 lines
Quoted 1 line
Andrew
Ah, not much to expand on really. Upstream driver needs vanilla mesa, and I'd like to avoid shipping hacked libraries on devices that don't need em.
- Randolph
What is the timeline looking like for that? This series is for scarthgap and I'd guess the upstream driver won't be usable in time for the next LTS either. We can always switch back to vanilla when it can be used on these devices.
Andrew
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 39 lines · Andrew Davis
Quoted 38 lines · Randolph Sapp
Quoted 29 lines · Andrew Davis
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Quoted 4 lines
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Andrew
Ah, not much to expand on really. Upstream driver needs vanilla mesa, and I'd like to avoid shipping hacked libraries on devices that don't need em.
Quoted 7 lines
Quoted 1 line
- Randolph
What is the timeline looking like for that? This series is for scarthgap and I'd guess the upstream driver won't be usable in time for the next LTS either. We can always switch back to vanilla when it can be used on these devices.
Andrew
That's still ignoring my last comment. I don't think this is necessary, and bringing up timelines to apply pressure here isn't useful. Merging an unnecessary patch now just to remove it later is goofy.
- Randolph
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 46 lines · Randolph Sapp
Quoted 45 lines · Andrew Davis
Quoted 33 lines · Randolph Sapp
Quoted 32 lines · Andrew Davis
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Quoted 6 lines
Quoted 1 line
Andrew
Ah, not much to expand on really. Upstream driver needs vanilla mesa, and I'd like to avoid shipping hacked libraries on devices that don't need em.
- Randolph
What is the timeline looking like for that? This series is for scarthgap and I'd guess the upstream driver won't be usable in time for the next LTS either. We can always switch back to vanilla when it can be used on these devices.
Quoted 7 lines
Quoted 1 line
Andrew
That's still ignoring my last comment. I don't think this is necessary, and bringing up timelines to apply pressure here isn't useful. Merging an unnecessary patch now just to remove it later is goofy.
- Randolph
Oh I wasn't trying to pressure you, in fact this patch was meant to help you out specifically, if you don't want it then I'll drop it from v2, no worries :)
Andrew
Re: [meta-ti][scarthgap][RFC 6/6] mesa-pvr: Use mesa-pvr for all TI SoCs
Quoted 53 lines · Andrew Davis
Quoted 52 lines · Randolph Sapp
Quoted 39 lines · Andrew Davis
Quoted 38 lines · Randolph Sapp
Quoted 29 lines · Andrew Davis
Quoted 9 lines · Randolph Sapp
Quoted 7 lines · Andrew Davis
TI SoCs without GPUs can still use mesa-pvr as it will simply fallback to SW rendering just like the normal mesa package. The benefit is using the same version across all supported devices is more consistent and only one version of Mesa is needed for all TI SoCs.
Signed-off-by Andrew Davis <[email protected]>---
Quoted 7 lines
[snip]
Originally this was done to mitigate damage in the event where there is an issue with mesa. I'm not entirely sure we want to move everything over to pvr-mesa as they still hijack some of the common dri code for their own goofy stuff.
Fair point, would be nice if the PVR support didn't touch the core/common DRI at all. Having this the common Mesa for all boards would help in identifying if they broke anything in the common/sw rendering side though, right now we would only find those bugs if one was both using a device with GPU *and* it falls back to SW.
Quoted 4 lines
My opinion is we should use vanilla software where we can. Especially considering we'll need to be able to access vanilla mesa for AM62 later if I get my way.
Quoted 4 lines
Could you expand on that? Outside of the eventual switch to the upstream PVR driver, what would we need vanilla mesa for on AM62?
Andrew
Ah, not much to expand on really. Upstream driver needs vanilla mesa, and I'd like to avoid shipping hacked libraries on devices that don't need em.
Quoted 7 lines
Quoted 1 line
- Randolph
What is the timeline looking like for that? This series is for scarthgap and I'd guess the upstream driver won't be usable in time for the next LTS either. We can always switch back to vanilla when it can be used on these devices.
Andrew
That's still ignoring my last comment. I don't think this is necessary, and bringing up timelines to apply pressure here isn't useful. Merging an unnecessary patch now just to remove it later is goofy.
Quoted 7 lines
Quoted 1 line
- Randolph
Oh I wasn't trying to pressure you, in fact this patch was meant to help you out specifically, if you don't want it then I'll drop it from v2, no worries :)
Andrew
Sorry if that was a bit aggressive. First day back and things are already getting tense. Fun times.
- Randolph