Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32773
Change subject: coreboot: add post code for memory error from FSP
......................................................................
coreboot: add post code for memory error from FSP
Add a new post code POST_RAM_FAILURE, used when the Intel FSP code fails
to initialize RAM.
BUG=b:124401932
BRANCH=sarien
TEST=build coreboot for sarien and arcada platforms
Change-Id: Ibafefa0fc0b1c525f923929cc91731fbcc1e7533
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/drivers/intel/fsp1_1/raminit.c
M src/drivers/intel/fsp2_0/memory_init.c
M src/include/console/post_codes.h
3 files changed, 19 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/73/32773/1
diff --git a/src/drivers/intel/fsp1_1/raminit.c b/src/drivers/intel/fsp1_1/raminit.c
index 726cc26..e91e49e 100644
--- a/src/drivers/intel/fsp1_1/raminit.c
+++ b/src/drivers/intel/fsp1_1/raminit.c
@@ -129,8 +129,10 @@
timestamp_add_now(TS_FSP_MEMORY_INIT_END);
printk(BIOS_DEBUG, "FspMemoryInit returned 0x%08x\n", status);
- if (status != EFI_SUCCESS)
+ if (status != EFI_SUCCESS) {
+ post_code(POST_RAM_FAILURE);
die("ERROR - FspMemoryInit failed to initialize memory!\n");
+ }
/* Locate the FSP reserved memory area */
fsp_reserved_bytes = 0;
@@ -195,8 +197,10 @@
}
#if CONFIG(DISPLAY_HOBS)
- if (hob_list_ptr == NULL)
+ if (hob_list_ptr == NULL) {
+ post_code(POST_INVALID_FSP);
die("ERROR - HOB pointer is NULL!\n");
+ }
/*
* Verify that FSP is generating the required HOBs:
@@ -274,14 +278,17 @@
printk(BIOS_DEBUG,
"0x%08x: Chipset reserved bytes reported by FSP\n",
(unsigned int)delta_bytes);
+ post_code(POST_INVALID_FSP);
die("Please verify the chipset reserved size\n");
}
#endif
}
/* Verify the FSP 1.1 HOB interface */
- if (fsp_verification_failure)
+ if (fsp_verification_failure) {
+ post_code(POST_INVALID_FSP);
die("ERROR - coreboot's requirements not met by FSP binary!\n");
+ }
/* Display the memory configuration */
report_memory_config();
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index 879b477..bc0e538 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -317,6 +317,7 @@
/* Handle any errors returned by FspMemoryInit */
fsp_handle_reset(status);
if (status != FSP_SUCCESS) {
+ post_code(POST_RAM_FAILURE);
printk(BIOS_CRIT, "FspMemoryInit returned 0x%08x\n", status);
die("FspMemoryInit returned an error!\n");
}
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index ce26aac..4b4226e 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -341,6 +341,14 @@
#define POST_INVALID_FSP 0xE2
/**
+ * \brief RAM failure
+ *
+ * Set if RAM could not be initialized. This includes RAM is missing,
+ * unsupported RAM configuration, or RAM failure.
+ */
+#define POST_RAM_FAILURE 0xE3
+
+/**
* \brief TPM failure
*
* An error with the TPM, either unexepcted state or communications failure.
--
To view, visit https://review.coreboot.org/c/coreboot/+/32773
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibafefa0fc0b1c525f923929cc91731fbcc1e7533
Gerrit-Change-Number: 32773
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Keith Short <keithshort(a)chromium.org>
Gerrit-Reviewer: Lee Leahy <leroy.p.leahy(a)intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32772
Change subject: coreboot: add post code for invalid FSP
......................................................................
coreboot: add post code for invalid FSP
Add a new post code POST_INVALID_FSP, used when coreboot fails to locate
or validate Intel FSP.
BUG=b:124401932
BRANCH=sarien
TEST=build coreboot for sarien and arcada platforms
Change-Id: Ib1e359d4e8772c37922b1b779135e58c73bff6b4
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/drivers/intel/fsp2_0/memory_init.c
M src/drivers/intel/fsp2_0/silicon_init.c
M src/include/console/post_codes.h
M src/soc/intel/fsp_baytrail/romstage/romstage.c
M src/soc/intel/fsp_broadwell_de/romstage/romstage.c
5 files changed, 19 insertions(+), 3 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/72/32772/1
diff --git a/src/drivers/intel/fsp2_0/memory_init.c b/src/drivers/intel/fsp2_0/memory_init.c
index b3afb98..879b477 100644
--- a/src/drivers/intel/fsp2_0/memory_init.c
+++ b/src/drivers/intel/fsp2_0/memory_init.c
@@ -276,8 +276,10 @@
upd = (FSPM_UPD *)(hdr->cfg_region_offset + hdr->image_base);
- if (upd->FspUpdHeader.Signature != FSPM_UPD_SIGNATURE)
+ if (upd->FspUpdHeader.Signature != FSPM_UPD_SIGNATURE) {
+ post_code(POST_INVALID_FSP);
die("Invalid FSPM signature!\n");
+ }
/* Copy the default values from the UPD area */
memcpy(&fspm_upd, upd, sizeof(fspm_upd));
@@ -289,8 +291,10 @@
/* Fill common settings on behalf of chipset. */
if (fsp_fill_common_arch_params(arch_upd, s3wake, fsp_version,
- memmap) != CB_SUCCESS)
+ memmap) != CB_SUCCESS) {
+ post_code(POST_INVALID_FSP);
die("FSPM_ARCH_UPD not found!\n");
+ }
/* Give SoC and mainboard a chance to update the UPD */
platform_fsp_memory_init_params_cb(&fspm_upd, fsp_version);
diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c
index 402b05d..dd4d730 100644
--- a/src/drivers/intel/fsp2_0/silicon_init.c
+++ b/src/drivers/intel/fsp2_0/silicon_init.c
@@ -32,8 +32,10 @@
supd = (FSPS_UPD *) (hdr->cfg_region_offset + hdr->image_base);
- if (supd->FspUpdHeader.Signature != FSPS_UPD_SIGNATURE)
+ if (supd->FspUpdHeader.Signature != FSPS_UPD_SIGNATURE) {
+ post_code(POST_INVALID_FSP);
die("Invalid FSPS signature\n");
+ }
upd = xmalloc(sizeof(FSPS_UPD));
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 637083a..ce26aac 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -333,6 +333,14 @@
#define POST_INVALID_CBFS 0xE1
/**
+ * \brief FSP error
+ *
+ * Set if firmware failed to find or validate a FSP resource, or another
+ * FSP error occurred.
+ */
+#define POST_INVALID_FSP 0xE2
+
+/**
* \brief TPM failure
*
* An error with the TPM, either unexepcted state or communications failure.
diff --git a/src/soc/intel/fsp_baytrail/romstage/romstage.c b/src/soc/intel/fsp_baytrail/romstage/romstage.c
index c46b09e..93900ef 100644
--- a/src/soc/intel/fsp_baytrail/romstage/romstage.c
+++ b/src/soc/intel/fsp_baytrail/romstage/romstage.c
@@ -208,6 +208,7 @@
post_code(0x48);
printk(BIOS_DEBUG, "Starting the Intel FSP (early_init)\n");
fsp_early_init(fsp_info_header);
+ post_code(POST_INVALID_FSP);
die("Uh Oh! fsp_early_init should not return here.\n");
}
diff --git a/src/soc/intel/fsp_broadwell_de/romstage/romstage.c b/src/soc/intel/fsp_broadwell_de/romstage/romstage.c
index a75dabd..12a1702 100644
--- a/src/soc/intel/fsp_broadwell_de/romstage/romstage.c
+++ b/src/soc/intel/fsp_broadwell_de/romstage/romstage.c
@@ -84,6 +84,7 @@
post_code(0x48);
printk(BIOS_DEBUG, "Starting the Intel FSP (early_init)\n");
fsp_early_init(fsp_info_header);
+ post_code(POST_FSP_FAILURE);
die("Uh Oh! fsp_early_init should not return here.\n");
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/32772
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib1e359d4e8772c37922b1b779135e58c73bff6b4
Gerrit-Change-Number: 32772
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Keith Short <keithshort(a)chromium.org>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-MessageType: newchange
Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32771
Change subject: coreboot: add post code for critical CBFS failures
......................................................................
coreboot: add post code for critical CBFS failures
Add a new post code POST_INVALID_CBS, used when coreboot fails to locate
or validate a resource that is stored in CBFS.
BUG=b:124401932
BRANCH=sarien
TEST=build coreboot for sarien and arcada platforms
Change-Id: If1c8b92889040f9acd6250f847db02626809a987
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/arch/x86/postcar_loader.c
M src/include/console/post_codes.h
M src/soc/intel/quark/romstage/fsp2_0.c
3 files changed, 13 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/71/32771/1
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index 9975931..e2a01cd 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -141,17 +141,17 @@
};
if (prog_locate(prog)) {
- post_code(POST_INVALID_ROM);
+ post_code(POST_INVALID_CBFS);
die("Failed to locate after CAR program.\n");
}
if (rmodule_stage_load(&rsl)) {
- post_code(POST_INVALID_ROM);
+ post_code(POST_INVALID_CBFS);
die("Failed to load after CAR program.\n");
}
/* Set the stack pointer within parameters of the program loaded. */
if (rsl.params == NULL) {
- post_code(POST_INVALID_ROM);
+ post_code(POST_INVALID_CBFS);
die("No parameters found in after CAR program.\n");
}
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index 89a65ca..637083a 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -326,6 +326,13 @@
#define POST_INVALID_ROM 0xE0
/**
+ * \brief Invalid or corrupt CBFS
+ *
+ * Set if firmware failed to find or validate a resource that is stored in CBFS.
+ */
+#define POST_INVALID_CBFS 0xE1
+
+/**
* \brief TPM failure
*
* An error with the TPM, either unexepcted state or communications failure.
diff --git a/src/soc/intel/quark/romstage/fsp2_0.c b/src/soc/intel/quark/romstage/fsp2_0.c
index 31e130a..280ae37 100644
--- a/src/soc/intel/quark/romstage/fsp2_0.c
+++ b/src/soc/intel/quark/romstage/fsp2_0.c
@@ -116,8 +116,10 @@
/* Locate the RMU data file in flash */
rmu_data = locate_rmu_file(&rmu_data_len);
- if (!rmu_data)
+ if (!rmu_data) {
+ post_code(POST_INVALID_CBFS);
die("Microcode file (rmu.bin) not found.");
+ }
/* Locate the configuration data from devicetree.cb */
dev = pcidev_path_on_root(LPC_DEV_FUNC);
--
To view, visit https://review.coreboot.org/c/coreboot/+/32771
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If1c8b92889040f9acd6250f847db02626809a987
Gerrit-Change-Number: 32771
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-MessageType: newchange
Keith Short has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32770
Change subject: coreboot: add post code for failure to load next stage
......................................................................
coreboot: add post code for failure to load next stage
Add a new post code, POST_INVALID_ROM, used when coreboot fails to
locate or validate a resource that is stored in ROM.
BUG=b:124401932
BRANCH=sarien
TEST=build coreboot for sarien and arcada platforms
Change-Id: Ie6de6590595d8fcdc57ad156237fffa03d5ead38
Signed-off-by: Keith Short <keithshort(a)chromium.org>
---
M src/arch/x86/postcar_loader.c
M src/include/console/post_codes.h
M src/lib/prog_loaders.c
M src/security/vboot/vboot_logic.c
4 files changed, 25 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/70/32770/1
diff --git a/src/arch/x86/postcar_loader.c b/src/arch/x86/postcar_loader.c
index d62487e..9975931 100644
--- a/src/arch/x86/postcar_loader.c
+++ b/src/arch/x86/postcar_loader.c
@@ -140,14 +140,20 @@
.prog = prog,
};
- if (prog_locate(prog))
+ if (prog_locate(prog)) {
+ post_code(POST_INVALID_ROM);
die("Failed to locate after CAR program.\n");
- if (rmodule_stage_load(&rsl))
+ }
+ if (rmodule_stage_load(&rsl)) {
+ post_code(POST_INVALID_ROM);
die("Failed to load after CAR program.\n");
+ }
/* Set the stack pointer within parameters of the program loaded. */
- if (rsl.params == NULL)
+ if (rsl.params == NULL) {
+ post_code(POST_INVALID_ROM);
die("No parameters found in after CAR program.\n");
+ }
finalize_load(rsl.params, pcf->stack);
diff --git a/src/include/console/post_codes.h b/src/include/console/post_codes.h
index f482ae9..89a65ca 100644
--- a/src/include/console/post_codes.h
+++ b/src/include/console/post_codes.h
@@ -319,6 +319,13 @@
#define POST_JUMPING_TO_PAYLOAD 0xf3
/**
+ * \brief Invalid or corrupt ROM
+ *
+ * Set if firmware failed to find or validate a resource that is stored in ROM.
+ */
+#define POST_INVALID_ROM 0xE0
+
+/**
* \brief TPM failure
*
* An error with the TPM, either unexepcted state or communications failure.
diff --git a/src/lib/prog_loaders.c b/src/lib/prog_loaders.c
index 3b77712..16eb746 100644
--- a/src/lib/prog_loaders.c
+++ b/src/lib/prog_loaders.c
@@ -68,8 +68,10 @@
prog_run(&romstage);
fail:
- if (CONFIG(BOOTBLOCK_CONSOLE))
+ if (CONFIG(BOOTBLOCK_CONSOLE)) {
+ post_code(POST_INVALID_ROM);
die("Couldn't load romstage.\n");
+ }
halt();
}
diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c
index df34490..c61dfa9 100644
--- a/src/security/vboot/vboot_logic.c
+++ b/src/security/vboot/vboot_logic.c
@@ -319,8 +319,10 @@
/* Enable measured boot mode */
if (CONFIG(VBOOT_MEASURED_BOOT) &&
!(ctx.flags & VB2_CONTEXT_S3_RESUME)) {
- if (vboot_init_crtm() != VB2_SUCCESS)
+ if (vboot_init_crtm() != VB2_SUCCESS) {
+ post_code(POST_INVALID_ROM);
die("Initializing measured boot mode failed!");
+ }
}
if (get_recovery_mode_switch()) {
@@ -391,8 +393,10 @@
printk(BIOS_INFO, "Phase 4\n");
rv = locate_firmware(&ctx, &fw_main);
- if (rv)
+ if (rv) {
+ post_code(POST_INVALID_ROM);
die("Failed to read FMAP to locate firmware");
+ }
rv = hash_body(&ctx, &fw_main);
save_if_needed(&ctx);
--
To view, visit https://review.coreboot.org/c/coreboot/+/32770
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie6de6590595d8fcdc57ad156237fffa03d5ead38
Gerrit-Change-Number: 32770
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Short <keithshort(a)chromium.org>
Gerrit-MessageType: newchange
Jett Rink has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32914
Change subject: post: during post_code, only call elog when enabled
......................................................................
post: during post_code, only call elog when enabled
Now that we call post_code in other stages other than RAMSTAGE, we need
to guard the elog calls with the appropriate condition in order to
compile correctly.
Change-Id: I766c276f28d46492fb05e0e3be71853e21f4e8e0
Signed-off-by: Jett Rink <jettrink(a)chromium.org>
---
M src/console/post.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/14/32914/1
diff --git a/src/console/post.c b/src/console/post.c
index b17a819..28ebd0e 100644
--- a/src/console/post.c
+++ b/src/console/post.c
@@ -81,7 +81,7 @@
default:
printk(BIOS_WARNING, "POST: Unexpected post code "
"in previous boot: 0x%02x\n", code);
-#if CONFIG(ELOG)
+#if CONFIG(ELOG) && (CONFIG(ENV_RAMSTAGE) || CONFIG(ELOG_PRERAM))
elog_add_event_word(ELOG_TYPE_LAST_POST_CODE, code);
#if CONFIG(CMOS_POST_EXTRA)
if (extra)
--
To view, visit https://review.coreboot.org/c/coreboot/+/32914
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I766c276f28d46492fb05e0e3be71853e21f4e8e0
Gerrit-Change-Number: 32914
Gerrit-PatchSet: 1
Gerrit-Owner: Jett Rink <jettrink(a)chromium.org>
Gerrit-MessageType: newchange
EricR Lai has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32763
Change subject: mb/google/sarien: Add delay for EC sync
......................................................................
mb/google/sarien: Add delay for EC sync
Kernel will fail at async when go into s0ix.
Add a delay to let EC has some time for sync.
BUG=b:130644677
TEST= check event log only log s0ix once
Signed-off-by: Eric Lai <ericr_lai(a)compal.corp-partner.google.com>
Change-Id: I7ba48068f44ab2558199277f8dbbbbe9bcf249ff
---
M src/soc/intel/cannonlake/acpi/lpit.asl
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/63/32763/1
diff --git a/src/soc/intel/cannonlake/acpi/lpit.asl b/src/soc/intel/cannonlake/acpi/lpit.asl
index 93bce26..9b27c83 100644
--- a/src/soc/intel/cannonlake/acpi/lpit.asl
+++ b/src/soc/intel/cannonlake/acpi/lpit.asl
@@ -64,6 +64,7 @@
*/
If(Arg2 == 5) {
\_SB.PCI0.LPCB.EC0.S0IX(1)
+ Sleep(50)
/* provide board level s0ix hook */
If (CondRefOf (\_SB.MS0X)) {
\_SB.MS0X(1)
@@ -74,6 +75,7 @@
*/
If(Arg2 == 6) {
\_SB.PCI0.LPCB.EC0.S0IX(0)
+ Sleep(50)
/* provide board level s0ix hook */
If (CondRefOf (\_SB.MS0X)) {
\_SB.MS0X(0)
--
To view, visit https://review.coreboot.org/c/coreboot/+/32763
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7ba48068f44ab2558199277f8dbbbbe9bcf249ff
Gerrit-Change-Number: 32763
Gerrit-PatchSet: 1
Gerrit-Owner: EricR Lai <ericr_lai(a)compal.corp-partner.google.com>
Gerrit-MessageType: newchange
Frans Hendriks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/30414 )
Change subject: mainboard/facebook/fbg1701: Do initial mainboard commit
......................................................................
Patch Set 24:
> Patch Set 24: Code-Review+1
>
> The whole superio configuration is missing.
Only the serial port of the superio is used.
--
To view, visit https://review.coreboot.org/c/coreboot/+/30414
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I28ac78a630ee705b1e546031f024bfe7f952ab39
Gerrit-Change-Number: 30414
Gerrit-PatchSet: 24
Gerrit-Owner: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Alex Thiessen <alex.thiessen.de+coreboot(a)gmail.com>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-CC: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-CC: Philipp Deppenwiese <zaolin.daisuki(a)gmail.com>
Gerrit-Comment-Date: Wed, 22 May 2019 13:30:26 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Frans Hendriks has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29662 )
Change subject: {drivers,soc/intel/braswell}: Add C_ENVIRONMENT_BOOTBLOCK support
......................................................................
Patch Set 27:
(4 comments)
Will perform some more testing and update a new patch set.
https://review.coreboot.org/#/c/29662/27//COMMIT_MSG
Commit Message:
https://review.coreboot.org/#/c/29662/27//COMMIT_MSG@13
PS27, Line 13: romstage_c_entry
> you have hooks to do this in the bootblock.
Comment of PS13 was to add this functions.
I realize that bootblock takes care of init, but was not 100% sure about non-bootblock implementation.
https://review.coreboot.org/#/c/29662/27/src/drivers/intel/fsp1_1/car.c
File src/drivers/intel/fsp1_1/car.c:
https://review.coreboot.org/#/c/29662/27/src/drivers/intel/fsp1_1/car.c@105
PS27, Line 105: car_soc_pre_console_init();
: car_mainboard_pre_console_init();
> You generally want the console set up in the bootblock, not in the romstage with C_ENVIRONMENT_BOOTB […]
Same here. Should this functions not be placed around the console_init() to be compatible with other location where console_init() is used?
https://review.coreboot.org/#/c/29662/27/src/drivers/intel/fsp1_1/car.c@110
PS27, Line 110: car_soc_post_console_init();
: car_mainboard_post_console_init();
> Similarly you have bootblock_soc_init() and bootblock_mainboard_init().
Will not add these calls here.
https://review.coreboot.org/#/c/29662/27/src/soc/intel/braswell/bootblock/b…
File src/soc/intel/braswell/bootblock/bootblock.c:
https://review.coreboot.org/#/c/29662/27/src/soc/intel/braswell/bootblock/b…
PS27, Line 50:
> Where is this done now?
Adding bootblock_cpu_init function result into message that fucntion is not used. For this reason (and the fact that system is booting without problem) This function was removed.
For test purposed I have added function bootblock_soc_early_init to call this function.
Will perform some more testing and add this to the patch set.
--
To view, visit https://review.coreboot.org/c/coreboot/+/29662
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iab48ad72f1514c93f20d70db5ef4fd8fa2383e8c
Gerrit-Change-Number: 29662
Gerrit-PatchSet: 27
Gerrit-Owner: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Hannah Williams <hannah.williams(a)intel.com>
Gerrit-Reviewer: Huang Jin <huang.jin(a)intel.com>
Gerrit-Reviewer: Lee Leahy <leroy.p.leahy(a)intel.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: York Yang <yyang024(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Wed, 22 May 2019 12:50:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: comment