On Wed, Jan 22, 2025 at 11:39:14AM -0600, Andrew Davis via lists.yoctoproject.org wrote: > On 1/22/25 11:10 AM, Ryan Eatmon wrote: > > > > > >On 1/22/2025 10:50 AM, Andrew Davis wrote: > >>On 1/21/25 11:56 AM, Beleswar Padhi wrote: > >>>ti-linux-kernel tree has several prune config fragments for ARM/ARM64/RT > >>>configurations. Enable the prune config fragments here. > >>> > >>>Signed-off-by: Beleswar Padhi <[email protected]> > >>>--- > >>> .../recipes-kernel/linux/linux-ti-staging-6.12/defconfig | 2 +- > >>> .../recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig | 2 +- > >>> .../recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig | 2 +- > >>> .../recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig | 2 +- > >>> .../recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig | 2 +- > >>> .../recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig | 2 +- > >>> .../linux/linux-ti-staging-rt-6.12/ti33x/defconfig | 2 +- > >>> .../linux/linux-ti-staging-rt-6.12/ti43x/defconfig | 2 +- > >>> 8 files changed, 8 insertions(+), 8 deletions(-) > >>> > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig > >>>index 9d579e41..24b53cf7 100644 > >>>--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig > >>>+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig > >>>index fd07b34e..ef1d3efd 100644 > >>>--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig > >>>+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/k3/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_arm64_prune.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig > >>>index 9d579e41..e6a967e1 100644 > >>>--- > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig > >>>+++ > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti33x/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>kernel/configs/no_smp.config > >> > >>We are running into some issues with the no_smp.config, seems some kernel > >>sysfs items relating to CPU counts are misbehaving (Chirag has more details > >>if anyone is interested). Disabling SMP is not well tested in general > >>anymore > >>as it is often enabled by default even for single-core systems. The very > >>small > >>performance change is not worth the lack of testing and instability caused > >>by going with non-standard configurations IMHO. > >> > >>Everything else here looks good, but could we drop no_smp.config for now > >>and take up a debate on adding it in at a later time? > >> > >>This also has the side benefit of reducing our kernel builds from 6 > >>variations > >>to just 4 (arm32/64 x rt/non-rt). > > > >We only have 4 now... the no_smp was just added to ti33 and ti43 for > >backwards compat to fix some issues. But we never did additional kernel > >builds because of it... > > > >What were the 6 variations you were referring to? > > > > multi_v7_defconfig + ti_multi_v7_prune.config > multi_v7_defconfig + ti_multi_v7_prune.config + no_smp.config > multi_v7_defconfig + ti_multi_v7_prune.config + ti_rt.config > multi_v7_defconfig + ti_multi_v7_prune.config + no_smp.config + ti_rt.config > defconfig + ti_arm64_prune.config > defconfig + ti_arm64_prune.config + ti_rt.config > > These are the variations, so without no_smp.config there would > only be 2 kernels across all am3/4/5, one with and one without RT. > > On the side I've been working to make the kernel build into > one for all of aarch64 (i.e. one package in aarch64-oe-linux > vs kernel for each and every platform). Would like to do the > same for armv7.
FWIW, the way it is now being handled in OE-Core is with genericarm64 machine to target Arm System Ready devices. And BeaglePlay is currently the Reference Platform for this use case. Basically, OE-Core builds a generic kernel that can run on any Aarch64 device... But it is not ideal though, as it completely ignores everything that comes before the kernel (SYSFW/PM/DM/RM/SCI/FS, SPLs, TF-A, OPTEE, U-boot, DTs...), treating them as black box firmware blobs, which are very machine-specific. But it seems too fragile to me - luckily meta-ti builds and assembles all those pieces for every device. Getting something that combines the best of both worlds would be challenging, but interesting... > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig > >>>index 9d579e41..e6a967e1 100644 > >>>--- > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig > >>>+++ > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-6.12/ti43x/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>kernel/configs/no_smp.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig > >>>index 9d579e41..43089dc8 100644 > >>>--- a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig > >>>+++ b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>kernel/configs/ti_rt.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig > >>>index fd07b34e..47d78664 100644 > >>>--- > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig > >>>+++ > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/k3/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_arm64_prune.config > >>>kernel/configs/ti_rt.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig > >>> > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig > >>>index 9d579e41..5de2b229 100644 > >>>--- > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig > >>>+++ > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti33x/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>kernel/configs/ti_rt.config kernel/configs/no_smp.config > >>>diff --git > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig > >>> > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig > >>>index 9d579e41..5de2b229 100644 > >>>--- > >>>a/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig > >>>+++ > >>>b/meta-ti-bsp/recipes-kernel/linux/linux-ti-staging-rt-6.12/ti43x/defconfig > >>>@@ -1,2 +1,2 @@ > >>> use-kernel-config=multi_v7_defconfig > >>>-config-fragment= > >>>+config-fragment=kernel/configs/ti_multi_v7_prune.config > >>>kernel/configs/ti_rt.config kernel/configs/no_smp.config
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#18226): https://lists.yoctoproject.org/g/meta-ti/message/18226 Mute This Topic: https://lists.yoctoproject.org/mt/110737961/21656 Group Owner: [email protected] Unsubscribe: https://lists.yoctoproject.org/g/meta-ti/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
