From owner-freebsd-bugs@freebsd.org Sun Feb 11 03:01:38 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 014AFF12C5A for ; Sun, 11 Feb 2018 03:01:38 +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 727758028D for ; Sun, 11 Feb 2018 03:01:37 +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 74C632FE75 for ; Sun, 11 Feb 2018 03:01:36 +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 w1B31abX080875 for ; Sun, 11 Feb 2018 03:01:36 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id w1B31aaD080852 for freebsd-bugs@FreeBSD.org; Sun, 11 Feb 2018 03:01:36 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: Sun, 11 Feb 2018 03:01:36 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: Message-ID: In-Reply-To: References: 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: Sun, 11 Feb 2018 03:01:38 -0000 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225450 --- Comment #14 from Pablo Ruiz --- I've tried moving the while loop a bit down at mp_x86, and I got a db prompt too: diff --git a/sys/x86/x86/mp_x86.c b/sys/x86/x86/mp_x86.c index 3cca61ca72e..1c257d87e58 100644 --- a/sys/x86/x86/mp_x86.c +++ b/sys/x86/x86/mp_x86.c @@ -925,7 +925,6 @@ init_secondary_tail(void) CTR1(KTR_SMP, "SMP: AP CPU #%d Launched", cpuid); printf("SMP: AP CPU #%d Launched!\n", cpuid); -while(1); /* Determine if we are a logical CPU. */ if (cpu_info[PCPU_GET(apic_id)].cpu_hyperthread) @@ -951,6 +950,7 @@ while(1); load_es(_udatasel); load_fs(_ufssel); #endif +while(1); mtx_unlock_spin(&ap_boot_mtx); This is the relevant boot output: [...] 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 SMP: AP CPU #1 Launched! cpu1 AP: Fa kFernel trap 12 with interrupts disabled Fatal trap 12: page fault while in kernel mode cpuid =3D 2; apic id =3D 02 fault virtual address =3D 0x441 fault code =3D supervisor read data, page not present instruction pointer =3D 0x20:0xffffffff80ffb704 stack pointer =3D 0x28:0xfffffe001b979d00 frame pointer =3D 0x28:0xfffffe001b979d10 code segment =3D base 0x0, limit 0xfffff, type 0x1b =3D DPL 0, pres 1, long 1, def32 0, gran 1 processor eflags =3D resume, IOPL =3D 0 current process =3D 11 (idle: cpu2) [ thread pid 11 tid 100005 ] Stopped at spinlock_exit+0x14: movq 0x440(%rbx),%rax db> bt Tracing pid 11 tid 100005 td 0xfffff8000332c000 spinlock_exit() at spinlock_exit+0x14/frame 0xfffffe001b979d10 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b979= d80 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b979dc0 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b979= e30 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b979e70 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b979= ee0 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b979f20 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b979= f90 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b979fd0 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b97a= 040 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b97a080 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b97a= 0f0 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b97a130 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0xa5/frame 0xfffffe001b97a= 1a0 i8254_delay() at i8254_delay+0x143/frame 0xfffffe001b97a1e0 [... repeates quite a lot ....] _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x14a/frame 0xfffffe001b97= cb90 i8254_delay() at i8254_delay+0x3a/frame 0xfffffe001b97cbd0 ns8250_putc() at ns8250_putc+0x2a/frame 0xfffffe001b97cc00 uart_cnputc() at uart_cnputc+0x47/frame 0xfffffe001b97cc20 cnputc() at cnputc+0x7d/frame 0xfffffe001b97cc50 cnputs() at cnputs+0x68/frame 0xfffffe001b97cc70 putchar() at putchar+0x14d/frame 0xfffffe001b97ccf0 kvprintf() at kvprintf+0x103d/frame 0xfffffe001b97cde0 vprintf() at vprintf+0x87/frame 0xfffffe001b97ceb0 printf() at printf+0x43/frame 0xfffffe001b97cf10 dblfault_handler() at dblfault_handler+0x26/frame 0xfffffe001b97cf30 Xdblfault() at Xdblfault+0xac/frame 0xfffffe001b97cf30 --- trap 0x17, rip =3D 0xffffffff81159ea5, rsp =3D 0xfffffe001b978000, rbp = =3D 0xfffffe001b978030 --- i8254_delay() at i8254_delay+0x35/frame 0xfffffe001b978030 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x14a/frame 0xfffffe001b97= 80a0 i8254_delay() at i8254_delay+0x3a/frame 0xfffffe001b9780e0 _mtx_lock_spin_cookie() at _mtx_lock_spin_cookie+0x14a/frame 0xfffffe001b97= 8150 [... more similar calls repeating omitted ...] spinlock_exit() at spinlock_exit+0x14/frame 0xfffffe001b9785d0 [... more _mtx_lock_spin_cookie calls ...] --=20 You are receiving this mail because: You are the assignee for the bug.=