Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46602 )
Change subject: mb/clevo/l140cu: Add vboot support
......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
File src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roab.fmd:
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
PS5, Line 22: RW_VPD(PRESERVE) 0x2000
> I forgot to push. Sorry, for the confusion.
ack, np :D
--
To view, visit https://review.coreboot.org/c/coreboot/+/46602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Gerrit-Change-Number: 46602
Gerrit-PatchSet: 8
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 05 Jan 2021 20:16:07 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46602 )
Change subject: mb/clevo/l140cu: Add vboot support
......................................................................
Patch Set 8:
(1 comment)
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
File src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roab.fmd:
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
PS5, Line 22: RW_VPD(PRESERVE) 0x2000
> ?
I forgot to push. Sorry, for the confusion.
--
To view, visit https://review.coreboot.org/c/coreboot/+/46602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Gerrit-Change-Number: 46602
Gerrit-PatchSet: 8
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 05 Jan 2021 20:15:00 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment
Hello build bot (Jenkins), Michael Niewöhner,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/46602
to look at the new patch set (#8).
Change subject: mb/clevo/l140cu: Add vboot support
......................................................................
mb/clevo/l140cu: Add vboot support
Add proper vboot configuration and add fmap files for the following
partition schemes:
* read-only
* read-only + updateable A partition
* read-only + updateable A/B partition
All partition schemes were tested and are working.
Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Signed-off-by: Felix Singer <felixsinger(a)posteo.net>
---
M src/mainboard/clevo/cml-u/Kconfig
A src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-ro.fmd
A src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roa.fmd
A src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roab.fmd
4 files changed, 105 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/02/46602/8
--
To view, visit https://review.coreboot.org/c/coreboot/+/46602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Gerrit-Change-Number: 46602
Gerrit-PatchSet: 8
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Michael Niewöhner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46602 )
Change subject: mb/clevo/l140cu: Add vboot support
......................................................................
Patch Set 7:
(1 comment)
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
File src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roab.fmd:
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
PS5, Line 22: RW_VPD(PRESERVE) 0x2000
> Done
?
--
To view, visit https://review.coreboot.org/c/coreboot/+/46602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Gerrit-Change-Number: 46602
Gerrit-PatchSet: 7
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 05 Jan 2021 20:12:45 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Singer <felixsinger(a)posteo.net>
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment
Felix Singer has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/46602 )
Change subject: mb/clevo/l140cu: Add vboot support
......................................................................
Patch Set 7:
(2 comments)
https://review.coreboot.org/c/coreboot/+/46602/5//COMMIT_MSG
Commit Message:
https://review.coreboot.org/c/coreboot/+/46602/5//COMMIT_MSG@15
PS5, Line 15:
> the filenames look odd to me: […]
The A/B partitions are by definition updateable und thus read-write. So this doesn't add much value.
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
File src/mainboard/clevo/cml-u/variants/l140cu/fmds/vboot-roab.fmd:
https://review.coreboot.org/c/coreboot/+/46602/5/src/mainboard/clevo/cml-u/…
PS5, Line 22: RW_VPD(PRESERVE) 0x2000
> result of discussion on IRQ with Tim and Matt: don't add the VPD region if we don't have concrete pl […]
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/46602
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibb5e93eb55ece5b0e0d91b1a374d33e259c65cac
Gerrit-Change-Number: 46602
Gerrit-PatchSet: 7
Gerrit-Owner: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 05 Jan 2021 20:02:27 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-MessageType: comment
Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40808 )
Change subject: soc/amd/picasso/Makefile: Verify bootblock size is power of two
......................................................................
soc/amd/picasso/Makefile: Verify bootblock size is power of two
Enabling caching for bootblock requires its size to be a power of two.
This is because MTRRs have this requirement.
BUG=b:153675909
TEST=Changed bootblock size and saw a build error
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: Idede916cbc75bb0fecd729219b92dc9046c23d78
---
M src/soc/amd/picasso/Makefile.inc
1 file changed, 6 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/40808/1
diff --git a/src/soc/amd/picasso/Makefile.inc b/src/soc/amd/picasso/Makefile.inc
index b04e1e9..d137aba 100644
--- a/src/soc/amd/picasso/Makefile.inc
+++ b/src/soc/amd/picasso/Makefile.inc
@@ -189,6 +189,12 @@
# This address must match the BOOTBLOCK logic in arch/x86/memlayout.ld.
PSP_BIOSBIN_DEST=$(shell printf "%x" $(call int-subtract, $(call int-add, $(CONFIG_X86_RESET_VECTOR) 0x10) $(PSP_BIOSBIN_SIZE)))
+# MTRRs sizes must be a power of two. Ensure the bootblock has a compatible size
+# so we can enable caching.
+ifneq ($(call is-power-of-two,$(PSP_BIOSBIN_SIZE)),1)
+$(error Bootblock size $(PSP_BIOSBIN_SIZE) is not a power of two.)
+endif
+
# type = 0x63
ifeq ($(CONFIG_HAVE_ACPI_RESUME),y)
PSP_APOBNV_BASE=$(CONFIG_PSP_APOB_NV_ADDRESS)
--
To view, visit https://review.coreboot.org/c/coreboot/+/40808
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idede916cbc75bb0fecd729219b92dc9046c23d78
Gerrit-Change-Number: 40808
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Raul Rangel has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/40765 )
Change subject: Makefile: Add is-power-of-two
......................................................................
Makefile: Add is-power-of-two
It is sometimes necessary to verify if a CONFIG_ option is a power of
two at build time. This adds a `make` function `is-power-of-two`.
I chose to define all the values because it's the most straightforward
way to do this with `make`.
BUG=b:147042464
Signed-off-by: Raul E Rangel <rrangel(a)chromium.org>
Change-Id: I189a4c722996279e2d8940c566cb362f53ef92d8
---
M Makefile.inc
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/65/40765/1
diff --git a/Makefile.inc b/Makefile.inc
index e315732..cbec2dd 100644
--- a/Makefile.inc
+++ b/Makefile.inc
@@ -133,6 +133,7 @@
# int-gt: 1 if the first values is greater than the second. 0 otherwise
# int-eq: 1 if the two values are equal. 0 otherwise
# int-align: align $1 to $2 units
+# is-power-of-two:1 if value is a power of two
# file-size: returns the filesize of the given file
# tolower: returns the value in all lowercase
# toupper: returns the value in all uppercase
@@ -151,6 +152,15 @@
int-eq=$(if $(filter 1,$(words $1)),$(strip $1),$(shell expr $(call _toint,$(word 1,$1)) = $(call _toint,$(word 2,$1))))
int-align=$(shell A=$(call _toint,$1) B=$(call _toint,$2); expr $$A + \( \( $$B - \( $$A % $$B \) \) % $$B \) )
int-align-down=$(shell A=$(call _toint,$1) B=$(call _toint,$2); expr $$A - \( $$A % $$B \) )
+power-of-twos := 0x00000001 0x00000002 0x00000004 0x00000008 \
+0x00000010 0x00000020 0x00000040 0x00000080 \
+0x00000100 0x00000200 0x00000400 0x00000800 \
+0x00001000 0x00002000 0x00004000 0x00008000 \
+0x00010000 0x00020000 0x00040000 0x00080000 \
+0x00100000 0x00200000 0x00400000 0x00800000 \
+0x01000000 0x02000000 0x04000000 0x08000000 \
+0x10000000 0x20000000 0x40000000 0x80000000
+is-power-of-two=$(if $(filter $(power-of-twos), $(shell printf "0x%08x" $1)),1)
file-size=$(strip $(shell cat $1 | wc -c))
tolower=$(shell echo '$1' | tr '[:upper:]' '[:lower:]')
toupper=$(shell echo '$1' | tr '[:lower:]' '[:upper:]')
@@ -575,6 +585,8 @@
@printf " HOSTCC $(subst $(obj)/,,$(@))\n"
$(HOSTCC) $(HOSTCFLAGS) -DCONFIG_ROM_SIZE=$(CONFIG_ROM_SIZE) -o $@ $<
+APCB_EDIT_TOOL:=$(top)/util/apcb/apcb_edit.py
+
CBOOTIMAGE:=$(objutil)/cbootimage/cbootimage
FUTILITY?=$(objutil)/futility/futility
--
To view, visit https://review.coreboot.org/c/coreboot/+/40765
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I189a4c722996279e2d8940c566cb362f53ef92d8
Gerrit-Change-Number: 40765
Gerrit-PatchSet: 1
Gerrit-Owner: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange