diff mbox series

[1/1] board/stm32f769-disco: speed up U-Boot bootup

Message ID 20250214113158.3584398-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series [1/1] board/stm32f769-disco: speed up U-Boot bootup | expand

Commit Message

Dario Binacchi Feb. 14, 2025, 11:31 a.m. UTC
Updating the framebuffer takes quite a long time on this slow platform.
The added patch allow to avoid the following cyclic warning:

 cyclic function video_init took too long: 7280us vs 5000us max

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
 ...9-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch | 48 +++++++++++++++++++
 1 file changed, 48 insertions(+)
 create mode 100644 board/stmicroelectronics/stm32f769-disco/patches/uboot/0001-configs-stm32f769-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch
diff mbox series

Patch

diff --git a/board/stmicroelectronics/stm32f769-disco/patches/uboot/0001-configs-stm32f769-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch b/board/stmicroelectronics/stm32f769-disco/patches/uboot/0001-configs-stm32f769-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch
new file mode 100644
index 000000000000..a9a5c631b629
--- /dev/null
+++ b/board/stmicroelectronics/stm32f769-disco/patches/uboot/0001-configs-stm32f769-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch
@@ -0,0 +1,48 @@ 
+From c1bb2b62b00a68ff710d8c5635f68c83a4b8c1c8 Mon Sep 17 00:00:00 2001
+From: Patrice Chotard <patrice.chotard@foss.st.com>
+Date: Wed, 11 Dec 2024 09:09:35 +0100
+Subject: [PATCH] configs: stm32f769-disco: Set CYCLIC_MAX_CPU_TIME_US to 8000
+ for stm32f769-disco
+
+Updating the framebuffer takes quite a long time on this slow patform,
+set CYCLIC_MAX_CPU_TIME_US to 8000 for stm32f769-disco to avoid
+following cyclic warning:
+
+"cyclic function video_init took too long: 7280us vs 5000us max"
+
+Signed-off-by: Patrice Chotard <patrice.chotard@foss.st.com>
+Reviewed-by: Patrick Delaunay <patrick.delaunay@foss.st.com>
+Upstream: https://gitlab.com/u-boot/u-boot/-/commit/c1bb2b62b00a68ff710d8c5635f68c83a4b8c1c8
+Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
+---
+ configs/stm32f769-disco_defconfig     | 1 +
+ configs/stm32f769-disco_spl_defconfig | 1 +
+ 2 files changed, 2 insertions(+)
+
+diff --git a/configs/stm32f769-disco_defconfig b/configs/stm32f769-disco_defconfig
+index 1e09c224fc0d..5be221afd2fa 100644
+--- a/configs/stm32f769-disco_defconfig
++++ b/configs/stm32f769-disco_defconfig
+@@ -21,6 +21,7 @@ CONFIG_USE_BOOTARGS=y
+ CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+ CONFIG_SYS_PBSIZE=1050
+ # CONFIG_DISPLAY_CPUINFO is not set
++CONFIG_CYCLIC_MAX_CPU_TIME_US=8000
+ CONFIG_SYS_PROMPT="U-Boot > "
+ CONFIG_CMD_GPT=y
+ CONFIG_CMD_MMC=y
+diff --git a/configs/stm32f769-disco_spl_defconfig b/configs/stm32f769-disco_spl_defconfig
+index 787571dba0cf..7d4bda440685 100644
+--- a/configs/stm32f769-disco_spl_defconfig
++++ b/configs/stm32f769-disco_spl_defconfig
+@@ -30,6 +30,7 @@ CONFIG_USE_BOOTARGS=y
+ CONFIG_BOOTARGS="console=ttyS0,115200 earlyprintk consoleblank=0 ignore_loglevel"
+ CONFIG_SYS_PBSIZE=1050
+ # CONFIG_DISPLAY_CPUINFO is not set
++CONFIG_CYCLIC_MAX_CPU_TIME_US=8000
+ CONFIG_SPL_PAD_TO=0x9000
+ CONFIG_SPL_NO_BSS_LIMIT=y
+ CONFIG_SPL_BOARD_INIT=y
+-- 
+2.43.0
+