[PATCH 00/14] fdt: Improvements for fdt and tracing

Simon Glass sjg at chromium.org
Thu Dec 22 00:08:14 CET 2022


This series aims to make it easier to measure boot performance,
particularly aimed at rockpro64. It includes the following:

- enabling bootstage on rockpro64 (TPL, SPL, U-Boot proper)
- minor fixes and tidy-ups for tracing
- minor FDT code tidy-ups

It also reverts a patch which slows down the boot by 30ms. This revert
was requested some time ago but with this series we have the data showing
the impact.

Changes in v1:
- Add detail of impact

Simon Glass (14):
  trace: Use notrace for short
  arm: Support trace on armv8
  tpm: Add a proper Kconfig option for crc8 in SPL
  fdt: Avoid exporting fdtdec_prepare_fdt()
  fdt: Drop ifdefs in fdtdec_prepare_fdt()
  fdt: Pass the device tree to fdtdec_prepare_fdt()
  fdt: Check for overlapping data and FDT
  trace: Move trace pointer to data section
  mkimage: Add a few more messages for FIT failures
  trace: Adjust flags in proftool
  trace: Update trace-format generator for newer version
  trace: Don't require TIMER_EARLY
  rockchip: Enable bootstage on rockpro64
  Revert "fdtdec: drop needlessly convoluted CONFIG_PHANDLE_CHECK_SEQ"

 arch/arm/cpu/armv7/s5p-common/timer.c   |  2 +-
 arch/arm/cpu/armv8/generic_timer.c      |  6 +-
 arch/arm/mach-exynos/include/mach/cpu.h |  6 +-
 arch/arm/mach-rockchip/tpl.c            | 18 ++++-
 arch/x86/include/asm/global_data.h      |  2 +-
 arch/x86/include/asm/msr.h              |  2 +-
 arch/x86/include/asm/u-boot-x86.h       |  2 +-
 common/spl/spl.c                        |  2 +-
 common/spl/spl_fit.c                    |  1 +
 configs/am65x_evm_a53_defconfig         |  1 +
 configs/evb-ast2600_defconfig           |  1 +
 configs/rockpro64-rk3399_defconfig      |  8 +++
 configs/sama7g5ek_mmc1_defconfig        |  1 +
 configs/sama7g5ek_mmc_defconfig         |  1 +
 doc/develop/trace.rst                   |  2 +-
 include/fdtdec.h                        |  9 ---
 lib/Kconfig                             | 26 ++++++-
 lib/Makefile                            |  3 +-
 lib/efi_loader/efi_freestanding.c       |  4 +-
 lib/fdtdec.c                            | 92 ++++++++++++++++---------
 lib/trace.c                             | 29 ++++----
 tools/fit_image.c                       |  4 +-
 tools/image-host.c                      |  6 +-
 tools/proftool.c                        | 43 +++++++-----
 24 files changed, 175 insertions(+), 96 deletions(-)

-- 
2.39.0.314.g84b9a713c41-goog



More information about the U-Boot mailing list