From owner-freebsd-bugs@freebsd.org Thu Jan 25 15:12:09 2018 Return-Path: Delivered-To: freebsd-bugs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B73AEEB4700 for ; Thu, 25 Jan 2018 15:12:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from mxrelay.ysv.freebsd.org (mxrelay.ysv.freebsd.org [IPv6:2001:1900:2254:206a::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.ysv.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 53F1881044 for ; Thu, 25 Jan 2018 15:12:08 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2001:1900:2254:206a::16:76]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.ysv.freebsd.org (Postfix) with ESMTPS id B147B26BFA for ; Thu, 25 Jan 2018 15:12:07 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.118]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id w0PFC71N047759 for ; Thu, 25 Jan 2018 15:12:07 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w0PFC77X047741 for freebsd-bugs@FreeBSD.org; Thu, 25 Jan 2018 15:12:07 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 225450] 11.1-* panics on AMD Opteron 2k due to EARLY_AP_STARTUP Date: Thu, 25 Jan 2018 15:12:07 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: kern X-Bugzilla-Version: 11.1-STABLE X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Many People X-Bugzilla-Who: pablo.ruiz@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: freebsd-bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.25 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Jan 2018 15:12:09 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225450 Bug ID: 225450 Summary: 11.1-* panics on AMD Opteron 2k due to EARLY_AP_STARTUP Product: Base System Version: 11.1-STABLE Hardware: amd64 OS: Any Status: New Severity: Affects Many People Priority: --- Component: kern Assignee: freebsd-bugs@FreeBSD.org Reporter: pablo.ruiz@gmail.com The EARLY_AP_STARTUP kernel option causes kernel panics on AMD Opteron 2xxx= SE CPUs. Including SUN X4100, X4200, etc. Commenting EARLY_AP_STARTUP while building kernel allows boot. Safe mode bo= ot works too because it disables smp. An svn bisect was performed for 11-stable and the addition of EARLY_AP_STAR= TUP=20 at r318763 seems to be the culprit. This has been reproduced with 11.1-RELEASE, 11.1-RELEASE-p1, 11.1-RELEASE-p= 2, 11.1-RELEASE-p4 & 11.1-RELEASE-p6. Meanwhile FreeBSD 10 works/boots fine. Example boot output with failing kernel (includes garbage): /boot/kernel.old/kernel text=3D0x14972f8 data=3D0x1384c0+0x4c15e8=20 syms=3D[0x8+0x15e8b0+0x8+0x178422] /boot/entropy size=3D0x1000 Booting... Copyright (c) 1992-2017 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.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 r...@releng2.nyi.freebsd.org:/usr/obj/usr/src/sys/GENERIC amd64 FreeBSD clang version 4.0.0 (tags/RELEASE_400/final 297347) (based on LLVM= =20 4.0.0) VT(vga): resolution 640x480 CPU: Dual-Core AMD Opteron(tm) Processor 2218 (2593.16-MHz K8-class CPU) Origin=3D"AuthenticAMD" Id=3D0x40f12 Family=3D0xf Model=3D0x41 Steppi= ng=3D2 Features=3D0x178bfbff Features2=3D0x2001 AMD Features=3D0xea500800 AMD Features2=3D0x1f SVM: NAsids=3D64 real memory =3D 4563402752 (4352 MB) avail memory =3D 4104478720 (3914 MB) Event timer "LAPIC" quality 100 ACPI APIC Table: FreeBSD/SMP: Multiprocessor System Detected: 4 CPUs FreeBSD/SMP: 2 package(s) x 2 core(s) random: unblocking device. ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe0Block: 64/32=20 (20170303/tbfadt-748) ACPI BIOS Warning (bug): 32/64X length mismatch in FADT/Gpe1Block: 128/64=20 (20170303/tbfadt-748) ioapic1: Changing APIC ID to 16 ioapic2: Changing APIC ID to 17 ioapic3 irqs 24-47 on motherboard ioapic0 irqs 0-23 on motherboard ioapic1 irqs 48-54 on motherboard ioapic2 irqs 56-62 on motherboard SMP: AP CPU SMP: AP CPU k F aF aFat F aF kkernel trap 12 with interrupts disab=C3=83=C2=BE=C3=83=C2=BF=C3=83=C2=BF= =C3=83=C2=BF=C3=83=C2=BF=C3=AF=C2=BF=C2=BD=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2= =BF=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BFkernel trap= =20 12 with interrupts disabled Fatal trap 60276736: UN=C3=83=C2=BF=C3=83=C2=BFkernel trap 12 with interrup= ts disabled iatal trap -2130508367: UNKNOWN whilpanierc: staeck ovlerflowt detrected;=20 backt1race mawy bei corrup ted cpuid t=3D 1 KrDB: stack bupackttrace: #0 0xffffffffs80aada97 at lkdb_backtrace+0x67 xffffffff80a6bb76 aFat vpanic+0x1l86 #r2 0xfpffffff1f80a6b9e3 at panipc+0x43g #3e 0xffffaffff80a9b072u at __tstackw_chkh_lfail+0x12 i#4 0xffffff kff80eab3f2b eat vprintf+0 x10b 000 atcp dmapbase+0x397c000 Upt =3Dime: 12s Au;toma tic rebpoot inc 15 secondsi - press a key on 0the con sole fto abort -u-> Press a key on the iconsroule to reboot , -a-> or drswitech off the =3Dsystem xnow. ke=C3=82=C2=A1=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BF= =C3=83=C2=BF=C3=83=C2=BF=C3=83=C2=BFkernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode c=C3=83=C2=B0 c --------------------------------------------------------------------------- --=20 You are receiving this mail because: You are the assignee for the bug.=