Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28606
to look at the new patch set (#2).
Change subject: WIP: Port libpayload to riscv
......................................................................
WIP: Port libpayload to riscv
Work-in-progress port of libpayload to RISC-V
Do not merge yet
Change-Id: I91df02069a0f8fd8771f73de0e866e9cea05cded
---
M payloads/external/LinuxBoot/Kconfig
M payloads/external/LinuxBoot/Kconfig.name
M payloads/external/LinuxBoot/Makefile
M payloads/libpayload/Kconfig
M payloads/libpayload/Makefile
M payloads/libpayload/Makefile.inc
A payloads/libpayload/arch/riscv/Kconfig
A payloads/libpayload/arch/riscv/Makefile.inc
A payloads/libpayload/arch/riscv/coreboot.c
A payloads/libpayload/arch/riscv/head.S
A payloads/libpayload/arch/riscv/libpayload.ldscript
A payloads/libpayload/arch/riscv/main.c
M payloads/libpayload/bin/lpgcc
A payloads/libpayload/configs/defconfig-riscv
A payloads/libpayload/include/riscv/arch/asm.h
A payloads/libpayload/include/riscv/arch/barrier.h
A payloads/libpayload/include/riscv/arch/cache.h
A payloads/libpayload/include/riscv/arch/io.h
A payloads/libpayload/include/riscv/arch/types.h
A payloads/libpayload/include/riscv/arch/virtual.h
M payloads/linuxcheck/Makefile
A payloads/linuxcheck/riscv.c
22 files changed, 861 insertions(+), 8 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/06/28606/2
--
To view, visit https://review.coreboot.org/28606
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: rampayload
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I91df02069a0f8fd8771f73de0e866e9cea05cded
Gerrit-Change-Number: 28606
Gerrit-PatchSet: 2
Gerrit-Owner: Philipp Hug <philipp(a)hug.cx>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Paul Moy has uploaded this change for review. ( https://review.coreboot.org/28610
Change subject: ec: check to see if s0ix is enabled
......................................................................
ec: check to see if s0ix is enabled
Before trying to set the s0ix lazy wake up mask in the EC, added
a check to make sure s0ix is enabled.
Change-Id: I78896ffe6312409c9f241b3b3224169c188bb265
Signed-off-by: Paul Moy <pmoy(a)chromium.org>
---
M src/ec/google/chromeec/ec.c
1 file changed, 5 insertions(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/10/28610/1
diff --git a/src/ec/google/chromeec/ec.c b/src/ec/google/chromeec/ec.c
index 449eaf3..e094e9a 100644
--- a/src/ec/google/chromeec/ec.c
+++ b/src/ec/google/chromeec/ec.c
@@ -312,7 +312,11 @@
printk(BIOS_DEBUG, "Error: Set S5 LAZY WAKE mask failed\n");
if (google_chromeec_set_s3_lazy_wake_mask(s3_mask))
printk(BIOS_DEBUG, "Error: Set S3 LAZY WAKE mask failed\n");
- if (google_chromeec_set_s0ix_lazy_wake_mask(s0ix_mask))
+ /*
+ * Only set the s0ix lazy wake mask if the mask is nonzero. A mask
+ * of zero means that s0ix is not enabled on the platform.
+ */
+ if (s0ix_mask && google_chromeec_set_s0ix_lazy_wake_mask(s0ix_mask))
printk(BIOS_DEBUG, "Error: Set S0iX LAZY WAKE mask failed\n");
}
--
To view, visit https://review.coreboot.org/28610
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: I78896ffe6312409c9f241b3b3224169c188bb265
Gerrit-Change-Number: 28610
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Moy <pmoy(a)google.com>
Richard Spiegel has posted comments on this change. ( https://review.coreboot.org/28608 )
Change subject: amd/stoneyridge: Sync PSP base to MSR
......................................................................
Patch Set 1:
(1 comment)
The idea that the TPM problem was due to a general protection fault seems to be the correct one.
https://review.coreboot.org/#/c/28608/1/src/soc/amd/stoneyridge/cpu.c
File src/soc/amd/stoneyridge/cpu.c:
https://review.coreboot.org/#/c/28608/1/src/soc/amd/stoneyridge/cpu.c@123
PS1, Line 123: setup_lapic();
I did a small modification based on your code, and tested. It worked through reboot and through S3 resume. I did not saw any GPF.
static void model_15_init(struct device *dev)
{
check_mca();
setup_lapic();
/* Per AMD, sync an undocumented MSR with the PSP base address */
msr_t psp_msr;
uint32_t psp_bar; /* Note: NDA BKDG names this 32-bit register BAR3 */
psp_bar = pci_read_config32(SOC_PSP_DEV, PCI_BASE_ADDRESS_4);
psp_bar &= ~PCI_BASE_ADDRESS_MEM_ATTR_MASK;
psp_msr = rdmsr(0xc00110a2);
if (psp_msr.lo == 0) {
psp_msr.hi = 0; //This line might not be needed.
psp_msr.lo = psp_bar;
wrmsr(0xc00110a2, psp_msr);
}
}
--
To view, visit https://review.coreboot.org/28608
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: comment
Gerrit-Change-Id: I30027d3b0a6fbd540375e96001beb9c25bf3a678
Gerrit-Change-Number: 28608
Gerrit-PatchSet: 1
Gerrit-Owner: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Garrett Kirkendall <garrett.kirkendall(a)amd.corp-partner.google.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Richard Spiegel <richard.spiegel(a)silverbackltd.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Fri, 14 Sep 2018 20:58:02 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Karthik Ramasubramanian has uploaded this change for review. ( https://review.coreboot.org/28609
Change subject: mb/google/zoombini: Use Chrome EC BOARDID definition
......................................................................
mb/google/zoombini: Use Chrome EC BOARDID definition
The board_id() definition is the duplicate of chrome EC board_id
definition. Remove the duplicate definition and select
EC_GOOGLE_CHROMEEC_BOARDID Kconfig item.
BUG=b:114001972,b:114677884,b:114677887
Change-Id: Id8b7027d653649e8e5791e455652c4e893a746c2
Signed-off-by: Karthikeyan Ramasubramanian <kramasub(a)codeaurora.org>
Tested-by: Karthikeyan Ramasubramanian <kramasub(a)codeaurora.org>
---
M src/mainboard/google/zoombini/Kconfig
M src/mainboard/google/zoombini/Makefile.inc
D src/mainboard/google/zoombini/boardid.c
3 files changed, 1 insertion(+), 32 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/09/28609/1
diff --git a/src/mainboard/google/zoombini/Kconfig b/src/mainboard/google/zoombini/Kconfig
index 656d8b0..249b028 100644
--- a/src/mainboard/google/zoombini/Kconfig
+++ b/src/mainboard/google/zoombini/Kconfig
@@ -7,6 +7,7 @@
select DRIVERS_I2C_MAX98373
select DRIVERS_SPI_ACPI
select EC_GOOGLE_CHROMEEC
+ select EC_GOOGLE_CHROMEEC_BOARDID
select EC_GOOGLE_CHROMEEC_LPC
select HAVE_ACPI_RESUME
select HAVE_ACPI_TABLES
diff --git a/src/mainboard/google/zoombini/Makefile.inc b/src/mainboard/google/zoombini/Makefile.inc
index 241cfe2..d4e9fd4 100644
--- a/src/mainboard/google/zoombini/Makefile.inc
+++ b/src/mainboard/google/zoombini/Makefile.inc
@@ -19,12 +19,10 @@
verstage-$(CONFIG_CHROMEOS) += chromeos.c
-romstage-y += boardid.c
romstage-$(CONFIG_CHROMEOS) += chromeos.c
romstage-y += memory.c
romstage-y += romstage.c
-ramstage-y += boardid.c
ramstage-$(CONFIG_CHROMEOS) += chromeos.c
ramstage-$(CONFIG_EC_GOOGLE_CHROMEEC) += ec.c
ramstage-y += mainboard.c
diff --git a/src/mainboard/google/zoombini/boardid.c b/src/mainboard/google/zoombini/boardid.c
deleted file mode 100644
index 7c68265..0000000
--- a/src/mainboard/google/zoombini/boardid.c
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * This file is part of the coreboot project.
- *
- * Copyright (C) 2017 Google Inc.
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; version 2 of the License.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- */
-
-#include <boardid.h>
-#include <stddef.h>
-#include <ec/google/chromeec/ec.h>
-
-uint32_t board_id(void)
-{
- MAYBE_STATIC uint32_t id = BOARD_ID_INIT;
-
- if (id == BOARD_ID_INIT) {
- if (google_chromeec_get_board_version(&id))
- id = BOARD_ID_UNKNOWN;
- }
-
- return id;
-}
--
To view, visit https://review.coreboot.org/28609
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id8b7027d653649e8e5791e455652c4e893a746c2
Gerrit-Change-Number: 28609
Gerrit-PatchSet: 1
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>