Skip to contentSkip to conversation

configs: socfpga: arria10: Disable CONFIG_USE_TINY_PRINTF

PATCH Superseded [email protected] 2 participants 3 messages Mar 4

Subsystems (3)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 configs: socfpga: arria10: Disable CONFIG_USE_TINY_PRINTF

From: Dinesh Maniyam <[email protected]>

CONFIG_USE_TINY_PRINTF is enabled by default, disable it. Arria 10 has 256KB of onchip ram and it is enough to support full printf. Full printf allows us to have more complex format printing, example %ll.

---
 arch/arm/mach-socfpga/Kconfig     | 1 -
 configs/socfpga_arria10_defconfig | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-socfpga/Kconfig +0 -1
index f2e959b5662..ba01ec08be2 100644
@@ -101,7 +101,6 @@ config TARGET_SOCFPGA_ARRIA10
 	select SPL_SYSCON if SPL
 	select ETH_DESIGNWARE_SOCFPGA
 	imply FPGA_SOCFPGA
-	imply SPL_USE_TINY_PRINTF
 
 config SOCFPGA_ARRIA10_ALWAYS_REPROGRAM
 	bool "Always reprogram Arria 10 FPGA"
configs/socfpga_arria10_defconfig +1 -0
index b32f40ae408..d5feabe5ce0 100644
@@ -69,3 +69,4 @@ CONFIG_USB=y
 CONFIG_USB_DWC2=y
 # CONFIG_SPL_WDT is not set
 # CONFIG_TOOLS_MKEFICAPSULE is not set
+# CONFIG_USE_TINY_PRINTF is not set
Signature · 1 line
2.43.7
maintainer
#1 lore raw
Quoted 5 lines · On 3/3/26 21:53, [email protected] wrote:

From: Dinesh Maniyam <[email protected]>

CONFIG_USE_TINY_PRINTF is enabled by default, disable it. Arria 10 has 256KB of onchip ram and it is enough to support full printf. Full printf allows us to have more complex format printing, example %ll.

Do you have a size diff for the SPL with this change?

Quoted 2 lines

Is the above contact valid? Also, try to just include contacts returned from get_maintainer.

Quoted 23 lines
---
  arch/arm/mach-socfpga/Kconfig     | 1 -
  configs/socfpga_arria10_defconfig | 1 +
  2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-socfpga/Kconfig +0 -1
index f2e959b5662..ba01ec08be2 100644
@@ -101,7 +101,6 @@ config TARGET_SOCFPGA_ARRIA10
  	select SPL_SYSCON if SPL
  	select ETH_DESIGNWARE_SOCFPGA
  	imply FPGA_SOCFPGA
-	imply SPL_USE_TINY_PRINTF
 
  config SOCFPGA_ARRIA10_ALWAYS_REPROGRAM
  	bool "Always reprogram Arria 10 FPGA"
configs/socfpga_arria10_defconfig +0 -0
index b32f40ae408..d5feabe5ce0 100644

configs/socfpga_arria10_defconfig CONFIG_USB=y · line 72

Quoted 4 lines
configs/socfpga_arria10_defconfig +1 -0
@@ -69,3 +69,4 @@ CONFIG_USB=y
  CONFIG_USB_DWC2=y
  # CONFIG_SPL_WDT is not set
  # CONFIG_TOOLS_MKEFICAPSULE is not set
+# CONFIG_USE_TINY_PRINTF is not set

This does not disable CONFIG_SPL_USE_TINY_PRINTF, you need to add this:

# CONFIG_SPL_USE_TINY_PRINTF is not set

Dinh

#2 lore raw

Hi,

Quoted 60 lines · Dinh Nguyen

[CAUTION: This email is from outside your organization. Unless you trust the sender, do not click on links or open attachments as it may be a fraudulent email attempting to steal your information and/or compromise your computer.]

Quoted 5 lines · On 3/3/26 21:53, [email protected] wrote:

From: Dinesh Maniyam <[email protected]>

CONFIG_USE_TINY_PRINTF is enabled by default, disable it. Arria 10 has 256KB of onchip ram and it is enough to support full printf. Full printf allows us to have more complex format printing, example %ll.

Do you have a size diff for the SPL with this change?

No, disabling CONFIG_SPL_USE_TINY_PRINTF does not introduce a size increase in SPL The implementation should be safe and allows richer formatting support when needed.

Quoted 2 lines

Is the above contact valid? Also, try to just include contacts returned from get_maintainer.

I will remove the invalid contact.

Quoted 23 lines

---
  arch/arm/mach-socfpga/Kconfig     | 1 -
  configs/socfpga_arria10_defconfig | 1 +

  2 files changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-socfpga/Kconfig +0 -0
index f2e959b5662..ba01ec08be2 100644
@@ -101,7 +101,6 @@ config TARGET_SOCFPGA_ARRIA10

      select SPL_SYSCON if SPL
      select ETH_DESIGNWARE_SOCFPGA
      imply FPGA_SOCFPGA
-     imply SPL_USE_TINY_PRINTF

  config SOCFPGA_ARRIA10_ALWAYS_REPROGRAM
      bool "Always reprogram Arria 10 FPGA"

configs/socfpga_arria10_defconfig +0 -0
index b32f40ae408..d5feabe5ce0 100644
@@ -69,3 +69,4 @@ CONFIG_USB=y
Quoted 4 lines

  CONFIG_USB_DWC2=y
  # CONFIG_SPL_WDT is not set
  # CONFIG_TOOLS_MKEFICAPSULE is not set
+# CONFIG_USE_TINY_PRINTF is not set

This does not disable CONFIG_SPL_USE_TINY_PRINTF, you need to add this:

# CONFIG_SPL_USE_TINY_PRINTF is not set

Dinh

Yes, you are right!
I will resubmit v2.

Dinesh