Attention is currently required from: Arthur Heymans, Nico Huber, Patrick Rudolph, Angel Pons, Julius Werner, Michael Niewöhner, Kyösti Mälkki, Aaron Durbin.
Bill XIE has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51671 )
Change subject: arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time
......................................................................
Patch Set 31:
(2 comments)
File src/arch/x86/Kconfig:
https://review.coreboot.org/c/coreboot/+/51671/comment/6e1770f5_1b7c38d3
PS29, Line 357: config ECFW_PTR_SIZE
: int
: help
: Size of reserved space for EC firmware pointer
Exactly that. And ECFW_PTR_ADDR is a Kconfig, so we kind of have to expect that it might change. Which makes me realize the following: If the Kconfig is used in arch/x86/ then it should be declared in arch/x86/Kconfig, along with a help text that describes this constraint (i.e. must be below the reset vector or FIT pointer if present). The EC Kconfig should only set the default number.
As Nico said, ECFW_PTR_ADDR and ECFW_PTR_SIZE had better be declared in arch/x86/Kconfig, and assigned with value in the EC Kconfig.
File src/ec/hp/kbc1126/ecfw_ptr.h:
https://review.coreboot.org/c/coreboot/+/51671/comment/e3e3221a_920ec61f
PS31, Line 8: struct ecfw_addr {
: /* 8-byte offset of firmware blob in big endian */
: uint16_t off;
: /* bitwise inverse of "off", for error checking */
: uint16_t inv;
: };
:
: struct ecfw_ptr {
: struct ecfw_addr fw1;
: struct ecfw_addr fw2;
: };
These structs should be `__packed` to ensure the compiler doesn't add any padding.
Done
--
To view, visit
https://review.coreboot.org/c/coreboot/+/51671
To unsubscribe, or for help writing mail filters, visit
https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4f0de0c4d7283e630242fbe84a46e0547783c49e
Gerrit-Change-Number: 51671
Gerrit-PatchSet: 31
Gerrit-Owner: Bill XIE
persmule@hardenedlinux.org
Gerrit-Reviewer: Aaron Durbin
adurbin@chromium.org
Gerrit-Reviewer: Angel Pons
th3fanbus@gmail.com
Gerrit-Reviewer: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Reviewer: Iru Cai
mytbk920423@gmail.com
Gerrit-Reviewer: Julius Werner
jwerner@chromium.org
Gerrit-Reviewer: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Reviewer: Michael Niewöhner
foss@mniewoehner.de
Gerrit-Reviewer: Nico Huber
nico.h@gmx.de
Gerrit-Reviewer: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Reviewer: build bot (Jenkins)
no-reply@coreboot.org
Gerrit-CC: Arthur Heymans
arthur.heymans@9elements.com
Gerrit-CC: Paul Menzel
paulepanter@mailbox.org
Gerrit-Attention: Arthur Heymans
arthur.heymans@9elements.com
Gerrit-Attention: Nico Huber
nico.h@gmx.de
Gerrit-Attention: Patrick Rudolph
patrick.rudolph@9elements.com
Gerrit-Attention: Angel Pons
th3fanbus@gmail.com
Gerrit-Attention: Julius Werner
jwerner@chromium.org
Gerrit-Attention: Arthur Heymans
arthur@aheymans.xyz
Gerrit-Attention: Michael Niewöhner
foss@mniewoehner.de
Gerrit-Attention: Kyösti Mälkki
kyosti.malkki@gmail.com
Gerrit-Attention: Aaron Durbin
adurbin@chromium.org
Gerrit-Comment-Date: Tue, 30 Nov 2021 16:09:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Bill XIE
persmule@hardenedlinux.org
Comment-In-Reply-To: Angel Pons
th3fanbus@gmail.com
Gerrit-MessageType: comment