Attention is currently required from: Bob Moragues, Edward Hill, Karthik Ramasubramanian, Shyam Sundar Radjacoumar, Subrata Banik.
Hello Bob Moragues, Edward Hill, Shyam Sundar Radjacoumar, Subrata Banik, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85038?usp=email
to look at the new patch set (#2).
The following approvals got outdated and were removed:
Code-Review+1 by Bob Moragues, Code-Review+1 by Shyam Sundar Radjacoumar, Code-Review+2 by Subrata Banik, Verified+1 by build bot (Jenkins)
The change is no longer submittable: Code-Review and Verified are unsatisfied now.
Change subject: mb/google/brox: Do not select HAVE_ACPI_RESUME
......................................................................
mb/google/brox: Do not select HAVE_ACPI_RESUME
Brox mainboard does not reliably support S3 entry/exit. Hence do not
select HAVE_ACPI_RESUME config option. Also trigger a fail-safe board
reset if the system resumes from S3.
BUG=b:337274309
TEST=Build Brox BIOS image and boot to OS. Ensure that the _S3 name
variable is not advertised in the DSDT. Trigger a S3 entry and ensure
that on S3 exit, the board reset is triggered.
Change-Id: Ief0936fbcd9e5e34ef175736a858f98edf840719
Signed-off-by: Karthikeyan Ramasubramanian <kramasub(a)google.com>
---
M src/mainboard/google/brox/Kconfig
M src/mainboard/google/brox/bootblock.c
2 files changed, 11 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/38/85038/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/85038?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: Ief0936fbcd9e5e34ef175736a858f98edf840719
Gerrit-Change-Number: 85038
Gerrit-PatchSet: 2
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Bob Moragues <moragues(a)google.com>
Gerrit-Reviewer: Edward Hill <ecgh(a)google.com>
Gerrit-Reviewer: Shyam Sundar Radjacoumar <ssradjacoumar(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Shyam Sundar Radjacoumar <ssradjacoumar(a)google.com>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Edward Hill <ecgh(a)google.com>
Gerrit-Attention: Bob Moragues <moragues(a)google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Attention is currently required from: Edward Hill, Karthik Ramasubramanian.
Bob Moragues has posted comments on this change by Karthik Ramasubramanian. ( https://review.coreboot.org/c/coreboot/+/85038?usp=email )
Change subject: mb/google/brox: Do not select HAVE_ACPI_RESUME
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://review.coreboot.org/c/coreboot/+/85038?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: Ief0936fbcd9e5e34ef175736a858f98edf840719
Gerrit-Change-Number: 85038
Gerrit-PatchSet: 1
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Bob Moragues <moragues(a)google.com>
Gerrit-Reviewer: Edward Hill <ecgh(a)google.com>
Gerrit-Reviewer: Shyam Sundar Radjacoumar <ssradjacoumar(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Edward Hill <ecgh(a)google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Fri, 08 Nov 2024 21:54:53 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Attention is currently required from: Martin Roth, Matt DeVillier.
Felix Held has posted comments on this change by Felix Held. ( https://review.coreboot.org/c/coreboot/+/85008?usp=email )
Change subject: drivers/spi/spi_flash_sfdp: add SFDP support to get RPMC parameters
......................................................................
Patch Set 4:
(2 comments)
File src/drivers/spi/spi_flash_sfdp.c:
https://review.coreboot.org/c/coreboot/+/85008/comment/fc9ed8f5_a8c7b09b?us… :
PS3, Line 202: #define
> Why not put this in a header file? Sure, it may only be used here, but it clutters the C code IMO.
i wanted to keep that parameter id close to the corresponding parameter table field defines and i found that moving all of that into a header file makes it more difficult to read, since you have to switch back and forth between the c and the h file
https://review.coreboot.org/c/coreboot/+/85008/comment/67718582_468375f1?us… :
PS3, Line 250: multiplicator
> Multiplier? […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/85008?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: I3a1f7a5d16dd3ca6c8263b617ae9c21184b6a5b9
Gerrit-Change-Number: 85008
Gerrit-PatchSet: 4
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Comment-Date: Fri, 08 Nov 2024 19:52:51 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Attention is currently required from: Martin Roth, Matt DeVillier.
Felix Held has posted comments on this change by Felix Held. ( https://review.coreboot.org/c/coreboot/+/84786?usp=email )
Change subject: drivers/spi/spi_flash_sfdp: add basic SFDP support
......................................................................
Patch Set 11:
(4 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/84786/comment/6e7d0325_a5b8a97f?us… :
PS10, Line 10: a
: specific
> Nit: Maybe you only tested on one chip, but this should work with any chip that supports this mechan […]
Done
File src/drivers/spi/spi_flash_sfdp.c:
https://review.coreboot.org/c/coreboot/+/84786/comment/9f1615d5_ade311b8?us… :
PS10, Line 46: 0x50444653
> Nit: Use the ascii characters instead, or at least include them as a comment?
the cbmem ids also use hex numbers instead of char arrays; the byte order is also in reverse. i'll add a comment
https://review.coreboot.org/c/coreboot/+/84786/comment/2bd17df1_f39c0438?us… :
PS10, Line 158: %#x
> %p?
it's an uint32_t, not an actual c pointer, so %#x is correct here
https://review.coreboot.org/c/coreboot/+/84786/comment/32a3c4ea_bb00e59f?us… :
PS10, Line 176: if (get_sfdp_header(flash, &sfdp_rev, ¶m_header_count, &access_protocol) != CB_SUCCESS)
> Does this line need to be wrapped?
makes the code look a bit worse, but yes
--
To view, visit https://review.coreboot.org/c/coreboot/+/84786?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: I5a1706acf7d60fd64292e8f0677992ab4aebf46a
Gerrit-Change-Number: 84786
Gerrit-PatchSet: 11
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Comment-Date: Fri, 08 Nov 2024 19:52:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Attention is currently required from: Felix Held, Martin Roth, Matt DeVillier.
Hello Martin Roth, Matt DeVillier, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/85008?usp=email
to look at the new patch set (#4).
The following approvals got outdated and were removed:
Code-Review+1 by Matt DeVillier, Code-Review+2 by Martin Roth, Verified+1 by build bot (Jenkins)
Change subject: drivers/spi/spi_flash_sfdp: add SFDP support to get RPMC parameters
......................................................................
drivers/spi/spi_flash_sfdp: add SFDP support to get RPMC parameters
JESD216F.02 and JESD260 were used as a reference.
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I3a1f7a5d16dd3ca6c8263b617ae9c21184b6a5b9
---
M src/drivers/spi/spi_flash_internal.h
M src/drivers/spi/spi_flash_sfdp.c
2 files changed, 176 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/85008/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/85008?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: I3a1f7a5d16dd3ca6c8263b617ae9c21184b6a5b9
Gerrit-Change-Number: 85008
Gerrit-PatchSet: 4
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Attention is currently required from: Felix Held, Martin Roth, Matt DeVillier.
Hello Martin Roth, Matt DeVillier, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/84786?usp=email
to look at the new patch set (#11).
The following approvals got outdated and were removed:
Code-Review+1 by Matt DeVillier, Code-Review+2 by Martin Roth, Verified+1 by build bot (Jenkins)
Change subject: drivers/spi/spi_flash_sfdp: add basic SFDP support
......................................................................
drivers/spi/spi_flash_sfdp: add basic SFDP support
Add basic support for the Serial Flash Discoverable Parameters (SFDP)
standard which can be used to discover the parameters to interact with
any SPI flash chip that supports this mechanism. This commit adds
functionality to find specific SFDP parameter headers and print all SFDP
parameter headers, but not to parse any SFDP parameter table. This is a
preparation for a follow-up patch that adds support to parse the RPMC
SFDP parameter table. Since 'find_sfdp_parameter_header' is only used in
the next patch, it's marked as static inline in this commit so that the
code still build; the 'inline' keyword will be removed again in that
follow-up patch.
For now, only the legacy access protocol using single bit SPI transfers
is supported, but this should cover most of the SPI NOR flash chips. In
any other case, the code will error out. It's also assumed that the SFDP
data blocks read from the SPI flash chip are small enough to fit into
the SPI host controller buffer and don't need to be broken up into
multiple transfers. This limitation will be addressed in a follow-up
patch.
JESD216F.02 was used as a reference.
TEST=On a board with a W74M12JW SPI flash chip, calling
'spi_flash_print_sfdp_headers' prints this on the console output:
Manufacturer: ef
SF: Detected ef 6018 with sector size 0x1000, total 0x1000000
SF: Exiting 4-byte addressing mode
SFDP header found in SPI flash.
major rev 0x1, minor rev 0x6, access protocol 0xff, number of headers 3
SFPD header with index 0:
table ID 0xff00, major rev 0x1, minor rev 0x6
table pointer 0x80, table length DWORDS 0x10
SFPD header with index 1:
table ID 0xff84, major rev 0x1, minor rev 0x0
table pointer 0xd0, table length DWORDS 0x2
SFPD header with index 2:
table ID 0xff03, major rev 0x1, minor rev 0x0
table pointer 0xf0, table length DWORDS 0x2
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: I5a1706acf7d60fd64292e8f0677992ab4aebf46a
---
M src/drivers/spi/Kconfig
M src/drivers/spi/Makefile.mk
A src/drivers/spi/spi_flash_sfdp.c
M src/include/spi_flash.h
4 files changed, 212 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/84786/11
--
To view, visit https://review.coreboot.org/c/coreboot/+/84786?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: I5a1706acf7d60fd64292e8f0677992ab4aebf46a
Gerrit-Change-Number: 84786
Gerrit-PatchSet: 11
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Martin Roth <martin.roth(a)amd.corp-partner.google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Matt DeVillier has submitted this change. ( https://review.coreboot.org/c/coreboot/+/85024?usp=email )
Change subject: util/crosfirmware: Add support for parsing from manifest.json
......................................................................
util/crosfirmware: Add support for parsing from manifest.json
Some ChromeOS recovery images, such as for GRUNT, support multiple
boards / multiple bios/ec images, but do not break them out in a
'models' subdirectory like modern recovery images do. Instead,
they use a manifest.json to map the board name to the correct
bios/ec images. Add support for parsing out the info from here.
TEST=run `util/chromeos/crosfirmware.sh kasumi` and verify
that the correct shellball firmware is extracted from the recovery
image.
Change-Id: I64153ba16cb8328d65a0f088d05f04a969f6810f
Signed-off-by: Matt DeVillier <matt.devillier(a)gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/85024
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
---
M util/chromeos/crosfirmware.sh
1 file changed, 3 insertions(+), 0 deletions(-)
Approvals:
Felix Singer: Looks good to me, approved
build bot (Jenkins): Verified
diff --git a/util/chromeos/crosfirmware.sh b/util/chromeos/crosfirmware.sh
index e72ff7d..ee87329 100755
--- a/util/chromeos/crosfirmware.sh
+++ b/util/chromeos/crosfirmware.sh
@@ -107,6 +107,9 @@
fi
_bios_image=$(grep "IMAGE_MAIN" $_unpacked/models/$_board/setvars.sh |
cut -f2 -d\")
+ elif [ -f "$_unpacked/manifest.json" ]; then
+ _version=$(grep -m1 -A1 "$BOARD" "$_unpacked/manifest.json" | grep "host" | cut -f12 -d'"')
+ _bios_image=$(grep -m1 -A3 "$BOARD" "$_unpacked/manifest.json" | grep "image" | cut -f4 -d'"')
else
_version=$(cat $_unpacked/VERSION | grep BIOS\ version: |
cut -f2 -d: | tr -d \ )
--
To view, visit https://review.coreboot.org/c/coreboot/+/85024?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: I64153ba16cb8328d65a0f088d05f04a969f6810f
Gerrit-Change-Number: 85024
Gerrit-PatchSet: 2
Gerrit-Owner: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: Felix Singer <service+coreboot-gerrit(a)felixsinger.de>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>