arm: rockchip: TPL/SPL config options minor fixes
Subsystems (3)
cover arm: rockchip: TPL/SPL config options minor fixes
The series fixes some minor issues in TPL and SPL configuration options handling, improving configurations consistency. Neither functional nor binary changes intended.
---
Massimo Pegorer (4):
arm: rockchip: rv1126: Remove useless TPL_LDSCRIPT default
arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
arm: rockchip: Avoid BSS SPL config options when unneeded
arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check
arch/arm/mach-rockchip/Kconfig | 4 +++- arch/arm/mach-rockchip/px30/Kconfig | 2 +- arch/arm/mach-rockchip/rk3328/Kconfig | 2 +- arch/arm/mach-rockchip/rk3399/Kconfig | 2 +- arch/arm/mach-rockchip/rv1126/Kconfig | 3 --- 5 files changed, 6 insertions(+), 7 deletions(-)
---
base-commit: a000f2af240eaa996cec92f8d44bad96fdf3f898
change-id: 20261002-config-36524677a702
Best regards,
Signature · 1 line
Massimo Pegorer <[email protected]>
PATCH 1/4 arm: rockchip: rv1126: Remove useless TPL_LDSCRIPT default
The arch/arm/mach-rockchip/u-boot-tpl.lds linker script file does not exist. Therefore, in the end, scripts/Makefile.xpl logic fallbacks on using the arch common linker script: arch/$(ARCH)/cpu/u-boot-spl.lds. This is also the default value of TPL_LDSCRIPT option common definition in common/spl/Kconfig, thus dropping this RV1126 specific definition simplifies the configuration and has no side effect on binary outputs.
The RV1126 Kconfig file with TPL_LDSCRIPT definition has been added by ffb191e458c ("arm: rockchip: Add RV1126 arch core support") just a few days after 957848882c8 ("rk32xx: Use standard TPL linker script") that removed the arch/arm/mach-rockchip/u-boot-tpl.lds linker script file. The commit date of the second follows the author date of the first: I suppose this caused the inconsistency.
--- arch/arm/mach-rockchip/rv1126/Kconfig | 3 --- 1 file changed, 3 deletions(-)
arch/arm/mach-rockchip/rv1126/Kconfig +0 -3
@@ -43,9 +43,6 @@ config SPL_STACK config SPL_STACK_R_ADDR default 0x800000 -config TPL_LDSCRIPT - default "arch/arm/mach-rockchip/u-boot-tpl.lds" - config TPL_STACK default 0xff718000
Signature · 1 line
2.34.1
Re: [PATCH 1/4] arm: rockchip: rv1126: Remove useless TPL_LDSCRIPT default
Hi Massimo,
Quoted 7 lines · Massimo Pegorer
The
arch/arm/mach-rockchip/u-boot-tpl.ldslinker script file does not exist. Therefore, in the end,scripts/Makefile.xpllogic fallbacks on using the arch common linker script: arch/$(ARCH)/cpu/u-boot-spl.lds. This is also the default value ofTPL_LDSCRIPToption common definition in common/spl/Kconfig, thus dropping this RV1126 specific definition simplifies the configuration and has no side effect on binary outputs.
Quoted 7 lines
The RV1126
Kconfigfile withTPL_LDSCRIPTdefinition has been added byffb191e458c("arm: rockchip: Add RV1126 arch core support") just a few days after957848882c8("rk32xx: Use standard TPL linker script") that removed thearch/arm/mach-rockchip/u-boot-tpl.ldslinker script file. The commit date of the second follows the author date of the first: I suppose this caused the inconsistency.
The CONFIG_[ST]PL_TEXT_BASE symbol wasn't used in arch/arm/cpu/u-boot-spl.lds so the undef was unnecessary. CONFIG_[ST]PL_MAX_SIZE is handled by scripts/Makefile.xpl and set as IMAGE_MAX_SIZE in the linker scripts. I also printed the value of LDSCRIPT in scripts/Makefile.xpl, it is the same before and after this patch, therefore:
Thanks!
Quentin
PATCH 2/4 arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
In reply to Massimo PegorerThere is no need to define TPL linker script file through TPL_LDSCRIPT configuration option value when CONFIG_TPL is not selected. Avoid this useless row in the configuration with no side effect on binary outputs.
Involved boards being built without TPL are a subset of those based on RK3328 or RK3399. Anyway, keep aligned PX30 Kconfig with this fix, too.
--- arch/arm/mach-rockchip/px30/Kconfig | 2 +- arch/arm/mach-rockchip/rk3328/Kconfig | 2 +- arch/arm/mach-rockchip/rk3399/Kconfig | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
arch/arm/mach-rockchip/px30/Kconfig +1 -1
@@ -75,7 +75,7 @@ config SPL_SERIAL default y config TPL_LDSCRIPT - default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" + default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL config TPL_TEXT_BASE default 0xff0e1000
arch/arm/mach-rockchip/rk3328/Kconfig +1 -1
@@ -22,7 +22,7 @@ config SYS_SOC default "rk3328" config TPL_LDSCRIPT - default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" + default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL config TPL_TEXT_BASE default 0xff091000
arch/arm/mach-rockchip/rk3399/Kconfig +1 -1
@@ -142,7 +142,7 @@ config SYS_SOC default "rk3399" config TPL_LDSCRIPT - default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" + default "arch/arm/mach-rockchip/u-boot-tpl-v8.lds" if TPL config TPL_STACK default 0xff8effff
Signature · 1 line
2.34.1
Re: [PATCH 2/4] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
Hi Massimo,
Quoted 4 lines · Massimo Pegorer
There is no need to define TPL linker script file through
TPL_LDSCRIPTconfiguration option value whenCONFIG_TPLis not selected. Avoid this useless row in the configuration with no side effect on binary outputs.
What is this helping with?
TPL_LDSCRIPT should only be reachable if TPL is enabled, so adding an
if TPL
is not supposed to do anything. menuconfig incorrectly reports a dependency on ROCKCHIP_PX30 (or ROCKCHIP_RK3328 if I entirely remove TPL_LDSCRIPT from arch/arm/mach-rockchip/px30/Kconfig), but this patch doesn't help with it.
Quoted 3 lines
Involved boards being built without TPL are a subset of those based on RK3328 or RK3399. Anyway, keep aligned PX30
Kconfigwith this fix, too.
Yes, but PX30 force-enables TPL while the other two don't.
Cheers,
Quentin
Re: [PATCH 2/4] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
Hi Quentin,
Il giorno mer 14 ott 2026 alle ore 11:31 Quentin Schulz ha scritto:
Quoted 10 lines
Hi Massimo,
Quoted 4 lines · Massimo Pegorer
There is no need to define TPL linker script file through
TPL_LDSCRIPTconfiguration option value whenCONFIG_TPLis not selected. Avoid this useless row in the configuration with no side effect on binary outputs.What is this helping with?
If you make generic-rk3328_defconfig which has ROCKCHIP_EXTERNAL_TPL=y (and therefore CONFIG_TPL is not selected), you will see in the .config the line:
CONFIG_TPL_LDSCRIPT="arch/arm/mach-rockchip/u-boot-tpl-v8.lds"
which is useless and misleading. As an example, if you use the qconfig tool, it will report that generic-rk3328 is using TPL_LDSCRIPT. Indeed, the generic-rk3328 configuration profile does not need any definition of TPL_LDSCRIPT because it does not build TPL, being CONFIG_TPL not selected.
This is what I meant by "Avoid this useless row in the configuration".
And by "with no side effect on binary outputs" I meant that the build artifacts are the same as before.
Quoted 10 lines
TPL_LDSCRIPTshould only be reachable if TPL is enabled, so adding anif TPL
is not supposed to do anything. menuconfig incorrectly reports a dependency on
ROCKCHIP_PX30(orROCKCHIP_RK3328if I entirely removeTPL_LDSCRIPTfromarch/arm/mach-rockchip/px30/Kconfig), but this patch doesn't help with it.
Quoted 5 lines
Quoted 3 lines
Involved boards being built without TPL are a subset of those based on RK3328 or RK3399. Anyway, keep aligned PX30
Kconfigwith this fix, too.Yes, but PX30 force-enables TPL while the other two don't.
Correct, ROCKCHIP_PX30 selects TPL while the others do not, therefore the change I made in px30/Kconfig has no effect on the resulting .config file. Anyway, it is correct to bind any TPL_LDSCRIPT secondary definition (those in the SoC Kconfig files) to TPL, because this config option is created in the context of and to be used within TPL, as stated in common/spl/Kconfig.tpl.
In general, this approach helps to keep configurations cleaner and simpler.
Thanks for your review!
Massimo
Quoted 3 lines
Cheers,
Quentin
Re: [PATCH 2/4] arm: rockchip: Avoid TPL_LDSCRIPT configuration when unneeded
Hi Massimo,
Quoted 12 lines · Massimo Pegorer
Hi Quentin,
Il giorno mer 14 ott 2026 alle ore 11:31 Quentin Schulz ha scritto:
Quoted 9 lines
Hi Massimo,
Quoted 4 lines · Massimo Pegorer
There is no need to define TPL linker script file through
TPL_LDSCRIPTconfiguration option value whenCONFIG_TPLis not selected. Avoid this useless row in the configuration with no side effect on binary outputs.
Quoted 5 lines
Quoted 1 line
What is this helping with?
If you make generic-rk3328_defconfig which has ROCKCHIP_EXTERNAL_TPL=y (and therefore
CONFIG_TPLis not selected), you will see in the .config the line:
OK, clear now, thanks for the explanation. Please consider saying ".config" instead of "configuration", or "defconfig" whenever appropriate, I think this would have made things clear from the beginning.
Quoted 7 lines
CONFIG_TPL_LDSCRIPT="arch/arm/mach-rockchip/u-boot-tpl-v8.lds"which is useless and misleading. As an example, if you use the qconfig tool, it will report that generic-rk3328 is using
TPL_LDSCRIPT. Indeed, the generic-rk3328 configuration profile does not need any definition ofTPL_LDSCRIPTbecause it does not build TPL, beingCONFIG_TPLnot selected.
OK, I was about to say that I don't really care about the final .config but if this breaks qconfig.py, then it's not good.
We also have a bunch of other things in there that don't belong. A simple grep on TPL returns:
# CONFIG_TPL_SKIP_LOWLEVEL_INIT is not set CONFIG_ROCKCHIP_EXTERNAL_TPL=y CONFIG_TPL_LDSCRIPT="arch/arm/mach-rockchip/u-boot-tpl-v8.lds" CONFIG_TPL_TEXT_BASE=0xff091000 CONFIG_TPL_STACK=0xff098000 CONFIG_TPL_SYS_MALLOC_F_LEN=0x800
# CONFIG_TPL_SILENT_CONSOLE is not set CONFIG_SUPPORT_TPL=y
# CONFIG_TPL is not set
# CONFIG_TPL_GZIP is not set
CONFIG_TPL_SKIP_LOWLEVEL_INIT seems to be depending on SPL, but shouldn't that rather be TPL? I think that's a typo introduced in a2ac2b964bfb ("Convert CONFIG_SKIP_LOWLEVEL_INIT et al to Kconfig").
CONFIG_TPL_LDSCRIPT, CONFIG_TPL_TEXT_BASE, CONFIG_TPL_STACK, CONFIG_TPL_SYS_MALLOC_F_LEN being redefined in arch/arm/mach-rockchip/*/Kconfig means we need to respect the visibility of the "main" symbol otherwise we may actually define (and not redefine/extend it) the symbol. For those, I think the easiest solution is to guard them with an if TPL
config ...
[...]
endif # TPL
We need the same mechanism in arch/arm/mach-rockchip/Kconfig.
CONFIG_TPL_SILENT_CONSOLE (as well as the SPL_SILENT_CONSOLE) should depend on TPL (respectively SPL).
CONFIG_SUPPORT_TPL shouldn't be hidden, the SoC supports it, we just decide to not use it (and use the external blob instead via ROCKCHIP_TPL).
CONFIG_TPL_GZIP depends on TPL_ZLIB which doesn't depend on TPL, but should. Same for SPL_GZIP/SPL_ZLIB, VPL_LZMA, SPL_LZMA_SIZE_OPTIMIZATION (probably should depend on SPL_LZMA?).
We may have to think about stopping to "redefine" symbols in arch/arm/mach-rockchip and instead have our defaults/additional restrictions added to the main symbol. The downside is that the Rockchip maintainer (me) won't necessarily see those patches as I wouldn't be automatically in Cc via get_maintainer.pl anymore. The other option is what we do today and start monitoring the visibility (or rather, reachability) of the symbol.
Cheers,
Quentin
PATCH 3/4 arm: rockchip: Avoid BSS SPL config options when unneeded
In reply to Massimo PegorerThe configuration options SPL_BSS_START_ADDR and SPL_BSS_MAX_SIZE are guarded by SPL_HAS_BSS_LINKER_SECTION and SPL_BSS_LIMIT options in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.
--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)
arch/arm/mach-rockchip/Kconfig +2 -0
@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTION default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Signature · 1 line
2.34.1
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Massimo,
Quoted 17 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +0
-0
arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 839
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +1
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTION
This change is causing make to prompt for SPL_BSS_MAX_SIZE when building e.g. tinker-s-rk3288_defconfig.
Maximum size in memory allocated to the SPL BSS (SPL_BSS_MAX_SIZE) [] (NEW)
arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 848
Quoted 9 lines
arch/arm/mach-rockchip/Kconfig +1
-0default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Possible adding something like following?
default 0x8000 if !SPL_HAS_BSS_LINKER_SECTION
Regards,
Jonas
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Jonas,
Il giorno dom 4 ott 2026 alle ore 20:54 Jonas Karlman <[email protected]> ha scritto:
Quoted 41 lines
Hi Massimo,
Quoted 17 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +0
-0arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 839
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +1
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTIONThis change is causing make to prompt for
SPL_BSS_MAX_SIZEwhen building e.g. tinker-s-rk3288_defconfig.Maximum size in memory allocated to the SPL BSS (
SPL_BSS_MAX_SIZE) [] (NEW)arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 848
Quoted 9 lines
arch/arm/mach-rockchip/Kconfig +1
-0default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Quoted 3 lines
Possible adding something like following?
default 0x8000 if !SPL_HAS_BSS_LINKER_SECTION
What about selecting SPL_BSS_MAX_SIZE default based on SPL_TEXT_BASE instead of SPL_BSS_START_ADDR?
This seems to me more straightforward. As this configuration states, there are cases where SPL_HAS_BSS_LINKER_SECTION (and thus SPL_BSS_START_ADDR) is not needed, but SPL_BSS_MAX_SIZE is. Therefore, I would avoid a default definition based on SPL_BSS_START_ADDR.
On the other hand, I've just noticed that the value is the same in the three SPL_BSS_MAX_SIZE default statements, so it would probably be even clearer to have something like (not tested yet):
config SPL_BSS_MAX_SIZE
default 0x8000 if SPL_BSS_LIMIT
What do you think? Thanks for your revision.
Regards,
Massimo
Quoted 3 lines
Regards,
Jonas
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Massimo,
Quoted 45 lines · Massimo Pegorer
Hi Jonas,
Il giorno dom 4 ott 2026 alle ore 20:54 Jonas Karlman <[email protected]> ha scritto:
Quoted 41 lines
Hi Massimo,
Quoted 17 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +0
-0arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 839
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +1
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTIONThis change is causing make to prompt for
SPL_BSS_MAX_SIZEwhen building e.g. tinker-s-rk3288_defconfig.Maximum size in memory allocated to the SPL BSS (
SPL_BSS_MAX_SIZE) [] (NEW)Quoted 9 lines
arch/arm/mach-rockchip/Kconfig +1
-0default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Quoted 6 lines
Quoted 3 lines
Possible adding something like following?
default 0x8000 if !SPL_HAS_BSS_LINKER_SECTIONWhat about selecting
SPL_BSS_MAX_SIZEdefault based onSPL_TEXT_BASEinstead ofSPL_BSS_START_ADDR?
Unsure, the original intent of the BSS_START_ADDR dependency was to only affect boards that had transitioned to use the common bss and stack addresses introduced in the commit 008ba0d56d00 ("rockchip: Add common default bss and stack addresses").
Not fully sure about current migration state for AArch64 targets, I do not have any rk3368 boards so never tried to migrate targets for that SoC to use these common addresses. Most/all other AArch64 targets should now use these defaults so it is likely these checks can be simplified.
Quoted 5 lines
This seems to me more straightforward. As this configuration states, there are cases where
SPL_HAS_BSS_LINKER_SECTION(and thusSPL_BSS_START_ADDR) is not needed, butSPL_BSS_MAX_SIZEis. Therefore, I would avoid a default definition based onSPL_BSS_START_ADDR.
It is likely these complex conditions have overplayed its need now that most AArch64 targets have been migrated to use these defaults.
Quoted 9 lines
On the other hand, I've just noticed that the value is the same in the three
SPL_BSS_MAX_SIZEdefault statements, so it would probably be even clearer to have something like (not tested yet):config
SPL_BSS_MAX_SIZEdefault 0x8000 if SPL_BSS_LIMITWhat do you think? Thanks for your revision.
Please check current values used for ARCH_ROCKCHIP boards using the qconfig.py tool. If all boards use this value, we can likely just move this default to normal "config SPL_BSS_MAX_SIZE" in common/spl/Kconfig.
default 0x8000 if ARCH_ROCKCHIP
One goal should be to continue migrate as many boards/SoCs to use the common bss and stack addresses. It should mostly be older ARMv7 SoCs that I do not have access to that never have been migrated. I do have access to rk322x boxes, and have some early work for that SoC, but too much other work to try and upstream before circling back to rk322x :-)
Regards,
Jonas
Quoted 7 lines
Regards,
MassimoQuoted 3 lines
Regards,
Jonas
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Jonas,
Il giorno mar 13 ott 2026 alle ore 23:01 Jonas Karlman <[email protected]> ha scritto:
Quoted 83 lines
Hi Massimo,
Quoted 45 lines · Massimo Pegorer
Hi Jonas,
Il giorno dom 4 ott 2026 alle ore 20:54 Jonas Karlman <[email protected]> ha scritto:
Quoted 41 lines
Hi Massimo,
Quoted 17 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +0
-0arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 839
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +1
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTIONThis change is causing make to prompt for
SPL_BSS_MAX_SIZEwhen building e.g. tinker-s-rk3288_defconfig.Maximum size in memory allocated to the SPL BSS (
SPL_BSS_MAX_SIZE) [] (NEW)Quoted 9 lines
arch/arm/mach-rockchip/Kconfig +1
-0default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000Quoted 6 lines
Quoted 3 lines
Possible adding something like following?
default 0x8000 if !SPL_HAS_BSS_LINKER_SECTIONWhat about selecting
SPL_BSS_MAX_SIZEdefault based onSPL_TEXT_BASEinstead ofSPL_BSS_START_ADDR?Unsure, the original intent of the
BSS_START_ADDRdependency was to only affect boards that had transitioned to use the common bss and stack addresses introduced in the commit008ba0d56d00("rockchip: Add common default bss and stack addresses").Not fully sure about current migration state for AArch64 targets, I do not have any rk3368 boards so never tried to migrate targets for that SoC to use these common addresses. Most/all other AArch64 targets should now use these defaults so it is likely these checks can be simplified.
Quoted 5 lines
This seems to me more straightforward. As this configuration states, there are cases where
SPL_HAS_BSS_LINKER_SECTION(and thusSPL_BSS_START_ADDR) is not needed, butSPL_BSS_MAX_SIZEis. Therefore, I would avoid a default definition based onSPL_BSS_START_ADDR.It is likely these complex conditions have overplayed its need now that most AArch64 targets have been migrated to use these defaults.
Quoted 8 lines
On the other hand, I've just noticed that the value is the same in the three
SPL_BSS_MAX_SIZEdefault statements, so it would probably be even clearer to have something like (not tested yet):config
SPL_BSS_MAX_SIZEdefault 0x8000 if SPL_BSS_LIMIT
Quoted 7 lines
Quoted 1 line
What do you think? Thanks for your revision.
Please check current values used for
ARCH_ROCKCHIPboards using theqconfig.pytool. If all boards use this value, we can likely just move this default to normal "configSPL_BSS_MAX_SIZE" in common/spl/Kconfig.default 0x8000 if ARCH_ROCKCHIP
I will check. Thanks for your time in reviewing my patch.
Regards,
Massimo
Quoted 18 lines
One goal should be to continue migrate as many boards/SoCs to use the common bss and stack addresses. It should mostly be older ARMv7 SoCs that I do not have access to that never have been migrated. I do have access to rk322x boxes, and have some early work for that SoC, but too much other work to try and upstream before circling back to rk322x :-)
Regards,
JonasQuoted 7 lines
Regards,
MassimoQuoted 3 lines
Regards,
Jonas
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Jonas,
Il giorno mer 14 ott 2026 alle ore 20:25 Massimo Pegorer ha scritto:
Quoted 89 lines
Hi Jonas,
Il giorno mar 13 ott 2026 alle ore 23:01 Jonas Karlman <[email protected]> ha scritto:
Quoted 85 lines
Hi Massimo,
Quoted 45 lines · Massimo Pegorer
Hi Jonas,
Il giorno dom 4 ott 2026 alle ore 20:54 Jonas Karlman <[email protected]> ha scritto:
Quoted 41 lines
Hi Massimo,
Quoted 17 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +0
-0arch/arm/mach-rockchip/Kconfig config SPL_HAS_BSS_LINKER_SECTION · line 839
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +1
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTIONThis change is causing make to prompt for
SPL_BSS_MAX_SIZEwhen building e.g. tinker-s-rk3288_defconfig.Maximum size in memory allocated to the SPL BSS (
SPL_BSS_MAX_SIZE) [] (NEW)Quoted 9 lines
arch/arm/mach-rockchip/Kconfig +1
-0default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000Quoted 6 lines
Quoted 3 lines
Possible adding something like following?
default 0x8000 if !SPL_HAS_BSS_LINKER_SECTIONWhat about selecting
SPL_BSS_MAX_SIZEdefault based onSPL_TEXT_BASEinstead ofSPL_BSS_START_ADDR?Unsure, the original intent of the
BSS_START_ADDRdependency was to only affect boards that had transitioned to use the common bss and stack addresses introduced in the commit008ba0d56d00("rockchip: Add common default bss and stack addresses").Not fully sure about current migration state for AArch64 targets, I do not have any rk3368 boards so never tried to migrate targets for that SoC to use these common addresses. Most/all other AArch64 targets should now use these defaults so it is likely these checks can be simplified.
Quoted 5 lines
This seems to me more straightforward. As this configuration states, there are cases where
SPL_HAS_BSS_LINKER_SECTION(and thusSPL_BSS_START_ADDR) is not needed, butSPL_BSS_MAX_SIZEis. Therefore, I would avoid a default definition based onSPL_BSS_START_ADDR.It is likely these complex conditions have overplayed its need now that most AArch64 targets have been migrated to use these defaults.
Quoted 9 lines
On the other hand, I've just noticed that the value is the same in the three
SPL_BSS_MAX_SIZEdefault statements, so it would probably be even clearer to have something like (not tested yet):config
SPL_BSS_MAX_SIZEdefault 0x8000 if SPL_BSS_LIMITWhat do you think? Thanks for your revision.
Quoted 7 lines
Quoted 5 lines
Please check current values used for
ARCH_ROCKCHIPboards using theqconfig.pytool. If all boards use this value, we can likely just move this default to normal "configSPL_BSS_MAX_SIZE" in common/spl/Kconfig.default 0x8000 if ARCH_ROCKCHIPI will check. Thanks for your time in reviewing my patch.
I've checked and there are 134 configurations with ARCH_ROCKCHIP and SPL_BSS_MAX_SIZE both defined. Of these, 133 have 0x8000 as the SPL_BSS_MAX_SIZE option value. Only one is using a different value:
the evb-px5, which has 0x20000 specified in its defconfig. This is the current situation on both main and next branches.
Do you see any problem with adding to common/spl/Kconfig:
default 0x8000 if ARCH_ROCKCHIP
as you suggested?
In the case of the evb-px5, the value specified in the defconfig will override the default driven by ARCH_ROCKCHIP, with no changes.
Regards,
Massimo
Quoted 22 lines
Regards,
MassimoQuoted 18 lines
One goal should be to continue migrate as many boards/SoCs to use the common bss and stack addresses. It should mostly be older ARMv7 SoCs that I do not have access to that never have been migrated. I do have access to rk322x boxes, and have some early work for that SoC, but too much other work to try and upstream before circling back to rk322x :-)
Regards,
JonasQuoted 7 lines
Regards,
MassimoQuoted 3 lines
Regards,
Jonas
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
In reply to Massimo PegorerHi Massimo,
Quoted 7 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.
I'm sorry, I don't understand the issue. Can you clarify or provide a way to reproduce the issue? Multiple definitions of the same Kconfig symbol are "combined" as far as I know so this shouldn't be an issue.
Cheers,
Quentin
Quoted 24 lines
Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +2
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTION default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Quentin,
Il giorno mer 14 ott 2026 alle ore 18:25 Quentin Schulz <[email protected]> ha scritto:
Quoted 12 lines
Hi Massimo,
Quoted 7 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.
Quoted 3 lines
I'm sorry, I don't understand the issue. Can you clarify or provide a way to reproduce the issue? Multiple definitions of the same
Kconfigsymbol are "combined" as far as I know so this shouldn't be an issue.
The reasoning is almost the same I've tried to explain in [1]. Sorry if it sounds like ancillary changes. But in this way qconfig tool is more effective and helpful.
Thanks.
Massimo
[1] https://lore.kernel.org/all/CAC928HYUq6rijik177mTxMt7Khu8QBwywrt2H2f6CX8z1r0aVQ@mail.gmail.com/
Quoted 29 lines
Cheers,
QuentinQuoted 24 lines
Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 ++ 1 file changed, 2 insertions(+)arch/arm/mach-rockchip/Kconfig +2
-0@@ -836,11 +836,13 @@ config SPL_HAS_BSS_LINKER_SECTION default y if ARM64 config SPL_BSS_START_ADDR + depends on SPL_HAS_BSS_LINKER_SECTION default 0x63f80000 if SPL_TEXT_BASE = 0x60000000 default 0x43f80000 if SPL_TEXT_BASE = 0x40000000 default 0x03f80000 if SPL_TEXT_BASE = 0x00000000 config SPL_BSS_MAX_SIZE + depends on SPL_BSS_LIMIT default 0x8000 if SPL_BSS_START_ADDR = 0x63f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x43f80000 default 0x8000 if SPL_BSS_START_ADDR = 0x03f80000
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi Massimo,
Quoted 16 lines · Massimo Pegorer
Hi Quentin,
Il giorno mer 14 ott 2026 alle ore 18:25 Quentin Schulz <[email protected]> ha scritto:
Quoted 12 lines
Hi Massimo,
Quoted 7 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.
Quoted 8 lines
Quoted 3 lines
I'm sorry, I don't understand the issue. Can you clarify or provide a way to reproduce the issue? Multiple definitions of the same
Kconfigsymbol are "combined" as far as I know so this shouldn't be an issue.The reasoning is almost the same I've tried to explain in [1]. Sorry if it sounds like ancillary changes. But in this way qconfig tool is more effective and helpful.
OK, so I *really* do not want to start doing this, especially if we don't have anything to make sure we don't do the same "mistake" again in the future. I'm sure there are *tons* of other symbols with a similar issue. I was under the impression that Kconfig would simply merge symbols of the same name, but this behavior seems to indicate there's some additional gotchas (or bugs). It'd be nice to know if upstream Linux suffers from the same issue or not. If not, then it's likely because we are far behind Linux for the Kconfig we use. If it is, then maybe it's a bug the Linux kernel isn't aware of and we/they should fix, or the documentation isn't clear enough on how we can specify additional information by "redefining" the symbol.
There could be some issue depending on the parsing order for the symbols, I think there's an importance for which symbol gets parsed first before it is "redefined".
Can you try to reproduce with the Linux kernel? Does anyone have an idea on how to tackle this issue maybe?
Cheers,
Quentin
Re: [PATCH 3/4] arm: rockchip: Avoid BSS SPL config options when unneeded
Hi,
Il giorno ven 16 ott 2026 alle ore 10:00 Quentin Schulz <[email protected]> ha scritto:
Quoted 41 lines
Hi Massimo,
Quoted 16 lines · Massimo Pegorer
Hi Quentin,
Il giorno mer 14 ott 2026 alle ore 18:25 Quentin Schulz <[email protected]> ha scritto:
Quoted 12 lines
Hi Massimo,
Quoted 7 lines · Massimo Pegorer
The configuration options
SPL_BSS_START_ADDRandSPL_BSS_MAX_SIZEare guarded bySPL_HAS_BSS_LINKER_SECTIONandSPL_BSS_LIMIToptions in the common/spl/Kconfig file where they are originally defined. Addition of a second config statement without 'depends on' guard causes these two options to be put in the configuration even when the guard is not selected, which is unneeded and sounds wrong.Quoted 8 lines
Quoted 3 lines
I'm sorry, I don't understand the issue. Can you clarify or provide a way to reproduce the issue? Multiple definitions of the same
Kconfigsymbol are "combined" as far as I know so this shouldn't be an issue.The reasoning is almost the same I've tried to explain in [1]. Sorry if it sounds like ancillary changes. But in this way qconfig tool is more effective and helpful.
OK, so I *really* do not want to start doing this, especially if we don't have anything to make sure we don't do the same "mistake" again in the future. I'm sure there are *tons* of other symbols with a similar issue. I was under the impression that
Kconfigwould simply merge symbols of the same name, but this behavior seems to indicate there's some additional gotchas (or bugs). It'd be nice to know if upstream Linux suffers from the same issue or not. If not, then it's likely because we are far behind Linux for theKconfigwe use. If it is, then maybe it's a bug the Linux kernel isn't aware of and we/they should fix, or the documentation isn't clear enough on how we can specify additional information by "redefining" the symbol.
Quoted 6 lines
There could be some issue depending on the parsing order for the symbols, I think there's an importance for which symbol gets parsed first before it is "redefined".
Can you try to reproduce with the Linux kernel? Does anyone have an idea on how to tackle this issue maybe?
My two cents: I think this is quite intrinsic to the flexibility of Kconfig
language: IMO, it is a powerful language, but not strict enough to avoid headaches and not-so-expected results sometimes. As stated in [1]:
"A config option can be defined multiple times with the same name, but every definition can have only a single input prompt and the type must not conflict."
Therefore, there is nothing special in the first definition, compared to the next ones, except for the config option type initialization. With or without an input prompt. On the other hand, regarding the if/endif sections, [2] states that "the dependency expression of the if statement is appended to all enclosed menu entries". In other words, it is exactly like having a "depends on TPL" attribute under each of the config options in the if/endif TPL section.
Having a single definition of each config option can help, but with some trade-offs, as you have already outlined. I remember an email from Tom about this point but I can no longer find it. Moreover, each reverse dependency, e.g. "select FOO" lines, can break the game [3]: "select should be used with care. select will force a symbol to a value without visiting the dependencies. By abusing select you are able to select a symbol FOO even if FOO depends on BAR that is not set." And "imply FOO" lines, in some ways, too.
[1] https://docs.kernel.org/kbuild/kconfig-language.html#menu-entries
[2] https://docs.kernel.org/kbuild/kconfig-language.html#kconfig-syntax
[3] https://docs.kernel.org/kbuild/kconfig-language.html#menu-attributes
To make the game even more puzzling, note that there are several nuances of
dependency: we can build and run with TPL_LDSCRIPT and without TPL, therefore someone may be wonder why TPL_LDSCRIPT should depend on TPL. There are build time dependencies, run time ones, and logical ones (this is our case, here), and just one way to convey all of them at configuration level.
If I am wrong, I would be happy to learn something new, of course.
That said, I do not understand what exactly it is that you *really* do not want to start doing.
Regards,
Massimo
Quoted 3 lines
Cheers,
Quentin
PATCH 4/4 arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check
In reply to Massimo PegorerThe ROCKCHIP_COMMON_STACK_ADDR configuration option depends on SPL_SHARES_INIT_SP_ADDR, therefore the logical AND of the two options values is equal to the to value of ROCKCHIP_COMMON_STACK_ADDR.
--- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-rockchip/Kconfig +1 -1
@@ -798,7 +798,7 @@ source "arch/arm/mach-rockchip/rk3588/Kconfig" source "arch/arm/mach-rockchip/rv1108/Kconfig" source "arch/arm/mach-rockchip/rv1126/Kconfig" -if ROCKCHIP_COMMON_STACK_ADDR && SPL_SHARES_INIT_SP_ADDR +if ROCKCHIP_COMMON_STACK_ADDR config CUSTOM_SYS_INIT_SP_ADDR default 0x63f00000 if SPL_TEXT_BASE = 0x60000000
Signature · 1 line
2.34.1
Re: [PATCH 4/4] arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check
Hi Massimo,
Please use more neutral wording than 'useless' in subject and messages, e.g. unneeded or unnecessary.
Quoted 14 lines · Massimo Pegorer
The
ROCKCHIP_COMMON_STACK_ADDRconfiguration option depends onSPL_SHARES_INIT_SP_ADDR, therefore the logical AND of the two options values is equal to the to value ofROCKCHIP_COMMON_STACK_ADDR.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-rockchip/Kconfig +0
-0
arch/arm/mach-rockchip/Kconfig source "arch/arm/mach-rockchip/rk3588/Kconfig" · line 801
Quoted 5 lines
arch/arm/mach-rockchip/Kconfig +1
-1@@ -798,7 +798,7 @@ source "arch/arm/mach-rockchip/rk3588/Kconfig" source "arch/arm/mach-rockchip/rv1108/Kconfig" source "arch/arm/mach-rockchip/rv1126/Kconfig" -if ROCKCHIP_COMMON_STACK_ADDR && SPL_SHARES_INIT_SP_ADDR +if ROCKCHIP_COMMON_STACK_ADDR
I am pretty sure this was needed with the older Kconfig, however I was not able to reproduce such issue, also possible the 'depends on' was missing during early work on this.
With rewording this is:
Regards,
Jonas
Quoted 4 lines
arch/arm/mach-rockchip/Kconfig +0
-0config CUSTOM_SYS_INIT_SP_ADDR default 0x63f00000 if SPL_TEXT_BASE = 0x60000000
Re: [PATCH 4/4] arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check
Hi Jonas,
Il giorno dom 4 ott 2026 alle ore 20:40 Jonas Karlman <[email protected]> ha scritto:
Quoted 5 lines
Hi Massimo,
Please use more neutral wording than 'useless' in subject and messages, e.g. unneeded or unnecessary.
Sure! I will reword in v2.
Sorry, but my limited fluency in English makes me numb to such semantic and usage nuances. Any suggestions and lessons are really appreciated. Thanks.
Quoted 19 lines · Massimo Pegorer
Quoted 17 lines
The
ROCKCHIP_COMMON_STACK_ADDRconfiguration option depends onSPL_SHARES_INIT_SP_ADDR, therefore the logical AND of the two options values is equal to the to value ofROCKCHIP_COMMON_STACK_ADDR.Signed-off-by Massimo Pegorer <[email protected]>--- arch/arm/mach-rockchip/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)arch/arm/mach-rockchip/Kconfig +0
-0@@ -798,7 +798,7 @@ source "arch/arm/mach-rockchip/rk3588/Kconfig" source "arch/arm/mach-rockchip/rv1108/Kconfig" source "arch/arm/mach-rockchip/rv1126/Kconfig"
Quoted 6 lines
arch/arm/mach-rockchip/Kconfig source "arch/arm/mach-rockchip/rk3588/Kconfig" · line 801
Quoted 2 lines
arch/arm/mach-rockchip/Kconfig +1
-1-if ROCKCHIP_COMMON_STACK_ADDR && SPL_SHARES_INIT_SP_ADDR +if ROCKCHIP_COMMON_STACK_ADDRI am pretty sure this was needed with the older
Kconfig, however I was not able to reproduce such issue, also possible the 'depends on' was missing during early work on this.
It is quite common for something to be needed in a context, but later on, when the context changes, something that was needed can become unnecessary. And in many cases, it is really difficult to catch it at that moment because it does not break anything, it is just redundant. I've stumbled upon it by accident, reasoning about the linker scripts' logic and implications.
Thanks for your review!
Regards,
Massimo
Quoted 13 lines
With rewording this is:
Reviewed-by Jonas Karlman <[email protected]>Regards,
JonasQuoted 4 lines
arch/arm/mach-rockchip/Kconfig +0
-0config CUSTOM_SYS_INIT_SP_ADDR default 0x63f00000 if SPL_TEXT_BASE = 0x60000000
Re: [PATCH 4/4] arm: rockchip: Remove useless SPL_SHARES_INIT_SP_ADDR check
In reply to Massimo PegorerHi Massimo,
Quoted 4 lines · Massimo Pegorer
The
ROCKCHIP_COMMON_STACK_ADDRconfiguration option depends onSPL_SHARES_INIT_SP_ADDR, therefore the logical AND of the two options values is equal to the to value ofROCKCHIP_COMMON_STACK_ADDR.
Thanks!
Quentin