Attention is currently required from: Subrata Banik, Tim Wawrzynczak, Paul Menzel.
Tarun Tuli has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/63969 )
Change subject: soc/intel/alderlake: provide a list of D-states to enter LPM
......................................................................
Patch Set 13:
(9 comments)
File src/soc/intel/alderlake/acpi.c:
https://review.coreboot.org/c/coreboot/+/63969/comment/d9afeb7e_d5accc16
PS12, Line 179: min_pci_d_states
> To me, I think it makes more sense to store a map of PCI device/path to its required D-state, e.g. […]
This is actually what I started with. I went with the index hash approach as it ends up in an overall simpler implementation and faster lookup (as we probably can't guarantee any order in this approach). The cost is something that ends up being less readable.
It seems the trade-off may be worth it so let me change it back over.
https://review.coreboot.org/c/coreboot/+/63969/comment/5e5a8c2e_08f01295
PS12, Line 470:
> soc_lpi_include_device() already includes a check for that.
Yup precisely!
File src/soc/intel/alderlake/acpi.c:
https://review.coreboot.org/c/coreboot/+/63969/comment/0a8268ff_7d3ab9f2
PS13, Line 23: #define CPU_PATH_PREFIX "\\_SB.CP"
> See `CONFIG_ACPI_CPU_STRING`
Ack. Thanks for the hint.
https://review.coreboot.org/c/coreboot/+/63969/comment/c326577a_da63cf16
PS13, Line 116: typedef enum {
: D0, /* 0 */
: D1, /* 1 */
: D2, /* 2 */
: D3, /* 3 */
: UNDEF
: } D_STATES;
> In coreboot, we don't usually use a lot of typedefs, and not all capitalized names, either so […]
Ack
And yes it could apply if the next suggestion is done. (no need for undef)
https://review.coreboot.org/c/coreboot/+/63969/comment/0ccb302a_8e00a6cf
PS13, Line 440: if (dev && dev->enabled) {
: switch (dev->path.type) {
: case DEVICE_PATH_PCI:
: return (min_pci_d_states[dev->path.pci.devfn] != UNDEF);
:
: case DEVICE_PATH_APIC:
: return true;
:
: default:
: return false;
: }
: }
: return false;
> if you take my suggestion from above, this simplifies to: […]
I believe we would still want to add a check in here that the entry we're interested in actually exists (as we don't even want to include that device in the count we emit/emit it out if it doesn't).
https://review.coreboot.org/c/coreboot/+/63969/comment/2df39651_1173ac1e
PS13, Line 455: extern int cpu_get_apic_id(int logical_cpu);
> `#include <cpu/cpu. […]
Ack
https://review.coreboot.org/c/coreboot/+/63969/comment/d18cb982_0dce2345
PS13, Line 499: default:
: /* Unhandled */
: acpigen_emit_namestring(NULL);
: break;
: }
> Probably print an error instead? soc_lpi_include_device() should take care of this case already.
Yes. Correct, in theory we should actually never get this, but to not overall ruin the output structure in case we ever do (since we need a default case anyways). Added a error as well though for good measure.
https://review.coreboot.org/c/coreboot/+/63969/comment/30498432_e1096bec
PS13, Line 505: 1
> symbolic constants (e.g. […]
Ack
https://review.coreboot.org/c/coreboot/+/63969/comment/c330744e_402b3cf2
PS13, Line 521: D0;
> nit: […]
Ack
--
To view, visit https://review.coreboot.org/c/coreboot/+/63969
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibe46a0583c522a8adf0a015cd3a698f694482437
Gerrit-Change-Number: 63969
Gerrit-PatchSet: 13
Gerrit-Owner: Tarun Tuli <taruntuli(a)google.com>
Gerrit-Reviewer: Lance Zhao
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Comment-Date: Mon, 02 May 2022 23:34:39 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tarun Tuli <taruntuli(a)google.com>
Comment-In-Reply-To: Subrata Banik <subratabanik(a)google.com>
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Raul Rangel, Tim Wawrzynczak, Jon Murphy.
Karthik Ramasubramanian has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/63968 )
Change subject: drivers/usb: Add chip driver for VL822 USB hub
......................................................................
Patch Set 2:
(2 comments)
File src/drivers/usb/vl/acpi_vl822.c:
https://review.coreboot.org/c/coreboot/+/63968/comment/3da5d507_cbc394d0
PS2, Line 91: ViaLabs VL822
> Nothing about this file looks like it's VL822 specific. […]
I agree. There is nothing specific about this driver for VL822. I can rename it to a generic USB hub
File src/drivers/usb/vl/chip.h:
https://review.coreboot.org/c/coreboot/+/63968/comment/48d109c7_17ca5fb1
PS2, Line 9: port_count
> Or maybe we add a port_count parameter to the existing `drivers/usb/acpi` and change this condition? […]
I thought about this approach such that USB hub driver is integrated with USB ACPI driver. But the acpi_name operation for the USB leaf node (i.e. downstream ports) has to be NULL such that the hub(parent) can define the ACPI name for them. Once it is defined and returns NULL as ACPI name for leaf nodes, then it breaks the ACPI path for leaf nodes.
https://source.chromium.org/chromiumos/chromiumos/codesearch/+/main:src/thi…
--
To view, visit https://review.coreboot.org/c/coreboot/+/63968
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I11d7ccc42d3dce8e136eb771f120825980e5c027
Gerrit-Change-Number: 63968
Gerrit-PatchSet: 2
Gerrit-Owner: Karthik Ramasubramanian <kramasub(a)google.com>
Gerrit-Reviewer: Jon Murphy <jpmurphy(a)google.com>
Gerrit-Reviewer: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Reviewer: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Raul Rangel <rrangel(a)chromium.org>
Gerrit-Attention: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Attention: Jon Murphy <jpmurphy(a)google.com>
Gerrit-Comment-Date: Mon, 02 May 2022 23:02:21 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Raul Rangel <rrangel(a)chromium.org>
Gerrit-MessageType: comment
Attention is currently required from: Ivy Jian, Angel Pons, Nick Vaccaro, Eric Lai.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/62384 )
Change subject: mb/google/brya/var/agah: Add GPU power sequencing
......................................................................
Patch Set 6:
(2 comments)
Patchset:
PS3:
> Thanks to you! Let me know if this is ready to go and I'll give a +2
Ok, I think this newest rev should be good for the now 😊
File src/mainboard/google/brya/variants/agah/variant.c:
https://review.coreboot.org/c/coreboot/+/62384/comment/2fabc974_c50579bf
PS3, Line 164: 0x100
> Ack
Oops yes it's PCI config space size, updated the code with a #define.
--
To view, visit https://review.coreboot.org/c/coreboot/+/62384
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1072be12ef58af5859e2a2d19c4a9c1adc0b0f88
Gerrit-Change-Number: 62384
Gerrit-PatchSet: 6
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Ivy Jian <ivy.jian(a)quanta.corp-partner.google.com>
Gerrit-Reviewer: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Ivy Jian <ivy.jian(a)quanta.corp-partner.google.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Nick Vaccaro <nvaccaro(a)google.com>
Gerrit-Attention: Eric Lai <eric_lai(a)quanta.corp-partner.google.com>
Gerrit-Comment-Date: Mon, 02 May 2022 23:02:09 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Hello build bot (Jenkins), Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/63179
to look at the new patch set (#2).
Change subject: mb/google/brya/var/taeko{4es}: Remove extraneous __weak attributes
......................................................................
mb/google/brya/var/taeko{4es}: Remove extraneous __weak attributes
Functions that are intended to override weak ones defined in the
baseboard should not also be declared weak, otherwise how would
the linker know which copy to keep.
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Change-Id: Ia2ceee77d00a5baa915fd1f306d76e79aa609e65
---
M src/mainboard/google/brya/variants/taeko/memory.c
M src/mainboard/google/brya/variants/taeko4es/memory.c
2 files changed, 6 insertions(+), 6 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/79/63179/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/63179
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ia2ceee77d00a5baa915fd1f306d76e79aa609e65
Gerrit-Change-Number: 63179
Gerrit-PatchSet: 2
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-MessageType: newpatchset
Attention is currently required from: Subrata Banik.
Hello build bot (Jenkins), Subrata Banik, Angel Pons,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/62932
to look at the new patch set (#3).
Change subject: mb/google/brya/var/agah: Select INCLUDE_NVIDIA_GPU_ASL
......................................................................
mb/google/brya/var/agah: Select INCLUDE_NVIDIA_GPU_ASL
The agah variant will include an Nvidia GN20 series GPU, therefore
select the INCLUDE_NVIDIA_GPU_ASL Kconfig to include the respective
ASL code into the DSDT.
BUG=b:214581763
TEST=build patch train
Signed-off-by: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Change-Id: Icc718d01506ccb4dd42841239e96926f4ddaa9c9
---
M src/mainboard/google/brya/Kconfig.name
1 file changed, 1 insertion(+), 0 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/32/62932/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/62932
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Icc718d01506ccb4dd42841239e96926f4ddaa9c9
Gerrit-Change-Number: 62932
Gerrit-PatchSet: 3
Gerrit-Owner: Tim Wawrzynczak <twawrzynczak(a)chromium.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Subrata Banik <subratabanik(a)google.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Subrata Banik <subratabanik(a)google.com>
Gerrit-MessageType: newpatchset