[Bug 228768] EARLY_AP_STARTUP causes panic on amd machines

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jun 5 17:33:13 UTC 2018


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=228768

            Bug ID: 228768
           Summary: EARLY_AP_STARTUP causes panic on amd machines
           Product: Base System
           Version: 11.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: kern
          Assignee: bugs at FreeBSD.org
          Reporter: cheeky.m at live.com

update from August of last year:
https://marc.info/?l=freebsd-stable&m=150221767415633&w=2

The EARLY_AP_STARTUP kernel option causes kernel panics
on SUN X4200 AMD machines.   Commenting it out of GENERIC and
new kernel allows boot.  This also happens on a non-Sun 2x dual core 
AMD machine.

This continues with 11.2-RC1.

How can i help fix this? 

I did see the two threads on -current from 2016:
https://marc.info/?l=freebsd-current&m=146339417805599&w=2
https://marc.info/?l=freebsd-current&m=148009805024056&w=2


setting hint.hpet.0.per_cpu=0 doesn't help.  
Removing EARLY_AP_STARTUP still works.

adding these did not help get more info.   Are there others to try?

   options         KTR
   options         KTR_COMPILE=KTR_PROC
   options                 KTR_MASK=KTR_PROC
   options         KTR_VERBOSE=1



Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.2-PRERELEASE #10 r334650M: Tue Jun  5 15:50:30 UTC 2018
    root at xxx:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM
6.0.0)
VT(vga): resolution 640x480
CPU: Dual-Core AMD Opteron(tm) Processor 2218 (2593.16-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x40f12  Family=0xf  Model=0x41  Stepping=2
 
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  SVM: NAsids=64
real memory  = 4563402752 (4352 MB)
avail memory = 4104101888 (3913 MB)
Event timer "LAPIC" quality 100
ACPI APIC Table: <SUN    X4200 M2>
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 2 package(s) x 2 core(s)
Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 64/32
(20171214/tbfadt-748)
Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe1Block: 128/64
(20171214/tbfadt-748)
ioapic1: Changing APIC ID to 16
ioapic2: Changing APIC ID to 17
ioapic3 <Version 1.1> irqs 24-47 on motherboard
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 48-54 on motherboard
ioapic2 <Version 1.1> irqs 56-62 on motherboard
cpu0 sleepq_broadcast(0xfffff80003998500, 0)
cpu0 sleepq_broadcast(0xfffff80003998000, 0)
cpu0 sleepq_broadcast(0xfffff80003997a00, 0)
SMP: AP CPU ^M
k^M

kernel trap 12 with interrupts disabled
kernel trap 12 with interrupts disabled


Fatal trap -2116731224: UNKNOWN while in kernel\xff\xff^Akernel trap 12 with
interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x2
fault code              = supervisor write data, page not present
instruction pointer     = 0x20:0xffffffff81d53eb1
stack pointer           = 0x28:0xfffffe00f6dd83b0
frame pointer           = 0x28:0xffffffff81d53ec0
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu1)
trap number             = 12
panic: page fault
cpuid = 1
KDB: stack backtrace:
#0 0xffffffff80ad5b67 at kdb_backtrace+0x67
#1 0xffffffff80a96827 at vpanic+0x177
#2 0xffffffff80a966a3 at panic+0x43
#3 0xffffffff80ec625f at trap_fatal+0x35f
#4 0xffffffff80ec62b9 at trap_pfault+0x49
#5 0xffffffff80ec5a87 at trap+0x2c7
#6 0xffffffff80ea7a7c at calltrap+0x8
Uptime: 1s
Automatic reboot in 15 seconds - press a key on the console to abort
kernel trap 12 with interrupts disabled


Fatal trap 12: page fault while in kernel mode
cpuid = 1; apic id = 01
fault virtual address   = 0x202
fault code              = supervisor write data, page not present
instruction pointer     = 0x20:0xfffff8000398a647
stack pointer           = 0x28:0xfffffe00f6dd8010
frame pointer           = 0x28:0x1
code segment            = base 0x0, limit 0xfffff, type 0x1b
                        = DPL 0, pres 1, long 1, def32 0, gran 1
processor eflags        = resume, IOPL = 0
current process         = 11 (idle: cpu1)
trap number             = 12
panic: page fault
cpuid = 1
Uptime: 1s
Rebooting...



--------------------------------------------------------------------


Table 'APIC' at 0xdfff0390
APIC: Found table at 0xdfff0390
APIC: Using the MADT enumerator.
MADT: Found CPU APIC ID 0 ACPI ID 1: enabled
SMP: Added CPU 0 (AP)
MADT: Found CPU APIC ID 1 ACPI ID 2: enabled
SMP: Added CPU 1 (AP)
MADT: Found CPU APIC ID 2 ACPI ID 3: enabled
SMP: Added CPU 2 (AP)
MADT: Found CPU APIC ID 3 ACPI ID 4: enabled
SMP: Added CPU 3 (AP)
Copyright (c) 1992-2018 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
        The Regents of the University of California. All rights reserved.
FreeBSD is a registered trademark of The FreeBSD Foundation.
FreeBSD 11.2-PRERELEASE #10 r334650M: Tue Jun  5 15:50:30 UTC 2018
    root at xxx:/usr/obj/usr/src/sys/GENERIC amd64
FreeBSD clang version 6.0.0 (tags/RELEASE_600/final 326565) (based on LLVM
6.0.0)
Table 'FACP' at 0xdfff0290
Table 'APIC' at 0xdfff0390
Table 'SPCR' at 0xdfff0420
Table 'SLIT' at 0xdfff0470
Table 'OEMB' at 0xdfffe040
Table 'HPET' at 0xdfff6410
Table 'IPET' at 0xdfff6450
Table 'SRAT' at 0xdfff6490
SRAT: Found table at 0xdfff6490
SRAT: Found CPU APIC ID 0 domain 0: enabled
SRAT: Found CPU APIC ID 1 domain 0: enabled
SRAT: Found memory domain 0 addr 0x0 len 0xa0000: enabled
SRAT: Found memory domain 0 addr 0x100000 len 0x7ff00000: enabled
SRAT: Found CPU APIC ID 2 domain 1: enabled
SRAT: Found CPU APIC ID 3 domain 1: enabled
SRAT: Found memory domain 1 addr 0x80000000 len 0x60000000: enabled
SRAT: Found memory domain 1 addr 0x100000000 len 0x20000000: enabled
Table 'FACP' at 0xdfff0290
Table 'APIC' at 0xdfff0390
Table 'SPCR' at 0xdfff0420
Table 'SLIT' at 0xdfff0470
SLIT: Found table at 0xdfff0470
SLIT.Localities: 2
0: 10 10
1: 10 10
PPIM 0: PA=0xa0000, VA=0xffffffff82210000, size=0x10000, mode=0
VT(vga): resolution 640x480
Preloaded elf kernel "/boot/kernel/kernel" at 0xffffffff82197000.
Preloaded boot_entropy_cache "/boot/entropy" at 0xffffffff8219ff38.
Calibrating TSC clock ... TSC clock: 2593156593 Hz
CPU: Dual-Core AMD Opteron(tm) Processor 2218 (2593.16-MHz K8-class CPU)
  Origin="AuthenticAMD"  Id=0x40f12  Family=0xf  Model=0x41  Stepping=2
 
Features=0x178bfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,MMX,FXSR,SSE,SSE2,HTT
>
  Features2=0x2001<SSE3,CX16>
  AMD Features=0xea500800<SYSCALL,NX,MMX+,FFXSR,RDTSCP,LM,3DNow!+,3DNow!>
  AMD Features2=0x1f<LAHF,CMP,SVM,ExtAPIC,CR8>
  SVM: Features=0x0
Revision=1, ASIDs=64
L1 2MB data TLB: 8 entries, fully associative
L1 2MB instruction TLB: 8 entries, fully associative
L1 4KB data TLB: 32 entries, fully associative
L1 4KB instruction TLB: 32 entries, fully associative
L1 data cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L1 instruction cache: 64 kbytes, 64 bytes/line, 1 lines/tag, 2-way associative
L2 2MB unified TLB: 0 entries, disabled/not present
L2 4KB data TLB: 512 entries, 4-way associative
L2 4KB instruction TLB: 512 entries, 4-way associative
L2 unified cache: 1024 kbytes, 64 bytes/line, 1 lines/tag, 16-way associative
real memory  = 4563402752 (4352 MB)
Physical memory chunk(s):
0x0000000000010000 - 0x0000000000098fff, 561152 bytes (137 pages)
0x0000000000100000 - 0x00000000001fffff, 1048576 bytes (256 pages)
0x0000000002200000 - 0x00000000d8a44fff, 3598995456 bytes (878661 pages)
0x0000000100000000 - 0x000000011ffe7fff, 536772608 bytes (131048 pages)
avail memory = 4104101888 (3913 MB)
Event timer "LAPIC" quality 100
LAPIC: ipi_wait() us multiplier 72 (r 3600257 tsc 2593156593)
ACPI APIC Table: <SUN    X4200 M2>
Package ID shift: 1
L2 cache ID shift: 0
L1 cache ID shift: 0
Core ID shift: 0
INTR: Adding local APIC 1 as a target
INTR: Adding local APIC 2 as a target
INTR: Adding local APIC 3 as a target
FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs
FreeBSD/SMP: 2 package(s) x 2 core(s)
Package HW ID = 0 (0)
        Core HW ID = 0 (0)
                CPU0 (BSP): APIC ID: 0 (0)
        Core HW ID = 1 (0x1)
                CPU1 (AP): APIC ID: 1 (0x1)
Package HW ID = 1 (0x1)
        Core HW ID = 2 (0x2)
                CPU2 (AP): APIC ID: 2 (0x2)
        Core HW ID = 3 (0x3)
                CPU3 (AP): APIC ID: 3 (0x3)
APIC: CPU 0 has ACPI ID 1
APIC: CPU 1 has ACPI ID 2
APIC: CPU 2 has ACPI ID 3
APIC: CPU 3 has ACPI ID 4
SRAT: CPU 0 has memory domain 0
SRAT: CPU 1 has memory domain 0
SRAT: CPU 2 has memory domain 1
SRAT: CPU 3 has memory domain 1
x86bios:  IVT 0x000000-0x0004ff at 0xfffff80000000000
x86bios: SSEG 0x098000-0x098fff at 0xfffffe00f6df4000
x86bios: EBDA 0x09d000-0x09ffff at 0xfffff8000009d000
x86bios:  ROM 0x0a0000-0x0fefff at 0xfffff800000a0000
Pentium Pro MTRR support enabled
ULE: setup cpu 0
ULE: setup cpu 1
ULE: setup cpu 2
ULE: setup cpu 3
ACPI: RSDP 0x00000000000F9470 000024 (v02 SUN   )
ACPI: XSDT 0x00000000DFFF0100 00006C (v01 SUN    X4200 M2 00000039 MSFT
00000097)
ACPI: FACP 0x00000000DFFF0290 0000F4 (v03 SUN    X4200 M2 00000039 MSFT
00000097)
Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe0Block: 64/32
(20171214/tbfadt-748)
Firmware Warning (ACPI): 32/64X length mismatch in FADT/Gpe1Block: 128/64
(20171214/tbfadt-748)
ACPI: DSDT 0x00000000DFFF04A0 005F64 (v01 SUN    X4200 M1 00000039 INTL
20050624)
ACPI: FACS 0x00000000DFFFE000 000040
ACPI: APIC 0x00000000DFFF0390 000086 (v01 SUN    X4200 M2 00000039 MSFT
00000097)
ACPI: SPCR 0x00000000DFFF0420 000050 (v01 SUN    X4200 M2 00000039 MSFT
00000097)
ACPI: SLIT 0x00000000DFFF0470 000030 (v01 SUN    OEMSLIT  00000039 MSFT
00000097)
ACPI: OEMB 0x00000000DFFFE040 000063 (v01 SUN    X4200 M2 00000039 MSFT
00000097)
ACPI: HPET 0x00000000DFFF6410 000038 (v01 SUN    OEMHPET0 00000039 MSFT
00000097)
ACPI: IPET 0x00000000DFFF6450 000038 (v01 SUN    OEMHPET1 00000039 MSFT
00000097)
ACPI: SRAT 0x00000000DFFF6490 000110 (v01 AMD    HAMMER   00000001 AMD 
00000001)
ACPI: SSDT 0x00000000DFFF65A0 0004F0 (v01 A M I  POWERNOW 00000001 AMD 
00000001)
MADT: Found IO APIC ID 15, Interrupt 0 at 0xfec00000
ioapic0: ver 0x11 maxredir 0x17
ioapic0: Routing external 8259A's -> intpin 0
MADT: Found IO APIC ID 16, Interrupt 48 at 0xfeafd000
ioapic1: Changing APIC ID to 16
ioapic1: WARNING: intbase 48 != expected base 24
ioapic1: ver 0x11 maxredir 0x06
MADT: Found IO APIC ID 17, Interrupt 56 at 0xfeafc000
ioapic2: Changing APIC ID to 17
ioapic2: WARNING: intbase 56 != expected base 55
ioapic2: ver 0x11 maxredir 0x06
MADT: Found IO APIC ID 14, Interrupt 24 at 0xfeaff000
ioapic3: WARNING: intbase 24 != expected base 63
ioapic3: ver 0x11 maxredir 0x17
MADT: Interrupt override: source 9, irq 9
ioapic0: intpin 9 trigger: level
ioapic3 <Version 1.1> irqs 24-47 on motherboard
ioapic0 <Version 1.1> irqs 0-23 on motherboard
ioapic1 <Version 1.1> irqs 48-54 on motherboard
ioapic2 <Version 1.1> irqs 56-62 on motherboard
cpu0 BSP:
     ID: 0x00000000   VER: 0x80050010 LDR: 0x00000000 DFR: 0xffffffff
  lint0: 0x00010700 lint1: 0x00000400 TPR: 0x00000000 SVR: 0x000001ff
  timer: 0x000100ef therm: 0x00010000 err: 0x000000f0 pmc: 0x00010400
   AMD ext features: 0x00010003
   AMD elvt0: 0x00010000
cpu0 sleepq_broadcast(0xfffff80003998500, 0)
cpu0 sleepq_broadcast(0xfffff80003998000, 0)
cpu0 sleepq_broadcast(0xfffff80003997a00, 0)
SMP: AP CPU ^M^M^M
^M^M^M^M^M^M^M

^Mkernel trap 12 with interrupts disabled^M
kernel trap 12 with interrupts
disab\xff\xff\xff\xff\xff\xff\xff\xff\xa8>\xd5\x81\xff\xff\xff\xff\xff\xff\xff\xff\x90|\xdd\
xf6kernel trap 12 with interrupts disabled


Fatal trap -153257424: UNKNOWN
^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M
^M^M^M^M^M^M^M^Mk^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M^M

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list