Rocky Phagura has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/43979 )
Change subject: drivers/intel/fsp2_0 - Change boot state notification Change boot state notification of FSP to before payload is loaded into memory. Currently the flow is as follows: 1. Load payload into memory 2. Notify FSP of boot state init 3. Jump to payload code
......................................................................
drivers/intel/fsp2_0 - Change boot state notification
Change boot state notification of FSP to before payload is loaded into memory.
Currently the flow is as follows:
1. Load payload into memory
2. Notify FSP of boot state init
3. Jump to payload code
This patch changes the flow to:
1. Notify FSP of boot state
2. Load payload into memory
3. Jump to payload code
This prevents code corruption of payload. At this stage of boot, there is no
concept of memory management, therefore FSP can use any memory it needs. After
making these changes, Tianocore payload is able to load properly where
previously its memory was getting corrupted.
TEST=build for Tiogapass platform under OCP mainboard and select Tianocore
payload. Boot the system and ensure target OS loads.
Change-Id: I122edc12abf992cb3e5ec53747a7cef9c94aee8e
Signed-off-by: Rocky Phagura <rphagura(a)fb.com>
---
M src/drivers/intel/fsp2_0/notify.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/43979/1
diff --git a/src/drivers/intel/fsp2_0/notify.c b/src/drivers/intel/fsp2_0/notify.c
index 76cdf12..ba8ef9e 100644
--- a/src/drivers/intel/fsp2_0/notify.c
+++ b/src/drivers/intel/fsp2_0/notify.c
@@ -68,7 +68,7 @@
BOOT_STATE_INIT_ENTRY(BS_DEV_ENABLE, BS_ON_ENTRY, fsp_notify_dummy,
(void *) AFTER_PCI_ENUM);
-BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_EXIT, fsp_notify_dummy,
+BOOT_STATE_INIT_ENTRY(BS_PAYLOAD_LOAD, BS_ON_ENTRY, fsp_notify_dummy,
(void *) READY_TO_BOOT);
BOOT_STATE_INIT_ENTRY(BS_OS_RESUME, BS_ON_ENTRY, fsp_notify_dummy,
(void *) READY_TO_BOOT);
--
To view, visit https://review.coreboot.org/c/coreboot/+/43979
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I122edc12abf992cb3e5ec53747a7cef9c94aee8e
Gerrit-Change-Number: 43979
Gerrit-PatchSet: 1
Gerrit-Owner: Rocky Phagura
Gerrit-MessageType: newchange
Xi Chen has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48560 )
Change subject: checkpatch: fix parsing xxx_for_each_xxx function declaration as list macro style
......................................................................
checkpatch: fix parsing xxx_for_each_xxx function declaration as list macro style
Originally[C, xxx_for_each_xxx style matches list style macro, it also matches
function declaration. It will cause alert that '{' should be on the previous
line.
For example:
static void set_vcore_voltage_for_each_freq(const struct ddr_cali *cali)
{
Signed-off-by: Xi Chen <xixi.chen(a)mediatek.com>
Change-Id: Iacbfefc6c9a3c8b58ba77085890bc4239dac1858
---
M util/lint/checkpatch.pl
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/60/48560/1
diff --git a/util/lint/checkpatch.pl b/util/lint/checkpatch.pl
old mode 100755
new mode 100644
index 1affdb7..9536147
--- a/util/lint/checkpatch.pl
+++ b/util/lint/checkpatch.pl
@@ -3471,7 +3471,8 @@
# if/while/etc brace do not go on next line, unless defining a do while loop,
# or if that brace on the next line is for something else
- if ($line =~ /(.*)\b((?:if|while|for|switch|(?:[a-z_]+|)for_each[a-z_]+)\s*\(|do\b|else\b)/ && $line !~ /^.\s*\#/) {
+ if ($line =~ /(.*)\b((?:if|while|for|switch)\s*\(|do\b|else\b)/ || $line =~ /^(?:[a-z_]+|)for_each[a-z_]+\s*\(|do\b|else\b/
+ && $line !~ /^.\s*\#/) {
my $pre_ctx = "$1$2";
my ($level, @ctx) = ctx_statement_level($linenr, $realcnt, 0);
--
To view, visit https://review.coreboot.org/c/coreboot/+/48560
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iacbfefc6c9a3c8b58ba77085890bc4239dac1858
Gerrit-Change-Number: 48560
Gerrit-PatchSet: 1
Gerrit-Owner: Xi Chen <xixi.chen(a)mediatek.com>
Gerrit-MessageType: newchange
Sugnan Prabhu S has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/47199 )
Change subject: mb/google/dedede/var/drawcia: Enable microcode in-field update
......................................................................
mb/google/dedede/var/drawcia: Enable microcode in-field update
This enables the top swap based microcode in-field update.
BUG=b:149547271
TEST=Build and boot drawcia to OS. Check ucode staging area is updated
with microcode in FW_MAIN_A/B and the top swap is enabled.
Change-Id: I40f2a628d6408930d698756e2cb6f8c535623cf9
Signed-off-by: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
---
M src/mainboard/google/dedede/Kconfig.name
1 file changed, 2 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/99/47199/1
diff --git a/src/mainboard/google/dedede/Kconfig.name b/src/mainboard/google/dedede/Kconfig.name
index 31495a1..238b4ca 100644
--- a/src/mainboard/google/dedede/Kconfig.name
+++ b/src/mainboard/google/dedede/Kconfig.name
@@ -22,6 +22,8 @@
select DRIVERS_GENERIC_MAX98357A
select GEO_SAR_ENABLE if CHROMEOS_WIFI_SAR
select DRIVERS_INTEL_MIPI_CAMERA
+ select INTEL_TOP_SWAP_MULTI_FIT_UCODE_UPDATE
+ select SOC_INTEL_COMMON_BASECODE
select SOC_INTEL_COMMON_BLOCK_IPU
config BOARD_GOOGLE_DRAWCIA_LEGACY
--
To view, visit https://review.coreboot.org/c/coreboot/+/47199
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I40f2a628d6408930d698756e2cb6f8c535623cf9
Gerrit-Change-Number: 47199
Gerrit-PatchSet: 1
Gerrit-Owner: Sugnan Prabhu S <sugnan.prabhu.s(a)intel.com>
Gerrit-MessageType: newchange
Keith Hui has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/41459 )
Change subject: mb/asus/p2b: list all unused Super I/O resources
......................................................................
mb/asus/p2b: list all unused Super I/O resources
Some Super I/O resources were unused and not listed, causing warnings
during resource allocation. Suppress these warnings by setting them to
zero.
Change-Id: I28e37c3a58f3a6b5a613733f26ac18d6a7b3be2e
Signed-off-by: Keith Hui <buurin(a)gmail.com>
---
M src/mainboard/asus/p2b/devicetree.cb
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/59/41459/1
diff --git a/src/mainboard/asus/p2b/devicetree.cb b/src/mainboard/asus/p2b/devicetree.cb
index 9f7f63e..7ee69e4 100644
--- a/src/mainboard/asus/p2b/devicetree.cb
+++ b/src/mainboard/asus/p2b/devicetree.cb
@@ -18,6 +18,7 @@
device pnp 3f0.1 on # Parallel port
io 0x60 = 0x378
irq 0x70 = 7
+ drq 0x74 = 0
end
device pnp 3f0.2 on # COM1
io 0x60 = 0x3f8
@@ -34,6 +35,9 @@
irq 0x72 = 12 # PS/2 mouse interrupt
end
device pnp 3f0.7 on # GPIO 1
+ io 0x60 = 0
+ io 0x62 = 0
+ irq 0x70 = 0
end
device pnp 3f0.8 on # GPIO 2
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/41459
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I28e37c3a58f3a6b5a613733f26ac18d6a7b3be2e
Gerrit-Change-Number: 41459
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Hui <buurin(a)gmail.com>
Gerrit-MessageType: newchange
Keith Hui has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/48921 )
Change subject: sb/intel: Introduce SCMI Kconfig options
......................................................................
sb/intel: Introduce SCMI Kconfig options
Introduce two options for enabling SMBus Control Method Interface [1] support.
1. HAVE_SCMI is to be set by southbridges that implements SCMI in the DSDT.
That implementation should be conditional on USE_SCMI. See below.
2. USE_SCMI is guarded by HAVE_SCMI and actually provides the option to the
user in Kconfig. Enabling it adds the SCMI implementation to the DSDT and
make it usable. Boards that require this support for board function should
set it in their BOARD_SPECIFIC_OPTIONS, which will lock this option on.
It will be used by CB:41735 but are designed for wider adoption e.g. by CB:44507
[1] http://smbus.org/specs/smbus_cmi10.pdf
[41735] https://review.coreboot.org/c/coreboot/+/41735
[44507] https://review.coreboot.org/c/coreboot/+/44507
Change-Id: Ib1e176b6495fa673fd46cbb8f8fd7c5a41ababde
Signed-off-by: Keith Hui <buurin(a)gmail.com>
---
M src/southbridge/intel/common/Kconfig
1 file changed, 19 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/48921/1
diff --git a/src/southbridge/intel/common/Kconfig b/src/southbridge/intel/common/Kconfig
index 3030d25..11ba094 100644
--- a/src/southbridge/intel/common/Kconfig
+++ b/src/southbridge/intel/common/Kconfig
@@ -105,3 +105,22 @@
hex
depends on SOUTHBRIDGE_INTEL_COMMON_SMBUS
default 0x400
+
+config HAVE_SCMI
+ bool
+ help
+ Selected by southbridges that implements SCMI in their DSDT.
+ See http://smbus.org/specs/smbus_cmi10.pdf for details.
+
+config USE_SCMI
+ bool "Enable SMBus Control Method Interface (SCMI)"
+ depends on HAVE_SCMI && HAVE_ACPI_TABLES
+ help
+ Adds extra access methods conforming to the SMBus Control Method Interface (SCMI)
+ specification to the SMBus ACPI device. This provides alternate SMBus access if
+ regular means are unavailable due to e.g. resource conflicts.
+
+ ASUS P3B-F mainboard is known to need this.
+
+ If you say Y here, you will have to blacklist the native driver and instead use
+ i2c-scmi driver to access SMBus-connected devices.
--
To view, visit https://review.coreboot.org/c/coreboot/+/48921
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib1e176b6495fa673fd46cbb8f8fd7c5a41ababde
Gerrit-Change-Number: 48921
Gerrit-PatchSet: 1
Gerrit-Owner: Keith Hui <buurin(a)gmail.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange