Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42886 )
Change subject: soc/amd/picasso: Move EARLY_RESERVED_DRAM_BASE to 0x100000
......................................................................
soc/amd/picasso: Move EARLY_RESERVED_DRAM_BASE to 0x100000
This places EARLY_RESERVED_DRAM_BASE right after the Option ROM. This
closes the ~31 MiB gap between the Option ROM and Early RAM.
[ 0.000000] BIOS-provided physical RAM map:
[ 0.000000] BIOS-e820: [mem 0x0000000000000000-0x0000000000000fff] type 16
[ 0.000000] BIOS-e820: [mem 0x0000000000001000-0x000000000009ffff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000000a0000-0x00000000003bcfff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000003bd000-0x00000000cc51bfff] usable
[ 0.000000] BIOS-e820: [mem 0x00000000cc51c000-0x00000000cd7fffff] type 16
[ 0.000000] BIOS-e820: [mem 0x00000000cd800000-0x00000000cfffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x00000000f8000000-0x00000000fbffffff] reserved
[ 0.000000] BIOS-e820: [mem 0x0000000100000000-0x000000042f33ffff] usable
[ 0.000000] BIOS-e820: [mem 0x000000042f340000-0x000000042fffffff] reserved
BUG=b:159081993
TEST=Boot picasso trembyle and run suspend_stress_test a few times.
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: I5944abce19f17458ea3017d04f6dfdfe8e8050bf
---
M src/soc/amd/picasso/Kconfig
M src/soc/amd/picasso/root_complex.c
2 files changed, 9 insertions(+), 9 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/42886/1
diff --git a/src/soc/amd/picasso/Kconfig b/src/soc/amd/picasso/Kconfig
index 9630ad3..0d87c1f 100644
--- a/src/soc/amd/picasso/Kconfig
+++ b/src/soc/amd/picasso/Kconfig
@@ -63,7 +63,7 @@
config EARLY_RESERVED_DRAM_BASE
hex
- default 0x2000000
+ default 0x100000
help
This variable defines the base address of the DRAM which is reserved
for usage by coreboot in early stages (i.e. before ramstage is up).
@@ -77,14 +77,14 @@
config PSP_APOB_DRAM_ADDRESS
hex
- default 0x2001000
+ default 0x101000
help
Location in DRAM where the PSP will copy the AGESA PSP Output
Block.
config PSP_SHAREDMEM_BASE
hex
- default 0x2011000 if VBOOT
+ default 0x111000 if VBOOT
default 0x0
help
This variable defines the base address in DRAM memory where PSP copies
@@ -111,7 +111,7 @@
config BOOTBLOCK_ADDR
hex
- default 0x2030000
+ default 0x120000
help
Sets the address in DRAM where bootblock should be loaded.
@@ -126,7 +126,7 @@
config X86_RESET_VECTOR
hex
depends on ARCH_X86
- default 0x203fff0
+ default 0x12fff0
help
Sets the reset vector within bootblock where x86 starts execution.
Reset vector is supposed to live at offset -0x10 from end of
@@ -134,7 +134,7 @@
config ROMSTAGE_ADDR
hex
- default 0x2040000
+ default 0x130000
help
Sets the address in DRAM where romstage should be loaded.
@@ -146,7 +146,7 @@
config FSP_M_ADDR
hex
- default 0x20C0000
+ default 0x1B0000
help
Sets the address in DRAM where FSP-M should be loaded. cbfstool
performs relocation of FSP-M to this address.
@@ -160,7 +160,7 @@
config VERSTAGE_ADDR
hex
depends on VBOOT_SEPARATE_VERSTAGE
- default 0x2140000
+ default 0x230000
help
Sets the address in DRAM where verstage should be loaded if running
as a separate stage on x86.
diff --git a/src/soc/amd/picasso/root_complex.c b/src/soc/amd/picasso/root_complex.c
index 4930a0e..e94c3ba 100644
--- a/src/soc/amd/picasso/root_complex.c
+++ b/src/soc/amd/picasso/root_complex.c
@@ -39,7 +39,7 @@
* | (C_ENV_BOOTBLOCK_SIZE) |
* +--------------------------------+ BOOTBLOCK_ADDR
* | Unused hole |
- * | (86KiB) |
+ * | (21KiB) |
* +--------------------------------+
* | FMAP cache (FMAP_SIZE) |
* +--------------------------------+ PSP_SHAREDMEM_BASE + PSP_SHAREDMEM_SIZE + PRERAM_CBMEM_CONSOLE_SIZE + 0x200
--
To view, visit https://review.coreboot.org/c/coreboot/+/42886
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5944abce19f17458ea3017d04f6dfdfe8e8050bf
Gerrit-Change-Number: 42886
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-MessageType: newchange
Paul Menzel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/42199 )
Change subject: soc/intel/cannonlake: Make `acpi_create_gnvs()` static
......................................................................
soc/intel/cannonlake: Make `acpi_create_gnvs()` static
The function `acpi_create_gnvs()` is only used in this translation unit,
so make it `static`. This unifies it with the Skylake version
`src/soc/intel/skylake/acpi.c`.
Change-Id: I8f817aa46c75332ec5a5fa77e8772ae0f0e3a366
Signed-off-by: Paul Menzel <pmenzel(a)molgen.mpg.de>
---
M src/soc/intel/cannonlake/acpi.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/42199/1
diff --git a/src/soc/intel/cannonlake/acpi.c b/src/soc/intel/cannonlake/acpi.c
index 12758e1..886cba2 100644
--- a/src/soc/intel/cannonlake/acpi.c
+++ b/src/soc/intel/cannonlake/acpi.c
@@ -182,7 +182,7 @@
return read32((void *)pmc_bar + IRQ_REG);
}
-void acpi_create_gnvs(struct global_nvs_t *gnvs)
+static void acpi_create_gnvs(struct global_nvs_t *gnvs)
{
const struct soc_intel_cannonlake_config *config;
config = config_of_soc();
--
To view, visit https://review.coreboot.org/c/coreboot/+/42199
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I8f817aa46c75332ec5a5fa77e8772ae0f0e3a366
Gerrit-Change-Number: 42199
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45502 )
Change subject: nb/intel/sandybridge: Clean up `dram_freq` function
......................................................................
nb/intel/sandybridge: Clean up `dram_freq` function
The thing that this function initializes is the MPLL (Memory PLL). So,
call it by its name. Also add a missing newline in a printk, and update
a comment on the callsite of this function.
Tested on Asus P8Z77-V LX2, still boots.
Change-Id: I86ab643bc87253554346dfed3630eb9ddbd44eb3
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/northbridge/intel/sandybridge/raminit_native.c
1 file changed, 11 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/45502/1
diff --git a/src/northbridge/intel/sandybridge/raminit_native.c b/src/northbridge/intel/sandybridge/raminit_native.c
index 64a381d..6b74405 100644
--- a/src/northbridge/intel/sandybridge/raminit_native.c
+++ b/src/northbridge/intel/sandybridge/raminit_native.c
@@ -459,7 +459,7 @@
if (ctrl->tCK > TCK_400MHZ) {
printk(BIOS_ERR,
"DRAM frequency is under lowest supported frequency (400 MHz). "
- "Increasing to 400 MHz as last resort");
+ "Increasing to 400 MHz as last resort.\n");
ctrl->tCK = TCK_400MHZ;
}
@@ -467,11 +467,11 @@
u8 val2;
u32 reg1 = 0;
- /* Step 1 - Set target PCU frequency */
+ /* Step 1 - Determine target MPLL frequency */
find_cas_tck(ctrl);
/*
- * The PLL will never lock if the required frequency is already set.
+ * The MPLL will never lock if the requested frequency is already set.
* Exit early to prevent a system hang.
*/
reg1 = MCHBAR32(MC_BIOS_DATA);
@@ -479,16 +479,16 @@
if (val2)
return;
- /* Step 2 - Select frequency in the MCU */
+ /* Step 2 - Request MPLL frequency */
reg1 = ctrl->FRQ;
if (ctrl->base_freq == 100)
- reg1 |= 0x100; /* Enable 100Mhz REF clock */
+ reg1 |= 0x100; /* Use 100MHz reference clock */
- reg1 |= 0x80000000; /* set running bit */
+ reg1 |= (1 << 31); /* Set running bit */
MCHBAR32(MC_BIOS_REQ) = reg1;
int i = 0;
- printk(BIOS_DEBUG, "PLL busy... ");
- while (reg1 & 0x80000000) {
+ printk(BIOS_DEBUG, "MPLL busy... ");
+ while (reg1 & (1 << 31)) {
udelay(10);
i++;
reg1 = MCHBAR32(MC_BIOS_REQ);
@@ -499,11 +499,11 @@
reg1 = MCHBAR32(MC_BIOS_DATA);
val2 = (u8) reg1;
if (val2 >= ctrl->FRQ) {
- printk(BIOS_DEBUG, "MCU frequency is set at : %d MHz\n",
+ printk(BIOS_DEBUG, "MPLL frequency is set at : %d MHz\n",
(1000 << 8) / ctrl->tCK);
return;
}
- printk(BIOS_DEBUG, "PLL didn't lock. Retrying at lower frequency\n");
+ printk(BIOS_DEBUG, "MPLL didn't lock. Retrying at lower frequency\n");
ctrl->tCK++;
}
}
@@ -571,7 +571,7 @@
dram_dimm_mapping(ctrl);
}
- /* Set MC frequency */
+ /* Set MPLL frequency */
dram_freq(ctrl);
if (!fast_boot) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/45502
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I86ab643bc87253554346dfed3630eb9ddbd44eb3
Gerrit-Change-Number: 45502
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange