Attention is currently required from: Sean Rhodes, Benjamin Doron, Maximilian Brune, Lean Sheng Tan.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74121 )
Change subject: [RFC] drivers/option: Add option list in cbtable
......................................................................
Patch Set 3:
(7 comments)
File src/commonlib/include/commonlib/coreboot_tables.h:
https://review.coreboot.org/c/coreboot/+/74121/comment/6efafaf4_d37a0625
PS1, Line 99: LB_TAG_CFR_STRING = 0x0102,
> This is currently unused, as CFR strings are not a cbtables record. […]
Done
File src/drivers/option/cfr.h:
https://review.coreboot.org/c/coreboot/+/74121/comment/7ffa4a00_ea264213
PS2, Line 10: SETUP_MENU_VAR_FLAG_READONLY = 1 << 0,
: SETUP_MENU_VAR_FLAG_GRAYOUT = 1 << 1,
: SETUP_MENU_VAR_FLAG_SUPPRESS = 1 << 2,
> yeah this sounds better
Done
File src/drivers/option/cfr.h:
https://review.coreboot.org/c/coreboot/+/74121/comment/3fc555be_b6b4bca8
PS1, Line 48: struct cfr_string {
: uint32_t length;
: uint8_t str[];
: };
> Even if it's redundant, making this a cbtables record means CFR sinks (consumers) can be simpler (no […]
Done
https://review.coreboot.org/c/coreboot/+/74121/comment/ecdf4a4f_265245b9
PS1, Line 68: uint32_t size;
> We might want to add an "option ID" value here, which could be used in the future to reference optio […]
Done
https://review.coreboot.org/c/coreboot/+/74121/comment/09f34c5d_ed3d10cc
PS1, Line 71: /* struct cfr_string opt_name; */
: /* struct cfr_string ui_name; */
: /* struct lb_cfr_enum_value enum_values[]; */
> Yes, CFR strings (and byte buffers, if added in the future) would either need the two length fields […]
Done
https://review.coreboot.org/c/coreboot/+/74121/comment/17dcd795_5f412297
PS1, Line 80: struct lb_cfr_form forms[];
> Should be commented out too. […]
Done
File src/drivers/option/cfr.c:
https://review.coreboot.org/c/coreboot/+/74121/comment/7a300a28_7f1e7e8a
PS1, Line 22: /* TODO: error handling? */
: die("%s: bad size (start = %" PRIxPTR ", end = %" PRIxPTR ")",
: __func__, start, end);
:
> This is a sanity check so that `end - start` can safely be casted to `uint32_t`. […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/74121
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I304de7d26d79245a2e31a6d01f6c5643b31cb772
Gerrit-Change-Number: 74121
Gerrit-PatchSet: 3
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Daniel Maslowski <info(a)orangecms.org>
Gerrit-CC: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 12:00:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Sean Rhodes <sean(a)starlabs.systems>
Comment-In-Reply-To: Benjamin Doron <benjamin.doron00(a)gmail.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Comment-In-Reply-To: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-MessageType: comment
Attention is currently required from: Christian Walter.
Arthur Heymans has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74810 )
Change subject: soc/intel/common/block/pmc: Sort Kconfig in alphabetical order
......................................................................
Patch Set 1: Code-Review+2
(1 comment)
Patchset:
PS1:
Thanks!
--
To view, visit https://review.coreboot.org/c/coreboot/+/74810
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7392ede4226a940896c805fc0b0bc0dd615a964c
Gerrit-Change-Number: 74810
Gerrit-PatchSet: 1
Gerrit-Owner: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 12:00:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Sean Rhodes, Benjamin Doron, Christian Walter, Maximilian Brune, Lean Sheng Tan.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74122 )
Change subject: [WIP] mb/prodrive/atlas: Put options in CFR cbtable
......................................................................
Patch Set 1:
(2 comments)
Patchset:
PS1:
> Sheng, do we want variables for the user to control "PXE retries" and UEFI Secure Boot in the setup […]
Does it make sense to have coreboot describe these variables through CFR? If edk2 needs to read the options anyway, it might make sense to describe them in edk2 proper, and suppress them according to the profile (which can be passed via CFR).
But if the CFR parser in edk2 is separate from the handling of options themselves, then it may be simpler to declare everything through CFR. You decide, either approach is fine w.r.t coreboot side.
File src/mainboard/prodrive/atlas/cfr.c:
https://review.coreboot.org/c/coreboot/+/74122/comment/95bb85c9_298ff5f9
PS1, Line 14: struct sm_enum_value pwr_after_g3_values[] = {
: { "Power on (S0)", 0 },
: { "Power off (S5)", 1 },
: SM_ENUM_VALUE_END,
: };
> These enum values aren't correct, see src/soc/intel/common/block/include/intelblocks/pmclib.h: […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/74122
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I47585a9a6f94ab5005f2ab63a0df267c0caef231
Gerrit-Change-Number: 74122
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 11:56:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Sean Rhodes, Benjamin Doron, Christian Walter, Maximilian Brune, Lean Sheng Tan.
Hello build bot (Jenkins), Benjamin Doron, Christian Walter, Maximilian Brune, Lean Sheng Tan,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/74122
to look at the new patch set (#2).
Change subject: [WIP] mb/prodrive/atlas: Put options in CFR cbtable
......................................................................
[WIP] mb/prodrive/atlas: Put options in CFR cbtable
PLEASE REMOVE THE TESTONLY OPTIONS IF BUILDING THIS FOR PRODUCTION
YOU HAVE BEEN WARNED
Open questions:
- What to do with payload-specific options? The payload needs to know
about them anyway, so describing them in coreboot kind of defeats
the purpose of avoiding duplication. In our case, we can handle the
profile values in the payload, which coreboot can send through CFR.
- Hook up options using the option API
- Figure out the details for some options (e.g. LLC dead line alloc)
- Figure out if any options are missing, and if the defaults are OK
The plan is to avoid having to specify the options in both edk2 and
coreboot.
Change-Id: I47585a9a6f94ab5005f2ab63a0df267c0caef231
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/mainboard/prodrive/atlas/Kconfig
M src/mainboard/prodrive/atlas/Makefile.inc
A src/mainboard/prodrive/atlas/cfr.c
3 files changed, 289 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/22/74122/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/74122
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I47585a9a6f94ab5005f2ab63a0df267c0caef231
Gerrit-Change-Number: 74122
Gerrit-PatchSet: 2
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Sean Rhodes, Angel Pons, Maximilian Brune, Lean Sheng Tan.
Hello build bot (Jenkins), Benjamin Doron, Maximilian Brune,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/74121
to look at the new patch set (#3).
Change subject: [RFC] drivers/option: Add option list in cbtable
......................................................................
[RFC] drivers/option: Add option list in cbtable
@@@@@@@@@@@@@@@@@@@@
@ W A R N I N G @
@@@@@@@@@@@@@@@@@@@@
In Patchset 3, the cbtables CFR tags have been renumbered. Also, there
have been changes to the structures: strings are now a record, and new
fields got added (option_id). THE CHANGES ARE NOT BACKWARDS COMPATIBLE!
TODO: rewrite commit msg, add proper documentation. Maybe add tests.
Introduce a mechanism so that coreboot can provide a list of options to
post-coreboot code. This can be used to let payloads know which options
should be displayed in a setup menu, for instance. Although this system
was written to be used with edk2, it has been designed with flexibility
in mind so that other payloads can also make use of this mechanism.
The data structures follow a hitherto undefined specification, known as
CFR. This acronym could mean "coreboot forms representation" or "cursed
forms representation"; whether the former or the latter is the intended
expansion is left as an exercise for the reviewer.
It should be possible to extend these structures in the future, in case
additional functionality is needed.
Change-Id: I304de7d26d79245a2e31a6d01f6c5643b31cb772
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/commonlib/include/commonlib/coreboot_tables.h
A src/drivers/option/Kconfig
A src/drivers/option/Makefile.inc
A src/drivers/option/cfr.c
A src/drivers/option/cfr.h
5 files changed, 389 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/21/74121/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/74121
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I304de7d26d79245a2e31a6d01f6c5643b31cb772
Gerrit-Change-Number: 74121
Gerrit-PatchSet: 3
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Benjamin Doron <benjamin.doron00(a)gmail.com>
Gerrit-Reviewer: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Daniel Maslowski <info(a)orangecms.org>
Gerrit-CC: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Maximilian Brune <maximilian.brune(a)9elements.com>
Gerrit-Attention: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Arthur Heymans.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74760 )
Change subject: soc/intel: Don't report _S1 state when unsupported
......................................................................
Patch Set 7:
(1 comment)
File src/soc/intel/common/block/pmc/Kconfig:
https://review.coreboot.org/c/coreboot/+/74760/comment/ae47aa92_53bb5dfa
PS7, Line 7: select ACPI_S1_NOT_SUPPORTED
> CB:74810
Thanks Chris
--
To view, visit https://review.coreboot.org/c/coreboot/+/74760
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic9e19410696240755e8714db53a0525284f3a2da
Gerrit-Change-Number: 74760
Gerrit-PatchSet: 7
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Jeff Daly <jeffd(a)silicom-usa.com>
Gerrit-Reviewer: Johnny Lin <Johnny_Lin(a)wiwynn.com>
Gerrit-Reviewer: Jonathan Zhang <jon.zhixiong.zhang(a)gmail.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Lean Sheng Tan <sheng.tan(a)9elements.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Reviewer: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: Tim Chu <Tim.Chu(a)quantatw.com>
Gerrit-Reviewer: Vanessa Eusebio <vanessa.f.eusebio(a)intel.com>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Thu, 27 Apr 2023 11:50:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Christian Walter <christian.walter(a)9elements.com>
Gerrit-MessageType: comment
Attention is currently required from: Christian Walter.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74810 )
Change subject: soc/intel/common/block/pmc: Sort Kconfig in alphabetical order
......................................................................
Patch Set 1: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/74810
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7392ede4226a940896c805fc0b0bc0dd615a964c
Gerrit-Change-Number: 74810
Gerrit-PatchSet: 1
Gerrit-Owner: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Christian Walter <christian.walter(a)9elements.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 11:50:11 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Derek Huang, Paul Menzel, Kapil Porwal, Andrey Petrov.
Subrata Banik has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74783 )
Change subject: soc/intel/common: Introduce API to get the FSP Reset Status
......................................................................
Patch Set 4:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/74783/comment/0988665e_26343785
PS2, Line 14: Ideally FSP API should be able to return the status (both success and
: error code) upon exiting the FSP API but unfortunately there are some
: scenarios in ADL/RPL FSP where MultiPhaseSiInit API is unable to return
: any ERROR status. Hence, this function provides an additional hook to
: read the FSP reset status by reading the dedicated HOB without relying
: on the FSP API exit status code.
> Is there an FSP upstream bug report for this? If yes, it’d be great if you referenced it.
the bug being mentioned in the commit msg is the own assigned to Intel and there will be external communication from Intel
--
To view, visit https://review.coreboot.org/c/coreboot/+/74783
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief5d79736cc11a0a31ca2889128285795f8b5aae
Gerrit-Change-Number: 74783
Gerrit-PatchSet: 4
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Derek Huang <derekhuang(a)google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Derek Huang <derekhuang(a)google.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Attention: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 11:49:32 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Attention is currently required from: Subrata Banik, Derek Huang, Andrey Petrov.
Paul Menzel has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/74783 )
Change subject: soc/intel/common: Introduce API to get the FSP Reset Status
......................................................................
Patch Set 4:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/74783/comment/ad28425a_9f2ee14d
PS2, Line 14: Ideally FSP API should be able to return the status (both success and
: error code) upon exiting the FSP API but unfortunately there are some
: scenarios in ADL/RPL FSP where MultiPhaseSiInit API is unable to return
: any ERROR status. Hence, this function provides an additional hook to
: read the FSP reset status by reading the dedicated HOB without relying
: on the FSP API exit status code.
> > Is that dependent on the FSP version, that means, will it be fixed in a future version? […]
Is there an FSP upstream bug report for this? If yes, it’d be great if you referenced it.
--
To view, visit https://review.coreboot.org/c/coreboot/+/74783
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ief5d79736cc11a0a31ca2889128285795f8b5aae
Gerrit-Change-Number: 74783
Gerrit-PatchSet: 4
Gerrit-Owner: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Derek Huang <derekhuang(a)google.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Kapil Porwal <kapilporwal(a)google.com>
Gerrit-Reviewer: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Derek Huang <derekhuang(a)google.com>
Gerrit-Attention: Andrey Petrov <andrey.petrov(a)gmail.com>
Gerrit-Comment-Date: Thu, 27 Apr 2023 11:38:50 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment