Skip to contentSkip to conversation

ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

PATCH New Stephen Warren 3 participants 15 messages Dec 20, 2017 – Jan 9, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

From: Stephen Warren <[email protected]>

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
 arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
arch/arm/dts/tegra-u-boot.dtsi +9 -6
index cde591c5fca4..4f692ee97572 100644
@@ -1,5 +1,11 @@
 #include <config.h>
 
+#ifdef CONFIG_SPL_TEXT_BASE
+#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE - CONFIG_SPL_TEXT_BASE)
+#else
+#define U_BOOT_OFFSET 0
+#endif
+
 / {
 	binman {
 		multiple-images;
@@ -9,8 +15,7 @@
 			u-boot-spl {
 			};
 			u-boot {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 
@@ -21,8 +26,7 @@
 			u-boot-spl {
 			};
 			u-boot {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 
@@ -32,8 +36,7 @@
 			u-boot-spl {
 			};
 			u-boot-nodtb {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 	};
Signature · 1 line
2.15.1
#1 lore raw

PATCH 2/4 ARM: tegra: remove SPL config for non-SPL SoCs

From: Stephen Warren <[email protected]>

No 64-bit Tegra uses SPL. Remove various unused definitions from config headers.

---
 include/configs/tegra-common.h    | 2 ++
 include/configs/tegra186-common.h | 5 -----
 include/configs/tegra210-common.h | 5 -----
 3 files changed, 2 insertions(+), 10 deletions(-)
include/configs/tegra-common.h +2 -0
index 3cdd9741b241..75e36c0b759d 100644
@@ -84,11 +84,13 @@
 						CONFIG_SYS_INIT_RAM_SIZE - \
 						GENERATED_GBL_DATA_SIZE)
 
+#ifndef CONFIG_ARM64
 /* Defines for SPL */
 #define CONFIG_SPL_FRAMEWORK
 #define CONFIG_SPL_MAX_FOOTPRINT	(CONFIG_SYS_TEXT_BASE - \
 						CONFIG_SPL_TEXT_BASE)
 #define CONFIG_SYS_SPL_MALLOC_SIZE	0x00010000
+#endif
 
 /* Misc utility code */
 #define CONFIG_BOUNCE_BUFFER
include/configs/tegra186-common.h +0 -5
index 98e4fc2d252b..495d18555f3f 100644
@@ -60,9 +60,4 @@
 	"fdt_addr_r=0x82000000\0" \
 	"ramdisk_addr_r=0x82100000\0"
 
-/* Defines for SPL */
-#define CONFIG_SPL_TEXT_BASE		0x80108000
-#define CONFIG_SYS_SPL_MALLOC_START	0x80090000
-#define CONFIG_SPL_STACK		0x800ffffc
-
 #endif
include/configs/tegra210-common.h +0 -5
index 4c05576a909e..93c9455e8ff3 100644
@@ -60,11 +60,6 @@
 	"fdt_addr_r=0x82000000\0" \
 	"ramdisk_addr_r=0x82100000\0"
 
-/* Defines for SPL */
-#define CONFIG_SPL_TEXT_BASE		0x80108000
-#define CONFIG_SYS_SPL_MALLOC_START	0x80090000
-#define CONFIG_SPL_STACK		0x800ffffc
-
 /* For USB EHCI controller */
 #define CONFIG_EHCI_IS_TDI
 #define CONFIG_USB_EHCI_TXFIFO_THRESH	0x10
Signature · 1 line
2.15.1
#2 lore raw

PATCH 2/4 ARM: tegra: remove SPL config for non-SPL SoCs

Quoted 11 lines · Stephen Warren

From: Stephen Warren <[email protected]>

No 64-bit Tegra uses SPL. Remove various unused definitions from config headers.

---
 include/configs/tegra-common.h    | 2 ++
 include/configs/tegra186-common.h | 5 -----
 include/configs/tegra210-common.h | 5 -----
 3 files changed, 2 insertions(+), 10 deletions(-)
#3 lore raw

PATCH 3/4 ARMv8: Allow dynamic early stack pointer

In reply to Stephen Warren

From: Stephen Warren <[email protected]>

U-Boot typically uses a hard-coded value for the stack pointer before relocation. Implement option SYS_INIT_SP_BSS_OFFSET to instead calculate the initial SP at run-time. This is useful to avoid hard-coding addresses into U-Boot, so that can be loaded and executed at arbitrary addresses and thus avoid using arbitrary addresses at runtime. This option's value is the offset added to &_bss_start in order to calculate the stack pointer. This offset should be large enough so that the early malloc region, global data (gd), and early stack usage do not overlap any appended DTB.

---
 arch/arm/Kconfig       | 13 +++++++++++++
 arch/arm/lib/crt0_64.S |  3 +++
 2 files changed, 16 insertions(+)
arch/arm/Kconfig +13 -0
index f2c35e32c649..93b93c142929 100644
@@ -19,6 +19,19 @@ config POSITION_INDEPENDENT
 	  from almost any address. This logic relies on the relocation
 	  information that is embedded into the binary to support U-Boot
 	  relocating itself to the top-of-RAM later during execution.
+
+config SYS_INIT_SP_BSS_OFFSET
+	int
+	help
+	  U-Boot typically uses a hard-coded value for the stack pointer
+	  before relocation. Define this option to instead calculate the
+	  initial SP at run-time. This is useful to avoid hard-coding addresses
+	  into U-Boot, so that can be loaded and executed at arbitrary
+	  addresses and thus avoid using arbitrary addresses at runtime. This
+	  option's value is the offset added to &_bss_start in order to
+	  calculate the stack pointer. This offset should be large enough so
+	  that the early malloc region, global data (gd), and early stack usage
+	  do not overlap any appended DTB.
 endif
 
 config STATIC_RELA
arch/arm/lib/crt0_64.S +3 -0
index 9cb70552feda..a181283e0fa9 100644
@@ -73,6 +73,9 @@ ENTRY(_main)
 	ldr	x0, =(CONFIG_TPL_STACK)
 #elif defined(CONFIG_SPL_BUILD) && defined(CONFIG_SPL_STACK)
 	ldr	x0, =(CONFIG_SPL_STACK)
+#elif defined(CONFIG_SYS_INIT_SP_BSS_OFFSET)
+	adr	x0, __bss_start
+	add	x0, x0, #CONFIG_SYS_INIT_SP_BSS_OFFSET
 #else
 	ldr	x0, =(CONFIG_SYS_INIT_SP_ADDR)
 #endif
Signature · 1 line
2.15.1
#4 lore raw

PATCH 3/4 ARMv8: Allow dynamic early stack pointer

Hi Stephen,

Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

U-Boot typically uses a hard-coded value for the stack pointer before relocation. Implement option SYS_INIT_SP_BSS_OFFSET to instead calculate the initial SP at run-time. This is useful to avoid hard-coding addresses into U-Boot, so that can be loaded and executed at arbitrary addresses and thus avoid using arbitrary addresses at runtime. This option's value is the offset added to &_bss_start in order to calculate the stack pointer. This offset should be large enough so that the early malloc region, global data (gd), and early stack usage do not overlap any appended DTB.

I don't see why this is an offset from bss_start - shouldn't it be bss_end?

Also this seems error-prone since we don't know how large the DTB is. Can we improve this, e.g. by:

- using binman to provide the stack start value or offset
- checking the DTB size and automatically using the address immediately after it finishes (again I suppose binman could provide that)

Regards,
Simon

#5 lore raw

PATCH 3/4 ARMv8: Allow dynamic early stack pointer

Quoted 14 lines · Simon Glass

Hi Stephen,

Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

U-Boot typically uses a hard-coded value for the stack pointer before relocation. Implement option SYS_INIT_SP_BSS_OFFSET to instead calculate the initial SP at run-time. This is useful to avoid hard-coding addresses into U-Boot, so that can be loaded and executed at arbitrary addresses and thus avoid using arbitrary addresses at runtime. This option's value is the offset added to &_bss_start in order to calculate the stack pointer. This offset should be large enough so that the early malloc region, global data (gd), and early stack usage do not overlap any appended DTB.

Quoted 1 line

I don't see why this is an offset from bss_start - shouldn't it be bss_end?

BSS can vary in size based on the set of config options enabled, code growth/shrinkage, etc. Thus, basing the initial SP address on bss_end would provide too much variability, and hence would be unsafe, whereas basing the initial SP address on bss_start always provides the exact same amount of available stack space (assuming an identical DTB for the comparison).

Quoted 4 lines

Also this seems error-prone since we don't know how large the DTB is. Can we improve this, e.g. by:

- using binman to provide the stack start value or offset

I'd rather not involve binman in the code generation process. Packaging is fine, but I think the source code and makefiles should dictate everything that goes into the actual binary to keep things simple.

I did originally think about having binman patch up the init SP address, but rejected it due to the complexity added by the extra step, and the fact that we'd be inventing a new tool (the new part of binman implemented for this feature) to do what we already have a perfectly good tool for already; the linker. I'm also looking to backport this change to an older branch of U-Boot that doesn't have binman, although I believe I'd have the same thought process either way.

Quoted 3 lines

- checking the DTB size and automatically using the address immediately after it finishes (again I suppose binman could provide that)

Perhaps we can add an extra step in binman that validates the build; i.e. that (SYS_INIT_SP_BSS_OFFSET - size_of_dtb) > some_minimum_stack_size. That would be a useful error check, but prevent binman having to edit parts of the binary that were already created by the main build process. Note that for a given build, it should be completely deterministic whether DTB corruption occurs, and whether that corruption actually impacts U-Boot's operation, so any such check would be pretty much equivalent to just running U-Boot and seeing if it works. Admittedly the check might save some annoying debugging though, so would be a good idea.

#6 lore raw

PATCH 3/4 ARMv8: Allow dynamic early stack pointer

Hi Stephen,

Quoted 19 lines · Stephen Warren
Quoted 17 lines · Simon Glass

Hi Stephen,

Quoted 11 lines · Stephen Warren

From: Stephen Warren <[email protected]>

U-Boot typically uses a hard-coded value for the stack pointer before relocation. Implement option SYS_INIT_SP_BSS_OFFSET to instead calculate the initial SP at run-time. This is useful to avoid hard-coding addresses into U-Boot, so that can be loaded and executed at arbitrary addresses and thus avoid using arbitrary addresses at runtime. This option's value is the offset added to &_bss_start in order to calculate the stack pointer. This offset should be large enough so that the early malloc region, global data (gd), and early stack usage do not overlap any appended DTB.

Quoted 4 lines
Quoted 1 line

I don't see why this is an offset from bss_start - shouldn't it be bss_end?

BSS can vary in size based on the set of config options enabled, code growth/shrinkage, etc. Thus, basing the initial SP address on bss_end would provide too much variability, and hence would be unsafe, whereas basing the initial SP address on bss_start always provides the exact same amount of available stack space (assuming an identical DTB for the comparison).

OK. I suppose we are no worse off anyway, since the DTB can vary in size.

Quoted 11 lines
Quoted 5 lines

Also this seems error-prone since we don't know how large the DTB is. Can we improve this, e.g. by:

- using binman to provide the stack start value or offset

I'd rather not involve binman in the code generation process. Packaging is fine, but I think the source code and makefiles should dictate everything that goes into the actual binary to keep things simple.

I did originally think about having binman patch up the init SP address, but rejected it due to the complexity added by the extra step, and the fact that we'd be inventing a new tool (the new part of binman implemented for this feature) to do what we already have a perfectly good tool for already; the linker. I'm also looking to backport this change to an older branch of U-Boot that doesn't have binman, although I believe I'd have the same thought process either way.

There is actually a feature for this, or something similar:

http://git.denx.de/?p=u-boot.git;a=blob;f=tools/binman/README;h=08c3e56bdef8d3ee47ac2ec86411465a78dbf567;hb=HEAD#l476

Quoted 6 lines
Quoted 3 lines

- checking the DTB size and automatically using the address immediately after it finishes (again I suppose binman could provide that)

Perhaps we can add an extra step in binman that validates the build; i.e. that (SYS_INIT_SP_BSS_OFFSET - size_of_dtb) > some_minimum_stack_size. That would be a useful error check, but prevent binman having to edit parts of the binary that were already created by the main build process. Note that for a given build, it should be completely deterministic whether DTB corruption occurs, and whether that corruption actually impacts U-Boot's operation, so any such check would be pretty much equivalent to just running U-Boot and seeing if it works. Admittedly the check might save some annoying debugging though, so would be a good idea.

Sounds good. It could even be done in Makefile - we have a few checks that that at present. But if binman is a better place, that is fine.

Regards,
Simon

#7 lore raw

PATCH 3/4 ARMv8: Allow dynamic early stack pointer

Quoted 22 lines · Simon Glass

Hi Stephen,

Quoted 19 lines · Stephen Warren
Quoted 17 lines · Simon Glass

Hi Stephen,

Quoted 11 lines · Stephen Warren

From: Stephen Warren <[email protected]>

U-Boot typically uses a hard-coded value for the stack pointer before relocation. Implement option SYS_INIT_SP_BSS_OFFSET to instead calculate the initial SP at run-time. This is useful to avoid hard-coding addresses into U-Boot, so that can be loaded and executed at arbitrary addresses and thus avoid using arbitrary addresses at runtime. This option's value is the offset added to &_bss_start in order to calculate the stack pointer. This offset should be large enough so that the early malloc region, global data (gd), and early stack usage do not overlap any appended DTB.

Quoted 6 lines
Quoted 4 lines
Quoted 1 line

I don't see why this is an offset from bss_start - shouldn't it be bss_end?

BSS can vary in size based on the set of config options enabled, code growth/shrinkage, etc. Thus, basing the initial SP address on bss_end would provide too much variability, and hence would be unsafe, whereas basing the initial SP address on bss_start always provides the exact same amount of available stack space (assuming an identical DTB for the comparison).

OK. I suppose we are no worse off anyway, since the DTB can vary in size.

I've sent a patch to check for overflow.

#8 lore raw

PATCH 4/4 ARM: tegra: use CONFIG_SYS_INIT_SP_BSS_OFFSET

In reply to Stephen Warren

From: Stephen Warren <[email protected]>

Enable CONFIG_SYS_INIT_SP_BSS_OFFSET for all 64-bit Tegra boards. Place the stack/... 512KiB from the end of the U-Boot binary. This should be plenty to accommodate the current DTBs (max 64 KiB), early malloc region (6KiB), stack usage, and plenty of slack, while still not placing it too far away from the U-Boot binary.

---
 arch/arm/mach-tegra/tegra186/Kconfig | 3 +++
 arch/arm/mach-tegra/tegra210/Kconfig | 3 +++
 include/configs/tegra-common.h       | 2 ++
 include/configs/tegra186-common.h    | 5 -----
 include/configs/tegra210-common.h    | 5 -----
 5 files changed, 8 insertions(+), 10 deletions(-)
arch/arm/mach-tegra/tegra186/Kconfig +3 -0
index b2e53b58caf8..479c0955eec6 100644
@@ -21,6 +21,9 @@ endchoice
 config SYS_SOC
 	default "tegra186"
 
+config SYS_INIT_SP_BSS_OFFSET
+	default 524288
+
 source "board/nvidia/p2771-0000/Kconfig"
 
 endif
arch/arm/mach-tegra/tegra210/Kconfig +3 -0
index 3637473051b8..250738aed312 100644
@@ -40,6 +40,9 @@ endchoice
 config SYS_SOC
 	default "tegra210"
 
+config SYS_INIT_SP_BSS_OFFSET
+	default 524288
+
 source "board/nvidia/e2220-1170/Kconfig"
 source "board/nvidia/p2371-0000/Kconfig"
 source "board/nvidia/p2371-2180/Kconfig"
include/configs/tegra-common.h +2 -0
index 75e36c0b759d..2d98a6fa64a7 100644
@@ -78,11 +78,13 @@
 
 #define CONFIG_SYS_BOOTMAPSZ	(256 << 20)	/* 256M */
 
+#ifndef CONFIG_ARM64
 #define CONFIG_SYS_INIT_RAM_ADDR	CONFIG_STACKBASE
 #define CONFIG_SYS_INIT_RAM_SIZE	CONFIG_SYS_MALLOC_LEN
 #define CONFIG_SYS_INIT_SP_ADDR		(CONFIG_SYS_INIT_RAM_ADDR + \
 						CONFIG_SYS_INIT_RAM_SIZE - \
 						GENERATED_GBL_DATA_SIZE)
+#endif
 
 #ifndef CONFIG_ARM64
 /* Defines for SPL */
include/configs/tegra186-common.h +0 -5
index 495d18555f3f..1c8772a117e4 100644
@@ -14,11 +14,6 @@
  */
 #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */
 
-/*
- * Miscellaneous configurable options
- */
-#define CONFIG_STACKBASE	0x82800000	/* 40MB */
-
 /*-----------------------------------------------------------------------
  * Physical Memory Map
  */
include/configs/tegra210-common.h +0 -5
index 93c9455e8ff3..35735f3b78e4 100644
@@ -15,11 +15,6 @@
  */
 #define V_NS16550_CLK		408000000	/* 408MHz (pllp_out0) */
 
-/*
- * Miscellaneous configurable options
- */
-#define CONFIG_STACKBASE	0x82800000	/* 40MB */
-
 /*-----------------------------------------------------------------------
  * Physical Memory Map
  */
Signature · 1 line
2.15.1
#9 lore raw

PATCH 4/4 ARM: tegra: use CONFIG_SYS_INIT_SP_BSS_OFFSET

Quoted 8 lines · Stephen Warren

From: Stephen Warren <[email protected]>

Enable CONFIG_SYS_INIT_SP_BSS_OFFSET for all 64-bit Tegra boards. Place the stack/... 512KiB from the end of the U-Boot binary. This should be plenty to accommodate the current DTBs (max 64 KiB), early malloc region (6KiB), stack usage, and plenty of slack, while still not placing it too far away from the U-Boot binary.

Quoted 8 lines
---
 arch/arm/mach-tegra/tegra186/Kconfig | 3 +++
 arch/arm/mach-tegra/tegra210/Kconfig | 3 +++
 include/configs/tegra-common.h       | 2 ++
 include/configs/tegra186-common.h    | 5 -----
 include/configs/tegra210-common.h    | 5 -----
 5 files changed, 8 insertions(+), 10 deletions(-)
#10 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

In reply to Stephen Warren

Stephen,

Quoted 11 lines

-----Original Message-----
From: Stephen Warren [mailto:swarren at wwwdotorg.org]
Sent: Tuesday, December 19, 2017 6:31 PM
To: Tom Warren <[email protected]>
Cc: Simon Glass <[email protected]>; Tom Rini <[email protected]>; u- boot at lists.denx.de; Stephen Warren <[email protected]>
Subject: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

From: Stephen Warren <[email protected]>

Quoted 8 lines

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
 arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

This series: Reviewed-by: Tom Warren <[email protected]>

I'll wait a bit for other reviews & apply it to u-boot-tegra today or tomorrow.

Tom

Quoted 46 lines
arch/arm/dts/tegra-u-boot.dtsi +7 -7
index cde591c5fca4..4f692ee97572 100644
@@ -1,5 +1,11 @@
 #include <config.h>
 
+#ifdef CONFIG_SPL_TEXT_BASE
+#define U_BOOT_OFFSET (CONFIG_SYS_TEXT_BASE -
 CONFIG_SPL_TEXT_BASE)
+#else #define U_BOOT_OFFSET 0 #endif
+
 / {
 	binman {
 		multiple-images;
@@ -9,8 +15,7 @@
 			u-boot-spl {
 			};
 			u-boot {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 
@@ -21,8 +26,7 @@
 			u-boot-spl {
 			};
 			u-boot {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 
@@ -32,8 +36,7 @@
 			u-boot-spl {
 			};
 			u-boot-nodtb {
-				pos = <(CONFIG_SYS_TEXT_BASE -
-					CONFIG_SPL_TEXT_BASE)>;
+				pos = <(U_BOOT_OFFSET)>;
 			};
 		};
 	};
--
Quoted 1 line

2.15.1

--
nvpublic

#11 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

In reply to Stephen Warren
Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
 arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)
#12 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Stephen,

-----Original Message-----
From: [email protected] [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, December 28, 2017 8:14 PM
To: Stephen Warren <[email protected]>
Cc: Tom Warren <[email protected]>; Tom Rini <[email protected]>; U-Boot Mailing List <[email protected]>; Stephen Warren <[email protected]>
Subject: Re: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
 arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

I've applied this series to u-boot-tegra/master. I'll wait a bit to see how your new series (RAM bank/mem parsing) is received and then I'll apply it, too, and post a PR. I assume you expect the Linux kernel image header patches to go in thru TomR?

Tom
--
nvpublic

#13 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Quoted 21 lines · Tom Warren

Stephen,

-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, December 28, 2017 8:14 PM
To: Stephen Warren <[email protected]>
Cc: Tom Warren <[email protected]>; Tom Rini <[email protected]>; U-Boot Mailing List <[email protected]>; Stephen Warren <[email protected]>
Subject: Re: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
  arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
  1 file changed, 9 insertions(+), 6 deletions(-)
Quoted 4 lines

I've applied this series to u-boot-tegra/master. I'll wait a bit to see how your new series (RAM bank/mem parsing) is received and then I'll apply it, too, and post a PR. I assume you expect the Linux kernel image header patches to go in thru TomR?

I think it's best to push them all through the Tegra path, since there will be a stream of common and Tegra patches all intermixed.

#14 lore raw

PATCH 1/4 ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

-----Original Message-----
From: Stephen Warren [mailto:swarren at wwwdotorg.org]
Sent: Wednesday, January 3, 2018 3:44 PM
To: Tom Warren <[email protected]>
Cc: Simon Glass <[email protected]>; Tom Rini <[email protected]>; U-Boot Mailing List <[email protected]>; Stephen Warren <[email protected]>
Subject: Re: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Quoted 24 lines · Tom Warren

Stephen,

-----Original Message-----
From: sjg at google.com [mailto:sjg at google.com] On Behalf Of Simon Glass
Sent: Thursday, December 28, 2017 8:14 PM
To: Stephen Warren <[email protected]>
Cc: Tom Warren <[email protected]>; Tom Rini <[email protected]>; U-Boot Mailing List <[email protected]>; Stephen Warren <[email protected]>
Subject: Re: [PATCH 1/4] ARM: tegra: don't use CONFIG_SPL_TEXT_BASE when no SPL

Quoted 10 lines · Stephen Warren

From: Stephen Warren <[email protected]>

64-bit Tegra don't use SPL, and soon won't define CONFIG_SPL_TEXT_BASE when building. Fix the binman .dts file so that it doesn't use undefined values.

---
  arch/arm/dts/tegra-u-boot.dtsi | 15 +++++++++------
  1 file changed, 9 insertions(+), 6 deletions(-)
Quoted 4 lines

I've applied this series to u-boot-tegra/master. I'll wait a bit to see how your new series (RAM bank/mem parsing) is received and then I'll apply it, too, and post a PR. I assume you expect the Linux kernel image header patches to go in thru TomR?

I think it's best to push them all through the Tegra path, since there will be a stream of common and Tegra patches all intermixed. OK, I'll apply them as they get reviewed/ACK'd. Thanks.

-----------------------------------------------------------------------------------
This email message is for the sole use of the intended recipient(s) and may contain confidential information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
-----------------------------------------------------------------------------------