x86: minnowmax: Fix up adjustment of CONFIG_TEXT_BASE
PATCH v3 1/5 x86: minnowmax: Fix up adjustment of CONFIG_TEXT_BASE
With recent CONFIG_TEXT_BASE changes, there are inconsistencies between several settings.
Adjust CONFIG_SYS_MONITOR_LEN to allow more code space. Move the MRC cache out of the way too.
Add documentation on how to make this change safely.
---
Changes in v3:
- Squash commits
- Fix ordering of Environment in docs
- Fix value of CONFIG_TEXT_BASE in docs
- Change the commit message and subject
Changes in v2:
- Add new patch which boots while still enabling EFI_LOADER
arch/x86/dts/minnowmax.dts | 2 +- configs/minnowmax_defconfig | 1 + doc/board/intel/minnowmax.rst | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-)
arch/x86/dts/minnowmax.dts +1 -1
@@ -206,7 +206,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };
configs/minnowmax_defconfig +1 -0
@@ -18,6 +18,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
doc/board/intel/minnowmax.rst +13 -2
@@ -54,9 +54,9 @@ Offset Description Controlling config 000000 descriptor.bin Hard-coded to 0 in ifdtool 001000 me.bin Set by the descriptor 500000 <spare> +5f0000 MRC cache CONFIG_ENABLE_MRC_CACHE +600000 u-boot-dtb.bin CONFIG_TEXT_BASE 6ef000 Environment CONFIG_ENV_OFFSET -6f0000 MRC cache CONFIG_ENABLE_MRC_CACHE -700000 u-boot-dtb.bin CONFIG_TEXT_BASE 7b0000 vga.bin CONFIG_VGA_BIOS_ADDR 7c0000 fsp.bin CONFIG_FSP_ADDR 7f8000 <spare> (depends on size of fsp.bin)
@@ -68,3 +68,14 @@ Overall ROM image size is controlled by CONFIG_ROM_SIZE. Note that the debug version of the FSP is bigger in size. If this version is used, CONFIG_FSP_ADDR needs to be configured to 0xfffb0000 instead of the default value 0xfffc0000. + +If you want to change CONFIG_TEXT_BASE from the current value of ffe00000 +you need to check a few other things. CONFIG_SYS_MONITOR_BASE should +automatically update to be the same as CONFIG_TEXT_BASE but +CONFIG_SYS_MONITOR_LEN may need to be adjusted too. It must cover the space +from the start of U-Boot to the end of the RAM, since the 16-bit boot needs to +be able to jump to U-Boot. See the end of arch/x86/lib/fsp1/fsp_car.S which +has these values. + +Also check the MRC cache address in the devicetree ("rw-mrc-cache"). It must +not overlap with U-Boot.
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
PATCH v3 2/5 x86: bayleybay: Fix up adjustment of CONFIG_TEXT_BASE
With recent CONFIG_TEXT_BASE changes, there are inconsistencies between several settings.
Adjust CONFIG_SYS_MONITOR_LEN to allow more code space. Move the MRC cache out of the way too.
---
Changes in v3:
- Add new patch
arch/x86/dts/bayleybay.dts | 2 +- configs/bayleybay_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
arch/x86/dts/bayleybay.dts +1 -1
@@ -182,7 +182,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006e0000 0x00010000>; + reg = <0x005e0000 0x00010000>; }; }; };
configs/bayleybay_defconfig +1 -0
@@ -14,6 +14,7 @@ CONFIG_VGA_BIOS_ADDR=0xfffb0000 CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_BOOTSTAGE=y CONFIG_BOOTSTAGE_REPORT=y
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
Re: [PATCH v3 2/5] x86: bayleybay: Fix up adjustment of CONFIG_TEXT_BASE
Quoted 9 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes f38be308683 ("x86: bayleybay: Adjust CONFIG_TEXT_BASE")
Quoted 9 lines
---
Changes in v3:
- Add new patcharch/x86/dts/bayleybay.dts | 2 +- configs/bayleybay_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
PATCH v3 3/5 x86: conga-qeval20-qa3-e3845: Fix up adjustment of CONFIG_TEXT_BASE
In reply to Simon GlassWith recent CONFIG_TEXT_BASE changes, there are inconsistencies between several settings.
Adjust CONFIG_SYS_MONITOR_LEN to allow more code space. Move the MRC cache out of the way too.
---
Changes in v3:
- Add new patch
arch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- configs/conga-qeval20-qa3-e3845-internal-uart_defconfig | 1 + configs/conga-qeval20-qa3-e3845_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845_defconfig | 1 + 5 files changed, 5 insertions(+), 1 deletion(-)
arch/x86/dts/conga-qeval20-qa3-e3845.dts +1 -1
@@ -193,7 +193,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };
configs/conga-qeval20-qa3-e3845-internal-uart_defconfig +1 -0
@@ -18,6 +18,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
configs/conga-qeval20-qa3-e3845_defconfig +1 -0
@@ -14,6 +14,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig +1 -0
@@ -17,6 +17,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
configs/theadorable-x86-conga-qa3-e3845_defconfig +1 -0
@@ -16,6 +16,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
Re: [PATCH v3 3/5] x86: conga-qeval20-qa3-e3845: Fix up adjustment of CONFIG_TEXT_BASE
Quoted 14 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes 388f93f9635 ("x86: conga-qeval20-qa3-e3845: Adjust CONFIG_TEXT_BASE")---
Changes in v3:
- Add new patch
Quoted 7 lines
arch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- configs/conga-qeval20-qa3-e3845-internal-uart_defconfig | 1 + configs/conga-qeval20-qa3-e3845_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845_defconfig | 1 + 5 files changed, 5 insertions(+), 1 deletion(-)
Re: [PATCH v3 3/5] x86: conga-qeval20-qa3-e3845: Fix up adjustment of CONFIG_TEXT_BASE
In reply to Simon GlassQuoted 8 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes 388f93f9635 ("x86: conga-qeval20-qa3-e3845: Adjust CONFIG_TEXT_BASE")
Thanks,
Stefan
Quoted 66 lines
---
Changes in v3:
- Add new patcharch/x86/dts/conga-qeval20-qa3-e3845.dts | 2 +- configs/conga-qeval20-qa3-e3845-internal-uart_defconfig | 1 + configs/conga-qeval20-qa3-e3845_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig | 1 + configs/theadorable-x86-conga-qa3-e3845_defconfig | 1 + 5 files changed, 5 insertions(+), 1 deletion(-)arch/x86/dts/conga-qeval20-qa3-e3845.dts +1
-1@@ -193,7 +193,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };configs/conga-qeval20-qa3-e3845-internal-uart_defconfig +1
-0@@ -18,6 +18,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=yconfigs/conga-qeval20-qa3-e3845_defconfig +1
-0@@ -14,6 +14,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=yconfigs/theadorable-x86-conga-qa3-e3845-pcie-x4_defconfig +1
-0@@ -17,6 +17,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=yconfigs/theadorable-x86-conga-qa3-e3845_defconfig +0
-0
configs/theadorable-x86-conga-qa3-e3845_defconfig CONFIG_GENERATE_PIRQ_TABLE=y · line 22
Quoted 7 lines
configs/theadorable-x86-conga-qa3-e3845_defconfig +1
-0@@ -16,6 +16,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
PATCH v3 4/5 x86: dfi-bt700: Fix up adjustment of CONFIG_TEXT_BASE
In reply to Simon GlassWith recent CONFIG_TEXT_BASE changes, there are inconsistencies between several settings.
Adjust CONFIG_SYS_MONITOR_LEN to allow more code space. Move the MRC cache out of the way too.
---
Changes in v3:
- Add new patch
arch/x86/dts/dfi-bt700.dtsi | 2 +- configs/dfi-bt700-q7x-151_defconfig | 1 + configs/theadorable-x86-dfi-bt700_defconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
arch/x86/dts/dfi-bt700.dtsi +1 -1
@@ -204,7 +204,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };
configs/dfi-bt700-q7x-151_defconfig +1 -0
@@ -13,6 +13,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
configs/theadorable-x86-dfi-bt700_defconfig +1 -0
@@ -15,6 +15,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
Re: [PATCH v3 4/5] x86: dfi-bt700: Fix up adjustment of CONFIG_TEXT_BASE
Quoted 11 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes 5d1c8342aea ("x86: dfi-bt700: Adjust CONFIG_TEXT_BASE")---
Quoted 8 lines
Changes in v3:
- Add new patcharch/x86/dts/dfi-bt700.dtsi | 2 +- configs/dfi-bt700-q7x-151_defconfig | 1 + configs/theadorable-x86-dfi-bt700_defconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)
Re: [PATCH v3 4/5] x86: dfi-bt700: Fix up adjustment of CONFIG_TEXT_BASE
In reply to Simon GlassQuoted 8 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes 5d1c8342aea ("x86: dfi-bt700: Adjust CONFIG_TEXT_BASE")
Thanks,
Stefan
Quoted 40 lines
---
Changes in v3:
- Add new patcharch/x86/dts/dfi-bt700.dtsi | 2 +- configs/dfi-bt700-q7x-151_defconfig | 1 + configs/theadorable-x86-dfi-bt700_defconfig | 1 + 3 files changed, 3 insertions(+), 1 deletion(-)arch/x86/dts/dfi-bt700.dtsi +1
-1@@ -204,7 +204,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };configs/dfi-bt700-q7x-151_defconfig +1
-0@@ -13,6 +13,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=yconfigs/theadorable-x86-dfi-bt700_defconfig +0
-0
configs/theadorable-x86-dfi-bt700_defconfig CONFIG_GENERATE_PIRQ_TABLE=y · line 21
Quoted 7 lines
configs/theadorable-x86-dfi-bt700_defconfig +1
-0@@ -15,6 +15,7 @@ CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_HAVE_ACPI_RESUME=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
Viele Grüße,
Stefan Roese
Signature · 3 lines
DENX Software Engineering GmbH, Managing Director: Erika Unter HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-51 Fax: (+49)-8142-66989-80 Email: [email protected]
PATCH v3 5/5 x86: som-db5800-som-6867: Fix up adjustment of CONFIG_TEXT_BASE
In reply to Simon GlassWith recent CONFIG_TEXT_BASE changes, there are inconsistencies between several settings.
Adjust CONFIG_SYS_MONITOR_LEN to allow more code space. Move the MRC cache out of the way too.
---
Changes in v3:
- Add new patch
arch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 +- configs/som-db5800-som-6867_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
arch/x86/dts/baytrail_som-db5800-som-6867.dts +1 -1
@@ -206,7 +206,7 @@ memory-map = <0xff800000 0x00800000>; rw-mrc-cache { label = "rw-mrc-cache"; - reg = <0x006f0000 0x00010000>; + reg = <0x005f0000 0x00010000>; }; }; };
configs/som-db5800-som-6867_defconfig +1 -0
@@ -15,6 +15,7 @@ CONFIG_HAVE_VGA_BIOS=y CONFIG_GENERATE_PIRQ_TABLE=y CONFIG_GENERATE_MP_TABLE=y CONFIG_SEABIOS=y +CONFIG_SYS_MONITOR_LEN=2097152 CONFIG_FIT=y CONFIG_FIT_SIGNATURE=y CONFIG_BOOTSTAGE=y
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog
Re: [PATCH v3 5/5] x86: som-db5800-som-6867: Fix up adjustment of CONFIG_TEXT_BASE
Quoted 9 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Signed-off-by Simon Glass <[email protected]>Fixes e23cae30801 ("x86: som-db5800-som-6867: Adjust CONFIG_TEXT_BASE")
Quoted 9 lines
---
Changes in v3:
- Add new patcharch/x86/dts/baytrail_som-db5800-som-6867.dts | 2 +- configs/som-db5800-som-6867_defconfig | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
Quoted 19 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Add documentation on how to make this change safely.
Signed-off-by Simon Glass <[email protected]>Fixes 66e2c665f ("x86: minnowmax: Adjust CONFIG_TEXT_BASE")---
Changes in v3:
- Squash commits
- Fix ordering of Environment in docs
- Fix value ofCONFIG_TEXT_BASEin docs
- Change the commit message and subject
Quoted 8 lines
Changes in v2:
- Add new patch which boots while still enablingEFI_LOADERarch/x86/dts/minnowmax.dts | 2 +- configs/minnowmax_defconfig | 1 + doc/board/intel/minnowmax.rst | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-)
Quoted 24 lines · Bin Meng
Quoted 22 lines · Simon Glass
With recent
CONFIG_TEXT_BASEchanges, there are inconsistencies between several settings.Adjust
CONFIG_SYS_MONITOR_LENto allow more code space. Move the MRC cache out of the way too.Add documentation on how to make this change safely.
Signed-off-by Simon Glass <[email protected]>Fixes 66e2c665f ("x86: minnowmax: Adjust CONFIG_TEXT_BASE")---
Changes in v3:
- Squash commits
- Fix ordering of Environment in docs
- Fix value ofCONFIG_TEXT_BASEin docs
- Change the commit message and subjectChanges in v2:
- Add new patch which boots while still enablingEFI_LOADER
Quoted 7 lines
Quoted 5 lines
arch/x86/dts/minnowmax.dts | 2 +- configs/minnowmax_defconfig | 1 + doc/board/intel/minnowmax.rst | 15 +++++++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-)Reviewed-by Bin Meng <[email protected]>
series applied to u-boot-x86, thanks!