Attention is currently required from: Raul Rangel, Martin Roth, Felix Held.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/57317 )
Change subject: mb/google/guybrush: Initialize WWAN GPIOs the same for PCI vs USB
......................................................................
Patch Set 3:
(3 comments)
Patchset:
PS3:
With too many tables, it is hard for me to get the complete picture. Here is what I understood. Can you please confirm if it is correct?
1) In PSP verstage, WWAN is disabled and put into reset
2) In bootblock, WWAN is enabled and reset line is de-asserted. But the WWAN still is in reset since WWAN_AUX_RESET_L is still asserted.
3) The previous CL in this stack ensures that PCIe training is done in romstage when the system has PCIe WWAN. Otherwise no PCIe training.
4) In ramstage, WWAN is brought of reset because WWAN_AUX_RESET_L is de-asserted.
I believe all of this is done to meet the power sequence requirements of USB and PCIe WWAN modules. If so, we should plan to leverage the ACPI power resource to do this. Both USB and PCIe Root ports have the support to define power resources. Once defined, kernel will exercise the power sequencing as defined in power resources. Again this proposal is not for this change, but as a future improvement. Thoughts/concerns?
File src/mainboard/google/guybrush/variants/baseboard/gpio.c:
https://review.coreboot.org/c/coreboot/+/57317/comment/d4e326b1_07829a04
PS3, Line 172: /* Assert all AUX reset lines */
Delayed question. But better late than never.
Why do we need to do this in PSP verstage? This is more of a question. So I dont want this comment to block the CL. Same for turning on power to WLAN and WWAN.
File src/mainboard/google/guybrush/variants/guybrush/gpio.c:
https://review.coreboot.org/c/coreboot/+/57317/comment/6ca9e431_64376673
PS3, Line 50: /*
: * This code is run before the EC is available to check the board ID
: * since this is needed to work on Board ID 1 and is unused on other
: * versions of guybrush, just enable it.
: *
: * Guybrush BID>1: Unused TP27; BID==1: SD_AUX_RESET_L
: */
Nice catch :)
--
To view, visit https://review.coreboot.org/c/coreboot/+/57317
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Idc9a7cb883fc8dd6bbc6077b8ea99182f17f888b
Gerrit-Change-Number: 57317
Gerrit-PatchSet: 3
Gerrit-Owner: Martin Roth <martinroth(a)google.com>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Martin Roth <martinroth(a)google.com>
Gerrit-Attention: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Comment-Date: Fri, 03 Sep 2021 17:24:05 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak, Angel Pons, Arthur Heymans, Michael Niewöhner, Patrick Rudolph.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/57366 )
Change subject: SMBIOS: Allow skipping default SMBIOS generation
......................................................................
Patch Set 1:
(1 comment)
File src/arch/x86/smbios.c:
https://review.coreboot.org/c/coreboot/+/57366/comment/5b33f8dd_a75b47f4
PS1, Line 1223: } else {
> Not quite. I think we should turn the `dev->enabled` check into a separate […]
Sorry, I mixed that up a little. Your change is sound, just the
`else` makes it more obvious that something is wrong.
--
To view, visit https://review.coreboot.org/c/coreboot/+/57366
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iefbf072b1203d04a98c9d26a30f22cfebe769eb4
Gerrit-Change-Number: 57366
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Fri, 03 Sep 2021 17:19:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Gerrit-MessageType: comment
Attention is currently required from: Furquan Shaikh, Tim Wawrzynczak, Angel Pons, Arthur Heymans, Michael Niewöhner, Patrick Rudolph.
Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/57366 )
Change subject: SMBIOS: Allow skipping default SMBIOS generation
......................................................................
Patch Set 1:
(2 comments)
File src/arch/x86/smbios.c:
https://review.coreboot.org/c/coreboot/+/57366/comment/0896562f_4f0a64d7
PS1, Line 1223: } else {
Not quite. I think we should turn the `dev->enabled` check into a separate
if (!dev->enabled)
continue;
Maybe as a separate commit ahead. I just noticed that the current doesn't
check that for the two functions below. That looks like a bug, though.
https://review.coreboot.org/c/coreboot/+/57366/comment/162fc1b2_704a513b
PS1, Line 1225: len += smbios_generate_type41_from_devtree(dev, handle, current);
Instead of exposing these as API, we'd usually have a default get_smbios_data() that
is called instead of the .ops one. So anyone who wants to write a .get_smbios_data()
whilst keeping the default code, would also just have to call that single default
function.
--
To view, visit https://review.coreboot.org/c/coreboot/+/57366
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Iefbf072b1203d04a98c9d26a30f22cfebe769eb4
Gerrit-Change-Number: 57366
Gerrit-PatchSet: 1
Gerrit-Owner: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Reviewer: Nico Huber <nico.h(a)gmx.de>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Furquan Shaikh <furquan(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Michael Niewöhner <foss(a)mniewoehner.de>
Gerrit-Attention: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Comment-Date: Fri, 03 Sep 2021 17:17:19 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Nico Huber, Nick Vaccaro.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/57069 )
Change subject: coreboot tables: Add type-c port info to coreboot table
......................................................................
Patch Set 16:
(1 comment)
File src/lib/coreboot_table.c:
https://review.coreboot.org/c/coreboot/+/57069/comment/e9d8303b_b4a2719c
PS16, Line 263: rec->size = sizeof(*rec);
> `sizeof(*rec) + sizeof(struct type_c_port_info) * count`
actually if you want to get really technical.... see https://p99.gforge.inria.fr/p99-html/group__flexible.html
```
#define FSIZEOF(T, F, N) P99_MAXOF(sizeof(T), offsetof(T, F) + P99_SIZEOF(T, F[0]) * N)
rec->size = FSIZEOF(struct lb_type_c_info, type_c_info, count);
```
but that depends if we care about potentially wasting a few bytes for a super ugly macro
isn't C glorious? 💯
--
To view, visit https://review.coreboot.org/c/coreboot/+/57069
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ice732be2fa634dbf31ec620552b383c4a5b41451
Gerrit-Change-Number: 57069
Gerrit-PatchSet: 16
Gerrit-Owner: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Furquan Shaikh <furquan(a)google.com>
Gerrit-Reviewer: Patrick Rudolph <siro(a)das-labor.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Zhuohao Lee <zhuohao(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Nico Huber <nico.h(a)gmx.de>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Nico Huber <nico.h(a)gmx.de>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Comment-Date: Fri, 03 Sep 2021 17:14:13 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Nico Huber <nico.h(a)gmx.de>
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment