mbox series

[0/2] bootstage: Fix unstash and sorting of records

Message ID 20240803124149.2916030-1-jonas@kwiboo.se
Headers show
Series bootstage: Fix unstash and sorting of records | expand

Message

Jonas Karlman Aug. 3, 2024, 12:41 p.m. UTC
This series fixes two issues with bootstage observed trying to measure
boot times on my Rockchip aarch64 boards.

First patch fixes a regression in v2024.10-rc1 where bootstage records
from SPL no longer is unstashed.

Second patch change to not sort bootstage records in order to show
correct elapsed time when TF-A reset the timer counter.

Tested on a few Rockchip boards with:

  CONFIG_BOOTSTAGE=y
  CONFIG_CMD_BOOTSTAGE=y
  CONFIG_BOOTSTAGE_RECORD_COUNT=20
  CONFIG_SPL_BOOTSTAGE=y
  CONFIG_SPL_BOOTSTAGE_RECORD_COUNT=20
  CONFIG_BOOTSTAGE_STASH_ADDR=0x3800000
  CONFIG_BOOTSTAGE_STASH_SIZE=0x10000
  CONFIG_BOOTSTAGE_STASH=y
  CONFIG_BOOTSTAGE_REPORT=y
  CONFIG_BOOTDELAY=-1

Jonas Karlman (2):
  bootstage: Fix unstash of records from SPL
  bootstage: Do not sort records

 common/board_f.c   |  2 +-
 common/bootstage.c | 12 ++----------
 2 files changed, 3 insertions(+), 11 deletions(-)