public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [PATCH] configs: visionfive2: enable bootstage configs
       [not found] <CGME20231010084939epcas2p1aac03b2cfd5bb395cd4bd6f0faba86fb@epcas2p1.samsung.com>
@ 2023-10-10  8:49 ` Chanho Park
  2023-10-17  6:51   ` Leo Liang
  0 siblings, 1 reply; 2+ messages in thread
From: Chanho Park @ 2023-10-10  8:49 UTC (permalink / raw)
  To: Yanhong Wang, Leo, u-boot; +Cc: Chanho Park

Enable BOOTSTAGE configuration and its command for visionfive2 board.
The feature can be useful for analyzing the elapsed time between boot
stages.

TODO: define / reserve memory region for boot stage stash

StarFive # bootstage report
Timer summary in microseconds (10 records):
       Mark    Elapsed  Stage
          0          0  reset
  3,139,338  3,139,338  board_init_f
  3,176,753     37,415  board_init_r
  4,036,111    859,358  eth_common_init
  4,101,599     65,488  eth_initialize
  4,105,799      4,200  main_loop
  4,145,207     39,408  usb_start
  5,440,963  1,295,756  cli_loop

Accumulated time:
                10,093  dm_f
                15,867  dm_r

Signed-off-by: Chanho Park <chanho61.park@samsung.com>
---
 configs/starfive_visionfive2_defconfig | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/configs/starfive_visionfive2_defconfig b/configs/starfive_visionfive2_defconfig
index 6590727fe750..b21754feafce 100644
--- a/configs/starfive_visionfive2_defconfig
+++ b/configs/starfive_visionfive2_defconfig
@@ -31,6 +31,7 @@ CONFIG_RISCV_SMODE=y
 # CONFIG_SYS_MALLOC_CLEAR_ON_INIT is not set
 CONFIG_FIT=y
 CONFIG_DISTRO_DEFAULTS=y
+CONFIG_BOOTSTAGE=y
 CONFIG_QSPI_BOOT=y
 CONFIG_SD_BOOT=y
 CONFIG_OF_BOARD_SETUP=y
@@ -72,6 +73,7 @@ CONFIG_CMD_I2C=y
 CONFIG_CMD_PCI=y
 CONFIG_CMD_USB=y
 CONFIG_CMD_TFTPPUT=y
+CONFIG_CMD_BOOTSTAGE=y
 CONFIG_OF_BOARD=y
 CONFIG_ENV_OVERWRITE=y
 CONFIG_ENV_IS_NOWHERE=y
-- 
2.39.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] configs: visionfive2: enable bootstage configs
  2023-10-10  8:49 ` [PATCH] configs: visionfive2: enable bootstage configs Chanho Park
@ 2023-10-17  6:51   ` Leo Liang
  0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2023-10-17  6:51 UTC (permalink / raw)
  To: Chanho Park; +Cc: Yanhong Wang, u-boot

On Tue, Oct 10, 2023 at 05:49:18PM +0900, Chanho Park wrote:
> Enable BOOTSTAGE configuration and its command for visionfive2 board.
> The feature can be useful for analyzing the elapsed time between boot
> stages.
> 
> TODO: define / reserve memory region for boot stage stash
> 
> StarFive # bootstage report
> Timer summary in microseconds (10 records):
>        Mark    Elapsed  Stage
>           0          0  reset
>   3,139,338  3,139,338  board_init_f
>   3,176,753     37,415  board_init_r
>   4,036,111    859,358  eth_common_init
>   4,101,599     65,488  eth_initialize
>   4,105,799      4,200  main_loop
>   4,145,207     39,408  usb_start
>   5,440,963  1,295,756  cli_loop
> 
> Accumulated time:
>                 10,093  dm_f
>                 15,867  dm_r
> 
> Signed-off-by: Chanho Park <chanho61.park@samsung.com>
> ---
>  configs/starfive_visionfive2_defconfig | 2 ++
>  1 file changed, 2 insertions(+)

Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-10-17  6:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <CGME20231010084939epcas2p1aac03b2cfd5bb395cd4bd6f0faba86fb@epcas2p1.samsung.com>
2023-10-10  8:49 ` [PATCH] configs: visionfive2: enable bootstage configs Chanho Park
2023-10-17  6:51   ` Leo Liang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox