configs: stm32mp1: activate OF_LIVE for DT live support
PATCH 1/1 configs: stm32mp1: activate OF_LIVE for DT live support
Activate the live DT to reduce the DT parsing time.
For example the boot time is reduced by 200ms on STM32MP157C-EV1 board for stm32mp15_basic_defconfig (boot with SPL) or stm32mp15_trusted_defconfig (boot with TF-A).
---
Commit for u-boot/next = v2021.04
The result on v2020.10 is:
1/stm32mp15_trusted_defconfig
After the activation
Mark Elapsed Stage
0 0 reset
594,115 594,115 board_init_f
764,062 169,947 board_init_r
1,025,234 261,172 id=64
1,025,493 259 id=65
1,027,413 1,920 main_loop
3,545,057 2,517,644 id=175Accumulated time:
1,430 dm_r
15,112 of_live
54,715 dm_fBefore the activation
Mark Elapsed Stage
0 0 reset
596,882 596,882 board_init_f
766,787 169,905 board_init_r
1,228,988 462,201 id=64
1,251,699 22,711 id=65
1,252,401 702 main_loop
4,028,952 2,776,551 id=175Accumulated time:
54,671 dm_f
66,176 dm_r2/stm32mp15_basic_defconfig
After the activation
STM32MP> bootstage report
Timer summary in microseconds (13 records):
Mark Elapsed Stage
0 0 reset
223,315 223,315 SPL
1,093,158 869,843 end SPL
1,095,947 2,789 board_init_f
1,317,473 221,526 board_init_r
1,580,003 262,530 id=64
1,580,265 262 id=65
1,582,181 1,916 main_loop
4,465,148 2,882,967 id=175Accumulated time:
1,405 dm_r
15,107 of_live
54,606 dm_f
89,236 dm_splBefore the activation
STM32MP> bootstage report
Timer summary in microseconds (12 records):
Mark Elapsed Stage
0 0 reset
223,304 223,304 SPL
1,083,749 860,445 end SPL
1,086,755 3,006 board_init_f
1,309,658 222,903 board_init_r
1,771,209 461,551 id=64
1,794,252 23,043 id=65
1,794,953 701 main_loop
4,348,874 2,553,921 id=175Accumulated time:
55,045 dm_f
66,755 dm_r
87,872 dm_splThis patch depends on 2 patches already merged in u-boot/next branch:
[1] gpio: Convert to use APIs which support live DT
http://patchwork.ozlabs.org/project/uboot/patch/20200909162617.31576-1-patrick.delaunay at st.com/
[2] power: regulator: gpio-regulator: Convert to use APIs which support live DT
http://patchwork.ozlabs.org/project/uboot/patch/20200910161817.27535-2-patrick.delaunay at st.com/
configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 2 insertions(+)
configs/stm32mp15_basic_defconfig +1 -0
@@ -56,6 +56,7 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_UBI=y # CONFIG_SPL_DOS_PARTITION is not set +CONFIG_OF_LIVE=y CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-names interrupts-extended interrupt-controller \\\#interrupt-cells interrupt-parent dmas dma-names assigned-clocks assigned-clock-rates assigned-clock-parents hwlocks" CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=y
configs/stm32mp15_trusted_defconfig +1 -0
@@ -39,6 +39,7 @@ CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_UBI=y +CONFIG_OF_LIVE=y CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_ENV_IS_IN_SPI_FLASH=y
Signature · 1 line
2.17.1
PATCH 1/1 configs: stm32mp1: activate OF_LIVE for DT live support
Hi Patrick
Quoted 116 lines · Patrick Delaunay
Activate the live DT to reduce the DT parsing time.
For example the boot time is reduced by 200ms on STM32MP157C-EV1 board for
stm32mp15_basic_defconfig(boot with SPL) orstm32mp15_trusted_defconfig(boot with TF-A).Signed-off-by Patrick Delaunay <[email protected]>---
Commit for u-boot/next = v2021.04The result on v2020.10 is:
1/stm32mp15_trusted_defconfig
After the activation
Mark Elapsed Stage 0 0 reset 594,115 594,115 board_init_f 764,062 169,947 board_init_r 1,025,234 261,172 id=64 1,025,493 259 id=65 1,027,413 1,920 main_loop 3,545,057 2,517,644 id=175Accumulated time:
1,430 dm_r 15,112 of_live 54,715 dm_fBefore the activation
Mark Elapsed Stage 0 0 reset 596,882 596,882 board_init_f 766,787 169,905 board_init_r 1,228,988 462,201 id=64 1,251,699 22,711 id=65 1,252,401 702 main_loop 4,028,952 2,776,551 id=175Accumulated time:
54,671 dm_f 66,176 dm_r2/stm32mp15_basic_defconfig
After the activationSTM32MP> bootstage report
Timer summary in microseconds (13 records):Mark Elapsed Stage 0 0 reset 223,315 223,315 SPL 1,093,158 869,843 end SPL 1,095,947 2,789 board_init_f 1,317,473 221,526 board_init_r 1,580,003 262,530 id=64 1,580,265 262 id=65 1,582,181 1,916 main_loop 4,465,148 2,882,967 id=175Accumulated time:
1,405 dm_r 15,107 of_live 54,606 dm_f 89,236 dm_splBefore the activation
STM32MP> bootstage report
Timer summary in microseconds (12 records):Mark Elapsed Stage 0 0 reset 223,304 223,304 SPL 1,083,749 860,445 end SPL 1,086,755 3,006 board_init_f 1,309,658 222,903 board_init_r 1,771,209 461,551 id=64 1,794,252 23,043 id=65 1,794,953 701 main_loop 4,348,874 2,553,921 id=175Accumulated time:
55,045 dm_f 66,755 dm_r 87,872 dm_splThis patch depends on 2 patches already merged in u-boot/next branch:
[1] gpio: Convert to use APIs which support live DT
http://patchwork.ozlabs.org/project/uboot/patch/20200909162617.31576-1-patrick.delaunay at st.com/[2] power: regulator: gpio-regulator: Convert to use APIs which support live DT
http://patchwork.ozlabs.org/project/uboot/patch/20200910161817.27535-2-patrick.delaunay at st.com/configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 2 insertions(+)configs/stm32mp15_basic_defconfig +1
-0@@ -56,6 +56,7 @@ CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_UBI=y # CONFIG_SPL_DOS_PARTITION is not set +CONFIG_OF_LIVE=y CONFIG_OF_SPL_REMOVE_PROPS="interrupts interrupt-names interrupts-extended interrupt-controller \\\#interrupt-cells interrupt-parent dmas dma-names assigned-clocks assigned-clock-rates assigned-clock-parents hwlocks" CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=yconfigs/stm32mp15_trusted_defconfig +0
-0
configs/stm32mp15_trusted_defconfig CONFIG_CMD_REGULATOR=y · line 45
Quoted 7 lines
configs/stm32mp15_trusted_defconfig +1
-0@@ -39,6 +39,7 @@ CONFIG_CMD_REGULATOR=y CONFIG_CMD_EXT4_WRITE=y CONFIG_CMD_MTDPARTS=y CONFIG_CMD_UBI=y +CONFIG_OF_LIVE=y CONFIG_ENV_IS_NOWHERE=y CONFIG_ENV_IS_IN_MMC=y CONFIG_ENV_IS_IN_SPI_FLASH=y
Thanks
Patrice
PATCH 1/1 configs: stm32mp1: activate OF_LIVE for DT live support
In reply to Patrick DelaunayHi,
Quoted 6 lines · Patrick Delaunay
Activate the live DT to reduce the DT parsing time.
For example the boot time is reduced by 200ms on STM32MP157C-EV1 board for
stm32mp15_basic_defconfig(boot with SPL) orstm32mp15_trusted_defconfig(boot with TF-A).
Quoted 7 lines
Signed-off-by Patrick Delaunay <[email protected]>---
...configs/stm32mp15_basic_defconfig | 1 + configs/stm32mp15_trusted_defconfig | 1 + 2 files changed, 2 insertions(+)
Applied to u-boot-stm/master, thanks!
Regards
Patrick