Re: [meta-ti][master][PATCH] Rename machine from omap-a15 to am57xx

2022-05-02 Thread Andrew Davis via lists.yoctoproject.org

On 4/29/22 3:00 PM, Denys Dmytriyenko wrote:

Andrew,

In the subject - omap-a15 is not a machine, but an SoC family, at least from
OE perspective.




Will fix the wording.




On Thu, Apr 28, 2022 at 09:34:10AM -0500, Andrew Davis via 
lists.yoctoproject.org wrote:

The "omap-a15" is a bit of a legacy holdover and is confusing.
This causes issues with mixed usage of 'dra7xx' and 'omap-a15'.
For example all EVM using this SoC family include dra7x.inc
so both are always defined, then we use 'omap-a15' in several
places where we really mean 'am57xx'. 'dra7xx' can't be filtered
for as needed like in the case of PRU.

AM57x is arguably the real superset device. Lets use that name
then start filtering correctly out the DRA7x to only be used
when we actually mean DRA7x.


There were machines in omap-a15 family that were not in dra7xx family, but
those got deprecated from meta-ti by now. E.g. OMAP5 uEVM, which is still
supported in the kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/omap5-uevm.dts




Right, so lets remove that name from meta-ti to avoid any confustion.



Since original AM57xx and DRA7xx use pretty much the same SoC (but EVMs are
different), there never was a need for separate SoC families for them.




Which is why we can make the SoC family at least match some existing SoC.
Then still make changes based on EVM if needed. That's the issue I'm trying to 
fix,
there is some confusion it seems for folks adding features for only DRA7x
or AM57x. Since both sets of EVM use both have defined 'omap-a15' and 'dra7' 
SoC family
I'm seeing them used interchangeably and when we actually what to differentiate
(but that doesn't end up working, as said, all EVMs include both defines).



So, omap-a15 was a superset of dra7xx. The only remaining difference between
them that's left, is omap-a15 doesn't have "pci" enabled. So, if you are
renaming it into am57xx, that means that all derived AM57xx machines won't
have it enabled either...




If omap-a15 doesn't have PCI and dra7xx does, wouldn't that make dra7xx
the superset device..

Anyway, plan is to fold pci into the parent include, then just remove
SoC family 'dra7' and drop PCI disablement specific to the dra7 as
it should be.

Andrew





This patch makes no functional change.

Signed-off-by: Andrew Davis 
---
  .../conf/machine/include/{omap-a15.inc => am57xx.inc} | 2 +-
  meta-ti-bsp/conf/machine/include/dra7xx.inc   | 2 +-
  .../powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb | 4 ++--
  .../recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | 6 +++---
  .../recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb| 2 +-
  .../libgles/ti-sgx-ddk-um_1.17.4948957.bb | 4 ++--
  meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb| 8 
  meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc  | 2 +-
  meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc | 8 
  meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb  | 4 ++--
  meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb  | 6 +++---
  .../recipes-ti/uio-test-pruss/uio-test-pruss_git.bb   | 4 ++--
  meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc  | 2 +-
  13 files changed, 27 insertions(+), 27 deletions(-)
  rename meta-ti-bsp/conf/machine/include/{omap-a15.inc => am57xx.inc} (98%)

diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc 
b/meta-ti-bsp/conf/machine/include/am57xx.inc
similarity index 98%
rename from meta-ti-bsp/conf/machine/include/omap-a15.inc
rename to meta-ti-bsp/conf/machine/include/am57xx.inc
index 9a2e0044..5e2b398f 100644
--- a/meta-ti-bsp/conf/machine/include/omap-a15.inc
+++ b/meta-ti-bsp/conf/machine/include/am57xx.inc
@@ -1,5 +1,5 @@
  require conf/machine/include/ti-soc.inc
-SOC_FAMILY:append = ":omap-a15"
+SOC_FAMILY:append = ":am57xx"
  
  DEFAULTTUNE ?= "armv7athf-neon"

  require conf/machine/include/arm/armv7a/tune-cortexa15.inc
diff --git a/meta-ti-bsp/conf/machine/include/dra7xx.inc 
b/meta-ti-bsp/conf/machine/include/dra7xx.inc
index a02421d9..29d2d6a1 100644
--- a/meta-ti-bsp/conf/machine/include/dra7xx.inc
+++ b/meta-ti-bsp/conf/machine/include/dra7xx.inc
@@ -1,4 +1,4 @@
-require conf/machine/include/omap-a15.inc
+require conf/machine/include/am57xx.inc
  SOC_FAMILY:append = ":dra7xx"
  
  MACHINE_FEATURES += "pci"

diff --git 
a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb 
b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
index 2ec2ffef..e2543ca9 100644
--- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
+++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
@@ -7,7 +7,7 @@ inherit module features_check
  
  REQUIRED_MACHINE_FEATURES = "gpu"
  
-COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"

+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|k3"
  
  MACHINE_KERNEL_PR:append = "x"

  PR = "${MACHINE_KERNEL_PR}"
@@ -26,7 +26,7 @@ S = "${WORKD

Re: [meta-ti][master][PATCH] Rename machine from omap-a15 to am57xx

2022-04-29 Thread Denys Dmytriyenko
Andrew,

In the subject - omap-a15 is not a machine, but an SoC family, at least from 
OE perspective.


On Thu, Apr 28, 2022 at 09:34:10AM -0500, Andrew Davis via 
lists.yoctoproject.org wrote:
> The "omap-a15" is a bit of a legacy holdover and is confusing.
> This causes issues with mixed usage of 'dra7xx' and 'omap-a15'.
> For example all EVM using this SoC family include dra7x.inc
> so both are always defined, then we use 'omap-a15' in several
> places where we really mean 'am57xx'. 'dra7xx' can't be filtered
> for as needed like in the case of PRU.
> 
> AM57x is arguably the real superset device. Lets use that name
> then start filtering correctly out the DRA7x to only be used
> when we actually mean DRA7x.

There were machines in omap-a15 family that were not in dra7xx family, but 
those got deprecated from meta-ti by now. E.g. OMAP5 uEVM, which is still 
supported in the kernel:
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm/boot/dts/omap5-uevm.dts

Since original AM57xx and DRA7xx use pretty much the same SoC (but EVMs are 
different), there never was a need for separate SoC families for them.

So, omap-a15 was a superset of dra7xx. The only remaining difference between 
them that's left, is omap-a15 doesn't have "pci" enabled. So, if you are 
renaming it into am57xx, that means that all derived AM57xx machines won't 
have it enabled either...


> This patch makes no functional change.
> 
> Signed-off-by: Andrew Davis 
> ---
>  .../conf/machine/include/{omap-a15.inc => am57xx.inc} | 2 +-
>  meta-ti-bsp/conf/machine/include/dra7xx.inc   | 2 +-
>  .../powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb | 4 ++--
>  .../recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | 6 +++---
>  .../recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb| 2 +-
>  .../libgles/ti-sgx-ddk-um_1.17.4948957.bb | 4 ++--
>  meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb| 8 
>  meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc  | 2 +-
>  meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc | 8 
>  meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb  | 4 ++--
>  meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb  | 6 +++---
>  .../recipes-ti/uio-test-pruss/uio-test-pruss_git.bb   | 4 ++--
>  meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc  | 2 +-
>  13 files changed, 27 insertions(+), 27 deletions(-)
>  rename meta-ti-bsp/conf/machine/include/{omap-a15.inc => am57xx.inc} (98%)
> 
> diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc 
> b/meta-ti-bsp/conf/machine/include/am57xx.inc
> similarity index 98%
> rename from meta-ti-bsp/conf/machine/include/omap-a15.inc
> rename to meta-ti-bsp/conf/machine/include/am57xx.inc
> index 9a2e0044..5e2b398f 100644
> --- a/meta-ti-bsp/conf/machine/include/omap-a15.inc
> +++ b/meta-ti-bsp/conf/machine/include/am57xx.inc
> @@ -1,5 +1,5 @@
>  require conf/machine/include/ti-soc.inc
> -SOC_FAMILY:append = ":omap-a15"
> +SOC_FAMILY:append = ":am57xx"
>  
>  DEFAULTTUNE ?= "armv7athf-neon"
>  require conf/machine/include/arm/armv7a/tune-cortexa15.inc
> diff --git a/meta-ti-bsp/conf/machine/include/dra7xx.inc 
> b/meta-ti-bsp/conf/machine/include/dra7xx.inc
> index a02421d9..29d2d6a1 100644
> --- a/meta-ti-bsp/conf/machine/include/dra7xx.inc
> +++ b/meta-ti-bsp/conf/machine/include/dra7xx.inc
> @@ -1,4 +1,4 @@
> -require conf/machine/include/omap-a15.inc
> +require conf/machine/include/am57xx.inc
>  SOC_FAMILY:append = ":dra7xx"
>  
>  MACHINE_FEATURES += "pci"
> diff --git 
> a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb 
> b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
> index 2ec2ffef..e2543ca9 100644
> --- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
> +++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
> @@ -7,7 +7,7 @@ inherit module features_check
>  
>  REQUIRED_MACHINE_FEATURES = "gpu"
>  
> -COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
> +COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|k3"
>  
>  MACHINE_KERNEL_PR:append = "x"
>  PR = "${MACHINE_KERNEL_PR}"
> @@ -26,7 +26,7 @@ S = "${WORKDIR}/git"
>  
>  SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063"
>  
> -TARGET_PRODUCT:omap-a15 = "jacinto6evm"
> +TARGET_PRODUCT:am57xx = "jacinto6evm"
>  TARGET_PRODUCT:ti33x = "ti335x"
>  TARGET_PRODUCT:ti43x = "ti437x"
>  TARGET_PRODUCT:k3 = "ti654x"
> diff --git 
> a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb 
> b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
> index dc17a1e9..23f09893 100644
> --- a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
> +++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
> @@ -4,10 +4,10 @@ include uio-module-drv.inc
>  
>  PR = "r1"
>  
> -COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
> +COMPATIBLE_MACHINE = "am57xx|ti33x|ti43x"
>  PACKAGE_ARCH = "${MA

[meta-ti][master][PATCH] Rename machine from omap-a15 to am57xx

2022-04-28 Thread Andrew Davis via lists.yoctoproject.org
The "omap-a15" is a bit of a legacy holdover and is confusing.
This causes issues with mixed usage of 'dra7xx' and 'omap-a15'.
For example all EVM using this SoC family include dra7x.inc
so both are always defined, then we use 'omap-a15' in several
places where we really mean 'am57xx'. 'dra7xx' can't be filtered
for as needed like in the case of PRU.

AM57x is arguably the real superset device. Lets use that name
then start filtering correctly out the DRA7x to only be used
when we actually mean DRA7x.

This patch makes no functional change.

Signed-off-by: Andrew Davis 
---
 .../conf/machine/include/{omap-a15.inc => am57xx.inc} | 2 +-
 meta-ti-bsp/conf/machine/include/dra7xx.inc   | 2 +-
 .../powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb | 4 ++--
 .../recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb | 6 +++---
 .../recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb| 2 +-
 .../libgles/ti-sgx-ddk-um_1.17.4948957.bb | 4 ++--
 meta-ti-extras/recipes-bsp/pru/pru-icss_git.bb| 8 
 meta-ti-extras/recipes-ti/imglib/imglib-c66x.inc  | 2 +-
 meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos.inc | 8 
 meta-ti-extras/recipes-ti/ipc/ti-ipc-rtos_git.bb  | 4 ++--
 meta-ti-extras/recipes-ti/openmp-rtos/openmp-rtos_git.bb  | 6 +++---
 .../recipes-ti/uio-test-pruss/uio-test-pruss_git.bb   | 4 ++--
 meta-ti-extras/recipes-ti/vlib/vlib-c66x.inc  | 2 +-
 13 files changed, 27 insertions(+), 27 deletions(-)
 rename meta-ti-bsp/conf/machine/include/{omap-a15.inc => am57xx.inc} (98%)

diff --git a/meta-ti-bsp/conf/machine/include/omap-a15.inc 
b/meta-ti-bsp/conf/machine/include/am57xx.inc
similarity index 98%
rename from meta-ti-bsp/conf/machine/include/omap-a15.inc
rename to meta-ti-bsp/conf/machine/include/am57xx.inc
index 9a2e0044..5e2b398f 100644
--- a/meta-ti-bsp/conf/machine/include/omap-a15.inc
+++ b/meta-ti-bsp/conf/machine/include/am57xx.inc
@@ -1,5 +1,5 @@
 require conf/machine/include/ti-soc.inc
-SOC_FAMILY:append = ":omap-a15"
+SOC_FAMILY:append = ":am57xx"
 
 DEFAULTTUNE ?= "armv7athf-neon"
 require conf/machine/include/arm/armv7a/tune-cortexa15.inc
diff --git a/meta-ti-bsp/conf/machine/include/dra7xx.inc 
b/meta-ti-bsp/conf/machine/include/dra7xx.inc
index a02421d9..29d2d6a1 100644
--- a/meta-ti-bsp/conf/machine/include/dra7xx.inc
+++ b/meta-ti-bsp/conf/machine/include/dra7xx.inc
@@ -1,4 +1,4 @@
-require conf/machine/include/omap-a15.inc
+require conf/machine/include/am57xx.inc
 SOC_FAMILY:append = ":dra7xx"
 
 MACHINE_FEATURES += "pci"
diff --git 
a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb 
b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
index 2ec2ffef..e2543ca9 100644
--- a/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
+++ b/meta-ti-bsp/recipes-bsp/powervr-drivers/ti-sgx-ddk-km_1.17.4948957.bb
@@ -7,7 +7,7 @@ inherit module features_check
 
 REQUIRED_MACHINE_FEATURES = "gpu"
 
-COMPATIBLE_MACHINE = "ti33x|ti43x|omap-a15|k3"
+COMPATIBLE_MACHINE = "ti33x|ti43x|am57xx|k3"
 
 MACHINE_KERNEL_PR:append = "x"
 PR = "${MACHINE_KERNEL_PR}"
@@ -26,7 +26,7 @@ S = "${WORKDIR}/git"
 
 SRCREV = "eda7780bfd5277e16913c9bc0b0e6892b4e79063"
 
-TARGET_PRODUCT:omap-a15 = "jacinto6evm"
+TARGET_PRODUCT:am57xx = "jacinto6evm"
 TARGET_PRODUCT:ti33x = "ti335x"
 TARGET_PRODUCT:ti43x = "ti437x"
 TARGET_PRODUCT:k3 = "ti654x"
diff --git a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb 
b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
index dc17a1e9..23f09893 100644
--- a/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
+++ b/meta-ti-bsp/recipes-bsp/uio-module-drv/uio-module-drv-test_git.bb
@@ -4,10 +4,10 @@ include uio-module-drv.inc
 
 PR = "r1"
 
-COMPATIBLE_MACHINE = "omap-a15|ti33x|ti43x"
+COMPATIBLE_MACHINE = "am57xx|ti33x|ti43x"
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 
-DEVICE_NAME:omap-a15 = "am57xx"
+DEVICE_NAME:am57xx = "am57xx"
 DEVICE_NAME:ti33x = "am33xx"
 DEVICE_NAME:ti43x = "am43xx"
 RDEPENDS:${PN} = "uio-module-drv"
@@ -22,7 +22,7 @@ do_install() {
install -c -m 755 ${S}/test/uio_int_test ${D}${bindir}/.
 }
 
-do_install:append:omap-a15 () {
+do_install:append:am57xx () {
install -c -m 755 ${S}/test/prussdrv_test/test/pruss_uio_test 
${D}${bindir}/.
 }
 
diff --git a/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb 
b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
index ab72c109..9b483109 100644
--- a/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
+++ b/meta-ti-bsp/recipes-graphics/libgal/ti-gc320-libs_5.0.11.p7.bb
@@ -7,7 +7,7 @@ inherit features_check
 
 REQUIRED_MACHINE_FEATURES = "gc320"
 
-COMPATIBLE_MACHINE = "omap-a15"
+COMPATIBLE_MACHINE = "am57xx"
 
 CLEANBROKEN = "1"
 
diff --git a/meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb 
b/meta-ti-bsp/recipes-graphics/libgles/ti-sgx-ddk-um_1.17.4948957.bb
index f