Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 01 Feb 2018 19:12:57 +0000
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
Message-ID:  <bug-225450-8-K5lRWAuqN6@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-225450-8@https.bugs.freebsd.org/bugzilla/>
References:  <bug-225450-8@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D225450

--- Comment #8 from John Baldwin <jhb@FreeBSD.org> ---
So it looks like the panic is a double fault.  Please try this hack patch to
see if it cleans up the printfs:

Index: amd64/amd64/trap.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- amd64/amd64/trap.c  (revision 328557)
+++ amd64/amd64/trap.c  (working copy)
@@ -830,6 +830,11 @@
 void
 dblfault_handler(struct trapframe *frame)
 {
+
+       static int dblflt_lock =3D 0;
+
+       while (!atomic_cmpset_int(&dblflt_lock, 0, 1))
+               cpu_spinwait();
 #ifdef KDTRACE_HOOKS
        if (dtrace_doubletrap_func !=3D NULL)
                (*dtrace_doubletrap_func)();

It won't fix the panic, but hopefully only one CPU will print out the messa=
ges
so we can debug this further.

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-225450-8-K5lRWAuqN6>