Hello build bot (Jenkins), Selma Bensaid, Bora Guvendik, Angel Pons, Subrata Banik, Patrick Rudolph,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/44492
to look at the new patch set (#3).
Change subject: soc/intel/common: Add new mmc APIS
......................................................................
soc/intel/common: Add new mmc APIS
Add APIS to read single eMMC DLL register and to read/write all
registers at once.
BUG=b:140124451
TEST=Read / write eMMC DLL registers.
Change-Id: Ie70f14d95f81d30360f5a68fbb34b50425e98ece
Signed-off-by: Bora Guvendik <bora.guvendik(a)intel.com>
---
M src/soc/intel/common/block/include/intelblocks/mmc.h
M src/soc/intel/common/block/scs/mmc.c
2 files changed, 28 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/92/44492/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/44492
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ie70f14d95f81d30360f5a68fbb34b50425e98ece
Gerrit-Change-Number: 44492
Gerrit-PatchSet: 3
Gerrit-Owner: Bora Guvendik <bora.guvendik(a)intel.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Bora Guvendik <bora.guvendik(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Selma Bensaid <selma.bensaid(a)intel.com>
Gerrit-Reviewer: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-MessageType: newpatchset
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45912 )
Change subject: mb/google/dedede/var/waddledee: Enable GPIO based I2C Multiplexer
......................................................................
Patch Set 5:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45912/5/src/mainboard/google/deded…
File src/mainboard/google/dedede/Kconfig.name:
https://review.coreboot.org/c/coreboot/+/45912/5/src/mainboard/google/deded…
PS5, Line 54: select DRIVERS_I2C_GPIO_MUX
It should be fine to do this in Kconfig under BOARD_GOOGLE_BASEBOARD_DEDEDE. Linker should drop the unused components for other boards.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45912
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9b09e063b4377587019ade9e6e194f4aadcdd312
Gerrit-Change-Number: 45912
Gerrit-PatchSet: 5
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Evan Green <evgreen(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 05 Oct 2020 21:27:22 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45911 )
Change subject: drivers/i2c: Add chip driver for GPIO based I2C multiplexer
......................................................................
Patch Set 5:
(5 comments)
https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/c…
File src/drivers/i2c/gpio_mux/chip.h:
https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/c…
PS5, Line 16: char
const
https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/c…
PS5, Line 17: acpi_hid
I don't think we need to take in acpi_hid as a parameter from the mainboard. This should be a fixed HID value based on what the kernel driver expects.
From the kernel driver implementation, I don't see any ACPI HID since the driver wasn't written for ACPI support. The way we have handled this for some other drivers is using PRP0001 HID and device tree compatible string in _DSD. I am guessing that we would probably go down the same route here.
References:
1. GPIO keys driver in coreboot: https://source.chromium.org/chromiumos/chromiumos/codesearch/+/master:src/t…
2. https://www.kernel.org/doc/html/latest/firmware-guide/acpi/enumeration.html…https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/c…
PS5, Line 19: /* GPIOs used to select the mux lines */
: uint32_t mux_gpio_count;
: struct acpi_gpio mux_gpio[MAX_NUM_MUX_GPIOS];
Should we put these in a structure just to make it clear that they are applicable only to i2c_mux?
https://review.coreboot.org/c/coreboot/+/45911/4/src/drivers/i2c/gpio_mux/g…
File src/drivers/i2c/gpio_mux/gpio_mux.c:
PS4:
> Should this really just two separate chip drivers? It looks like the acpi_fill_ssdt() for each is to […]
I proposed that just to keep the support for the mux and the bus closer in coreboot. Probably we can organize it like drivers/i2c/gpio_mux/mux and drivers/i2c/gpio_mux/bus and have 2 separate chip drivers support them?
https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/g…
File src/drivers/i2c/gpio_mux/gpio_mux.c:
https://review.coreboot.org/c/coreboot/+/45911/5/src/drivers/i2c/gpio_mux/g…
PS5, Line 108: dev->ops = &i2c_gpio_mux_ops;
I see that Tim has commented about having 2 separate chip drivers. In case we don't go with that, it would be good to add separate ops here for mux and bus so that you don't have to check the device type in other functions:
static struct device_operations i2c_gpio_mux_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.scan_bus = scan_static_bus,
.acpi_name = mux_acpi_name,
.acpi_fill_ssdt = mux_fill_ssdt,
};
static struct device_operations i2c_gpio_bus_ops = {
.read_resources = noop_read_resources,
.set_resources = noop_set_resources,
.acpi_name = bus_acpi_name,
.acpi_fill_ssdt = bus_fill_ssdt,
};
and in here you can set the ops depending upon the device type:
static void i2c_gpio_mux_enable(struct device *dev)
{
struct drivers_i2c_gpio_mux_config *config = dev->chip_info;
if (!config)
return;
if (dev->device_type == I2C_MUX)
dev->ops = &i2c_gpio_mux_ops;
else if (dev->device_type == I2C_MUX_ADAPTER)
dev->ops = &i2c_gpio_bus_ops;
}
--
To view, visit https://review.coreboot.org/c/coreboot/+/45911
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ib371108cc6043c133681066bf7bf4b2e00771e8b
Gerrit-Change-Number: 45911
Gerrit-PatchSet: 5
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Duncan Laurie <dlaurie(a)chromium.org>
Gerrit-Reviewer: Evan Green <evgreen(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Justin TerAvest <teravest(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Comment-Date: Mon, 05 Oct 2020 21:26:56 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Daisuke Nojiri has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45967 )
Change subject: Fleex: Resume from suspend on critical battery
......................................................................
Fleex: Resume from suspend on critical battery
This patch makes Fleex EC wake up AP from s0ix when the state of
charge drops to 5%.
Demonstrated as follows:
1. Boot Fleex.
2. Run powerd_dbus_suspend.
3. On EC, run battfake 5.
4. System resumes.
BUG=b:163721887
BRANCH=Octopus
TEST=Verified on Fleex:
Signed-off-by: Daisuke Nojiri <dnojiri(a)chromium.org>
Change-Id: I4a998ad0aef5a7cfc6fd18995bde5571e6127e77
---
M src/mainboard/google/octopus/variants/fleex/include/variant/ec.h
1 file changed, 5 insertions(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/67/45967/1
diff --git a/src/mainboard/google/octopus/variants/fleex/include/variant/ec.h b/src/mainboard/google/octopus/variants/fleex/include/variant/ec.h
index 60c53dc..29aee4f 100644
--- a/src/mainboard/google/octopus/variants/fleex/include/variant/ec.h
+++ b/src/mainboard/google/octopus/variants/fleex/include/variant/ec.h
@@ -5,4 +5,9 @@
#include <baseboard/ec.h>
+#undef MAINBOARD_EC_S0IX_WAKE_EVENTS
+#define MAINBOARD_EC_S0IX_WAKE_EVENTS \
+ (MAINBOARD_EC_S3_WAKE_EVENTS |\
+ EC_HOST_EVENT_MASK(EC_HOST_EVENT_BATTERY_CRITICAL))
+
#endif
--
To view, visit https://review.coreboot.org/c/coreboot/+/45967
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4a998ad0aef5a7cfc6fd18995bde5571e6127e77
Gerrit-Change-Number: 45967
Gerrit-PatchSet: 1
Gerrit-Owner: Daisuke Nojiri <dnojiri(a)chromium.org>
Gerrit-MessageType: newchange
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45131 )
Change subject: lib/Makefile.inc: fail build when SPD would be empty
......................................................................
Patch Set 14:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45131/14/src/lib/Makefile.inc
File src/lib/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/45131/14/src/lib/Makefile.inc@360
PS14, Line 360: test -n "$(SPD_SOURCES)" || \
: (echo "HAVE_SPD_BIN_IN_CBFS is set but SPD_SOURCES is empty" && exit 1)
> Agreed that we can potentially fix the problem by either using some default file or having a placeho […]
Thank you very much, Furquan.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45131
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic6db1dbe5fed5f242e408bcad4f36dda1b1fa1b4
Gerrit-Change-Number: 45131
Gerrit-PatchSet: 14
Gerrit-Owner: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Caveh Jalali <caveh(a)chromium.org>
Gerrit-Reviewer: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: 9elements QA <hardwaretestrobot(a)gmail.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 18:45:26 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh <furquan(a)google.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/45131 )
Change subject: lib/Makefile.inc: fail build when SPD would be empty
......................................................................
Patch Set 14:
(1 comment)
https://review.coreboot.org/c/coreboot/+/45131/14/src/lib/Makefile.inc
File src/lib/Makefile.inc:
https://review.coreboot.org/c/coreboot/+/45131/14/src/lib/Makefile.inc@360
PS14, Line 360: test -n "$(SPD_SOURCES)" || \
: (echo "HAVE_SPD_BIN_IN_CBFS is set but SPD_SOURCES is empty" && exit 1)
> Thanks for the detailed explanation. […]
Agreed that we can potentially fix the problem by either using some default file or having a placeholder file as you suggested. I will follow-up on Paul's change.
As to why the SPDs are in SoC - yes that is a pending clean up to move the SPDs to a common location so that they don't have to live under SoC.
--
To view, visit https://review.coreboot.org/c/coreboot/+/45131
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ic6db1dbe5fed5f242e408bcad4f36dda1b1fa1b4
Gerrit-Change-Number: 45131
Gerrit-PatchSet: 14
Gerrit-Owner: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Felix Singer <felixsinger(a)posteo.net>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Caveh Jalali <caveh(a)chromium.org>
Gerrit-Reviewer: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: 9elements QA <hardwaretestrobot(a)gmail.com>
Gerrit-Comment-Date: Mon, 05 Oct 2020 18:26:16 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh <furquan(a)google.com>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Nick Vaccaro has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/45886 )
Change subject: lib/spd_bin: add LPDDR4X case to spd_get_name()
......................................................................
lib/spd_bin: add LPDDR4X case to spd_get_name()
Add case for LPDDR4x to spd_get_name().
BUG=b:169800932, b:168724473
TEST=none
Change-Id: I6bae373468b8ad5ae0a6b8dd6bbe14143afb85af
Signed-off-by: Nick Vaccaro <nvaccaro(a)google.com>
---
M src/lib/spd_bin.c
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/86/45886/1
diff --git a/src/lib/spd_bin.c b/src/lib/spd_bin.c
index 3888896..d14fd97 100644
--- a/src/lib/spd_bin.c
+++ b/src/lib/spd_bin.c
@@ -152,6 +152,7 @@
case SPD_DRAM_LPDDR3_JEDEC:
case SPD_DRAM_DDR4:
case SPD_DRAM_LPDDR4:
+ case SPD_DRAM_LPDDR4X:
memcpy(spd_name, &spd[DDR4_SPD_PART_OFF], DDR4_SPD_PART_LEN);
spd_name[DDR4_SPD_PART_LEN] = 0;
break;
--
To view, visit https://review.coreboot.org/c/coreboot/+/45886
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6bae373468b8ad5ae0a6b8dd6bbe14143afb85af
Gerrit-Change-Number: 45886
Gerrit-PatchSet: 1
Gerrit-Owner: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-MessageType: newchange