Attention is currently required from: Li1 Feng, John Zhao.
Hello build bot (Jenkins), Li1 Feng,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/52137
to look at the new patch set (#5).
Change subject: mb/google/volteer: Add EC_HOST_EVENT_PD_MCU
......................................................................
mb/google/volteer: Add EC_HOST_EVENT_PD_MCU
This change adds the EC_HOST_EVENT_PD_MCU to be dark resume source.
BUG=b:183140386
TEST=In S0ix, remove DP dongle, system does dark resume. AP and EC
synchronized. AP got port partner disconnection.
Signed-off-by: John Zhao <john.zhao(a)intel.com>
Change-Id: I44e4075f42e9a95d26fe766489630dac0bc61b05
---
M src/mainboard/google/volteer/variants/baseboard/include/baseboard/ec.h
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/37/52137/5
--
To view, visit https://review.coreboot.org/c/coreboot/+/52137
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I44e4075f42e9a95d26fe766489630dac0bc61b05
Gerrit-Change-Number: 52137
Gerrit-PatchSet: 5
Gerrit-Owner: John Zhao <john.zhao(a)intel.com>
Gerrit-Reviewer: Li1 Feng <li1.feng(a)intel.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Attention: Li1 Feng <li1.feng(a)intel.com>
Gerrit-Attention: John Zhao <john.zhao(a)intel.com>
Gerrit-MessageType: newpatchset
Attention is currently required from: Furquan Shaikh, Angel Pons, Subrata Banik, Aaron Durbin.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51445 )
Change subject: timestamp: Add helper fucntions
......................................................................
Patch Set 3:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/51445/comment/a9d7a87a_75c3518c
PS3, Line 7: Add helper fucntions
> Actually replace ts[X] with time_stamp_X. Sorry, I used the wrong name from the follow-up CL.
I think the time_from_base in your naming is confusing, because all timestamp_add()s are relative to the base. The real difference in the one you propose is just that you're using a different scale (microseconds instead of TSC ticks).
I still think this might all be easier if we first change the timestamp library to do everything in microseconds. Then you just need a timestamp_rewind_base(0 - ts[3]) with one argument, and then you can timestamp_add() all the other ones directly (which are already in microseconds to the same new base).
File src/include/timestamp.h:
https://review.coreboot.org/c/coreboot/+/51445/comment/cf36defb_7fb72d93
PS3, Line 26: * Add a new raw timestamp in microseconds into timestamp_table at index 'n'.
> IIUC, the reason why x86 platforms store in TSC frequency is because the timestamp values are basica […]
Yeah I know, but that's one division instruction, it shouldn't really be noticeable. That's the same thing that happens any time you call a stopwatch function, and all the Arm platforms do that too. I feel like we're getting so far into the woods with all these frequencies (especially with all the new APIs you're proposing) that it would really be a lot easier to just force everything to be in microseconds.
--
To view, visit https://review.coreboot.org/c/coreboot/+/51445
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I6b7065ed26e231fc898ae44bcc15cba6fb42b308
Gerrit-Change-Number: 51445
Gerrit-PatchSet: 3
Gerrit-Owner: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Reviewer: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Subrata Banik <subrata.banik(a)intel.com>
Gerrit-Attention: Aaron Durbin <adurbin(a)chromium.org>
Gerrit-Comment-Date: Wed, 07 Apr 2021 00:52:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Furquan Shaikh <furquan(a)google.com>
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Jakub Czapiga, Jan Dabros.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51804 )
Change subject: include/assert.h: Use mock_assert() for ENV_TEST targets
......................................................................
Patch Set 3:
(4 comments)
File src/include/assert.h:
https://review.coreboot.org/c/coreboot/+/51804/comment/5ee126c2_322ffb73
PS3, Line 12: const char *const file, const int line);
nit: maybe declare this right next to MOCK_ASSERT() so it's more obvious where it belongs to?
https://review.coreboot.org/c/coreboot/+/51804/comment/b14dc855_5a014079
PS3, Line 38: mock_assert((result), (expression), (file), (line))
You can just use __ASSERT_FILE__ and __ASSERT_LINE__ in here, no need to pass so many things.
https://review.coreboot.org/c/coreboot/+/51804/comment/2d4854ab_65b5edf1
PS3, Line 71: MOCK_ASSERT(0, "BUG ENCOUNTERED", \
Bad indentation.
File src/include/assert.h:
https://review.coreboot.org/c/coreboot/+/51804/comment/32f4963a_525afcf7
PS1, Line 67: #define assert(statement) mock_assert(statement, #statement, __FILE__, __LINE__)
> ASSERT(), ASSERT_MSG() and BUG() have different input parameters. […]
I mean you could do something like
#define HANDLE_ASSERT(reason, message) do {
if (ENV_TEST)
mock_assert(result, message, __ASSERT_FILE__, __ASSERT_LINE__);
if (CONFIG(FATAL_ASSERTS))
hlt();
to deduplicate things a bit more. But I'm fine with what you have right now as well.
--
To view, visit https://review.coreboot.org/c/coreboot/+/51804
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I5e8dd1b198ee6fab61e2be3f92baf1178f79bf18
Gerrit-Change-Number: 51804
Gerrit-PatchSet: 3
Gerrit-Owner: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-Reviewer: Jan Dabros <jsd(a)semihalf.com>
Gerrit-Reviewer: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Attention: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-Attention: Jan Dabros <jsd(a)semihalf.com>
Gerrit-Comment-Date: Wed, 07 Apr 2021 00:03:43 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Jakub Czapiga <jacz(a)semihalf.com>
Comment-In-Reply-To: Julius Werner <jwerner(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Martin Roth, Felix Held.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51838 )
Change subject: lint: checkpatch: Add SUSPICIOUS_CODE_INDENT test
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
> There's compiler tooling for that since gcc6 (-Wmisleading-indentation) and while it's also just heu […]
If it does the same job just as well, I'm happy with that solution too. (If it existed since GCC 6 why haven't we had this turned on for years?)
--
To view, visit https://review.coreboot.org/c/coreboot/+/51838
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I7bb90b56dfc7582271d2b82cb42a2c1df477054f
Gerrit-Change-Number: 51838
Gerrit-PatchSet: 2
Gerrit-Owner: Julius Werner <jwerner(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: David Hendricks <david.hendricks(a)gmail.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Frans Hendriks <fhendriks(a)eltan.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 06 Apr 2021 23:54:28 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-MessageType: comment
Attention is currently required from: Jakub Czapiga, Paul Menzel.
Julius Werner has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52136 )
Change subject: tests/lib/malloc-test: Fix possible memory overrun
......................................................................
Patch Set 2:
(1 comment)
Patchset:
PS2:
Sorry, where is the overrun here? These two symbols point to the same address, right?
Please always try to make a clear distinction between actual bugs and false positives from Coverity and don't just blindly do what the program tells you. (I'm okay with this change to silence the warning if you want it, but commit messages should make clear when something is an actual bug and when it's just placating an overzealous tool.)
--
To view, visit https://review.coreboot.org/c/coreboot/+/52136
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I19f0718c657d565e515157e66367573e08f51254
Gerrit-Change-Number: 52136
Gerrit-PatchSet: 2
Gerrit-Owner: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Paul Fagerburg <pfagerburg(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Julius Werner <jwerner(a)chromium.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Attention: Jakub Czapiga <jacz(a)semihalf.com>
Gerrit-Attention: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Comment-Date: Tue, 06 Apr 2021 23:52:49 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Kaiyen Chang, Angel Pons, Patrick Rudolph.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52029 )
Change subject: soc/intel/jasperlake: Update CpuRatio settings
......................................................................
Patch Set 4:
(1 comment)
Patchset:
PS4:
Why is this issue/system reset observed only on certain devices instead of all?
Is the cpu ratio configuration by FSP persistent across system resets, so that FSP does get stuck in reset loop?
--
To view, visit https://review.coreboot.org/c/coreboot/+/52029
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I20b9d5620b8e394201e82185eb28b67d6702b2d5
Gerrit-Change-Number: 52029
Gerrit-PatchSet: 4
Gerrit-Owner: Kaiyen Chang <kaiyen.chang(a)intel.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Kaiyen Chang <kaiyen.chang(a)intel.corp-partner.google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: David Wu <david_wu(a)quanta.corp-partner.google.com>
Gerrit-CC: Evan Green <evgreen(a)chromium.org>
Gerrit-CC: Kane Chen <kane.chen(a)intel.corp-partner.google.com>
Gerrit-CC: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Kaiyen Chang <kaiyen.chang(a)intel.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Tue, 06 Apr 2021 23:28:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Marshall Dawson, Karthik Ramasubramanian, Felix Held.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/52049 )
Change subject: soc/amd/cezanne: Set Power state after power failure
......................................................................
Patch Set 3: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/52049
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I21c5da08c82156d6239450ef6921771da74cbaa1
Gerrit-Change-Number: 52049
Gerrit-PatchSet: 3
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 06 Apr 2021 23:24:47 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Jason Glenesk, Raul Rangel, Martin Roth, Marshall Dawson, Karthik Ramasubramanian, Felix Held.
Furquan Shaikh has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/51924 )
Change subject: soc/amd/common: Handle power resume after power failure
......................................................................
Patch Set 4: Code-Review+2
(2 comments)
File src/soc/amd/common/block/pm/Kconfig:
https://review.coreboot.org/c/coreboot/+/51924/comment/83e50872_d0a52568
PS4, Line 5: select POWER_STATE_DEFAULT_ON_AFTER_FAILURE
nit: Probably add it as:
```
config POWER_STATE_DEFAULT_ON_AFTER_FAILURE
default y
```
so that mainboard can override it if required.
(Reference: CB:43338)
File src/soc/amd/common/block/pm/pmlib.c:
https://review.coreboot.org/c/coreboot/+/51924/comment/802866c8_e9ef69cc
PS4, Line 10: 0x4
nit: Use (1 << 2)? It is the same value, but I think it is easier to understand that this is referring to bit 2.
--
To view, visit https://review.coreboot.org/c/coreboot/+/51924
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iea4ea57d747425fe6714d40ba6e60f2447febf28
Gerrit-Change-Number: 51924
Gerrit-PatchSet: 4
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Patrick Georgi <pgeorgi(a)google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)users.sourceforge.net>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Attention: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Tue, 06 Apr 2021 23:24:30 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment