Attention is currently required from: shkim, Henry Sun, Karthik Ramasubramanian.
Edward Doan has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60273 )
Change subject: mb/google/dedede/var/bugzzy: Increase reset_delay_ms for touch screen
......................................................................
Patch Set 1: Code-Review+1
--
To view, visit https://review.coreboot.org/c/coreboot/+/60273
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I34cbc82e2d691266389d498e77d8389cdee23efe
Gerrit-Change-Number: 60273
Gerrit-PatchSet: 1
Gerrit-Owner: shkim <sh_.kim(a)samsung.com>
Gerrit-Reviewer: Edward Doan <edoan(a)chromium.org>
Gerrit-Reviewer: Henry Sun <henrysun(a)google.com>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: SH Kim <sh_.kim(a)samsung.corp-partner.google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: shkim <sh_.kim(a)samsung.com>
Gerrit-Attention: Henry Sun <henrysun(a)google.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Comment-Date: Tue, 21 Dec 2021 16:15:24 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Saurabh Mishra, Balaji Manigandan, Patrick Rudolph.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60259 )
Change subject: FSP 2511 headers include.
......................................................................
Patch Set 3:
(1 comment)
Patchset:
PS3:
This FSP version has not landed in the chrome tree yet and the headers are not upstream (here) yet, so this does not compile right now.
--
To view, visit https://review.coreboot.org/c/coreboot/+/60259
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I0c6ae72610da39fc18ff252c440d006e83c576f3
Gerrit-Change-Number: 60259
Gerrit-PatchSet: 3
Gerrit-Owner: Saurabh Mishra <mishra.saurabh(a)intel.com>
Gerrit-Reviewer: Balaji Manigandan <balaji.manigandan(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Saurabh Mishra <mishra.saurabh(a)intel.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-CC: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Saurabh Mishra <mishra.saurabh(a)intel.com>
Gerrit-Attention: Balaji Manigandan <balaji.manigandan(a)intel.corp-partner.google.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Tue, 21 Dec 2021 15:03:52 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Paul Menzel.
Sean Rhodes has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60264 )
Change subject: mb/starlabs/labtop: Enable I2C4
......................................................................
Patch Set 2:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/60264/comment/e399299b_fc66454b
PS2, Line 7: mb/starlabs/labtop: Enable I2C4
> Mayeb: […]
It works fine without this
--
To view, visit https://review.coreboot.org/c/coreboot/+/60264
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I9c2c4f67672ba5667ebdae9ecc01054449dd3dfd
Gerrit-Change-Number: 60264
Gerrit-PatchSet: 2
Gerrit-Owner: Sean Rhodes <admin(a)starlabs.systems>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Tue, 21 Dec 2021 15:02:58 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: comment
Attention is currently required from: Maulik V Vaghela, Paul Menzel, Mario Scheithauer, Angel Pons, Lean Sheng Tan, Patrick Rudolph.
Werner Zeh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/56633 )
Change subject: soc/intel/elkhartlake: Add PSE TSN support
......................................................................
Patch Set 26:
(1 comment)
File src/soc/intel/elkhartlake/fsp_params.c:
https://review.coreboot.org/c/coreboot/+/56633/comment/8b27f561_79cecf68
PS26, Line 94: if (xtal_freq_enum != (XTAL_24_MHZ || XTAL_38_4_MHZ)) {
This is wrong here (XTAL_24_MHZ || XTAL_38_4_MHZ is always true).
It shouold be:
if ((xtal_freq_enum != XTAL_24_MHZ) && (xtal_freq_enum != XTAL_38_4_MHZ)) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/56633
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: If3807ff5a4578be7b2c67064525fa5099950986a
Gerrit-Change-Number: 56633
Gerrit-PatchSet: 26
Gerrit-Owner: Lean Sheng Tan
Gerrit-Reviewer: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Reviewer: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Werner Zeh <werner.zeh(a)siemens.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Maulik V Vaghela <maulik.v.vaghela(a)intel.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Mario Scheithauer <mario.scheithauer(a)siemens.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Lean Sheng Tan
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Tue, 21 Dec 2021 14:50:42 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Raul Rangel.
build bot (Jenkins) has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/60253 )
Change subject: [RFC] smp/spinlock: Use compiler builtins
......................................................................
Patch Set 2:
(2 comments)
File src/include/smp/spinlock.h:
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135973):
https://review.coreboot.org/c/coreboot/+/60253/comment/7a3aff86_1587c43f
PS2, Line 11: #define DECLARE_SPIN_LOCK(x) static struct spinlock x;
macros should not use a trailing semicolon
Robot Comment from checkpatch (run ID jenkins-coreboot-checkpatch-135973):
https://review.coreboot.org/c/coreboot/+/60253/comment/05fbc824_7b976802
PS2, Line 27: while (!spinlock_try_lock(lock)) {
braces {} are not necessary for single statement blocks
--
To view, visit https://review.coreboot.org/c/coreboot/+/60253
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6694784aa0810cd877886ef95434f62e3aefce6c
Gerrit-Change-Number: 60253
Gerrit-PatchSet: 2
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Comment-Date: Tue, 21 Dec 2021 14:03:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Kyösti Mälkki has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/60280 )
Change subject: [WIP] src/console: Replace to mutex as printk serialization
......................................................................
[WIP] src/console: Replace to mutex as printk serialization
If COOP_MULTITASKING is enabled, printk() may call switch threads
while console_lock is held. To avoid a deadlock, when failing
to acquire console_lock, let other threads execute. Ultimately
some of the other threads will call thread_yield() without holding
console_lock and let another thread continue here.
Change-Id: Id5a48afe40ca86e55e91a00b8a4ee31da09fb9cb
Signed-off-by: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
---
M src/console/printk.c
A src/include/mutex.h
2 files changed, 37 insertions(+), 2 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/80/60280/1
diff --git a/src/console/printk.c b/src/console/printk.c
index 1ed39cb..b54cd9a 100644
--- a/src/console/printk.c
+++ b/src/console/printk.c
@@ -8,6 +8,7 @@
#include <console/console.h>
#include <console/streams.h>
#include <console/vtxprintf.h>
+#include <mutex.h>
#include <smp/spinlock.h>
#include <smp/node.h>
#include <timer.h>
@@ -80,7 +81,7 @@
if (log_this < CONSOLE_LOG_FAST)
return 0;
- spin_lock(&console_lock);
+ mutex_lock(&console_lock);
console_time_run();
@@ -93,7 +94,7 @@
console_time_stop();
- spin_unlock(&console_lock);
+ mutex_unlock(&console_lock);
return i;
}
diff --git a/src/include/mutex.h b/src/include/mutex.h
new file mode 100644
index 0000000..d4642f9
--- /dev/null
+++ b/src/include/mutex.h
@@ -0,0 +1,34 @@
+/* SPDX-License-Identifier: GPL-2.0-only */
+
+#ifndef _MUTEX_H
+#define _MUTEX_H
+
+#include <arch/cpu.h>
+#include <smp/spinlock.h>
+#include <thread.h>
+
+static inline void mutex_lock(struct spinlock *lock)
+{
+ while (!spinlock_try_lock(lock)) {
+ /*
+ * If we failed to get the lock, wait until it's been unlocked before trying to
+ * read-modify-write. This helps prevent excessive cache misses.
+ */
+ while (spinlock_is_locked(lock)) {
+ /*
+ * Threads are only available on the BSP, so if this code is running
+ * on an AP, yielding will fail. In that case just sleep for a bit
+ * and try again.
+ */
+ if (thread_yield() < 0)
+ cpu_relax();
+ }
+ }
+}
+
+static inline void mutex_unlock(struct spinlock *lock)
+{
+ spin_unlock(lock);
+}
+
+#endif /* _MUTEX_H */
--
To view, visit https://review.coreboot.org/c/coreboot/+/60280
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Id5a48afe40ca86e55e91a00b8a4ee31da09fb9cb
Gerrit-Change-Number: 60280
Gerrit-PatchSet: 1
Gerrit-Owner: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-MessageType: newchange