Attention is currently required from: Jason Glenesk, Marshall Dawson, Matt DeVillier, Arthur Heymans, Fred Reitberger.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/64951 )
Change subject: soc/amd/noncar/memlayout.ld: Warn about incorrect reset vector
......................................................................
Patch Set 15: Code-Review+2
--
To view, visit https://review.coreboot.org/c/coreboot/+/64951
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: Ibced50e4348a2b46511328f9b3f3afa836feb9a5
Gerrit-Change-Number: 64951
Gerrit-PatchSet: 15
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Reviewer: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Reviewer: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Reviewer: Matt DeVillier <matt.devillier(a)amd.corp-partner.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)mailbox.org>
Gerrit-Attention: Jason Glenesk <jason.glenesk(a)gmail.com>
Gerrit-Attention: Marshall Dawson <marshalldawson3rd(a)gmail.com>
Gerrit-Attention: Matt DeVillier <matt.devillier(a)amd.corp-partner.google.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Fred Reitberger <reitbergerfred(a)gmail.com>
Gerrit-Comment-Date: Sat, 05 Nov 2022 17:20:05 +0000
Gerrit-HasComments: No
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Felix Held has submitted this change. ( https://review.coreboot.org/c/coreboot/+/64341 )
Change subject: cpu/x86/mp_init.c: Use existing code to create cpu struct device
......................................................................
cpu/x86/mp_init.c: Use existing code to create cpu struct device
Change-Id: I80baadd405b31d6be2fdbb894b0f4b7c775da6f8
Signed-off-by: Arthur Heymans <arthur(a)aheymans.xyz>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/64341
Tested-by: build bot (Jenkins) <no-reply(a)coreboot.org>
Reviewed-by: Jonathan Zhang <jonzhang(a)fb.com>
Reviewed-by: Felix Held <felix-coreboot(a)felixheld.de>
---
M src/cpu/x86/mp_init.c
1 file changed, 21 insertions(+), 15 deletions(-)
Approvals:
build bot (Jenkins): Verified
Felix Held: Looks good to me, approved
Jonathan Zhang: Looks good to me, approved
diff --git a/src/cpu/x86/mp_init.c b/src/cpu/x86/mp_init.c
index febc30b..0e4a571 100644
--- a/src/cpu/x86/mp_init.c
+++ b/src/cpu/x86/mp_init.c
@@ -369,18 +369,9 @@
info = cpu_info();
for (i = 1; i < max_cpus; i++) {
- struct device_path cpu_path;
- struct device *new;
-
- /* Build the CPU device path */
- cpu_path.type = DEVICE_PATH_APIC;
-
/* Assuming linear APIC space allocation. AP will set its own
APIC id in the ap_init() path above. */
- cpu_path.apic.apic_id = info->cpu->path.apic.apic_id + i;
-
- /* Allocate the new CPU device structure */
- new = alloc_find_dev(cpu_bus, &cpu_path);
+ struct device *new = add_cpu_device(cpu_bus, info->cpu->path.apic.apic_id + i, 1);
if (new == NULL) {
printk(BIOS_CRIT, "Could not allocate CPU device\n");
max_cpus--;
@@ -532,7 +523,6 @@
static enum cb_err init_bsp(struct bus *cpu_bus)
{
- struct device_path cpu_path;
struct cpu_info *info;
/* Print processor name */
@@ -543,13 +533,15 @@
enable_lapic();
setup_lapic_interrupts();
- /* Set the device path of the boot CPU. */
- cpu_path.type = DEVICE_PATH_APIC;
- cpu_path.apic.apic_id = lapicid();
+ struct device *bsp = add_cpu_device(cpu_bus, lapicid(), 1);
+ if (bsp == NULL) {
+ printk(BIOS_CRIT, "Failed to find or allocate BSP struct device\n");
+ return CB_ERR;
+ }
/* Find the device structure for the boot CPU. */
info = cpu_info();
- info->cpu = alloc_find_dev(cpu_bus, &cpu_path);
+ info->cpu = bsp;
info->cpu->name = processor_name;
if (info->index != 0) {
--
To view, visit https://review.coreboot.org/c/coreboot/+/64341
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I80baadd405b31d6be2fdbb894b0f4b7c775da6f8
Gerrit-Change-Number: 64341
Gerrit-PatchSet: 10
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-CC: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-MessageType: merged
Attention is currently required from: Arthur Heymans, Kyösti Mälkki.
Felix Held has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/64341 )
Change subject: cpu/x86/mp_init.c: Use existing code to create cpu struct device
......................................................................
Patch Set 9:
(1 comment)
Patchset:
PS9:
> > verified that this works on amd/mandolin […]
oh, right, now i remember this case. it'd definitely worth a comment
--
To view, visit https://review.coreboot.org/c/coreboot/+/64341
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I80baadd405b31d6be2fdbb894b0f4b7c775da6f8
Gerrit-Change-Number: 64341
Gerrit-PatchSet: 9
Gerrit-Owner: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-Reviewer: Jonathan Zhang <jonzhang(a)fb.com>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-CC: Arthur Heymans <arthur.heymans(a)9elements.com>
Gerrit-CC: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-CC: Paul Menzel <paulepanter(a)mailbox.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Attention: Kyösti Mälkki <kyosti.malkki(a)gmail.com>
Gerrit-Comment-Date: Sat, 05 Nov 2022 17:18:08 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Arthur Heymans <arthur(a)aheymans.xyz>
Comment-In-Reply-To: Felix Held <felix-coreboot(a)felixheld.de>
Gerrit-MessageType: comment
Attention is currently required from: Angel Pons, Arthur Heymans.
Bill XIE has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69215 )
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
Patch Set 4:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/69215/comment/dd914da3_d4107112
PS1, Line 9: https://review.coreboot.org/c/coreboot/+/64340
> Please refer to the commit using its hash, commit 48c825ebd1beadb8ac4fd3ae687a36ff4705ab7a or a shor […]
Done
https://review.coreboot.org/c/coreboot/+/69215/comment/cb780af4_f338a573
PS1, Line 23: CB:64340
> Ditto
Done
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 4
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sat, 05 Nov 2022 17:16:23 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment
Attention is currently required from: Bill XIE, Arthur Heymans.
Hello Tim Wawrzynczak, Angel Pons, Arthur Heymans,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/69215
to look at the new patch set (#4).
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
cpu/x86/mp_init.c: Fix the logic to add AP cpus
commit 48c825ebd1beadb8ac4fd3ae687a36ff4705ab7a assumes that
(g_)cpu_bus->children->sibling represents the first AP cpu, but this
is not true when device tree (like mb/asus/p8x7x-series/devicetree.cb)
contains additional static lapic nodes. In such case, Linux kernel can
find one cpu unable to wake up, and an additional working cpu without
corresponding ACPI firmware node:
smpboot: Allowing 5 CPUs, 0 hotplug CPUs
smpboot: CPU0: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz (family:
0x6, model: 0x3a, stepping: 0x9)
smpboot: do_boot_cpu failed(-1) to wakeup CPU#2
Now, in the end of init_bsp(), the last apic node is held on
g_last_apic, and all node representing an AP cpu should be inserted
and set up after it. The consistency lost with commit 48c825e
(cpu/x86/mp_init.c: Use linked list data structures) should be
restored now.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
---
M src/cpu/x86/mp_init.c
1 file changed, 39 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/69215/4
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 4
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newpatchset
Attention is currently required from: Bill XIE, Arthur Heymans.
Hello Tim Wawrzynczak, Angel Pons, Arthur Heymans,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/69215
to look at the new patch set (#3).
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
cpu/x86/mp_init.c: Fix the logic to add AP cpus
commit 48c825ebd1beadb8ac4fd3ae687a36ff4705ab7a assumes that
(g_)cpu_bus->children->sibling represents the first AP cpu, but this
is not true when device tree (like mb/asus/p8x7x-series/devicetree.cb)
contains additional static lapic nodes. In such case, Linux kernel can
find one cpu unable to wake up, and an additional working cpu without
corresponding ACPI firmware node:
smpboot: Allowing 5 CPUs, 0 hotplug CPUs
smpboot: CPU0: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz (family:
0x6, model: 0x3a, stepping: 0x9)
smpboot: do_boot_cpu failed(-1) to wakeup CPU#2
Now, in the end of init_bsp(), the last apic node is held on
g_last_apic, and all node representing an AP cpu should be inserted
and set up after it. The consistency lost with
(48c825e cpu/x86/mp_init.c: Use linked list data structures) should be
restored now.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
---
M src/cpu/x86/mp_init.c
1 file changed, 39 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/69215/3
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 3
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newpatchset
Attention is currently required from: Bill XIE, Arthur Heymans.
Hello Tim Wawrzynczak, Angel Pons, Arthur Heymans,
I'd like you to reexamine a change. Please visit
https://review.coreboot.org/c/coreboot/+/69215
to look at the new patch set (#2).
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
cpu/x86/mp_init.c: Fix the logic to add AP cpus
commit 48c825ebd1beadb8ac4fd3ae687a36ff4705ab7a assumes that
(g_)cpu_bus->children->sibling represents the first AP cpu, but this
is not true when device tree (like mb/asus/p8x7x-series/devicetree.cb)
contains additional static lapic nodes. In such case, Linux kernel can
find one cpu unable to wake up, and an additional working cpu without
corresponding ACPI firmware node:
smpboot: Allowing 5 CPUs, 0 hotplug CPUs
smpboot: CPU0: Intel(R) Xeon(R) CPU E3-1225 V2 @ 3.20GHz (family:
0x6, model: 0x3a, stepping: 0x9)
smpboot: do_boot_cpu failed(-1) to wakeup CPU#2
Now, in the end of init_bsp(), the last apic node is held on
g_last_apic, and all node representing an AP cpu should be inserted
and set up after it. The consistency lost with commit 48c825e should
be restored now.
Signed-off-by: Bill XIE <persmule(a)hardenedlinux.org>
Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
---
M src/cpu/x86/mp_init.c
1 file changed, 38 insertions(+), 4 deletions(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/15/69215/2
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 2
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-MessageType: newpatchset
Attention is currently required from: Bill XIE, Arthur Heymans.
Tim Wawrzynczak has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69215 )
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1:
My memory is hazy, Arthur weren't you working on a way to remove the need for the 0xacac lapic devices in devicetrees?
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 1
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sat, 05 Nov 2022 17:01:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
Gerrit-MessageType: comment
Attention is currently required from: Bill XIE, Tim Wawrzynczak, Arthur Heymans.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69215 )
Change subject: cpu/x86/mp_init.c: Fix the logic to add AP cpus
......................................................................
Patch Set 1:
(2 comments)
Commit Message:
https://review.coreboot.org/c/coreboot/+/69215/comment/01318a13_b7a75ea1
PS1, Line 9: https://review.coreboot.org/c/coreboot/+/64340
Please refer to the commit using its hash, commit 48c825ebd1beadb8ac4fd3ae687a36ff4705ab7a or a shortened form with its commit summary in parentheses.
https://review.coreboot.org/c/coreboot/+/69215/comment/0f9ed42a_c9c798c7
PS1, Line 23: CB:64340
Ditto
--
To view, visit https://review.coreboot.org/c/coreboot/+/69215
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I1075bc52091e619ef79cbeab0a0f6b57cff1d708
Gerrit-Change-Number: 69215
Gerrit-PatchSet: 1
Gerrit-Owner: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Bill XIE <persmule(a)hardenedlinux.org>
Gerrit-Attention: Tim Wawrzynczak <inforichland(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sat, 05 Nov 2022 16:44:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
Attention is currently required from: Martin L Roth, Arthur Heymans.
Angel Pons has posted comments on this change. ( https://review.coreboot.org/c/coreboot/+/69213 )
Change subject: configs: Rename saved configs as config.vendor_board.description
......................................................................
Patch Set 2:
(1 comment)
File configs/config.asus_p8x7x-series.p8z77-v_lx2_debug_smmstore_hotplug_yabel_em100:
PS2:
> Not picked up, neither before nor after. […]
CB:69216
--
To view, visit https://review.coreboot.org/c/coreboot/+/69213
To unsubscribe, or for help writing mail filters, visit https://review.coreboot.org/settings
Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I008610ff87b3dd6c4b6c6b04fbdbc30a18ba776b
Gerrit-Change-Number: 69213
Gerrit-PatchSet: 2
Gerrit-Owner: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Reviewer: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-Reviewer: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Reviewer: Elyes Haouas <ehaouas(a)noos.fr>
Gerrit-Reviewer: build bot (Jenkins) <no-reply(a)coreboot.org>
Gerrit-Attention: Martin L Roth <gaumless(a)gmail.com>
Gerrit-Attention: Arthur Heymans <arthur(a)aheymans.xyz>
Gerrit-Comment-Date: Sat, 05 Nov 2022 16:42:17 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Angel Pons <th3fanbus(a)gmail.com>
Gerrit-MessageType: comment