Re: [PATCH v6 07/11] x86/smpboot: Disable parallel boot for AMD CPUs

From: Kim Phillips
Date: Fri Feb 03 2023 - 16:45:37 EST


On 2/3/23 2:19 PM, Woodhouse, David wrote:
Would be interesting to know if that goes away if you test only the
first part of the tree. My first inclination is to suspect that's a bug
in the later patches... although the APIC ID mismatch is interesting.
That part (with each AP getting its own APIC ID from CPUID) is in the
*first* part of the series....

dwmw2/parallel-6.2-rc6-part1 (commit 942b3faa258c) re-enabled for
AMD gets the same splat(s):

[ 3.195498] smp: Bringing up secondary CPUs ...
[ 3.196670] x86: Booting SMP configuration:
[ 3.200189] .... node #0, CPUs: #1
[ 3.200247] CPU 1 to 93/x86/cpu:kick in 315 42 -155206575216 0 . 0 0 0 0 . 0 155217324423
[ 3.200418] ------------[ cut here ]------------
[ 3.200420] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/cpu/common.c:2122 cpu_init+0x2d/0x1f0
[ 3.200428] Modules linked in:
[ 3.200430] CPU: 0 PID: 1 Comm: swapper/0 Not tainted 6.2.0-rc6+ #19
[ 3.200433] Hardware name: AMD Corporation Speedway/Speedway, BIOS RSW1009C 07/27/2018
[ 3.200435] RIP: 0010:cpu_init+0x2d/0x1f0
[ 3.200438] Code: e5 41 56 41 55 41 54 53 65 48 8b 1c 25 80 2e 1f 00 65 44 8b 35 20 e4 99 47 48 8b 05 5d f7 51 02 44 89 f2 f0 48 0f ab 10 73 06 <0f> 0b eb 02 f3 90 48 8b 05 3e f7 51 02 48 0f a3 10 73 f1 45 85 f6
[ 3.200440] RSP: 0000:ffffffffba203d70 EFLAGS: 00010083
[ 3.200443] RAX: ffff8e027eef6e40 RBX: ffff8dfe80064b80 RCX: 0000000000000008
[ 3.200444] RDX: 0000000000000000 RSI: ffff8df65c40b048 RDI: ffffffffb9f66418
[ 3.200445] RBP: ffffffffba203d90 R08: 00000000fffffe4d R09: ffff8df65c406078
[ 3.200446] R10: ffffffffba203dc0 R11: 0000000000000000 R12: 0000000000000000
[ 3.200447] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 3.200448] FS: 0000000000000000(0000) GS:ffff8df65c400000(0000) knlGS:0000000000000000
[ 3.200450] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.200451] CR2: 0000000000000000 CR3: 0000800307e12000 CR4: 00000000003100a0
[ 3.200453] Call Trace:
[ 3.200454] ---[ end trace 0000000000000000 ]---
[ 3.200509] [Firmware Bug]: CPU0: APIC id mismatch. Firmware: 0 APIC: 2
[ 3.284620] #2
[ 3.284669] CPU 2 to 93/x86/cpu:kick in 252 42 -155547668514 0 . 0 0 0 0 . 0 155548597197
[ 3.284727] ------------[ cut here ]------------
[ 3.284732] WARNING: CPU: 0 PID: 1 at arch/x86/kernel/cpu/common.c:2122 cpu_init+0x2d/0x1f0
[ 3.284741] Modules linked in:
[ 3.284745] CPU: 0 PID: 1 Comm: swapper/0 Tainted: G W 6.2.0-rc6+ #19
[ 3.284749] Hardware name: AMD Corporation Speedway/Speedway, BIOS RSW1009C 07/27/2018
[ 3.284752] RIP: 0010:cpu_init+0x2d/0x1f0
[ 3.284756] Code: e5 41 56 41 55 41 54 53 65 48 8b 1c 25 80 2e 1f 00 65 44 8b 35 20 e4 99 47 48 8b 05 5d f7 51 02 44 89 f2 f0 48 0f ab 10 73 06 <0f> 0b eb 02 f3 90 48 8b 05 3e f7 51 02 48 0f a3 10 73 f1 45 85 f6
[ 3.284760] RSP: 0000:ffffffffba203d70 EFLAGS: 00010083
[ 3.284764] RAX: ffff8e027eef6e40 RBX: ffff8dfe80064b80 RCX: 0000000000000008
[ 3.284766] RDX: 0000000000000000 RSI: ffff8df65c40b048 RDI: ffffffffb9f66418
[ 3.284769] RBP: ffffffffba203d90 R08: 00000000fffffe4d R09: ffff8df65c406078
[ 3.284771] R10: ffffffffba203dc0 R11: 0000000000000000 R12: 0000000000000000
[ 3.284773] R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
[ 3.284775] FS: 0000000000000000(0000) GS:ffff8df65c400000(0000) knlGS:0000000000000000
[ 3.284778] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
[ 3.284779] CR2: 0000000000000000 CR3: 0000800307e12000 CR4: 00000000003100a0
[ 3.284781] Call Trace:
[ 3.284783] ---[ end trace 0000000000000000 ]---
[ 3.284841] [Firmware Bug]: CPU0: APIC id mismatch. Firmware: 0 APIC: 8
[ 3.364[[ [. 343 35 5 5] [ 3 364575 [
3 [ [ [3 3 [ [ 3

Thanks,

Kim