Attention is currently required from: Felix Held, Fred Reitberger, Jason Glenesk, Martin L Roth, Matt DeVillier, Nick Kochlowski, Varshit Pandya.
Martin Roth has posted comments on this change by Nick Kochlowski. ( https://review.coreboot.org/c/coreboot/+/85632?usp=email )
Change subject: drivers/amd/opensil/mpio: Factor out common MPIO symbols from vendorcode
......................................................................
Patch Set 6:
(5 comments)
Patchset:
PS6:
I wouldn't insist on it, but in my opinion, this would be better split into a few different patches making changes in specific areas:
1) Add the code to drivers
2) switch phoenix
3) switch birman
4) switch genoa
5) switch onyx
6) remove vendorcode
or something like that. We just prefer not to make changes in so many places at once unless it's required. Maybe it is in this case, but I don't think so...
File src/drivers/amd/opensil/mpio/chip.h:
https://review.coreboot.org/c/coreboot/+/85632/comment/9a851d67_e0824e5c?us… :
PS6, Line 8: void configure_mpio(void);
Why does this go in chip.h and not in opensil.h?
File src/drivers/amd/opensil/mpio/chip.c:
https://review.coreboot.org/c/coreboot/+/85632/comment/92b64706_f42dfd62?us… :
PS6, Line 8: struct chip_operations drivers_amd_opensil_mpio_ops = {
: .name = "AMD MPIO",
: };
Why do these go in chip.c? Obviously the *can* go here, but that's not typically the case.
Looking through the entirety of the drivers subdirectory, I see one case out of maybe 50 where this is in chip.c.
File src/vendorcode/amd/opensil/Kconfig:
https://review.coreboot.org/c/coreboot/+/85632/comment/eedc5615_c05b8f2a?us… :
PS6, Line 28: ../../../../vendorcode
'$(top)/src/vendorcode' ?
File src/vendorcode/amd/opensil/stub/mpio/chip.c:
https://review.coreboot.org/c/coreboot/+/85632/comment/5d9433e1_ffe03cb0?us… :
PS6, Line 6: "../../opensil.h"
<src/vendorcode/amd/opensil/opensil.h>?
--
To view, visit https://review.coreboot.org/c/coreboot/+/85632?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I8b1f92f08565216dd93203a06015e3eec1e7bb69
Gerrit-Change-Number: 85632
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Kochlowski <nickkochlowski(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-CC: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Nick Kochlowski <nickkochlowski(a)gmail.com>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Thu, 19 Dec 2024 17:02:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Attention is currently required from: Felix Held, Fred Reitberger, Jason Glenesk, Martin L Roth, Matt DeVillier, Nick Kochlowski, Varshit Pandya.
Martin Roth has posted comments on this change by Nick Kochlowski. ( https://review.coreboot.org/c/coreboot/+/85631?usp=email )
Change subject: drivers/amd/opensil: Add openSIL timepoint calls
......................................................................
Patch Set 6:
(3 comments)
File src/drivers/amd/opensil/Kconfig:
https://review.coreboot.org/c/coreboot/+/85631/comment/fb859c68_8e52cc87?us… :
PS6, Line 5: depends on SOC_AMD_OPENSIL
I don't think this is needed, or actually even useful. Because there's no prompt, the option *must* be selected to be enabled. Using a select will override a "depends on" statement.
File src/drivers/amd/opensil/opensil.h:
https://review.coreboot.org/c/coreboot/+/85631/comment/aa20c667_57dc4f93?us… :
PS6, Line 3: _OPENSIL_DRIVER_H_
Nit: maybe "DRIVER_AMD_OPENSIL", without the underscores? Or not.
It's not critical, but we'd like to get rid of all of the underscores at some point. We thought they were useful, but apparently they violate some spec or another.
File src/soc/amd/phoenix/chip.c:
https://review.coreboot.org/c/coreboot/+/85631/comment/a27e9c4a_d9ca3afc?us… :
PS6, Line 3: /* TODO: Update for Phoenix */
Not related to this patch, but maybe we can get rid of this todo soon?
--
To view, visit https://review.coreboot.org/c/coreboot/+/85631?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If0559fc0ff0ec55e9ef131e5ed20dfb5baa651da
Gerrit-Change-Number: 85631
Gerrit-PatchSet: 6
Gerrit-Owner: Nick Kochlowski <nickkochlowski(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-CC: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Varshit Pandya <pandyavarshit(a)gmail.com>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Nick Kochlowski <nickkochlowski(a)gmail.com>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Thu, 19 Dec 2024 16:49:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Karthik Ramasubramanian has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85642?usp=email )
Change subject: mb/google/brox: Include CSE reset in mainboard reset expectation
......................................................................
mb/google/brox: Include CSE reset in mainboard reset expectation
If CSE is in RO, then a reset is expected for CSE to jump to RW. Include
that reset in mainboard_expects_another_reset() logic. This will avoid
unnecessary warm reset during regular boot flow in boards with non-UFS
storage.
BUG=None
TEST=Build Brox BIOS image and boot to OS. Ensure that redundant reset
to disable UFS controller is avoided.
Before this change:
[INFO ] Disabling UFS controllers
[INFO ] Warm Reset after disabling UFS controllers
[INFO ] system_reset() called!
<snip>
[DEBUG] HECI: Global Reset(Type:1) Command
<snip>
[INFO ] Disabling UFS controllers
[INFO ] Warm Reset after disabling UFS controllers
[INFO ] system_reset() called!
After this change:
[DEBUG] HECI: Global Reset(Type:1) Command
<snip>
[INFO ] Disabling UFS controllers
[INFO ] Warm Reset after disabling UFS controllers
[INFO ] system_reset() called!
Change-Id: I80a46b15813b6bdfa6c029c54590f4b7c2a6754b
Signed-off-by: Karthikeyan Ramasubramanian <kramasub(a)google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85642
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Subrata Banik <subratabanik(a)google.com>
---
M src/mainboard/google/brox/variants/baseboard/brox/romstage.c
1 file changed, 6 insertions(+), 0 deletions(-)
Approvals:
Subrata Banik: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/src/mainboard/google/brox/variants/baseboard/brox/romstage.c b/src/mainboard/google/brox/variants/baseboard/brox/romstage.c
index 66ed99b..6a03a9a 100644
--- a/src/mainboard/google/brox/variants/baseboard/brox/romstage.c
+++ b/src/mainboard/google/brox/variants/baseboard/brox/romstage.c
@@ -3,6 +3,7 @@
#include <baseboard/variants.h>
#include <cbfs.h>
#include <ec/google/chromeec/ec.h>
+#include <intelblocks/cse.h>
#include <security/vboot/vboot_common.h>
#include <security/vboot/misc.h>
#include <soc/romstage.h>
@@ -53,9 +54,14 @@
bool mainboard_expects_another_reset(void)
{
+ /* Do not change the order of the check in this function */
if (vboot_recovery_mode_enabled())
return false;
+ /* If CSE is booting from RO, CSE state switch will issue a reset anyway. */
+ if (!is_cse_boot_to_rw())
+ return true;
+
if (!CONFIG(VBOOT) ||
(vboot_is_gbb_flag_set(VB2_GBB_FLAG_DISABLE_EC_SOFTWARE_SYNC) &&
vboot_is_gbb_flag_set(VB2_GBB_FLAG_DISABLE_AUXFW_SOFTWARE_SYNC)))
--
To view, visit https://review.coreboot.org/c/coreboot/+/85642?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: merged
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I80a46b15813b6bdfa6c029c54590f4b7c2a6754b
Gerrit-Change-Number: 85642
Gerrit-PatchSet: 3
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Ren Kuo <ren.kuo(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Attention is currently required from: Maximilian Brune, Philipp Hug, ron minnich.
Hello Maximilian Brune, Philipp Hug, ron minnich,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85677?usp=email
to look at the new patch set (#2).
Change subject: mb/qemu-riscv: enable vboot
......................................................................
mb/qemu-riscv: enable vboot
Add the option to enable vboot for the qemu-riscv board. In order to do
this, enable the qemu boot device driver, so that vboot is able to store
and modify data in flash, as well as the fw_cfg driver.
Additionally, add FMD files to describe the two different vboot FMAP
configurations (A or A + B), and update the memory layout in the linker
script to accommodate for the VBOOT2_WORK buffer.
TEST=boot verified with qemu-system-riscv64 + OpenSBI
Change-Id: I5a6dfa10b66c20851c5012679a9bc0168d1cf17c
Signed-off-by: Carlos López <carlos.lopez(a)openchip.com>
---
M src/mainboard/emulation/qemu-riscv/Kconfig
M src/mainboard/emulation/qemu-riscv/Makefile.mk
M src/mainboard/emulation/qemu-riscv/memlayout.ld
M src/mainboard/emulation/qemu-riscv/rom_media.c
A src/mainboard/emulation/qemu-riscv/vboot-rwa.fmd
A src/mainboard/emulation/qemu-riscv/vboot-rwab.fmd
6 files changed, 68 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/85677/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/85677?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newpatchset
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I5a6dfa10b66c20851c5012679a9bc0168d1cf17c
Gerrit-Change-Number: 85677
Gerrit-PatchSet: 2
Gerrit-Owner: Carlos López <carlos.lopezr4096(a)gmail.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>
Attention is currently required from: Hung-Te Lin, Vince Liu.
Yidi Lin has posted comments on this change by Vince Liu. ( https://review.coreboot.org/c/coreboot/+/85667?usp=email )
Change subject: soc/mediatek/mt8189: Add GPIO driver
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/85667?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: comment
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ia87fe0975add95fcfad16d55586559c7f912a624
Gerrit-Change-Number: 85667
Gerrit-PatchSet: 1
Gerrit-Owner: Vince Liu <vince-wl.liu(a)mediatek.com>
Gerrit-Reviewer: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Reviewer: Yidi Lin <yidilin(a)google.com>
Gerrit-Reviewer: Yu-Ping Wu <yupingso(a)google.com>
Gerrit-Attention: Hung-Te Lin <hungte(a)chromium.org>
Gerrit-Attention: Vince Liu <vince-wl.liu(a)mediatek.com>
Gerrit-Comment-Date: Thu, 19 Dec 2024 16:12:01 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Carlos López has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85676?usp=email )
Change subject: vboot: update submodule to upstream main
......................................................................
vboot: update submodule to upstream main
Updating from commit f1f70f46 to 3f94e2c7. This brings, among other
things, the ability to build vboot for RISC-V.
Change-Id: I48f960235088c17dc59235b07926acd52e03deb2
Signed-off-by: Carlos López <carlos.lopez(a)openchip.com>
---
M 3rdparty/vboot
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/76/85676/1
diff --git a/3rdparty/vboot b/3rdparty/vboot
index f1f70f4..3f94e2c 160000
--- a/3rdparty/vboot
+++ b/3rdparty/vboot
@@ -1 +1 @@
-Subproject commit f1f70f46dc5482bb7c654e53ed58d4001e386df2
+Subproject commit 3f94e2c7ed58c4e67d6e7dc6052ec615dbbb9bb4
--
To view, visit https://review.coreboot.org/c/coreboot/+/85676?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I48f960235088c17dc59235b07926acd52e03deb2
Gerrit-Change-Number: 85676
Gerrit-PatchSet: 1
Gerrit-Owner: Carlos López <carlos.lopezr4096(a)gmail.com>
Attention is currently required from: Maximilian Brune, Philipp Hug, ron minnich.
Carlos López has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/85675?usp=email )
Change subject: mb/qemu-riscv: set PCI_IOBASE
......................................................................
mb/qemu-riscv: set PCI_IOBASE
The correct value for the IO base is at 0x3000000, so set it. Otherwise,
I/O operations (e.g. inb(), outb(), etc.) won't work.
Change-Id: I5106fa95401de53e70f0859d27e07d2b8fde9ca0
Signed-off-by: Carlos López <carlos.lopez(a)openchip.com>
---
M src/mainboard/emulation/qemu-riscv/Kconfig
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/85675/1
diff --git a/src/mainboard/emulation/qemu-riscv/Kconfig b/src/mainboard/emulation/qemu-riscv/Kconfig
index 9b5a6f0..2361e25 100644
--- a/src/mainboard/emulation/qemu-riscv/Kconfig
+++ b/src/mainboard/emulation/qemu-riscv/Kconfig
@@ -77,4 +77,8 @@
hex
default 0x80020000
+config PCI_IOBASE
+ hex
+ default 0x3000000
+
endif # BOARD_EMULATION_QEMU_RISCV
--
To view, visit https://review.coreboot.org/c/coreboot/+/85675?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I5106fa95401de53e70f0859d27e07d2b8fde9ca0
Gerrit-Change-Number: 85675
Gerrit-PatchSet: 1
Gerrit-Owner: Carlos López <carlos.lopezr4096(a)gmail.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: ron minnich <rminnich(a)gmail.com>
Gerrit-Attention: Philipp Hug <philipp(a)hug.cx>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: ron minnich <rminnich(a)gmail.com>