[PATCH] configs: stm32mp1: activate OF_LIVE for DT live support

Patrice CHOTARD patrice.chotard at foss.st.com
Wed Jan 6 14:05:09 CET 2021


Hi Patrick

On 12/11/20 3:32 PM, Patrick Delaunay wrote:
> 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).
>
> Signed-off-by: Patrick Delaunay <patrick.delaunay at foss.st.com>
> ---
> 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=175
>
> Accumulated time:
>                  1,430  dm_r
>                 15,112  of_live
>                 54,715  dm_f
>
> Before 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=175
>
> Accumulated time:
>                 54,671  dm_f
>                 66,176  dm_r
>
> 2/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=175
>
> Accumulated time:
>                  1,405  dm_r
>                 15,107  of_live
>                 54,606  dm_f
>                 89,236  dm_spl
>
> Before 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=175
>
> Accumulated time:
>                 55,045  dm_f
>                 66,755  dm_r
>                 87,872  dm_spl
>
> This 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@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@st.com/
>
>
>  configs/stm32mp15_basic_defconfig   | 1 +
>  configs/stm32mp15_trusted_defconfig | 1 +
>  2 files changed, 2 insertions(+)
>
> diff --git a/configs/stm32mp15_basic_defconfig b/configs/stm32mp15_basic_defconfig
> index 1843bbcc78..9d3d40c4c4 100644
> --- a/configs/stm32mp15_basic_defconfig
> +++ b/configs/stm32mp15_basic_defconfig
> @@ -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
> diff --git a/configs/stm32mp15_trusted_defconfig b/configs/stm32mp15_trusted_defconfig
> index 964f4c2885..4cd7d1265d 100644
> --- a/configs/stm32mp15_trusted_defconfig
> +++ b/configs/stm32mp15_trusted_defconfig
> @@ -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

Reviewed-by: Patrice Chotard <patrice.chotard at foss.st.com>

Thanks

Patrice



More information about the U-Boot mailing list