[PATCH v2 00/33] stm32: enable logging features
Patrick Delaunay
patrick.delaunay at st.com
Fri Nov 6 19:01:28 CET 2020
V2 of previous patchset [1],
I just rebase the serie and solved the compilation issue.
This patch-set migrates several stm32 drivers to API compatible with
logging features (use dev_...() or log_...() function) and activate
the logging features in STM32MP15 boards.
The size of U-Boot increased by 37kB (851096 to 889592 on STM32MP157C-EV1
board for trusted defconfig) but the boot time don't change drastically.
For example on STM32MP157C-EV1 board, trusted boot
1/ Before LOG patchset
STM32MP> bootstage report
Timer summary in microseconds (9 records):
Mark Elapsed Stage
0 0 reset
621,283 621,283 board_init_f
800,946 179,663 board_init_r
1,272,726 471,780 id=64
1,298,092 25,366 id=65
1,299,997 1,905 main_loop
1,310,785 10,788 id=175
Accumulated time:
57,678 dm_f
69,883 dm_r
After this serie :
STM32MP> bootstage report
Timer summary in microseconds (9 records):
Mark Elapsed Stage
0 0 reset
626,031 626,031 board_init_f
806,187 180,156 board_init_r
1,280,935 474,748 id=64
1,306,580 25,645 id=65
1,308,484 1,904 main_loop
1,319,262 10,778 id=175
Accumulated time:
57,763 dm_f
69,843 dm_r
=> cost 9ms
2/ With LOG activated at level 8
and bootstage info in __log() function)
+ CONFIG_LOG_MAX_LEVEL=8
+ CONFIG_LOG_DEFAULT_LEVEL=6
STM32MP> bootstage report
Timer summary in microseconds (10 records):
Mark Elapsed Stage
0 0 reset
641,076 641,076 board_init_f
829,569 188,493 board_init_r
1,339,783 510,214 id=64
1,372,315 32,532 id=65
1,374,182 1,867 main_loop
1,544,359 170,177 id=175
Accumulated time:
25,087 log
63,300 dm_f
73,424 dm_r
=> cost is 70ms
3/ after log patchset [2], I gain 20ms
STM32MP> bootstage report
Timer summary in microseconds (10 records):
Mark Elapsed Stage
0 0 reset
644,372 644,372 board_init_f
827,695 183,323 board_init_r
1,323,756 496,061 id=64
1,354,157 30,401 id=65
1,356,050 1,893 main_loop
1,366,785 10,735 id=175
Accumulated time:
24,837 log
59,676 dm_f
70,916 dm_r
PS: accumulated time is strange here
[1] http://patchwork.ozlabs.org/project/uboot/list/?series=207758
[2] http://patchwork.ozlabs.org/project/uboot/list/?series=212739&state=*
Changes in v2:
- solve rebase conflict
- Add dm/device_compat.h
- Solve merge conflict
- Add dm/device_compat.h
- Add dm/device_compat.h
- Solve merge conflict
- Add dm/device_compat.h
Patrick Delaunay (33):
arm: stm32mp: migrate trace to log macro
arm: stm32mp: migrate cmd_stm32prog to log macro
arm: stm32mp: bsec: migrate trace to log macro
pinctrl: stm32: migrate trace to log macro
gpio: stm32-gpio: migrate trace to dev and log macro
remoproc: stm32: migrate trace to log macro
ram: stm32: migrate trace to log macro
ram: stm32mp1: migrate trace to dev or log macro
mmc: stm32_sdmmc2: migrate trace to dev and log macro
timer: stm32: migrate trace to log macro
hwspinlock: stm32: migrate trace to log macro
rtc: stm32: migrate trace to log macro
watchdog: stm32mp: migrate trace to dev macro
power: regulator: stm32-verfbuf: define LOG_CATEGORY
misc: rcc: migrate trace to dev macro
misc: rcc: keep the rcc device name for subnode
clk: stm32mp1: migrate trace to dev and log macro
clk: clk_stm32f: migrate trace to dev and log macro
clk: clk_stm32h7: migrate trace to dev and log macro
reset: stm32-reset: migrate trace to dev and log macro
mailbox: stm32-ipcc: migrate trace to dev and log macro
i2c: stm32f7_i2c: migrate trace to dev and log macro
phy: stm32-usbphyc: migrate trace to dev and log macro
spi: stm32_spi: migrate trace to dev and log macro
spi: stm32_qspi: migrate trace to dev and log macro
mtd: stm32_fmc2: migrate trace to dev and log macro
memory: stm32-fmc2: migrate trace to dev and log macro
serial: stm32: define LOG_CATEGORY
video: stm32_ltdc: migrate trace to dev and log macro
video: stm32_dsi: migrate trace to dev and log macro
board: st: stm32mp1: migrate trace to dev and log macro
board: st: common: migrate trace to dev and log macro
configs: stm32mp15: enable LOG features
arch/arm/mach-stm32mp/boot_params.c | 8 +-
arch/arm/mach-stm32mp/bsec.c | 38 +++--
arch/arm/mach-stm32mp/cmd_stm32key.c | 3 +-
.../cmd_stm32prog/cmd_stm32prog.c | 4 +-
.../mach-stm32mp/cmd_stm32prog/stm32prog.c | 112 ++++++-------
.../mach-stm32mp/cmd_stm32prog/stm32prog.h | 2 +-
.../cmd_stm32prog/stm32prog_serial.c | 24 +--
.../cmd_stm32prog/stm32prog_usb.c | 14 +-
arch/arm/mach-stm32mp/cpu.c | 18 ++-
arch/arm/mach-stm32mp/dram_init.c | 8 +-
arch/arm/mach-stm32mp/fdt.c | 17 +-
arch/arm/mach-stm32mp/pwr_regulator.c | 2 +
arch/arm/mach-stm32mp/spl.c | 16 +-
board/st/common/stm32mp_dfu.c | 3 +-
board/st/common/stm32mp_mtdparts.c | 5 +-
board/st/common/stpmic1.c | 5 +-
board/st/common/stusb160x.c | 2 +
board/st/stm32mp1/stm32mp1.c | 134 ++++++++--------
configs/stm32mp15_basic_defconfig | 2 +
configs/stm32mp15_trusted_defconfig | 1 +
drivers/clk/clk_stm32f.c | 39 ++---
drivers/clk/clk_stm32h7.c | 70 +++++----
drivers/clk/clk_stm32mp1.c | 147 +++++++++---------
drivers/gpio/stm32_gpio.c | 4 +-
drivers/hwspinlock/stm32_hwspinlock.c | 2 +
drivers/i2c/stm32f7_i2c.c | 74 ++++-----
drivers/mailbox/stm32-ipcc.c | 16 +-
drivers/memory/stm32-fmc2-ebi.c | 30 ++--
drivers/misc/stm32_rcc.c | 10 +-
drivers/mmc/stm32_sdmmc2.c | 84 +++++-----
drivers/mtd/nand/raw/stm32_fmc2_nand.c | 40 +++--
drivers/phy/phy-stm32-usbphyc.c | 18 ++-
drivers/pinctrl/pinctrl_stm32.c | 30 ++--
drivers/power/regulator/stm32-vrefbuf.c | 2 +
drivers/ram/stm32_sdram.c | 10 +-
drivers/ram/stm32mp1/stm32mp1_ddr.c | 36 +++--
drivers/ram/stm32mp1/stm32mp1_interactive.c | 4 +-
drivers/ram/stm32mp1/stm32mp1_ram.c | 38 +++--
drivers/ram/stm32mp1/stm32mp1_tests.c | 19 ++-
drivers/ram/stm32mp1/stm32mp1_tuning.c | 124 +++++++--------
drivers/remoteproc/stm32_copro.c | 3 +-
drivers/reset/stm32-reset.c | 13 +-
drivers/rtc/stm32_rtc.c | 3 +
drivers/serial/serial_stm32.c | 3 +
drivers/spi/stm32_qspi.c | 46 +++---
drivers/spi/stm32_spi.c | 31 ++--
drivers/timer/stm32_timer.c | 2 +
drivers/video/stm32/stm32_dsi.c | 18 ++-
drivers/video/stm32/stm32_ltdc.c | 33 ++--
drivers/watchdog/stm32mp_wdt.c | 9 +-
50 files changed, 732 insertions(+), 644 deletions(-)
--
2.17.1
More information about the U-Boot
mailing list