Skip to contentSkip to conversation

dra7xx-evm.conf: removing am57xx SOCS from PDK

PATCH In review Stephen Molfetta 3 participants 5 messages Jan 22, 2018 – Jan 25, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dra7xx-evm.conf: removing am57xx SOCS from PDK

opencl-monitor does not distinguish between dra7xx and am57xx devices, treating both as the same and attempting to build for am57xx regardless. However, this is dependent on common-csl-ip-rtos, a component of PDK, which in general does handle these devices differently. The definition of am57xx SOCs in the PDK list from omap-15.conf gets inherited by dra7xx-evm.conf, thereby creating a rule that all dra7xx PDK recipes must build am57xx libraries. This results in a dra7xx image which is much larger than necessary, and more severely, creates an artifical dependency link between these two devices and introduces build failures for various PDK recipes.

Instead, we now override the PDK SOC definition in dra7xx-evm.conf, and only in the CSL RTOS recipe do we append the am57xx SOCS for dra7xx-evm machine build. This allows for opencl-monitor to build successfully for dra7xx while preventing any other PDK recipes from attempting to build libraries for am57xx devices.

This is a workaround that must stay in place until opencl build can properly comprehend am57xx and dra7xx independently, and/or omap-a15 is not implied to be synonymous with am57xx in various recipes.

---
 conf/machine/dra7xx-evm.conf                        | 2 +-
 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
conf/machine/dra7xx-evm.conf +1 -1
index 91afd85..7db9ff6 100644
@@ -40,4 +40,4 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
 
 # Set the list of device targets for ti-pdk class recipes
 TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
-TI_PDK_LIMIT_SOCS_append = " dra72x dra75x dra78x"
+TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +4 -1
index f4496b9..100d2f4 100644
@@ -1,5 +1,5 @@
 require common-csl-ip.inc
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE_append = "|c66x"
@@ -16,3 +16,6 @@ export DEST_ROOT="${S}"
 
 # HTML doc link params
 PDK_COMP_LINK_TEXT = "CSL-Chip Support Library"
+
+# Workaround: dra7xx build requires am57xx CSL libraries for opencl-monitor
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x"
Signature · 1 line
2.7.4
#1 lore raw

I assume, you want this merged into morty too, correct?

This change is fine with me, but I'd go even further and move setting initial TI_PDK_LIMIT_SOCS from omap-a15.inc into am57xx-evm.conf

Jake,

Do you have any comments?

Quoted 63 lines · Stephen Molfetta

opencl-monitor does not distinguish between dra7xx and am57xx devices, treating both as the same and attempting to build for am57xx regardless. However, this is dependent on common-csl-ip-rtos, a component of PDK, which in general does handle these devices differently. The definition of am57xx SOCs in the PDK list from omap-15.conf gets inherited by dra7xx-evm.conf, thereby creating a rule that all dra7xx PDK recipes must build am57xx libraries. This results in a dra7xx image which is much larger than necessary, and more severely, creates an artifical dependency link between these two devices and introduces build failures for various PDK recipes.

Instead, we now override the PDK SOC definition in dra7xx-evm.conf, and only in the CSL RTOS recipe do we append the am57xx SOCS for dra7xx-evm machine build. This allows for opencl-monitor to build successfully for dra7xx while preventing any other PDK recipes from attempting to build libraries for am57xx devices.

This is a workaround that must stay in place until opencl build can properly comprehend am57xx and dra7xx independently, and/or omap-a15 is not implied to be synonymous with am57xx in various recipes.

---
 conf/machine/dra7xx-evm.conf                        | 2 +-
 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
conf/machine/dra7xx-evm.conf +1 -1
index 91afd85..7db9ff6 100644
@@ -40,4 +40,4 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
 
 # Set the list of device targets for ti-pdk class recipes
 TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
-TI_PDK_LIMIT_SOCS_append = " dra72x dra75x dra78x"
+TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +4 -1
index f4496b9..100d2f4 100644
@@ -1,5 +1,5 @@
 require common-csl-ip.inc
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE_append = "|c66x"
@@ -16,3 +16,6 @@ export DEST_ROOT="${S}"
 
 # HTML doc link params
 PDK_COMP_LINK_TEXT = "CSL-Chip Support Library"
+
+# Workaround: dra7xx build requires am57xx CSL libraries for opencl-monitor
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x"
Signature · 7 lines
2.7.4

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#2 lore raw

Yes, please merge into morty.

Agreed on where PDK SOCs ought to be set, but I'm not sure whether this will break am57xx builds right now and will let Jake comment further.

Thanks,
Stephen

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, January 23, 2018 4:16 PM
To: Molfetta, Stephen; Stiffler, Jacob
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] dra7xx-evm.conf: removing am57xx SOCS from PDK

I assume, you want this merged into morty too, correct?

This change is fine with me, but I'd go even further and move setting initial TI_PDK_LIMIT_SOCS from omap-a15.inc into am57xx-evm.conf

Jake,

Do you have any comments?

Quoted 63 lines · Stephen Molfetta

opencl-monitor does not distinguish between dra7xx and am57xx devices, treating both as the same and attempting to build for am57xx regardless. However, this is dependent on common-csl-ip-rtos, a component of PDK, which in general does handle these devices differently. The definition of am57xx SOCs in the PDK list from omap-15.conf gets inherited by dra7xx-evm.conf, thereby creating a rule that all dra7xx PDK recipes must build am57xx libraries. This results in a dra7xx image which is much larger than necessary, and more severely, creates an artifical dependency link between these two devices and introduces build failures for various PDK recipes.

Instead, we now override the PDK SOC definition in dra7xx-evm.conf, and only in the CSL RTOS recipe do we append the am57xx SOCS for dra7xx-evm machine build. This allows for opencl-monitor to build successfully for dra7xx while preventing any other PDK recipes from attempting to build libraries for am57xx devices.

This is a workaround that must stay in place until opencl build can properly comprehend am57xx and dra7xx independently, and/or omap-a15 is not implied to be synonymous with am57xx in various recipes.

---
 conf/machine/dra7xx-evm.conf                        | 2 +-
 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
conf/machine/dra7xx-evm.conf +1 -1
index 91afd85..7db9ff6 100644
@@ -40,4 +40,4 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
 
 # Set the list of device targets for ti-pdk class recipes
 TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
-TI_PDK_LIMIT_SOCS_append = " dra72x dra75x dra78x"
+TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +4 -1
index f4496b9..100d2f4 100644
@@ -1,5 +1,5 @@
 require common-csl-ip.inc
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE_append = "|c66x"
@@ -16,3 +16,6 @@ export DEST_ROOT="${S}"
 
 # HTML doc link params
 PDK_COMP_LINK_TEXT = "CSL-Chip Support Library"
+
+# Workaround: dra7xx build requires am57xx CSL libraries for opencl-monitor
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x"
Signature · 7 lines
2.7.4

-- 
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti
#3 lore raw

Jake?

Quoted 91 lines · Stephen

Yes, please merge into morty.

Agreed on where PDK SOCs ought to be set, but I'm not sure whether this will break am57xx builds right now and will let Jake comment further.

Thanks,
Stephen

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, January 23, 2018 4:16 PM
To: Molfetta, Stephen; Stiffler, Jacob
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] dra7xx-evm.conf: removing am57xx SOCS from PDK

I assume, you want this merged into morty too, correct?

This change is fine with me, but I'd go even further and move setting initial TI_PDK_LIMIT_SOCS from omap-a15.inc into am57xx-evm.conf

   Jake,

   Do you have any comments?

   On Mon, Jan 22, 2018 at 02:15:48PM -0600, Stephen Molfetta wrote:
   > opencl-monitor does not distinguish between dra7xx and am57xx devices,
   > treating both as the same and attempting to build for am57xx regardless.
   > However, this is dependent on common-csl-ip-rtos, a component of PDK,
   > which in general does handle these devices differently.  The definition
   > of am57xx SOCs in the PDK list from omap-15.conf gets inherited by
   > dra7xx-evm.conf, thereby creating a rule that all dra7xx PDK recipes
   > must build am57xx libraries. This results in a dra7xx image which is
   > much larger than necessary, and more severely, creates an artifical
   > dependency link between these two devices and introduces build failures
   > for various PDK recipes.
   >
   > Instead, we now override the PDK SOC definition in dra7xx-evm.conf, and
   > only in the CSL RTOS recipe do we append the am57xx SOCS for dra7xx-evm
   > machine build.  This allows for opencl-monitor to build successfully for
   > dra7xx while preventing any other PDK recipes from attempting to build
   > libraries for am57xx devices.
   >
   > This is a workaround that must stay in place until opencl build can
   > properly comprehend am57xx and dra7xx independently, and/or omap-a15
   > is not implied to be synonymous with am57xx in various recipes.
   >
   > Signed-off-by: Stephen Molfetta <[email protected]>
   > ---
   >  conf/machine/dra7xx-evm.conf                        | 2 +-
   >  recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 5 ++++-
   >  2 files changed, 5 insertions(+), 2 deletions(-)
   >
   > diff --git a/conf/machine/dra7xx-evm.conf b/conf/machine/dra7xx-evm.conf
   > index 91afd85..7db9ff6 100644
   > --- a/conf/machine/dra7xx-evm.conf
   > +++ b/conf/machine/dra7xx-evm.conf
   > @@ -40,4 +40,4 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
   > 
   >  # Set the list of device targets for ti-pdk class recipes
   >  TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
   > -TI_PDK_LIMIT_SOCS_append = " dra72x dra75x dra78x"
   > +TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
   > diff --git a/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
   b/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
   > index f4496b9..100d2f4 100644
   > --- a/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
   > +++ b/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb
   > @@ -1,5 +1,5 @@
   >  require common-csl-ip.inc
   > -PR = "${INC_PR}.5"
   > +PR = "${INC_PR}.6"
   > 
   >  PACKAGE_ARCH = "${MACHINE_ARCH}"
   >  COMPATIBLE_MACHINE_append = "|c66x"
   > @@ -16,3 +16,6 @@ export DEST_ROOT="${S}"
   > 
   >  # HTML doc link params
   >  PDK_COMP_LINK_TEXT = "CSL-Chip Support Library"
   > +
   > +# Workaround: dra7xx build requires am57xx CSL libraries for
   opencl-monitor
   > +TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x"
   > --
   > 2.7.4
   >
   > --
   > _______________________________________________
   > meta-ti mailing list
   > [email protected]
   > https://lists.yoctoproject.org/listinfo/meta-ti
#4 lore raw
Quoted 10 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Thursday, January 25, 2018 2:15 PM
To: Molfetta, Stephen
Cc: Stiffler, Jacob; [email protected]
Subject: Re: [meta-ti] [PATCH] dra7xx-evm.conf: removing am57xx SOCS from PDK

Quoted 2 lines

Jake?

I would like to run a test build to make sure nothing else fails. I will try to provide an update tomorrow.

Quoted 102 lines · Stephen
Quoted 8 lines

Yes, please merge into morty.

Agreed on where PDK SOCs ought to be set, but I'm not sure whether this will break am57xx builds right now and will let Jake comment further.

Thanks,
Stephen

Quoted 6 lines

-----Original Message-----
From: Dmytriyenko, Denys
Sent: Tuesday, January 23, 2018 4:16 PM
To: Molfetta, Stephen; Stiffler, Jacob
Cc: [email protected]
Subject: Re: [meta-ti] [PATCH] dra7xx-evm.conf: removing am57xx SOCS

from

Quoted 4 lines

PDK

I assume, you want this merged into morty too, correct?

Quoted 9 lines

This change is fine with me, but I'd go even further and move setting initial TI_PDK_LIMIT_SOCS from omap-a15.inc into am57xx-evm.conf

Jake,

Do you have any comments?

Quoted 1 line · Stephen Molfetta

opencl-monitor does not distinguish between dra7xx and am57xx

devices,

Quoted 1 line
Quoted 1 line

treating both as the same and attempting to build for am57xx

regardless.

Quoted 1 line
Quoted 1 line

However, this is dependent on common-csl-ip-rtos, a component of

PDK,

Quoted 6 lines
Quoted 6 lines

which in general does handle these devices differently. The definition of am57xx SOCs in the PDK list from omap-15.conf gets inherited by dra7xx-evm.conf, thereby creating a rule that all dra7xx PDK recipes must build am57xx libraries. This results in a dra7xx image which is much larger than necessary, and more severely, creates an artifical dependency link between these two devices and introduces build

failures

Quoted 3 lines
Quoted 3 lines

for various PDK recipes.

Instead, we now override the PDK SOC definition in dra7xx-evm.conf,

and

Quoted 1 line
Quoted 1 line

only in the CSL RTOS recipe do we append the am57xx SOCS for dra7xx-

evm

Quoted 6 lines
Quoted 6 lines

machine build. This allows for opencl-monitor to build successfully for dra7xx while preventing any other PDK recipes from attempting to build libraries for am57xx devices.

This is a workaround that must stay in place until opencl build can properly comprehend am57xx and dra7xx independently, and/or omap-

a15

Quoted 9 lines

conf/machine/dra7xx-

Quoted 9 lines

is not implied to be synonymous with am57xx in various recipes.

---
 conf/machine/dra7xx-evm.conf                        | 2 +-
 recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb | 5 ++++-
 2 files changed, 5 insertions(+), 2 deletions(-)
conf/machine/dra7xx- renamed from conf/machine/dra7xx-evm.conf +0 -0

evm.conf

Quoted 37 lines

Review

Quoted 10 lines

index 91afd85..7db9ff6 100644

conf/machine/dra7xx-evm.conf +1 -1
@@ -40,4 +40,4 @@ UBINIZE_ARGS = "-m 2048 -p 128KiB -s 512 -O 2048"
 
 # Set the list of device targets for ti-pdk class recipes
 TI_PDK_LIMIT_BOARDS = "evmDRA72x evmDRA75x evmDRA78x"
-TI_PDK_LIMIT_SOCS_append = " dra72x dra75x dra78x"
+TI_PDK_LIMIT_SOCS = "dra72x dra75x dra78x"
(quoted diff) +0 -0

b/recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb

Quoted 11 lines

index f4496b9..100d2f4 100644

recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +1 -1
@@ -1,5 +1,5 @@
 require common-csl-ip.inc
-PR = "${INC_PR}.5"
+PR = "${INC_PR}.6"
 
 PACKAGE_ARCH = "${MACHINE_ARCH}"
 COMPATIBLE_MACHINE_append = "|c66x"

recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb export DEST_ROOT="${S}" · line 20

Quoted 5 lines
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +2 -0
@@ -16,3 +16,6 @@ export DEST_ROOT="${S}"
 
 # HTML doc link params
 PDK_COMP_LINK_TEXT = "CSL-Chip Support Library"
+
+# Workaround: dra7xx build requires am57xx CSL libraries for

opencl-monitor

Quoted 9 lines
recipes-bsp/common-csl-ip/common-csl-ip-rtos_git.bb +1 -1
+TI_PDK_LIMIT_SOCS_append_dra7xx = " am571x am572x"
--

2.7.4

--
_______________________________________________
meta-ti mailing list
[email protected]
https://lists.yoctoproject.org/listinfo/meta-ti