Date: Mon, 2 May 2016 16:58:58 -0700 From: "Lundberg, Johannes" <johannes@brilliantservice.co.jp> To: Adrian Chadd <adrian.chadd@gmail.com> Cc: FreeBSD Current <freebsd-current@freebsd.org>, Rui Paulo <rpaulo@freebsd.org> Subject: Re: asmc pathes Message-ID: <CAASDrV=NJeQjG39yEMOXssE6EDycEYX=reGLeJ35PC=pHCvzMw@mail.gmail.com> In-Reply-To: <CAJ-VmokV04YVq2m_kPTgFBxSE%2B23W1e%2BS63J%2BnO6Yiz8VCk2eA@mail.gmail.com> References: <CAASDrVkpJFHtLoXdXRb2f8cVTHKHjsatVQE32B2L%2BN19ku67ig@mail.gmail.com> <CAJ-VmonSph5-9-=hyrrNGmegSqZ4c%2B3KKaLuo=zZqzme7mdnDQ@mail.gmail.com> <CAASDrV=aqCctKGL=b=f8fJ9QtxxuJ_AqgCfX9K4VJHafThOCnA@mail.gmail.com> <CAJ-Vmok85a--0ff-=nkFo2ta1AuQqJ3sZkgYvxE7ye-B0Szqcg@mail.gmail.com> <CAASDrV=KWMeEXoYvkamsoVy_YaSiULLV7PFTNTWNjz-hk4Lgwg@mail.gmail.com> <CAJ-VmokV04YVq2m_kPTgFBxSE%2B23W1e%2BS63J%2BnO6Yiz8VCk2eA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Tm8gcHJvYmxlbXMgZm9yIG1lIHRvIGFwcGx5IHRoZSBwYXRjaCBjb21waWxlIHRoZSBtb2R1bGUu DQoNCg0KT24gTW9uLCBNYXkgMiwgMjAxNiBhdCAzOjM5IFBNLCBBZHJpYW4gQ2hhZGQgPGFkcmlh bi5jaGFkZEBnbWFpbC5jb20+IHdyb3RlOg0KDQo+IERvZXMgdGhpcyBwYXRjaCBhcHBseSBjbGVh bmx5IG9uIHRvcCBvZiB3aGF0IEkganVzdCBjb21taXR0ZWQgdG8gLUhFQUQ/DQo+DQo+DQo+IC1h DQo+DQo+DQo+IE9uIDIgTWF5IDIwMTYgYXQgMTQ6NDksIEx1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RoaXMKZW1haWwgYnkgcGVyc29u IG90aGVyIHRoYW4gaW50ZW5kZWQgcmVjaXBpZW50LCBpcyBwcm9oaWJpdGVkLgpJZiB5b3UgYXJl IG5vdCB0aGUgaW50ZW5kZWQgcmVjaXBpZW50IGFuZCBoYXZlIHJlY2VpdmVkIHRoaXMgZW1haWwg aW4KZXJyb3IsIHBsZWFzZSBkZXN0cm95IHRoZSBvcmlnaW5hbCBtZXNzYWdlLgo= From owner-freebsd-current@freebsd.org Tue May 3 00:26:31 2016 Return-Path: <owner-freebsd-current@freebsd.org> Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 3EBD6B2B705 for <freebsd-current@mailman.ysv.freebsd.org>; Tue, 3 May 2016 00:26:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from bigwig.baldwin.cx (bigwig.baldwin.cx [IPv6:2001:470:1f11:75::1]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 1F29E10F0; Tue, 3 May 2016 00:26:31 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from ralph.baldwin.cx (c-73-231-226-104.hsd1.ca.comcast.net [73.231.226.104]) by bigwig.baldwin.cx (Postfix) with ESMTPSA id D2485B95B; Mon, 2 May 2016 20:26:29 -0400 (EDT) From: John Baldwin <jhb@freebsd.org> To: Eric van Gyzen <vangyzen@freebsd.org> Cc: Bill O'Hanlon <bill.ohanlon@gmail.com>, freebsd-current@freebsd.org Subject: Re: Kernel panic from recent build Date: Mon, 02 May 2016 15:34:10 -0700 Message-ID: <1947330.icTGKp8qzg@ralph.baldwin.cx> User-Agent: KMail/4.14.3 (FreeBSD/10.2-STABLE; KDE/4.14.3; amd64; ; ) In-Reply-To: <5727D20D.9090502@FreeBSD.org> References: <CAN3DDYpfN0_F5akew5jccXO9bCQoVLN75v86ZJ=OgvTNfMSmZw@mail.gmail.com> <CAN3DDYr9qB+_nYV3ipksff0y2miX5egwx1Hbva6j-Jf2+UoaDw@mail.gmail.com> <5727D20D.9090502@FreeBSD.org> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.2.7 (bigwig.baldwin.cx); Mon, 02 May 2016 20:26:29 -0400 (EDT) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current <freebsd-current.freebsd.org> List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=unsubscribe> List-Archive: <http://lists.freebsd.org/pipermail/freebsd-current/> List-Post: <mailto:freebsd-current@freebsd.org> List-Help: <mailto:freebsd-current-request@freebsd.org?subject=help> List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-current>, <mailto:freebsd-current-request@freebsd.org?subject=subscribe> X-List-Received-Date: Tue, 03 May 2016 00:26:31 -0000 On Monday, May 02, 2016 05:17:49 PM Eric van Gyzen wrote: > On 05/02/2016 16:14, Bill O'Hanlon wrote: > > On Mon, May 2, 2016 at 3:55 PM, John Baldwin <jhb@freebsd.org> wrot= e: > > > >> On Monday, May 02, 2016 01:35:54 PM Bill O'Hanlon wrote: > >>> =E2=80=8B > >>> IMG_20160502_130335.jpg > >>> < > >> https://drive.google.com/file/d/1dtJxTwWXfhXVUUtn1Vvpzh3laJt7AILyC= g/view?usp=3Ddrive_web > >>> =E2=80=8B > >>> I'm getting the following panic from a recent (May 2, 2016) build= . > >>> panic: Duplicate local APIC ID 0 > >>> > >>> The system is a Dell Precision T5500 with generic factory BIOS se= ttings. > >>> It has run previous builds without event for several years. > >>> > >>> I'm attaching a link to a photo of the screen for added details. > >> Try setting 'hint.srat.0.disabled=3D1' at the loader prompt and th= en grab > >> the output of 'acpidump -t' on your next boot. The SRAT table use= d by > >> the NUMA code appears to be corrupted by your BIOS. > >> > >> -- > >> John Baldwin > >> > > > > That allowed me to boot. I'm attaching the output of 'acpidump -t'= . > > Thanks! >=20 > Bill, >=20 > Do you have the time and interest to test this patch? If so, remove = the > line that you added to /boot/loader.conf so the patch actually gets > exercised. This patch looks fine to me. A shame since the SRAT is mostly correct,= but there are spurious 'enabled' entries in the table. If we wanted to be = more forgiving, we could perhaps just warn about duplicate entries if they a= ll agree. That might work for this system for APIC ID 0, but there are al= so some enabled CPUs with APIC ID 1 which I bet don't exist on this system= , so that would probably result in a panic anyway. You might try updating your BIOS if you are brave. > Eric >=20 >=20 > diff --git a/sys/x86/acpica/srat.c b/sys/x86/acpica/srat.c > index 85f1922..1d0f73d 100644 > --- a/sys/x86/acpica/srat.c > +++ b/sys/x86/acpica/srat.c > @@ -201,8 +201,12 @@ srat_parse_entry(ACPI_SUBTABLE_HEADER *entry, vo= id > *arg) > "enabled" : "disabled"); > if (!(cpu->Flags & ACPI_SRAT_CPU_ENABLED)) > break; > - KASSERT(!cpus[cpu->ApicId].enabled, > - ("Duplicate local APIC ID %u", cpu->ApicId)); > + if (cpus[cpu->ApicId].enabled) { > + printf("SRAT: Duplicate local APIC ID %u\n", > + cpu->ApicId); > + *(int *)arg =3D ENXIO; > + break; > + } > cpus[cpu->ApicId].domain =3D domain; > cpus[cpu->ApicId].enabled =3D 1; > break; >=20 --=20 John Baldwin
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAASDrV=NJeQjG39yEMOXssE6EDycEYX=reGLeJ35PC=pHCvzMw>