Arthur Heymans has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/79880?usp=email )
Change subject: sb/intel/common: Get memory map from SPI controller
......................................................................
sb/intel/common: Get memory map from SPI controller
Instead of always assuming that the top of a flash matches the top of 4G
use the real memory map that's configured in the IFD and is reflected in
the SPI registers.
One possible use case is to cleanly generate images for some hacks
rather than having to apply some 'dd' trickery: e.g. on HP Sure Start a
part of the flash is checked by EC.
UNTESTED. This might break some hacks people use to work around SPI
locked images by modifying the IFD when booted with a recovery strap
pulled. Those would also need a specifically crafted FMAP.
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
Change-Id: I5f31c175345ec3efab02255a7063054eb0ad29e4
---
M src/southbridge/intel/common/Kconfig.common
M src/southbridge/intel/common/Makefile.inc
M src/southbridge/intel/common/rcba.h
A src/southbridge/intel/common/spi_memmap.c
4 files changed, 86 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/79880/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/79880?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I5f31c175345ec3efab02255a7063054eb0ad29e4
Gerrit-Change-Number: 79880
Gerrit-PatchSet: 2
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Matt DeVillier.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/79885?usp=email )
Change subject: soc/amd/stoneyridge/acpi: use common AMD MADT code
......................................................................
Patch Set 4:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/79885/comment/31866ccb_c334d435 :
PS1, Line 13: TEST=TODO
> still need to test this one, but expect it to work
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/79885?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If4ce71a47827e144c4d4991152101650904901f2
Gerrit-Change-Number: 79885
Gerrit-PatchSet: 4
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
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-Comment-Date: Wed, 10 Jan 2024 19:55:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: comment
Attention is currently required from: Matt DeVillier.
Hello Matt DeVillier, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/79885?usp=email
to look at the new patch set (#4).
Change subject: soc/amd/stoneyridge/acpi: use common AMD MADT code
......................................................................
soc/amd/stoneyridge/acpi: use common AMD MADT code
Now that Stoneyridge also reports the GNB IOAPIC on the domain and with
the IOMMU_IOAPIC_IDX resource index the common AMD MADT code expects, we
ca switch over to using this common code on Stoneyridge too.
TEST=The resulting MADT doesn't change on Careena
Signed-off-by: Felix Held <felix-coreboot(a)felixheld.de>
Change-Id: If4ce71a47827e144c4d4991152101650904901f2
---
M src/soc/amd/stoneyridge/Kconfig
M src/soc/amd/stoneyridge/acpi.c
2 files changed, 1 insertion(+), 7 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/85/79885/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/79885?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: If4ce71a47827e144c4d4991152101650904901f2
Gerrit-Change-Number: 79885
Gerrit-PatchSet: 4
Gerrit-Owner: Felix Held <felix-coreboot(a)felixheld.de>
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-MessageType: newpatchset
Arthur Heymans has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/79881?usp=email )
Change subject: mb/hp/elitebook_820_g2: Add HP Sure Start workaround
......................................................................
mb/hp/elitebook_820_g2: Add HP Sure Start workaround
To work around HP Sure Start the top of flash needs to contain a vendor
provided image that the EC verifies before releasing the X86 from reset.
Instead of using the wrong flash size and padding the image with dd, add
an fmap layout and use cbfstool memory map arguments to achieve the
same.
UNTESTED.
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
Change-Id: I0e59d035ce9281062272aeef92f50f2bbf3a9c5f
---
M Documentation/mainboard/hp/elitebook_820_g2.md
M src/mainboard/hp/elitebook_820_g2/Kconfig
M src/mainboard/hp/elitebook_820_g2/Makefile.inc
A src/mainboard/hp/elitebook_820_g2/board.fmd
4 files changed, 42 insertions(+), 5 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/79881/1
diff --git a/Documentation/mainboard/hp/elitebook_820_g2.md b/Documentation/mainboard/hp/elitebook_820_g2.md
index 5d35c30..d136f4d 100644
--- a/Documentation/mainboard/hp/elitebook_820_g2.md
+++ b/Documentation/mainboard/hp/elitebook_820_g2.md
@@ -74,13 +74,12 @@
flashrom -p <programmer> --ifd -i fd -w factory-sys.rom.new
-Then flash the coreboot image:
+Then flash the coreboot image, while making sure CONFIG_HP_SURE_START_WORKAROUND_LAYOUT is set:
- # first extend the 12M coreboot.rom to 16M
- fallocate -l 16M build/coreboot.rom
flashrom -p <programmer> --ifd -i bios -w build/coreboot.rom
-After coreboot is installed, the coreboot firmware can be updated with internal flashing:
+After coreboot is installed, the coreboot firmware can be updated with internal flashing by
+by only flashing the BIOS region:
flashrom -p internal --ifd -i bios --noverify-all -w build/coreboot.rom
diff --git a/src/mainboard/hp/elitebook_820_g2/Kconfig b/src/mainboard/hp/elitebook_820_g2/Kconfig
index 98aed5c..0bfec31 100644
--- a/src/mainboard/hp/elitebook_820_g2/Kconfig
+++ b/src/mainboard/hp/elitebook_820_g2/Kconfig
@@ -4,7 +4,7 @@
config BOARD_SPECIFIC_OPTIONS
def_bool y
- select BOARD_ROMSIZE_KB_12288
+ select BOARD_ROMSIZE_KB_16384
select EC_HP_KBC1126
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
@@ -28,4 +28,16 @@
config EC_HP_KBC1126_GPE
default 0x6
+config HP_SURE_START_WORKAROUND_LAYOUT
+ bool "Use a FMAP designed to work around HP Sure Start"
+ default y
+ help
+ HP Sure start verifies the content of the flash against a signature.
+ If a modified IFD is used to put coreboot in a different location in
+ the flash the EC still hapilly verifies the vendor bootblock located
+ at the end of flash but executes a coreboot bootblock.
+
+config FMDFILE
+ default "src/mainboard/\$(CONFIG_MAINBOARD_DIR)/board.fmd" if HP_SURE_START_WORKAROUND_LAYOUT
+
endif
diff --git a/src/mainboard/hp/elitebook_820_g2/Makefile.inc b/src/mainboard/hp/elitebook_820_g2/Makefile.inc
index 774dbf1..105bb8d 100644
--- a/src/mainboard/hp/elitebook_820_g2/Makefile.inc
+++ b/src/mainboard/hp/elitebook_820_g2/Makefile.inc
@@ -4,3 +4,13 @@
romstage-y += pei_data.c
ramstage-$(CONFIG_MAINBOARD_USE_LIBGFXINIT) += gma-mainboard.ads
ramstage-y += pei_data.c
+
+
+ifeq ($(CONFIG_HP_SURE_START_WORKAROUND_LAYOUT),y)
+# Match this with board.fmd
+BIOS_REGION_FLASH_BASE=0x600000
+BIOS_REGION_SIZE=0x600000
+BIOS_REGION_MMAP_BASE=$(call int-subtract, 0x100000000 $(BIOS_REGION_SIZE))
+
+CBFSTOOL_ADD_CMD_OPTIONS += --mmap $(BIOS_REGION_FLASH_BASE):$(BIOS_REGION_MMAP_BASE):$(BIOS_REGION_SIZE)
+endif
diff --git a/src/mainboard/hp/elitebook_820_g2/board.fmd b/src/mainboard/hp/elitebook_820_g2/board.fmd
new file mode 100644
index 0000000..86d66be
--- /dev/null
+++ b/src/mainboard/hp/elitebook_820_g2/board.fmd
@@ -0,0 +1,16 @@
+FLASH 0x1000000 {
+ SI_ALL@0x0 0x600000 {
+ SI_DESC 0x1000
+ SI_GBE 0x2000
+ SI_ME
+ }
+ SI_BIOS@0x600000 0x600000 {
+ UNIFIED_MRC_CACHE 0x20000 {
+ RECOVERY_MRC_CACHE 0x10000
+ RW_MRC_CACHE 0x10000
+ }
+ FMAP 0x800
+ COREBOOT(CBFS)
+ }
+ SI_PD@0xEB5000 0x14B000
+}
--
To view, visit https://review.coreboot.org/c/coreboot/+/79881?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I0e59d035ce9281062272aeef92f50f2bbf3a9c5f
Gerrit-Change-Number: 79881
Gerrit-PatchSet: 1
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newchange
Sean Rhodes has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/79875?usp=email )
Change subject: soc/intel/common/tcss: Fix Kconfig dependency
......................................................................
soc/intel/common/tcss: Fix Kconfig dependency
ENABLE_TCSS_DISPLAY_DETECTION will call usbc_get_ops, which depends on
ENABLE_TCSS_USB_DETECTION. Add this is Kconfig to avoid issues.
Signed-off-by: Sean Rhodes <sean(a)starlabs.systems>
Change-Id: I46cab8b385b2aefe1fc106bf5a2dcfe8f15dbe10
---
M src/soc/intel/common/block/tcss/Kconfig
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/75/79875/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/79875?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: I46cab8b385b2aefe1fc106bf5a2dcfe8f15dbe10
Gerrit-Change-Number: 79875
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Rhodes <sean(a)starlabs.systems>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/79802?usp=email )
Change subject: mb/google/nissa/var/anraggar: Add FW_CONFIG probe for mipi camera
......................................................................
mb/google/nissa/var/anraggar: Add FW_CONFIG probe for mipi camera
Due to some without mipi camera SKUs can't entering S0i3.
BUG=b:317670018
TEST=suspend_stress_test -c 1
Change-Id: Ifa8649a603c59946b530abd315113b405ceaf35a
Signed-off-by: Weimin Wu <wuweimin(a)huaqin.corp-partner.google.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/79802
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Eric Lai <ericllai(a)google.com>
---
M src/mainboard/google/brya/variants/anraggar/overridetree.cb
1 file changed, 25 insertions(+), 4 deletions(-)
Approvals:
Weimin Wu: Looks good to me, but someone else must approve
build bot (Jenkins): Verified
Eric Lai: Looks good to me, approved
diff --git a/src/mainboard/google/brya/variants/anraggar/overridetree.cb b/src/mainboard/google/brya/variants/anraggar/overridetree.cb
index a95c763..8fe4316 100644
--- a/src/mainboard/google/brya/variants/anraggar/overridetree.cb
+++ b/src/mainboard/google/brya/variants/anraggar/overridetree.cb
@@ -1,3 +1,12 @@
+fw_config
+ field CAMERA 12 13
+ option UF_720P_WF 0
+ option UF_1080P 1
+ option UF_720P 2
+ option UF_1080P_WF 3
+ end
+end
+
chip soc/intel/alderlake
register "sagv" = "SaGv_Enabled"
@@ -210,7 +219,10 @@
register "cio2_lanes_used" = "{4}" # 4 CSI Camera lanes are used
register "cio2_lane_endpoint[0]" = ""^I2C2.CAM0""
register "cio2_prt[0]" = "1"
- device generic 0 on end
+ device generic 0 on
+ probe CAMERA UF_720P_WF
+ probe CAMERA UF_1080P_WF
+ end
end
end
device ref i2c1 on
@@ -281,7 +293,10 @@
register "off_seq.ops[2]" = "SEQ_OPS_GPIO_DISABLE(1, 0)"
register "off_seq.ops[3]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
- device i2c 36 on end
+ device i2c 36 on
+ probe CAMERA UF_720P_WF
+ probe CAMERA UF_1080P_WF
+ end
end
chip drivers/intel/mipi_camera
register "acpi_uid" = "2"
@@ -303,7 +318,10 @@
register "off_seq.ops_cnt" = "1"
register "off_seq.ops[0]" = "SEQ_OPS_GPIO_DISABLE(0, 0)"
- device i2c 0C on end
+ device i2c 0C on
+ probe CAMERA UF_720P_WF
+ probe CAMERA UF_1080P_WF
+ end
end
chip drivers/intel/mipi_camera
register "acpi_uid" = "1"
@@ -317,7 +335,10 @@
register "nvm_width" = "0x10"
register "nvm_compat" = ""atmel,24c64""
- device i2c 50 on end
+ device i2c 50 on
+ probe CAMERA UF_720P_WF
+ probe CAMERA UF_1080P_WF
+ end
end
end
device ref i2c3 on
--
To view, visit https://review.coreboot.org/c/coreboot/+/79802?usp=email
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: main
Gerrit-Change-Id: Ifa8649a603c59946b530abd315113b405ceaf35a
Gerrit-Change-Number: 79802
Gerrit-PatchSet: 2
Gerrit-Owner: Weimin Wu <wuweimin(a)huaqin.corp-partner.google.com>
Gerrit-Reviewer: Eric Lai <ericllai(a)google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)chromium.org>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Weimin Wu <wuweimin(a)huaqin.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Dolan Liu <liuyong5(a)huaqin.corp-partner.google.com>
Gerrit-MessageType: merged