Martin Roth has posted comments on this change. ( https://review.coreboot.org/28374 )
Change subject: mainboard/google/kahlee: Enable EC firmware update screen
......................................................................
Patch Set 1:
(1 comment)
https://review.coreboot.org/#/c/28374/1/src/mainboard/google/kahlee/Kconfig
File src/mainboard/google/kahlee/Kconfig:
https://review.coreboot.org/#/c/28374/1/src/mainboard/google/kahlee/Kconfig…
PS1, Line 101: if VBOOT_EC_SOFTWARE_SYNC
> nit: VBOOT_EC_SLOW_UPDATE already has a 'depends on VBOOT_EC_SOFTWARE_SYNC', this if clause is prett […]
Unfortunately, select statements override "depends on", so the 'if' is needed.
>From the Kconfig doc:
https://doc.coreboot.org/getting_started/kconfig.html
Select statement usage
The ‘select’ keyword forces the value of a symbol with a
bool type to ‘y’. It overrides any dependencies of the
symbol, so using it carelessly can lead to unpredictable
results.
--
To view, visit https://review.coreboot.org/28374
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: I95fc4d3430bac66c09f57a4d34abde08752e5f0e
Gerrit-Change-Number: 28374
Gerrit-PatchSet: 1
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Daniel Kurtz <djkurtz(a)google.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 29 Aug 2018 15:45:35 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Elyes HAOUAS has uploaded this change for review. ( https://review.coreboot.org/28387
Change subject: src/drivers/spi/tpm: Fix typo
......................................................................
src/drivers/spi/tpm: Fix typo
Change-Id: Ifb1e024821153865dd4a27a100f8a9c61151e0e1
Signed-off-by: Elyes HAOUAS <ehaouas(a)noos.fr>
---
M src/drivers/spi/tpm/tpm.c
1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/87/28387/1
diff --git a/src/drivers/spi/tpm/tpm.c b/src/drivers/spi/tpm/tpm.c
index 3206ba1..ac9cf24 100644
--- a/src/drivers/spi/tpm/tpm.c
+++ b/src/drivers/spi/tpm/tpm.c
@@ -442,7 +442,7 @@
for (retries = 15; retries > 0; retries--) {
int i;
- /* In case of falure to read div_vid is set to zero. */
+ /* In case of failure to read div_vid is set to zero. */
tpm2_read_reg(TPM_DID_VID_REG, &did_vid, sizeof(did_vid));
for (i = 0; i < ARRAY_SIZE(supported_did_vids); i++)
--
To view, visit https://review.coreboot.org/28387
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: Ifb1e024821153865dd4a27a100f8a9c61151e0e1
Gerrit-Change-Number: 28387
Gerrit-PatchSet: 1
Gerrit-Owner: Elyes HAOUAS <ehaouas(a)noos.fr>
Hello Patrick Rudolph, build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28380
to look at the new patch set (#3).
Change subject: [WIP] Nvidia Optimus support for ThinkPads
......................................................................
[WIP] Nvidia Optimus support for ThinkPads
Based on siro's work #23041.
Tested on ThinkPad W530.
Enables dual graphics mode for T420, T420s, T520, T430, T430s, T530
mainboards, adds ACPI code for dGPU power management.
What works (tested on 4.16.13-gentoo kernel):
- power management via _PS0 and _DSM + _PS3 ACPI calls
- nouveau driver (with a workaround, see below)
- bumblebee (from the "develop" branch)
- bbswitch
Known problems:
- `lspci -s 01:00.0 -vv` turns dGPU on if it was off before. Not sure why it
happens (probably it calls _PS0 at some point) or whether it should
happen.
- nouveau driver unloading (`rmmod` or `modprobe -r`) does not work well: it
crashes in nouveau_backlight_exit (invalid pointer). The current hack is
to comment out these lines in drivers/gpu/drm/nouveau/nouveau_backlight.c,
function `nouveau_backlight_exit`:
list_for_each_entry(connector, &drm->bl_connectors, head) {
if (connector->id >= 0)
ida_simple_remove(&bl_ida, connector->id);
}
Need to debug why it happens.
- VGA ROM for Nvidia GPU is not loaded from BIOS (i.e. coreboot). Need
to debug and fix this too. (Or maybe I'm just doing it wrong.) The current
workaround is to load it from a file.
To do this automatically, create a new file in /etc/modprobe.d with this
line:
options nouveau config=NvBios=pci10de-0ffc.rom
where "pci10de-0ffc.rom" is a file in /lib/firmware directory
(the path is relative to /lib/firmware). VGA ROM has to be extracted
from vendor UEFI dump, GUID is 9781FA9D-5A3B-431A-AD59-2748C9A170EC.
Not tested yet:
- nvidia proprietary driver
Change-Id: I277808d6c1d8bd6e0a267a53f25471597698f8d5
Signed-off-by: Evgeny Zinoviev <me(a)ch1p.com>
---
A src/drivers/lenovo/hybrid_graphics/acpi/gpu.asl
A src/drivers/nvidia/optimus/acpi/optimus.asl
A src/ec/lenovo/pmh7/acpi/pmh7.asl
M src/mainboard/lenovo/t420/acpi/ec.asl
M src/mainboard/lenovo/t420/cmos.layout
M src/mainboard/lenovo/t420/dsdt.asl
M src/mainboard/lenovo/t420/romstage.c
M src/mainboard/lenovo/t420s/acpi/ec.asl
M src/mainboard/lenovo/t420s/cmos.layout
M src/mainboard/lenovo/t420s/dsdt.asl
M src/mainboard/lenovo/t420s/romstage.c
M src/mainboard/lenovo/t430/acpi/ec.asl
M src/mainboard/lenovo/t430/cmos.layout
M src/mainboard/lenovo/t430/devicetree.cb
M src/mainboard/lenovo/t430/dsdt.asl
M src/mainboard/lenovo/t430/romstage.c
M src/mainboard/lenovo/t430s/Kconfig
M src/mainboard/lenovo/t430s/Makefile.inc
M src/mainboard/lenovo/t430s/acpi/ec.asl
M src/mainboard/lenovo/t430s/cmos.default
M src/mainboard/lenovo/t430s/cmos.layout
M src/mainboard/lenovo/t430s/devicetree.cb
M src/mainboard/lenovo/t430s/dsdt.asl
M src/mainboard/lenovo/t430s/romstage.c
M src/mainboard/lenovo/t520/acpi/ec.asl
M src/mainboard/lenovo/t520/dsdt.asl
M src/mainboard/lenovo/t520/romstage.c
M src/mainboard/lenovo/t530/acpi/ec.asl
M src/mainboard/lenovo/t530/cmos.layout
M src/mainboard/lenovo/t530/dsdt.asl
M src/mainboard/lenovo/t530/romstage.c
M src/mainboard/lenovo/t530/variants/t530/devicetree.cb
M src/mainboard/lenovo/t530/variants/w530/devicetree.cb
M src/northbridge/intel/sandybridge/acpi/peg.asl
34 files changed, 427 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/28380/3
--
To view, visit https://review.coreboot.org/28380
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I277808d6c1d8bd6e0a267a53f25471597698f8d5
Gerrit-Change-Number: 28380
Gerrit-PatchSet: 3
Gerrit-Owner: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Hello build bot (Jenkins),
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/28384
to look at the new patch set (#2).
Change subject: riscv: add entry assembly file for RAMSTAGE
......................................................................
riscv: add entry assembly file for RAMSTAGE
RAMSTAGE will revoke CAR/scratchpad, so stack and exception handling
needs to be moved to ddr memory. So add a assembly file to do this.
Change-Id: I58aa6ff911f385180bad6e026d3c3eace846e37d
Signed-off-by: Xiang Wang <wxjstz(a)126.com>
---
M src/arch/riscv/Makefile.inc
A src/arch/riscv/assembly_entry.S
M src/arch/riscv/include/arch/header.ld
3 files changed, 57 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/28384/2
--
To view, visit https://review.coreboot.org/28384
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-MessageType: newpatchset
Gerrit-Change-Id: I58aa6ff911f385180bad6e026d3c3eace846e37d
Gerrit-Change-Number: 28384
Gerrit-PatchSet: 2
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Evgeny Zinoviev has posted comments on this change. ( https://review.coreboot.org/28380 )
Change subject: [WIP] Nvidia Optimus support for ThinkPads
......................................................................
Patch Set 2:
(1 comment)
https://review.coreboot.org/#/c/28380/2/src/mainboard/lenovo/t430/cmos.layo…
File src/mainboard/lenovo/t430/cmos.layout:
https://review.coreboot.org/#/c/28380/2/src/mainboard/lenovo/t430/cmos.layo…
PS2, Line 131: Graphics
> Unrelated to optimus as you can use two GPUs even without it. Please add it in a separate commit.
Do you think I should move has_thinker1 changes in devicetrees to a separate commit too?
By the way I'm not sure "has_thinker1" is correct, as they seemingly don't have thinker1 (according to schematics), but dGPU registers still work and it seems it's the only usage of has_thinker1 in coreboot.
--
To view, visit https://review.coreboot.org/28380
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: I277808d6c1d8bd6e0a267a53f25471597698f8d5
Gerrit-Change-Number: 28380
Gerrit-PatchSet: 2
Gerrit-Owner: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Evgeny Zinoviev <me(a)ch1p.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Wed, 29 Aug 2018 09:38:56 +0000
Gerrit-HasComments: Yes
Gerrit-HasLabels: No
Xiang Wang has uploaded this change for review. ( https://review.coreboot.org/28384
Change subject: riscv: add entry assembly file for RAMSTAGE
......................................................................
riscv: add entry assembly file for RAMSTAGE
RAMSTAGE will revoke CAR/scratchpad, so stack and exception handling
needs to be moved to ddr memory. So add a assembly file to do this.
Change-Id: I58aa6ff911f385180bad6e026d3c3eace846e37d
Signed-off-by: Xiang Wang <wxjstz(a)126.com>
---
M src/arch/riscv/Makefile.inc
A src/arch/riscv/assembly_entry.S
M src/arch/riscv/include/arch/header.ld
3 files changed, 58 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/84/28384/1
diff --git a/src/arch/riscv/Makefile.inc b/src/arch/riscv/Makefile.inc
index c485940..4038964 100644
--- a/src/arch/riscv/Makefile.inc
+++ b/src/arch/riscv/Makefile.inc
@@ -97,6 +97,10 @@
ifeq ($(CONFIG_ARCH_RAMSTAGE_RISCV),y)
ramstage-y =
+ramstage-y += assembly_entry.S
+ramstage-y += mcall.c
+ramstage-y += trap_util.S
+ramstage-y += trap_handler.c
ramstage-y += virtual_memory.c
ramstage-y += stages.c
ramstage-y += misc.c
diff --git a/src/arch/riscv/assembly_entry.S b/src/arch/riscv/assembly_entry.S
new file mode 100644
index 0000000..724de92
--- /dev/null
+++ b/src/arch/riscv/assembly_entry.S
@@ -0,0 +1,52 @@
+/*
+ * This file is part of the coreboot project.
+ *
+ * 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 <arch/encoding.h>
+#include <mcall.h>
+
+.section ".text._start", "ax", %progbits
+.globl _start
+_start:
+ # initialize stack point for each hart
+ # and the stack must be page-aligned.
+ # 0xDEADBEEF used to check stack overflow
+ csrr a0, mhartid
+ la t0, _stack
+ slli t1, a0, RISCV_PGSHIFT
+ add t0, t0, t1
+ li t1, 0xDEADBEEF
+ sd t1, 0(t0)
+ li t1, RISCV_PGSIZE - HLS_SIZE
+ add sp, t0, t1
+
+ # initialize hart-local storage
+ csrr a0, mhartid
+ call hls_init
+
+ # initialize entry of interrupt/exception
+ la t0, trap_entry
+ csrw mtvec, t0
+
+ # clear any pending interrupts
+ csrwi mip, 0
+
+ call exit_car
+ # set up the mstatus register for VM
+ call mstatus_init
+ tail main
+
+ # These codes need to be implemented on a specific SoC
+ .weak exit_car
+exit_car:
+ ret
+
diff --git a/src/arch/riscv/include/arch/header.ld b/src/arch/riscv/include/arch/header.ld
index 3e078d8..2edcd67 100644
--- a/src/arch/riscv/include/arch/header.ld
+++ b/src/arch/riscv/include/arch/header.ld
@@ -23,6 +23,8 @@
#ifdef __BOOTBLOCK__
ENTRY(_start)
+#elif __RAMSTAGE__
+ENTRY(_start)
#else
ENTRY(stage_entry)
#endif
--
To view, visit https://review.coreboot.org/28384
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: I58aa6ff911f385180bad6e026d3c3eace846e37d
Gerrit-Change-Number: 28384
Gerrit-PatchSet: 1
Gerrit-Owner: Xiang Wang <wxjstz(a)126.com>