Caveh Jalali has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/44116 )
Change subject: mb/google/volteer: pull-up GPP_D16 instead of driving it
......................................................................
Patch Set 1:
This change is ready for review.
--
To view, visit https://review.coreboot.org/c/coreboot/+/44116
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I096d76ec12b7c3afaf02e621fd301b6704913d5d
Gerrit-Change-Number: 44116
Gerrit-PatchSet: 1
Gerrit-Owner: Caveh Jalali <caveh(a)chromium.org>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Comment-Date: Mon, 03 Aug 2020 11:31:29 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Angel Pons has uploaded a new patch set (#3). ( https://review.coreboot.org/c/coreboot/+/44113 )
Change subject: mb/**/{devicetree,overridetree}.cb: Indent with tabs
......................................................................
mb/**/{devicetree,overridetree}.cb: Indent with tabs
Use tabs instead of eight (sometimes less) spaces.
Change-Id: Ic3d61f5210d21d9613fc50b47b90af71f544169a
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/mainboard/amd/south_station/devicetree.cb
M src/mainboard/amd/union_station/devicetree.cb
M src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb
M src/mainboard/google/dedede/variants/waddledoo/overridetree.cb
M src/mainboard/google/hatch/variants/helios/overridetree.cb
M src/mainboard/google/hatch/variants/helios_diskswap/overridetree.cb
M src/mainboard/google/hatch/variants/palkia/overridetree.cb
M src/mainboard/google/octopus/variants/bloog/overridetree.cb
M src/mainboard/google/octopus/variants/lick/overridetree.cb
M src/mainboard/google/octopus/variants/phaser/overridetree.cb
M src/mainboard/google/poppy/variants/nami/devicetree.cb
M src/mainboard/google/poppy/variants/nautilus/devicetree.cb
M src/mainboard/google/poppy/variants/nocturne/devicetree.cb
M src/mainboard/google/sarien/variants/arcada/devicetree.cb
M src/mainboard/hp/z220_sff_workstation/devicetree.cb
M src/mainboard/intel/coffeelake_rvp/variants/cml_u/overridetree.cb
M src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb
M src/mainboard/intel/kblrvp/variants/rvp3/overridetree.cb
M src/mainboard/intel/kblrvp/variants/rvp7/overridetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up3/devicetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up4/devicetree.cb
M src/mainboard/prodrive/hermes/variants/baseboard/overridetree.cb
22 files changed, 209 insertions(+), 209 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/44113/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/44113
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic3d61f5210d21d9613fc50b47b90af71f544169a
Gerrit-Change-Number: 44113
Gerrit-PatchSet: 3
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Angel Pons has uploaded a new patch set (#2). ( https://review.coreboot.org/c/coreboot/+/44113 )
Change subject: mb/**/{devicetree,overridetree}.cb: Indent with tabs
......................................................................
mb/**/{devicetree,overridetree}.cb: Indent with tabs
Use tabs instead of eight spaces.
Change-Id: Ic3d61f5210d21d9613fc50b47b90af71f544169a
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/mainboard/amd/south_station/devicetree.cb
M src/mainboard/amd/union_station/devicetree.cb
M src/mainboard/asrock/g41c-gs/variants/g41m-s3/devicetree.cb
M src/mainboard/google/dedede/variants/waddledoo/overridetree.cb
M src/mainboard/google/hatch/variants/helios/overridetree.cb
M src/mainboard/google/hatch/variants/helios_diskswap/overridetree.cb
M src/mainboard/google/hatch/variants/palkia/overridetree.cb
M src/mainboard/google/octopus/variants/bloog/overridetree.cb
M src/mainboard/google/octopus/variants/lick/overridetree.cb
M src/mainboard/google/octopus/variants/phaser/overridetree.cb
M src/mainboard/google/poppy/variants/nami/devicetree.cb
M src/mainboard/google/poppy/variants/nautilus/devicetree.cb
M src/mainboard/google/poppy/variants/nocturne/devicetree.cb
M src/mainboard/google/sarien/variants/arcada/devicetree.cb
M src/mainboard/hp/z220_sff_workstation/devicetree.cb
M src/mainboard/intel/coffeelake_rvp/variants/cml_u/overridetree.cb
M src/mainboard/intel/jasperlake_rvp/variants/jslrvp/devicetree.cb
M src/mainboard/intel/kblrvp/variants/rvp3/overridetree.cb
M src/mainboard/intel/kblrvp/variants/rvp7/overridetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up3/devicetree.cb
M src/mainboard/intel/tglrvp/variants/tglrvp_up4/devicetree.cb
M src/mainboard/prodrive/hermes/variants/baseboard/overridetree.cb
22 files changed, 209 insertions(+), 209 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/13/44113/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/44113
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic3d61f5210d21d9613fc50b47b90af71f544169a
Gerrit-Change-Number: 44113
Gerrit-PatchSet: 2
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newpatchset
Angel Pons has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44081 )
Change subject: device/pci_device.c: Drop static device checking code
......................................................................
device/pci_device.c: Drop static device checking code
Instead, promote a more useful message to warning log level.
Change-Id: I798f825690320d59d447d7fcd9cf9d53a093d05e
Signed-off-by: Angel Pons <th3fanbus(a)gmail.com>
---
M src/device/pci_device.c
1 file changed, 3 insertions(+), 36 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/81/44081/1
diff --git a/src/device/pci_device.c b/src/device/pci_device.c
index f3cced9..4a2598a 100644
--- a/src/device/pci_device.c
+++ b/src/device/pci_device.c
@@ -1113,8 +1113,8 @@
if ((id == 0xffffffff) || (id == 0x00000000) ||
(id == 0x0000ffff) || (id == 0xffff0000)) {
if (dev->enabled) {
- printk(BIOS_INFO, "PCI: Static device %s not "
- "found, disabling it.\n", dev_path(dev));
+ printk(BIOS_WARNING, "PCI: Static device %s not found, "
+ "disabling it.\n", dev_path(dev));
dev->enabled = 0;
}
return dev;
@@ -1223,8 +1223,7 @@
unsigned int max_devfn)
{
unsigned int devfn;
- struct device *dev, **prev;
- int once = 0;
+ struct device *dev;
printk(BIOS_DEBUG, "PCI: pci_scan_bus for bus %02x\n", bus->secondary);
@@ -1278,38 +1277,6 @@
post_code(0x25);
/*
- * Warn if any leftover static devices are are found.
- * There's probably a problem in devicetree.cb.
- */
-
- prev = &bus->children;
- for (dev = bus->children; dev; dev = dev->sibling) {
- /*
- * The device is only considered leftover if it is not hidden
- * and it has a Vendor ID of 0 (the default for a device that
- * could not be probed).
- */
- if (dev->vendor != 0 || dev->hidden) {
- prev = &dev->sibling;
- continue;
- }
-
- /* Unlink it from list. */
- *prev = dev->sibling;
-
- /* If disabled in devicetree, do not print any messages. */
- if (!dev->enabled)
- continue;
-
- if (!once++)
- printk(BIOS_WARNING, "PCI: Leftover static devices:\n");
- printk(BIOS_WARNING, "%s\n", dev_path(dev));
- }
-
- if (once)
- printk(BIOS_WARNING, "PCI: Check your devicetree.cb.\n");
-
- /*
* For all children that implement scan_bus() (i.e. bridges)
* scan the bus behind that child.
*/
--
To view, visit https://review.coreboot.org/c/coreboot/+/44081
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I798f825690320d59d447d7fcd9cf9d53a093d05e
Gerrit-Change-Number: 44081
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: newchange
Patrick Georgi has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44105 )
Change subject: lib/gcov: Remove assert(0)
......................................................................
lib/gcov: Remove assert(0)
This follows CB:44047 which probably missed this because it's a
custom assert macro (in code that has only recently been added to
build checks). Without this change, building with gcov fails because
gcc_assert(0) can be build-time verified (as introduced by CB:44044)
while we need runtime failure semantics here.
Change-Id: I71a38631955a6a45abe90f2b9ce3a924cc5d6837
Signed-off-by: Patrick Georgi <pgeorgi(a)google.com>
---
M src/lib/gcov-glue.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/05/44105/1
diff --git a/src/lib/gcov-glue.c b/src/lib/gcov-glue.c
index 101aec9..14f3e3e 100644
--- a/src/lib/gcov-glue.c
+++ b/src/lib/gcov-glue.c
@@ -82,7 +82,7 @@
static long ftell(FILE *stream)
{
/* ftell should currently not be called */
- gcc_assert(0);
+ BUG();
#if CONFIG(DEBUG_COVERAGE)
printk(BIOS_DEBUG, "ftell %s\n", stream->filename);
#endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/44105
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I71a38631955a6a45abe90f2b9ce3a924cc5d6837
Gerrit-Change-Number: 44105
Gerrit-PatchSet: 1
Gerrit-Owner: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: newchange
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/28950 )
Change subject: lenovo/x230: introduce FHD variant
......................................................................
Patch Set 12:
> Patch Set 12:
>
> I'm seeing an issue where zero-brightness (Backlight off) is being treated as full brightness. So instead of turning off the backlight when the lid is closed, it's set to max.
>
> Tested with patchset 12 on master @ e2f5fb25
Which OS did you test this on?
--
To view, visit https://review.coreboot.org/c/coreboot/+/28950
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0355d39a61956792e69bccd5274cfc2749d72bf0
Gerrit-Change-Number: 28950
Gerrit-PatchSet: 12
Gerrit-Owner: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Alexander Couzens <lynxis(a)fe80.eu>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Kilian Neuner <cb(a)9-r.net>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Peter Lemenkov <lemenkov(a)gmail.com>
Gerrit-Reviewer: Richard Slindee
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Felix Singer <felixsinger(a)posteo.net>
Gerrit-CC: Aleksei Kharlamov <derlafff(a)ya.ru>
Gerrit-CC: Christian Herzog
Gerrit-CC: Holger Levsen <holger(a)layer-acht.org>
Gerrit-CC: Matthias Wiedhalm
Gerrit-CC: Pavel Kovalenko <su(a)nitrocaster.me>
Gerrit-CC: Sergey Alirzaev <zl29ah(a)gmail.com>
Gerrit-CC: Tom Hiller <thrilleratplay(a)gmail.com>
Gerrit-CC: Tomasz Jan Góralczyk
Gerrit-CC: clayton craft
Gerrit-CC: slact
Gerrit-Comment-Date: Mon, 03 Aug 2020 09:40:20 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Jonathan Zhang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44091 )
Change subject: soc/intel/xeon_sp/cpx: configure STACK_SIZE
......................................................................
soc/intel/xeon_sp/cpx: configure STACK_SIZE
Before this change, we have this problem (boot log from DeltaLake
config A server):
Jumping to boot code at 0x00040000(0x755f6000)
Stack overrun on CPU0 (address 0x7574a000 overwritten). Increase stack from current 4096 bytes
ERROR: BUG ENCOUNTERED at file 'src/lib/stack.c', line 43
Linux version 4.16.18
Configure STACK_SIZE to make it larger to fix above problem.
Now, we have this boot log:
BS: BS_PAYLOAD_LOAD exit times (exec / console): 326 / 21727 ms
Jumping to boot code at 0x00040000(0x752f2000)
CPU0: stack: 0x75746000 - 0x7574a000, lowest used address 0x7574681c, stack used: 14308 bytes
Linux version 4.16.18
TESTED=booted YV3 config A to target OS.
Signed-off-by: Jonathan Zhang <jonzhang(a)fb.com>
Change-Id: Ia04a3ee0cd37177ecab65469855a1cf920742458
---
M src/soc/intel/xeon_sp/cpx/Kconfig
1 file changed, 4 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/91/44091/1
diff --git a/src/soc/intel/xeon_sp/cpx/Kconfig b/src/soc/intel/xeon_sp/cpx/Kconfig
index 93098e8..0df9847 100644
--- a/src/soc/intel/xeon_sp/cpx/Kconfig
+++ b/src/soc/intel/xeon_sp/cpx/Kconfig
@@ -56,6 +56,10 @@
hex
default 0x80000
+config STACK_SIZE
+ hex
+ default 0x4000
+
config FSP_TEMP_RAM_SIZE
hex
depends on FSP_USES_CB_STACK
--
To view, visit https://review.coreboot.org/c/coreboot/+/44091
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia04a3ee0cd37177ecab65469855a1cf920742458
Gerrit-Change-Number: 44091
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-MessageType: newchange
Jonathan Zhang has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/44049 )
Change subject: soc/intel/xeon_sp/cpx: enable PLATFORM_USES_FSP2_2
......................................................................
soc/intel/xeon_sp/cpx: enable PLATFORM_USES_FSP2_2
CPX-SP FSP is of FSP 2.2, so select PLATFORM_USES_FSP2_2. The corresponding
workaround of hardcoding StackBase and StackSize FSP-M UPD parameters is
removed.
Add CPX-SP soc implmentation of soc_fsp_multi_phase_init_is_enable()
to indicate that FSP-S multi phase init is not enabled, since it is
not supported by CPX-SP FSP.
Increase FSP_TEMP_RAM_SIZE, DCACHE_BSP_STACK_SIZE, and adjust DCACHE_RAM_SIZE
accordingly.
Update DCACHE_RAM_BASE.
Signed-off-by: Jonathan Zhang <jonzhang(a)fb.com>
Change-Id: I25e39083df1ebfe78871561b0a0e230b66524ea9
---
M src/soc/intel/xeon_sp/cpx/Kconfig
M src/soc/intel/xeon_sp/cpx/Makefile.inc
A src/soc/intel/xeon_sp/cpx/ramstage.c
M src/soc/intel/xeon_sp/cpx/romstage.c
4 files changed, 22 insertions(+), 16 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/49/44049/1
diff --git a/src/soc/intel/xeon_sp/cpx/Kconfig b/src/soc/intel/xeon_sp/cpx/Kconfig
index 8139930..031d10b 100644
--- a/src/soc/intel/xeon_sp/cpx/Kconfig
+++ b/src/soc/intel/xeon_sp/cpx/Kconfig
@@ -6,6 +6,8 @@
bool
default y
+select PLATFORM_USES_FSP2_2
+
config FSP_HEADER_PATH
string "Location of FSP headers"
depends on MAINBOARD_USES_FSP2_0
@@ -25,18 +27,24 @@
help
This option allows you to select MMIO Base Address of sideband bus.
-# currently FSP hardcodes [0fe800000;fe930000] for its heap
config DCACHE_RAM_BASE
hex
- default 0xfe9a0000
+ default 0xfe8b0000
config DCACHE_RAM_SIZE
hex
- default 0x60000
+ default 0x170000
+ help
+ The size of the cache-as-ram region required during bootblock
+ and/or romstage.
config DCACHE_BSP_STACK_SIZE
hex
- default 0x10000
+ default 0xA0000
+ help
+ The amount of anticipated stack usage in CAR by bootblock and
+ other stages. It needs to include FSP-M stack requirement and
+ CB romstage stack requirement.
config CPU_MICROCODE_CBFS_LOC
hex
@@ -57,7 +65,7 @@
config FSP_TEMP_RAM_SIZE
hex
depends on FSP_USES_CB_STACK
- default 0x70000
+ default 0xA0000
help
The amount of anticipated heap usage in CAR by FSP.
Refer to Platform FSP integration guide document to know
diff --git a/src/soc/intel/xeon_sp/cpx/Makefile.inc b/src/soc/intel/xeon_sp/cpx/Makefile.inc
index 969fe25..89f18d1 100644
--- a/src/soc/intel/xeon_sp/cpx/Makefile.inc
+++ b/src/soc/intel/xeon_sp/cpx/Makefile.inc
@@ -12,7 +12,7 @@
romstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
romstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c
-ramstage-y += chip.c acpi.c cpu.c soc_util.c
+ramstage-y += chip.c acpi.c cpu.c soc_util.c ramstage.c
ramstage-$(CONFIG_DISPLAY_HOBS) += hob_display.c
ramstage-$(CONFIG_DISPLAY_UPD_DATA) += upd_display.c
diff --git a/src/soc/intel/xeon_sp/cpx/ramstage.c b/src/soc/intel/xeon_sp/cpx/ramstage.c
new file mode 100644
index 0000000..deb9030
--- /dev/null
+++ b/src/soc/intel/xeon_sp/cpx/ramstage.c
@@ -0,0 +1,8 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#include <fsp/api.h>
+
+int soc_fsp_multi_phase_init_is_enable(void)
+{
+ return 0;
+}
diff --git a/src/soc/intel/xeon_sp/cpx/romstage.c b/src/soc/intel/xeon_sp/cpx/romstage.c
index 9952d62..7093ec9 100644
--- a/src/soc/intel/xeon_sp/cpx/romstage.c
+++ b/src/soc/intel/xeon_sp/cpx/romstage.c
@@ -13,16 +13,6 @@
void platform_fsp_memory_init_params_cb(FSPM_UPD *mupd, uint32_t version)
{
FSPM_CONFIG *m_cfg = &mupd->FspmConfig;
- FSPM_ARCH_UPD *arch_upd = &mupd->FspmArchUpd;
-
- /*
- * Currently FSP for CPX does not implement user-provided StackBase/Size
- * properly. When KTI link needs to be trained, inter-socket communication
- * library needs quite a bit of memory for its heap usage. However, location
- * is hardcoded so this workaround is needed.
- */
- arch_upd->StackBase = (void *) 0xfe930000;
- arch_upd->StackSize = 0x70000;
/* ErrorLevel - 0 (disable) to 8 (verbose) */
m_cfg->DebugPrintLevel = 8;
--
To view, visit https://review.coreboot.org/c/coreboot/+/44049
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I25e39083df1ebfe78871561b0a0e230b66524ea9
Gerrit-Change-Number: 44049
Gerrit-PatchSet: 1
Gerrit-Owner: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-MessageType: newchange