Nico Huber has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/29899
Change subject: drivers/intel/fsp2_0: Add hook to fix up FSP-S
......................................................................
drivers/intel/fsp2_0: Add hook to fix up FSP-S
There may be bugs in one revision or another. Add a hook that is
directly called after FSP-S to allow the platform to fix things up.
Change-Id: I6e5a52752d757159f12a65dfa5d08ac5fd65c259
Signed-off-by: Nico Huber <nico.huber(a)secunet.com>
---
M src/drivers/intel/fsp2_0/include/fsp/api.h
M src/drivers/intel/fsp2_0/silicon_init.c
2 files changed, 9 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/29899/1
diff --git a/src/drivers/intel/fsp2_0/include/fsp/api.h b/src/drivers/intel/fsp2_0/include/fsp/api.h
index 5ed3801..dc3031e 100644
--- a/src/drivers/intel/fsp2_0/include/fsp/api.h
+++ b/src/drivers/intel/fsp2_0/include/fsp/api.h
@@ -72,6 +72,12 @@
struct mma_config_param *mma_cfg);
/*
+ * Hook to fix settings made by FSP-S. Called directly after
+ * returning from the blob.
+ */
+void soc_fsp_silicon_init_fixups(void);
+
+/*
* # DOCUMENTATION:
*
* This file defines the interface between coreboot and the FSP 2.0 wrapper
diff --git a/src/drivers/intel/fsp2_0/silicon_init.c b/src/drivers/intel/fsp2_0/silicon_init.c
index 0670663..7f56533 100644
--- a/src/drivers/intel/fsp2_0/silicon_init.c
+++ b/src/drivers/intel/fsp2_0/silicon_init.c
@@ -24,6 +24,8 @@
struct fsp_header fsps_hdr;
+__weak void soc_fsp_silicon_init_fixups(void) {}
+
static void do_silicon_init(struct fsp_header *hdr)
{
FSPS_UPD *upd, *supd;
@@ -50,6 +52,7 @@
timestamp_add_now(TS_FSP_SILICON_INIT_START);
post_code(POST_FSP_SILICON_INIT);
status = silicon_init(upd);
+ soc_fsp_silicon_init_fixups();
timestamp_add_now(TS_FSP_SILICON_INIT_END);
post_code(POST_FSP_SILICON_EXIT);
--
To view, visit https://review.coreboot.org/c/coreboot/+/29899
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6e5a52752d757159f12a65dfa5d08ac5fd65c259
Gerrit-Change-Number: 29899
Gerrit-PatchSet: 1
Gerrit-Owner: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29895 )
Change subject: arch/x86/acpigen.c: Add a method to notify all CPU cores
......................................................................
Patch Set 3: Code-Review+2
(2 comments)
https://review.coreboot.org/#/c/29895/3/src/arch/x86/acpigen.c
File src/arch/x86/acpigen.c:
https://review.coreboot.org/#/c/29895/3/src/arch/x86/acpigen.c@349
PS3, Line 349: unsigned
hmmm?
https://review.coreboot.org/#/c/29895/3/src/arch/x86/acpigen.c@381
PS3, Line 381: core_id);
Don't tell it would have fit a single line with `coreID` :-/
OTOH, once we got rid of all the static ASL code, there shouldn't
be a need for CONFIG_ACPI_CPU_STRING anymore...
--
To view, visit https://review.coreboot.org/c/coreboot/+/29895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Gerrit-Change-Number: 29895
Gerrit-PatchSet: 3
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 28 Nov 2018 14:47:01 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Patrick Rudolph, Felix Held, build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/29895
to look at the new patch set (#3).
Change subject: arch/x86/acpigen.c: Add a method to notify all CPU cores
......................................................................
arch/x86/acpigen.c: Add a method to notify all CPU cores
Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/arch/x86/acpigen.c
M src/arch/x86/include/arch/acpigen.h
M src/cpu/intel/speedstep/acpi.c
3 files changed, 19 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/29895/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/29895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Gerrit-Change-Number: 29895
Gerrit-PatchSet: 3
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29895 )
Change subject: arch/x86/acpigen.c: Add a method to notify all CPU cores
......................................................................
Patch Set 2: Code-Review-1
(3 comments)
https://review.coreboot.org/#/c/29895/2/src/arch/x86/acpigen.c
File src/arch/x86/acpigen.c:
https://review.coreboot.org/#/c/29895/2/src/arch/x86/acpigen.c@375
PS2, Line 375: int coreID;
I know it might have been me who named it like that... but
give it a proper identifier? e.g. core_id?
https://review.coreboot.org/#/c/29895/2/src/arch/x86/acpigen.c@377
PS2, Line 377: \\_PR.
NB. Why the absolute path? At some point we might want to just ensure
that these functions are called in the proper scope. CONFIG_ACPI_CPU_
STRING would have to change too...
https://review.coreboot.org/#/c/29895/2/src/arch/x86/acpigen.c@380
PS2, Line 380: snprintf(buffer, sizeof(buffer), "\\_PR.CP%c%c",
: '0' + coreID / 10, '0' + coreID % 10);
snprintf(buffer, sizeof(buffer), CONFIG_ACPI_CPU_STRING, coreID);
--
To view, visit https://review.coreboot.org/c/coreboot/+/29895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Gerrit-Change-Number: 29895
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 28 Nov 2018 14:05:04 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/29895 )
Change subject: arch/x86/acpigen.c: Add a method to notify all CPU cores
......................................................................
Patch Set 2: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/29895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Gerrit-Change-Number: 29895
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 28 Nov 2018 13:28:19 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Hello Patrick Rudolph, build bot (Jenkins), Nico Huber,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/29895
to look at the new patch set (#2).
Change subject: arch/x86/acpigen.c: Add a method to notify all CPU cores
......................................................................
arch/x86/acpigen.c: Add a method to notify all CPU cores
Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
---
M src/arch/x86/acpigen.c
M src/arch/x86/include/arch/acpigen.h
M src/cpu/intel/speedstep/acpi.c
3 files changed, 19 insertions(+), 11 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/95/29895/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/29895
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If8b07fdcec51c344a82309d4af3b6127ad758baf
Gerrit-Change-Number: 29895
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset