arm64: configs: defconfig: Convert TISCI to modules
PATCH 1/1 arm64: configs: defconfig: Convert TISCI to modules
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
NET Savings: (Ubuntu Clang 23.0.0) ./scripts/bloat-o-meter vmlinux_previous vmlinux add/remove: 4/380 grow/shrink: 0/5 up/down: 32/-143248 (-143216)
---
NOTE:
a) This patch is based off v7.3-rc1 and will create a merge conflict in linux-next (next-20260909), but the resolution is trivial (vs bd94bea7165be450903c6d64bbcb4862e36798f9).
b) Emperical experiments that Siddharth Vadapalli did,
it seems like some driver probes might be taking much longer than the default deferred_probe_timeout of 10 seconds that is used when CONFIG_MODULES=y. Testing log[1] a deferred_probe_timeout=60 seems to have worked fine.
c) Full bloatometer report is available in [1] as well.
d) related lore discussions[2]
[1] https://gist.github.com/nmenon/5f1587b373e6ca27170593010188d968
[2] https://lore.kernel.org/all/[email protected]/
See headsup I gave on #linux-ti irc channel https://libera.catirclogs.org/linux-ti/2026-05-20
https://lore.kernel.org/linux-arm-kernel/20240821110054.35u5ubgaogzjv6c4@rover/
(original thread that triggered various changes)
arch/arm64/configs/defconfig | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)
arch/arm64/configs/defconfig +8 -7
@@ -267,6 +267,7 @@ CONFIG_RASPBERRYPI_FIRMWARE=y CONFIG_INTEL_STRATIX10_SERVICE=y CONFIG_INTEL_STRATIX10_RSU=m CONFIG_MTK_ADSP_IPC=m +CONFIG_TI_SCI_PROTOCOL=m CONFIG_GOOGLE_FIRMWARE=y CONFIG_GOOGLE_CBMEM=m CONFIG_GOOGLE_COREBOOT_TABLE=m
@@ -1403,8 +1404,8 @@ CONFIG_DW_EDMA=m CONFIG_RCAR_DMAC=y CONFIG_RENESAS_USB_DMAC=m CONFIG_RZ_DMAC=y -CONFIG_TI_K3_UDMA=y -CONFIG_TI_K3_UDMA_GLUE_LAYER=y +CONFIG_TI_K3_UDMA=m +CONFIG_TI_K3_UDMA_GLUE_LAYER=m CONFIG_STM32_DMA3=m CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_HEAPS_SYSTEM=m
@@ -1456,7 +1457,7 @@ CONFIG_CLK_IMX8QXP=y CONFIG_CLK_IMX8ULP=y CONFIG_CLK_IMX93=y CONFIG_CLK_IMX95_BLK_CTL=y -CONFIG_TI_SCI_CLK=y +CONFIG_TI_SCI_CLK=m CONFIG_COMMON_CLK_MT8192_AUDSYS=y CONFIG_COMMON_CLK_MT8192_CAMSYS=y CONFIG_COMMON_CLK_MT8192_IMGSYS=y
@@ -1678,7 +1679,7 @@ CONFIG_QCOM_CPR=y CONFIG_QCOM_RPMHPD=y CONFIG_QCOM_RPMPD=y CONFIG_ROCKCHIP_PM_DOMAINS=y -CONFIG_TI_SCI_PM_DOMAINS=y +CONFIG_TI_SCI_PM_DOMAINS=m CONFIG_ARM_IMX_BUS_DEVFREQ=y CONFIG_ARM_IMX8M_DDRC_DEVFREQ=m CONFIG_ARM_MEDIATEK_CCI_DEVFREQ=m
@@ -1745,15 +1746,15 @@ CONFIG_SL28CPLD_INTC=y CONFIG_XILINX_INTC=y CONFIG_QCOM_PDC=y CONFIG_QCOM_MPM=y -CONFIG_TI_SCI_INTR_IRQCHIP=y -CONFIG_TI_SCI_INTA_IRQCHIP=y +CONFIG_TI_SCI_INTR_IRQCHIP=m +CONFIG_TI_SCI_INTA_IRQCHIP=m CONFIG_RESET_GPIO=m CONFIG_RESET_IMX7=y CONFIG_RESET_QCOM_AOSS=y CONFIG_RESET_QCOM_PDC=m CONFIG_RESET_RZG2L_USBPHY_CTRL=y CONFIG_RESET_RZV2H_USB2PHY=m -CONFIG_RESET_TI_SCI=y +CONFIG_RESET_TI_SCI=m CONFIG_PHY_CAN_TRANSCEIVER=m CONFIG_PHY_NXP_PTN3222=m CONFIG_PHY_SNPS_EUSB2=m
Signature · 1 line
2.47.0
Nishanth Menon
AppliedHi Nishanth Menon,
Quoted 11 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
NET Savings: (Ubuntu Clang 23.0.0)
./scripts/bloat-o-metervmlinux_previousvmlinux add/remove: 4/380 grow/shrink: 0/5 up/down: 32/-143248 (-143216)[...]
I have applied the following to branch ti-k3-config-next on [1]. Thank you!
[1/1] arm64: configs: defconfig: Convert TISCI to modules
commit: e557da9b756dba66f9b1ae8bb27add2b7719baf4
All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent up the chain during the next merge window (or sooner if it is a relevant bug fix), however if problems are discovered then the patch may be dropped or reverted.
You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.
If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.
Please add any relevant lists and maintainers to the CCs when replying to this mail.
[1] https://git.kernel.org/pub/scm/linux/kernel/git/ti/linux.git
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource
Hi Nishanth,
Quoted 6 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
It's maybe a bit late, but I did test your patch (linux next-20260923) on J7200. Indeed with default deferred_probe_timeout value I got some deferred probe.
[ 16.869217] platform 2830000.serial: deferred probe pending: (reason unknown) [ 16.869241] platform 24c0000.timer: deferred probe pending: (reason
unknown)
Using deferred_probe_timeout=60 fixes sometimes deferred probe for 24c0000.timer, but never not for 2830000.serial.
[ 68.582069] platform 2830000.serial: deferred probe pending: (reason unknown) [ 68.582094] platform 24c0000.timer: deferred probe pending: (reason unknown) [ 68.582128] ti_sci_pm_domains 44083000.system-controller:power-controller: sync_state() pending due to 24c0000.timer [ 68.582144] ti_sci_pm_domains
44083000.system-controller:power-controller: sync_state() pending due to 2830000.serial
But switching all TISCI drivers to 'y' fixed them. Looks like an ordering issue.
I also did test suspend-to-ram, it works as expected. Fun fact, doing a suspend-to-ram allows to probe these 2 missing devices during resume. I guess it confirms a timing/ordering issue during the boot. At the end of the resume, no device anymore in /sys/kernel/debug/devices_deferred.
[ 124.053571] Restarting tasks: Starting [ 124.053861] Restarting tasks: Done [ 124.053907] random: crng reseeded on system resumption [ 124.053970] PM: suspend exit [ 124.058833] 2830000.serial: ttyS0 MMIO:0x0000000002830000 (irq = 700,
base_baud = 3000000) is a 8250
Best Regards,
Thomas
Quoted 5 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
I'm seeing boot failures in -next on the k3-am625-verdin-wifi-mallow which bisect to this commit, unfortunately the failure mode is that we get no console output which isn't super helpful (I'll try to persuade earlycon on but there's some issues with my CI setup). I *should* have modules in the initramfs, I'm suspecting some dodgy deferred probe handling or something.
bisect log:
# bad: [4eb2586bd40db27d77cc5b724ca9386ed0c71d53] Add linux-next specific files for 20261012
# good: [1d1c098dffddd29549b00946759ae0923f66b9c4] Merge branch 'for-linux-next-fixes' of https://gitlab.freedesktop.org/drm/misc/kernel.git
# good: [c9b15cd49b3fbd54f3382655b4e898921a7adb4e] arm64: dts: ti: var-som-am62p: Fix wkup R5F memory region size
# good: [483872c9385c9726b056428adbaaf213623ab5a3] ARM: dts: ti: keystone: k2g: Move usb-phy nodes out of simple-bus
# good: [b1368ab37a986bd448e989998eba6ad563207e06] Merge branches 'ti-drivers-soc-next' and 'ti-keystone-dts-next' into ti-next
git bisect start '4eb2586bd40db27d77cc5b724ca9386ed0c71d53' '1d1c098dffddd29549b00946759ae0923f66b9c4' 'c9b15cd49b3fbd54f3382655b4e898921a7adb4e' '483872c9385c9726b056428adbaaf213623ab5a3' 'b1368ab37a986bd448e989998eba6ad563207e06'
# test job: [c9b15cd49b3fbd54f3382655b4e898921a7adb4e] https://lava.sirena.org.uk/scheduler/job/91694 # test job: [483872c9385c9726b056428adbaaf213623ab5a3] https://lava.sirena.org.uk/scheduler/job/92558 # test job: [b1368ab37a986bd448e989998eba6ad563207e06] https://lava.sirena.org.uk/scheduler/job/92473 # test job: [4eb2586bd40db27d77cc5b724ca9386ed0c71d53] https://lava.sirena.org.uk/scheduler/job/93242 # bad: [4eb2586bd40db27d77cc5b724ca9386ed0c71d53] Add linux-next specific files for 20261012 git bisect bad 4eb2586bd40db27d77cc5b724ca9386ed0c71d53 # test job: [72c85b5b41c211b3c71335a7b86a2b61bded6a55] https://lava.sirena.org.uk/scheduler/job/92326 # bad: [72c85b5b41c211b3c71335a7b86a2b61bded6a55] Merge branches 'ti-k3-dts-next', 'ti-k3-config-next', 'ti-drivers-soc-next' and 'ti-keystone-dts-next' into ti-next git bisect bad 72c85b5b41c211b3c71335a7b86a2b61bded6a55 # test job: [11a51e82e1f997975a28358a1dcffec190ea7282] https://lava.sirena.org.uk/scheduler/job/94775 # good: [11a51e82e1f997975a28358a1dcffec190ea7282] arm64: dts: ti: k3-am62-verdin: fix main_gpio0/main_gpio1 line names size git bisect good 11a51e82e1f997975a28358a1dcffec190ea7282 # test job: [712357fa6b256b0a6bcf9a26b5c52e8bce36680a] https://lava.sirena.org.uk/scheduler/job/94813 # good: [712357fa6b256b0a6bcf9a26b5c52e8bce36680a] Merge branch 'ti-k3-dts-next' into ti-next git bisect good 712357fa6b256b0a6bcf9a26b5c52e8bce36680a # test job: [e557da9b756dba66f9b1ae8bb27add2b7719baf4] https://lava.sirena.org.uk/scheduler/job/94891 # bad: [e557da9b756dba66f9b1ae8bb27add2b7719baf4] arm64: configs: defconfig: Convert TISCI to modules git bisect bad e557da9b756dba66f9b1ae8bb27add2b7719baf4 # first bad commit: [e557da9b756dba66f9b1ae8bb27add2b7719baf4] arm64: configs: defconfig: Convert TISCI to modules
Quoted 25 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
NET Savings: (Ubuntu Clang 23.0.0)
./scripts/bloat-o-metervmlinux_previousvmlinux add/remove: 4/380 grow/shrink: 0/5 up/down: 32/-143248 (-143216)Signed-off-by Nishanth Menon <[email protected]>---
NOTE:
a) This patch is based off v7.3-rc1 and will create a merge conflict in linux-next (next-20260909), but the resolution is trivial (vsbd94bea7165be450903c6d64bbcb4862e36798f9).
b) Emperical experiments that Siddharth Vadapalli did,
it seems like some driver probes might be taking much longer than the defaultdeferred_probe_timeoutof 10 seconds that is used whenCONFIG_MODULES=y. Testing log[1] a deferred_probe_timeout=60 seems to have worked fine.
c) Full bloatometer report is available in [1] as well.
d) related lore discussions[2]
Quoted 5 lines
[1] https://gist.github.com/nmenon/5f1587b373e6ca27170593010188d968
[2] https://lore.kernel.org/all/[email protected]/
See headsup I gave on #linux-ti irc channel https://libera.catirclogs.org/linux-ti/2026-05-20
https://lore.kernel.org/linux-arm-kernel/20240821110054.35u5ubgaogzjv6c4@rover/
(original thread that triggered various changes)
I can't boot our boards anymore using the default defconfig. Is this forcing us to switch to an initramfs?
Quoted 85 lines
Cc Siddharth Vadapalli <[email protected]>Cc Vignesh Raghavendra <[email protected]>Cc Krzysztof Kozlowski <[email protected]>Cc Geert Uytterhoeven <[email protected]>Cc Catalin Marinas <[email protected]>Cc Bjorn Andersson <[email protected]>arch/arm64/configs/defconfig | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-)arch/arm64/configs/defconfig +8
-7@@ -267,6 +267,7 @@ CONFIG_RASPBERRYPI_FIRMWARE=y CONFIG_INTEL_STRATIX10_SERVICE=y CONFIG_INTEL_STRATIX10_RSU=m CONFIG_MTK_ADSP_IPC=m +CONFIG_TI_SCI_PROTOCOL=m CONFIG_GOOGLE_FIRMWARE=y CONFIG_GOOGLE_CBMEM=m CONFIG_GOOGLE_COREBOOT_TABLE=m@@ -1403,8 +1404,8 @@ CONFIG_DW_EDMA=m CONFIG_RCAR_DMAC=y CONFIG_RENESAS_USB_DMAC=m CONFIG_RZ_DMAC=y -CONFIG_TI_K3_UDMA=y -CONFIG_TI_K3_UDMA_GLUE_LAYER=y +CONFIG_TI_K3_UDMA=m +CONFIG_TI_K3_UDMA_GLUE_LAYER=m CONFIG_STM32_DMA3=m CONFIG_DMABUF_HEAPS=y CONFIG_DMABUF_HEAPS_SYSTEM=m@@ -1456,7 +1457,7 @@ CONFIG_CLK_IMX8QXP=y CONFIG_CLK_IMX8ULP=y CONFIG_CLK_IMX93=y CONFIG_CLK_IMX95_BLK_CTL=y -CONFIG_TI_SCI_CLK=y +CONFIG_TI_SCI_CLK=m CONFIG_COMMON_CLK_MT8192_AUDSYS=y CONFIG_COMMON_CLK_MT8192_CAMSYS=y CONFIG_COMMON_CLK_MT8192_IMGSYS=y@@ -1678,7 +1679,7 @@ CONFIG_QCOM_CPR=y CONFIG_QCOM_RPMHPD=y CONFIG_QCOM_RPMPD=y CONFIG_ROCKCHIP_PM_DOMAINS=y -CONFIG_TI_SCI_PM_DOMAINS=y +CONFIG_TI_SCI_PM_DOMAINS=m CONFIG_ARM_IMX_BUS_DEVFREQ=y CONFIG_ARM_IMX8M_DDRC_DEVFREQ=m CONFIG_ARM_MEDIATEK_CCI_DEVFREQ=m@@ -1745,15 +1746,15 @@ CONFIG_SL28CPLD_INTC=y CONFIG_XILINX_INTC=y CONFIG_QCOM_PDC=y CONFIG_QCOM_MPM=y -CONFIG_TI_SCI_INTR_IRQCHIP=y -CONFIG_TI_SCI_INTA_IRQCHIP=y +CONFIG_TI_SCI_INTR_IRQCHIP=m +CONFIG_TI_SCI_INTA_IRQCHIP=m CONFIG_RESET_GPIO=m CONFIG_RESET_IMX7=y CONFIG_RESET_QCOM_AOSS=y CONFIG_RESET_QCOM_PDC=m CONFIG_RESET_RZG2L_USBPHY_CTRL=y CONFIG_RESET_RZV2H_USB2PHY=m -CONFIG_RESET_TI_SCI=y +CONFIG_RESET_TI_SCI=m CONFIG_PHY_CAN_TRANSCEIVER=m CONFIG_PHY_NXP_PTN3222=m CONFIG_PHY_SNPS_EUSB2=m
Quoted 28 lines · Wadim Egorov
Quoted 25 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
NET Savings: (Ubuntu Clang 23.0.0)
./scripts/bloat-o-metervmlinux_previousvmlinux add/remove: 4/380 grow/shrink: 0/5 up/down: 32/-143248 (-143216)Signed-off-by Nishanth Menon <[email protected]>---
NOTE:
a) This patch is based off v7.3-rc1 and will create a merge conflict in linux-next (next-20260909), but the resolution is trivial (vsbd94bea7165be450903c6d64bbcb4862e36798f9).
b) Emperical experiments that Siddharth Vadapalli did,
it seems like some driver probes might be taking much longer than the defaultdeferred_probe_timeoutof 10 seconds that is used whenCONFIG_MODULES=y. Testing log[1] a deferred_probe_timeout=60 seems to have worked fine.
c) Full bloatometer report is available in [1] as well.
d) related lore discussions[2]
Quoted 7 lines
Quoted 5 lines
[1] https://gist.github.com/nmenon/5f1587b373e6ca27170593010188d968
[2] https://lore.kernel.org/all/[email protected]/
See headsup I gave on #linux-ti irc channel https://libera.catirclogs.org/linux-ti/2026-05-20
https://lore.kernel.org/linux-arm-kernel/20240821110054.35u5ubgaogzjv6c4@rover/
(original thread that triggered various changes)I can't boot our boards anymore using the default defconfig. Is this forcing us to switch to an initramfs?
arm64 targets long time ago were supposed to use initramfs. It's pretty easy to switch, honestly, yocto can give you a very small initramfs which will you can also extend to copy the modules to rootfs, if needed.
Best regards,
Krzysztof
Quoted 35 lines · Krzysztof Kozlowski
Quoted 34 lines · Wadim Egorov
Quoted 30 lines · Nishanth Menon
Now that all relevant drivers have are ready, convert the TISCI drivers to modules. This impacts all K3 platforms for boot, recommendation (based on empirical evidence) is to use deferred_probe_timeout=60 in kernel command line to allow for driver probes to complete successfully based on the initrd used.
NET Savings: (Ubuntu Clang 23.0.0)
./scripts/bloat-o-metervmlinux_previousvmlinux add/remove: 4/380 grow/shrink: 0/5 up/down: 32/-143248 (-143216)Signed-off-by Nishanth Menon <[email protected]>---
NOTE:
a) This patch is based off v7.3-rc1 and will create a merge conflict in linux-next (next-20260909), but the resolution is trivial (vsbd94bea7165be450903c6d64bbcb4862e36798f9).
b) Emperical experiments that Siddharth Vadapalli did,
it seems like some driver probes might be taking much longer than the defaultdeferred_probe_timeoutof 10 seconds that is used whenCONFIG_MODULES=y. Testing log[1] a deferred_probe_timeout=60 seems to have worked fine.
c) Full bloatometer report is available in [1] as well.
d) related lore discussions[2][1] https://gist.github.com/nmenon/5f1587b373e6ca27170593010188d968
[2] https://lore.kernel.org/all/[email protected]/
See headsup I gave on #linux-ti irc channel https://libera.catirclogs.org/linux-ti/2026-05-20
https://lore.kernel.org/linux-arm-kernel/20240821110054.35u5ubgaogzjv6c4@rover/
(original thread that triggered various changes)
Quoted 5 lines
Quoted 1 line
I can't boot our boards anymore using the default defconfig. Is this forcing us to switch to an initramfs?
arm64 targets long time ago were supposed to use initramfs. It's pretty easy to switch, honestly, yocto can give you a very small initramfs which will you can also extend to copy the modules to rootfs, if needed.
As mentioned, we are struggling to keep the Image size in control to be able to add new SoCs and architectures. But yes, initramfs is the way to go.
If you are looking for something that might help pick the modules needed, i found [1] (basic busybox) useful and I use this for daily testing for all TI K3 EVMs. kernelci goes the other direction (vs picking just the modules needed for a specific boot mode on a board) of having all the modules in initramfs. Both directions have been working for a few months now.
[1] https://github.com/nmenon/boardrd
Signature · 4 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D https://ti.com/opensource