Paul Kocialkowski (contact(a)paulk.fr) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/17930
-gerrit
commit fe7689192927ef590b5981999bbf4b834d06b781
Author: Paul Kocialkowski <contact(a)paulk.fr>
Date: Mon Dec 19 20:23:44 2016 +0100
libpayload: Enable USB HID in veyron configuration
This enables USB HID support in the veyron config, since it seems to
work correctly and is needed for interaction with depthcharge on devices
without an embedded keyboard (such as veyron_mickey).
Change-Id: Icae829e3a132005df17bcb6f7e6f8a190912576d
Signed-off-by: Paul Kocialkowski <contact(a)paulk.fr>
---
payloads/libpayload/configs/config.veyron | 1 -
1 file changed, 1 deletion(-)
diff --git a/payloads/libpayload/configs/config.veyron b/payloads/libpayload/configs/config.veyron
index e80535c..b643e92 100644
--- a/payloads/libpayload/configs/config.veyron
+++ b/payloads/libpayload/configs/config.veyron
@@ -4,4 +4,3 @@ CONFIG_LP_8250_SERIAL_CONSOLE=y
CONFIG_LP_TIMER_RK3288=y
CONFIG_LP_USB_EHCI=y
CONFIG_LP_USB_DWC2=y
-# CONFIG_LP_USB_HID is not set
Wisley Chen (wisley.chen(a)quantatw.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18140
-gerrit
commit c6d7c37c5ba69da8795f14c8a31a8a8aa0701a86
Author: Wisley Chen <wisley.chen(a)quantatw.com>
Date: Sat Jan 14 23:19:16 2017 +0800
mainboard/google/snappy: disable unused devices
The following devices i2c6, i2c7, spi1, spi2, uart3 are not used.
BUG=none
BRANCH=master
TEST=emerge-snappy coreboot chromeos-bootimage
Change-Id: I9bacdbdd194ce21686c1618494d113402f2bef6c
Signed-off-by: Wisley Chen <wisley.chen(a)quantatw.com>
---
src/mainboard/google/reef/variants/snappy/devicetree.cb | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mainboard/google/reef/variants/snappy/devicetree.cb b/src/mainboard/google/reef/variants/snappy/devicetree.cb
index e46483e..d420481 100644
--- a/src/mainboard/google/reef/variants/snappy/devicetree.cb
+++ b/src/mainboard/google/reef/variants/snappy/devicetree.cb
@@ -200,15 +200,15 @@ chip soc/intel/apollolake
device i2c 0x9 on end
end
end # - I2C 5
- device pci 17.2 on end # - I2C 6
- device pci 17.3 on end # - I2C 7
+ device pci 17.2 off end # - I2C 6
+ device pci 17.3 off end # - I2C 7
device pci 18.0 on end # - UART 0
device pci 18.1 on end # - UART 1
device pci 18.2 on end # - UART 2
- device pci 18.3 on end # - UART 3
+ device pci 18.3 off end # - UART 3
device pci 19.0 on end # - SPI 0
- device pci 19.1 on end # - SPI 1
- device pci 19.2 on end # - SPI 2
+ device pci 19.1 off end # - SPI 1
+ device pci 19.2 off end # - SPI 2
device pci 1a.0 on end # - PWM
device pci 1b.0 on end # - SDCARD
device pci 1c.0 on end # - eMMC
Ronald G. Minnich (rminnich(a)gmail.com) just uploaded a new patch set to gerrit, which you can find at https://review.coreboot.org/18139
-gerrit
commit ee7d3b858c50b4c930250c1442759003947c1267
Author: Ronald G. Minnich <rminnich(a)gmail.com>
Date: Fri Jan 13 18:27:34 2017 -0800
riscv: fix up issues related to M-mode misalign traps
First, make sure that the lb_record allocator allocates
128-bit-aligned pointers. This ensures safety up to rv128.
Second, if we take an interrupt in M-mode, panic. We have
no plans to support that. If you have alignment issues
in M-mode it's a sign you need to fix your firmware.
This gets me back up to a shell prompt on harvey, where
before we would fail with an alignment trap in
coreboot.
Change-Id: Id683fe2baa8cbea9abfccab72cf66a44fc04429e
Signed-off-by: Ronald G. Minnich <rminnich(a)gmail.com>
---
src/arch/riscv/trap_handler.c | 6 ++++++
src/lib/coreboot_table.c | 8 ++++++++
2 files changed, 14 insertions(+)
diff --git a/src/arch/riscv/trap_handler.c b/src/arch/riscv/trap_handler.c
index 9a8947c..272622c 100644
--- a/src/arch/riscv/trap_handler.c
+++ b/src/arch/riscv/trap_handler.c
@@ -150,6 +150,12 @@ static void interrupt_handler(trapframe *tf)
{
uint64_t cause = tf->cause & ~0x8000000000000000ULL;
uint32_t msip, ssie;
+ bool mprv = !!(tf->status & MSTATUS_MPRV);
+
+ if (mprv) {
+ print_trap_information(tf);
+ die("Interrupt in M-mode. Fix your firmware");
+ }
switch (cause) {
case IRQ_M_TIMER:
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index f8da658..dadedc8 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -88,6 +88,14 @@ struct lb_record *lb_new_record(struct lb_header *header)
rec = lb_last_record(header);
if (header->table_entries) {
header->table_bytes += rec->size;
+ // If the rec->size is not aligned to something reasonable,
+ // some architectures can take alignment traps.
+ // Round up table_bytes to something that is future-proof,
+ // namely 128 bits (16 bytes). This will ensure that even
+ // the 128-bit RISCV won't get traps.
+ // We have roundup macros all over the tree; we need to
+ // clean that up at some point.
+ header->table_bytes = (header->table_bytes + 15) & ~0xf;
}
rec = lb_last_record(header);
header->table_entries++;
the following patch was just integrated into master:
commit a19d44d2764be4dba55cad96abea12d92c8e1f0d
Author: Timothy Pearson <tpearson(a)raptorengineering.com>
Date: Mon Jan 9 17:47:37 2017 -0600
amd/mct: Add default values to highest_rank_count for DDR2
The values of highest_rank_count were undefined on DDR2 systems.
Explcitly define these values on DDR2 platforms.
Found-by: Coverity Scan #1347338
Change-Id: Iad7bb00db97b2816fcc44fb5941bd14373451da2
Signed-off-by: Timothy Pearson <tpearson(a)raptorengineering.com>
Reviewed-on: https://review.coreboot.org/18078
Tested-by: build bot (Jenkins)
Tested-by: Raptor Engineering Automated Test Stand <noreply(a)raptorengineeringinc.com>
Reviewed-by: Martin Roth <martinroth(a)google.com>
See https://review.coreboot.org/18078 for details.
-gerrit
the following patch was just integrated into master:
commit 9d490daf8d8327f8f01123cf152edf75474f54ce
Author: Kane Chen <kane.chen(a)intel.com>
Date: Wed Jan 11 12:53:58 2017 +0800
soc/intel/apollolake: Allow USB2 eye pattern configuration in devicetree
This code allows people to override the usb2 eye pattern
UPD settings for boards.
BUG=chrome-os-partner:61031
BRANCH=None
TEST=Usb2 function ok and make sure fsp upd is overridden
Change-Id: I5fab620a29aba196edf1f24ffe6a1695de1e523e
Signed-off-by: Kane Chen <kane.chen(a)intel.com>
Reviewed-on: https://review.coreboot.org/18060
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See https://review.coreboot.org/18060 for details.
-gerrit
the following patch was just integrated into master:
commit e7056a82e098f3d1eb368ef4be021264cb54f20a
Author: Brandon Breitenstein <brandon.breitenstein(a)intel.com>
Date: Thu Jan 5 12:47:27 2017 -0800
apollolake: Update UPD header files for FSP 1.3.0
These updated header files contain USB tuning parameters as well as
some general cleanup of unused parameters in the UPD Headers. This
patch along with the upcoming FSP 1.3.0 release will allow for USB
tuning on apollolake platforms.
CQ-DEPEND=CL:*315403
BUG=chrome-os-partner:61031
Change-Id: Id7cce1ea83057630d508523ada18c5425804535e
Signed-off-by: Brandon Breitenstein <brandon.breitenstein(a)intel.com>
Reviewed-on: https://review.coreboot.org/18046
Reviewed-by: Kevin Chiu <Kevin.Chiu(a)quantatw.com>
Tested-by: build bot (Jenkins)
Reviewed-by: Aaron Durbin <adurbin(a)chromium.org>
See https://review.coreboot.org/18046 for details.
-gerrit