Michał Żygowski has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/31419
Change subject: src/mainboard/pcengines/apu2/Kconfig: increase pre-CBMEM console size
......................................................................
src/mainboard/pcengines/apu2/Kconfig: increase pre-CBMEM console size
The default 0xc00 size of pre-CBMEM console is too small to fit whole
console log from romstage. Increase the size in order to avoid log
truncation when checking console with cbmem utility.
The size was adjusted by compiling and running the coreboot on apu2 with
SPEW loglevel.
Additionally unset the SQUELCH_EARLY_SMP option to get console output
between amdinitreset and amdinitearly.
Signed-off-by: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Change-Id: I0a21850e9dc9e9611b462e09b4190258e9bd0a04
---
M src/mainboard/pcengines/apu2/Kconfig
1 file changed, 12 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/19/31419/1
diff --git a/src/mainboard/pcengines/apu2/Kconfig b/src/mainboard/pcengines/apu2/Kconfig
index 6e65a6e..3c04b05 100644
--- a/src/mainboard/pcengines/apu2/Kconfig
+++ b/src/mainboard/pcengines/apu2/Kconfig
@@ -113,4 +113,16 @@
int
default 128
+config PRERAM_CBMEM_CONSOLE_SIZE
+ hex
+ default 0x3000
+ help
+ Increase this value if preram cbmem console is getting truncated
+
+config SQUELCH_EARLY_SMP
+ bool
+ default n
+ help
+ When selected only the BSP CPU will output to early console.
+
endif # BOARD_PCENGINES_APU2
--
To view, visit https://review.coreboot.org/c/coreboot/+/31419
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0a21850e9dc9e9611b462e09b4190258e9bd0a04
Gerrit-Change-Number: 31419
Gerrit-PatchSet: 1
Gerrit-Owner: Michał Żygowski <michal.zygowski(a)3mdeb.com>
Gerrit-MessageType: newchange
Joel Kitching has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32324
Change subject: vboot: communicate display requirements with vb2api_fw_phase1
......................................................................
vboot: communicate display requirements with vb2api_fw_phase1
Input: tell vb2api_fw_phase1 if display unconditionally available
Output: vb2api_fw_phase1 tells coreboot if it shall declare
display as being available, based on some internal request
Move the vboot_set_declares_display call into verstage_main.
BUG=b:124141368, b:124192753, chromium:948529
TEST=make clean && make test-abuild
CQ-DEPEND=CL:1564232
BRANCH=none
Change-Id: I81c82c46303564b63b8a32e7f80beb9d891a4628
Cq-Depend: chromium:1564232
Signed-off-by: Joel Kitching <kitching(a)google.com>
---
M src/security/vboot/vboot_handoff.c
M src/security/vboot/vboot_logic.c
2 files changed, 13 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/24/32324/1
diff --git a/src/security/vboot/vboot_handoff.c b/src/security/vboot/vboot_handoff.c
index 85b1611..ddf0a78 100644
--- a/src/security/vboot/vboot_handoff.c
+++ b/src/security/vboot/vboot_handoff.c
@@ -76,14 +76,11 @@
vb_sd->flags |= VBSD_BOOT_DEV_SWITCH_ON;
vb_sd->flags |= VBSD_LF_DEV_SWITCH_ON;
}
- /* Inform vboot if the display was requested by vboot kernel phase
- or enabled by dev/rec mode. */
+ /* TODO(chromium:948529): Remove these two flags after downstream
+ vboot code longer reads them. */
if (vboot_wants_oprom() || vb2_sd->recovery_reason ||
- vb2_sd->flags & VB2_SD_FLAG_DEV_MODE_ENABLED) {
- vboot_get_working_data()->flags |= VBOOT_FLAG_DISPLAY_REQUESTED;
+ vb2_sd->flags & VB2_SD_FLAG_DEV_MODE_ENABLED)
vb_sd->flags |= VBSD_OPROM_LOADED;
- }
- /* TODO: Remove when depthcharge no longer reads this flag. */
if (CONFIG(VBOOT_MUST_REQUEST_DISPLAY))
vb_sd->flags |= VBSD_OPROM_MATTERS;
diff --git a/src/security/vboot/vboot_logic.c b/src/security/vboot/vboot_logic.c
index 2a8e619..ef6b82c 100644
--- a/src/security/vboot/vboot_logic.c
+++ b/src/security/vboot/vboot_logic.c
@@ -336,6 +336,10 @@
if (CONFIG(VBOOT_LID_SWITCH) && !get_lid_switch())
ctx.flags |= VB2_CONTEXT_NOFAIL_BOOT;
+ /* Mainboard/SoC always initializes display. */
+ if (!CONFIG(VBOOT_MUST_REQUEST_DISPLAY))
+ ctx.flags |= VB2_CONTEXT_DISPLAY_REQUESTED;
+
/* Do early init (set up secdata and NVRAM, load GBB) */
printk(BIOS_INFO, "Phase 1\n");
rv = vb2api_fw_phase1(&ctx);
@@ -360,6 +364,12 @@
vboot_reboot();
}
+ /* Is vboot declaring that display is available? If so, we should mark
+ it down, so that the mainboard/SoC knows to initialize display. */
+ if (ctx.flags & VB2_CONTEXT_DISPLAY_REQUESTED)
+ vboot_get_working_data()->flags
+ |= VBOOT_FLAGS_DISPLAY_REQUESTED;
+
/* Determine which firmware slot to boot (based on NVRAM) */
printk(BIOS_INFO, "Phase 2\n");
rv = vb2api_fw_phase2(&ctx);
--
To view, visit https://review.coreboot.org/c/coreboot/+/32324
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I81c82c46303564b63b8a32e7f80beb9d891a4628
Gerrit-Change-Number: 32324
Gerrit-PatchSet: 1
Gerrit-Owner: Joel Kitching <kitching(a)google.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32317
Change subject: mb/lenovo/t520: Fix devicetree
......................................................................
mb/lenovo/t520: Fix devicetree
Disable unused PCI devices.
Reduces idle power by around 0.5Watt.
Tested on Lenovo T520.
Change-Id: I6990dc5810084261b75d2a327b6a103be44fd4cc
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/mainboard/lenovo/t520/variants/t520/devicetree.cb
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/17/32317/1
diff --git a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
index cf8e7ce..b3e1723 100644
--- a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
+++ b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
@@ -86,6 +86,8 @@
device pci 1c.6 off end # PCIe Port #7 USB 3.0 only W520
device pci 1c.7 off end # PCIe Port #8
device pci 1d.0 on end # USB2 EHCI #1
+ device pci 1e.0 off end # PCI-2-PCI bridge
+
device pci 1f.0 on #LPC bridge
chip ec/lenovo/pmh7
device pnp ff.1 on # dummy
@@ -165,6 +167,8 @@
device i2c 5f on end
end
end # SMBus
+ device pci 1f.5 off end # IDE controller
+ device pci 1f.6 off end # Thermal controller
end
end
end
--
To view, visit https://review.coreboot.org/c/coreboot/+/32317
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6990dc5810084261b75d2a327b6a103be44fd4cc
Gerrit-Change-Number: 32317
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32309
Change subject: mb/lenovo/t520: Add SMBIOS type 9 fields
......................................................................
mb/lenovo/t520: Add SMBIOS type 9 fields
Change-Id: I43fb481512a54ee054c6fd0189053028fb3c3ec2
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/mainboard/lenovo/t520/variants/t520/devicetree.cb
1 file changed, 10 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/32309/1
diff --git a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
index cf8e7ce..88495fb 100644
--- a/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
+++ b/src/mainboard/lenovo/t520/variants/t520/devicetree.cb
@@ -78,9 +78,17 @@
device pci 1a.0 on end # USB2 EHCI #2
device pci 1b.0 on end # High Definition Audio
device pci 1c.0 off end # PCIe Port #1
- device pci 1c.1 on end # PCIe Port #2 Integrated Wireless LAN
+ device pci 1c.1 on
+ slot_designation "Below keyboard"
+ slot_type "21"
+ slot_data_width "8"
+ end # PCIe Port #2 Integrated Wireless LAN
device pci 1c.2 off end # PCIe Port #3
- device pci 1c.3 on end # PCIe Port #4 Express Card
+ device pci 1c.3 on
+ slot_designation "Right side"
+ slot_type "7"
+ slot_data_width "8"
+ end # PCIe Port #4 Express Card
device pci 1c.4 on end # PCIe Port #5 MMC/SDXC + IEEE1394
device pci 1c.5 off end # PCIe Port #6 Intel Ethernet PHY
device pci 1c.6 off end # PCIe Port #7 USB 3.0 only W520
--
To view, visit https://review.coreboot.org/c/coreboot/+/32309
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I43fb481512a54ee054c6fd0189053028fb3c3ec2
Gerrit-Change-Number: 32309
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange
Patrick Rudolph has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/32308
Change subject: [WIP]smbios: Walk over PCI devicetree to fill type 9
......................................................................
[WIP]smbios: Walk over PCI devicetree to fill type 9
Use the devicetree values for type 9 slots.
Change-Id: I1961d8af2d21f755ff52ad58804ea9b31d2a5b9b
Signed-off-by: Patrick Rudolph <patrick.rudolph(a)9elements.com>
---
M src/arch/x86/smbios.c
1 file changed, 13 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/08/32308/1
diff --git a/src/arch/x86/smbios.c b/src/arch/x86/smbios.c
index 10feb15..c565462 100644
--- a/src/arch/x86/smbios.c
+++ b/src/arch/x86/smbios.c
@@ -996,6 +996,19 @@
dev_name(dev));
len += dev->ops->get_smbios_data(dev, handle, current);
}
+ if (dev->path.type == DEVICE_PATH_PCI) {
+ if (dev->smbios_slot_type ||
+ dev->smbios_slot_data_width ||
+ dev->smbios_slot_designation) {
+ len += smbios_write_type9(current, handle,
+ dev->smbios_slot_designation,
+ dev->smbios_slot_type,
+ 1,
+ 0,
+ dev->bus->secondary,
+ dev->path.pci.devfn);
+ }
+ }
}
return len;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/32308
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1961d8af2d21f755ff52ad58804ea9b31d2a5b9b
Gerrit-Change-Number: 32308
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Rudolph <patrick.rudolph(a)9elements.com>
Gerrit-MessageType: newchange