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

Message ID 20250214114612.3682462-1-dario.binacchi@amarulasolutions.com
State New
Headers show
Series
  • [1/1] board/stm32f469-disco: speed up U-Boot bootup
Related show

Commit Message

Dario Binacchi Feb. 14, 2025, 11:46 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: 46784us vs 5000us max

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

Patch

diff --git a/board/stmicroelectronics/stm32f469-disco/patches/uboot/0001-configs-stm32f469-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch b/board/stmicroelectronics/stm32f469-disco/patches/uboot/0001-configs-stm32f469-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch
new file mode 100644
index 000000000000..c9e331256229
--- /dev/null
+++ b/board/stmicroelectronics/stm32f469-disco/patches/uboot/0001-configs-stm32f469-disco-Set-CYCLIC_MAX_CPU_TIME_US-t.patch
@@ -0,0 +1,35 @@ 
+From 2a903b0141b99bb41756d01a0a1a5463e2c4f365 Mon Sep 17 00:00:00 2001
+From: Patrice Chotard <patrice.chotard@foss.st.com>
+Date: Wed, 11 Dec 2024 09:09:36 +0100
+Subject: [PATCH] configs: stm32f469-disco: Set CYCLIC_MAX_CPU_TIME_US to 50000
+ for stm32f469-disco
+
+Updating the framebuffer takes quite a long time on this slow patform,
+set CYCLIC_MAX_CPU_TIME_US to 50000 for stm32f469-disco to avoid
+following cyclic warning:
+
+"cyclic function video_init took too long: 46784us 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/2a903b0141b99bb41756d01a0a1a5463e2c4f365
+Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
+---
+ configs/stm32f469-discovery_defconfig | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/configs/stm32f469-discovery_defconfig b/configs/stm32f469-discovery_defconfig
+index 98399416fa57..b0144763d376 100644
+--- a/configs/stm32f469-discovery_defconfig
++++ b/configs/stm32f469-discovery_defconfig
+@@ -14,6 +14,7 @@ CONFIG_DISTRO_DEFAULTS=y
+ CONFIG_BOOTDELAY=3
+ CONFIG_SYS_PBSIZE=1050
+ # CONFIG_DISPLAY_CPUINFO is not set
++CONFIG_CYCLIC_MAX_CPU_TIME_US=50000
+ CONFIG_MISC_INIT_R=y
+ CONFIG_SYS_PROMPT="U-Boot > "
+ CONFIG_CMD_IMLS=y
+-- 
+2.43.0
+