Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44121 )
Change subject: nb/intel/sandybridge: Refactor `get_pcie_bar`
......................................................................
Patch Set 5:
(2 comments)
https://review.coreboot.org/c/coreboot/+/44121/4/src/northbridge/intel/sand…
File src/northbridge/intel/sandybridge/northbridge.c:
https://review.coreboot.org/c/coreboot/+/44121/4/src/northbridge/intel/sand…
PS4, Line 50: return 0;
> The other instances of `decode_pcie_bar` return 0 on failure. […]
Marking comment as resolved given the non-response
https://review.coreboot.org/c/coreboot/+/44121/4/src/northbridge/intel/sand…
PS4, Line 143: decode_pcie_bar
> I agree. It shouldn't error out because we're programming MMCONF in the bootblock. […]
Marking comment as resolved given the non-response
--
To view, visit https://review.coreboot.org/c/coreboot/+/44121
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id1c2cfbcac1a798d046beced790930511dc97972
Gerrit-Change-Number: 44121
Gerrit-PatchSet: 5
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Thu, 06 Aug 2020 07:24:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: comment
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44077 )
Change subject: drivers/intel/fsp2_0: Do AP re-init after FSP-S if USE_INTEL_FSP_MP_INIT enable
......................................................................
drivers/intel/fsp2_0: Do AP re-init after FSP-S if USE_INTEL_FSP_MP_INIT enable
This patch ensures to take control of APs back by doing the full AP
re-initialization after FSP-S is done and control has been transferred
back to coreboot.
TEST=Able to see all cores available after booting to OS using below command
when coreboot is built with CONFIG_USE_INTEL_FSP_MP_INIT enable.
> cat /proc/cpuinfo
Without this CL :
shows only 1 core (only BSP)
With this CL :
shows all possible cores available (BSP + APs)
Change-Id: I247d8d1166c77bd01922323b6a0f14ec6640a666
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/drivers/intel/fsp2_0/silicon_init.c
1 file changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/44077/1
diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c
index 663b1d7..7b77590 100644
--- a/src/drivers/intel/fsp2_0/silicon_init.c
+++ b/src/drivers/intel/fsp2_0/silicon_init.c
@@ -7,6 +7,7 @@
#include <console/console.h>
#include <fsp/api.h>
#include <fsp/util.h>
+#include <intelblocks/mp_init.h>
#include <program_loading.h>
#include <soc/intel/common/vbt.h>
#include <stage_cache.h>
@@ -127,6 +128,14 @@
fsp_debug_after_silicon_init(status);
fsps_return_value_handler(FSP_SILICON_INIT_API, status);
+ /*
+ * As per FSP integration guide:
+ * If bootloader needs to take control of APs back the full AP re-initialization
+ * required after FSP-S completed and control has been transferred back to bootloader
+ */
+ if (CONFIG(USE_INTEL_FSP_MP_INIT))
+ init_cpus();
+
if (!CONFIG(PLATFORM_USES_FSP2_2))
return;
--
To view, visit https://review.coreboot.org/c/coreboot/+/44077
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I247d8d1166c77bd01922323b6a0f14ec6640a666
Gerrit-Change-Number: 44077
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44076 )
Change subject: soc/intel/common/block/cpu: Refactor init_cpus function
......................................................................
soc/intel/common/block/cpu: Refactor init_cpus function
This patch makes init_cpus function external so that it can be used in below
scenarios:
1. During coreboot is doing MP initialization as part of BS_DEV_INIT_CHIPS (exclude
this call if user has selected CONFIG_USE_INTEL_FSP_MP_INIT)
2. coreboot would like to take APs control back after FSP-S has done with MP
initialization based on user select CONFIG_USE_INTEL_FSP_MP_INIT
Also make sure post_cpus_init function is getting executed unconditionally to
update MTTR snapshot on all cores.
Change-Id: Idc03090360f34df074b33ba0fced2d192edf068a
Signed-off-by: Subrata Banik <subrata.banik(a)intel.com>
---
M src/soc/intel/common/block/cpu/mp_init.c
M src/soc/intel/common/block/include/intelblocks/mp_init.h
2 files changed, 29 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/44076/1
diff --git a/src/soc/intel/common/block/cpu/mp_init.c b/src/soc/intel/common/block/cpu/mp_init.c
index 90bae16..4f27e52 100644
--- a/src/soc/intel/common/block/cpu/mp_init.c
+++ b/src/soc/intel/common/block/cpu/mp_init.c
@@ -125,14 +125,19 @@
*parallel = 1;
}
-static void init_cpus(void *unused)
+/*
+ * Perform BSP and AP initialization
+ * This function can be called in below cases
+ * 1. During coreboot is doing MP initialization as part of BS_DEV_INIT_CHIPS (exclude
+ * this call if user has selected CONFIG_USE_INTEL_FSP_MP_INIT)
+ * 2. coreboot would like to take APs control back after FSP-S has done with MP
+ * initialization based on user select CONFIG_USE_INTEL_FSP_MP_INIT
+ */
+void init_cpus(void)
{
struct device *dev = dev_find_path(NULL, DEVICE_PATH_CPU_CLUSTER);
assert(dev != NULL);
- if (CONFIG(USE_INTEL_FSP_MP_INIT))
- return;
-
microcode_patch = intel_microcode_find();
intel_microcode_load_unlocked(microcode_patch);
@@ -140,6 +145,15 @@
soc_init_cpus(dev->link_list);
}
+static void coreboot_init_cpus(void *unused)
+{
+ if (CONFIG(USE_INTEL_FSP_MP_INIT))
+ return;
+
+ init_cpus();
+}
+
+
static void wrapper_x86_setup_mtrrs(void *unused)
{
x86_setup_mtrrs_with_detect();
@@ -148,9 +162,6 @@
/* Ensure to re-program all MTRRs based on DRAM resource settings */
static void post_cpus_init(void *unused)
{
- if (CONFIG(USE_INTEL_FSP_MP_INIT))
- return;
-
if (mp_run_on_all_cpus(&wrapper_x86_setup_mtrrs, NULL) < 0)
printk(BIOS_ERR, "MTRR programming failure\n");
@@ -158,6 +169,6 @@
}
/* Do CPU MP Init before FSP Silicon Init */
-BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_ENTRY, init_cpus, NULL);
+BOOT_STATE_INIT_ENTRY(BS_DEV_INIT_CHIPS, BS_ON_ENTRY, coreboot_init_cpus, NULL);
BOOT_STATE_INIT_ENTRY(BS_WRITE_TABLES, BS_ON_EXIT, post_cpus_init, NULL);
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, post_cpus_init, NULL);
diff --git a/src/soc/intel/common/block/include/intelblocks/mp_init.h b/src/soc/intel/common/block/include/intelblocks/mp_init.h
index e03d8bd..615449f 100644
--- a/src/soc/intel/common/block/include/intelblocks/mp_init.h
+++ b/src/soc/intel/common/block/include/intelblocks/mp_init.h
@@ -69,6 +69,16 @@
void get_microcode_info(const void **microcode, int *parallel);
/*
+ * Perform BSP and AP initialization
+ * This function can be called in below cases
+ * 1. During coreboot is doing MP initialization as part of BS_DEV_INIT_CHIPS (exclude
+ * this call if user has selected CONFIG_USE_INTEL_FSP_MP_INIT)
+ * 2. coreboot would like to take APs control back after FSP-S has done with MP
+ * initialization based on user select CONFIG_USE_INTEL_FSP_MP_INIT
+ */
+void init_cpus(void);
+
+/*
* SoC Overrides
*
* All new SoC must implement below functionality for ramstage.
--
To view, visit https://review.coreboot.org/c/coreboot/+/44076
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idc03090360f34df074b33ba0fced2d192edf068a
Gerrit-Change-Number: 44076
Gerrit-PatchSet: 1
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-MessageType: newchange
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/43071
to look at the new patch set (#4).
Change subject: device/pci_rom: Fix rom_header structure
......................................................................
device/pci_rom: Fix rom_header structure
According to the specification[1] (page 33), these are the correct sizes
for the "init" and "reserved" elements.
1. https://www.scs.stanford.edu/nyu/04fa/lab/specsbbs101.pdf
Change-Id: Iad02da554cb249ccec78dbb2ff57f72ec6b98584
Signed-off-by: Benjamin Doron <benjamin.doron00(a)gmail.com>
---
M src/include/device/pci_rom.h
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/43071/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/43071
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iad02da554cb249ccec78dbb2ff57f72ec6b98584
Gerrit-Change-Number: 43071
Gerrit-PatchSet: 4
Gerrit-Owner: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Duan huayang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43795 )
Change subject: soc/mediatek/mt8183: Set MMU default map length to 8GB befor mem init
......................................................................
soc/mediatek/mt8183: Set MMU default map length to 8GB befor mem init
BUG=none
BRANCH=kukui
TEST=Boots correctly on Kukui
Change-Id: I072745933fe141cac26afd044836a564e345d036
Signed-off-by: Huayang Duan <huayang.duan(a)mediatek.com>
---
M src/soc/mediatek/common/mmu_operations.c
1 file changed, 2 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/43795/1
diff --git a/src/soc/mediatek/common/mmu_operations.c b/src/soc/mediatek/common/mmu_operations.c
index 9550ba8..960d742 100644
--- a/src/soc/mediatek/common/mmu_operations.c
+++ b/src/soc/mediatek/common/mmu_operations.c
@@ -12,11 +12,11 @@
mmu_init();
/*
- * Set 0x0 to 4GB address as device memory. We want to config IO_PHYS
+ * Set 0x0 to 8GB address as device memory. We want to config IO_PHYS
* address to DEV_MEM, and map a proper range of dram for the memory
* test during calibration.
*/
- mmu_config_range((void *)0, (uintptr_t)4U * GiB, DEV_MEM);
+ mmu_config_range((void *)0, (uintptr_t)8U * GiB, DEV_MEM);
/* SRAM is cached */
mmu_config_range(_sram, REGION_SIZE(sram), SECURE_CACHED_MEM);
--
To view, visit https://review.coreboot.org/c/coreboot/+/43795
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I072745933fe141cac26afd044836a564e345d036
Gerrit-Change-Number: 43795
Gerrit-PatchSet: 1
Gerrit-Owner: Duan huayang <huayang.duan(a)mediatek.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: newchange