From owner-freebsd-current@freebsd.org Mon May 2 23:51:53 2016 Return-Path: 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 BE7CDB2A9E5 for ; Mon, 2 May 2016 23:51:53 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: from mail-ig0-x22e.google.com (mail-ig0-x22e.google.com [IPv6:2607:f8b0:4001:c05::22e]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 9316819CE; Mon, 2 May 2016 23:51:53 +0000 (UTC) (envelope-from rysto32@gmail.com) Received: by mail-ig0-x22e.google.com with SMTP id u10so100568413igr.1; Mon, 02 May 2016 16:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc; bh=EoFIiT6hMqjTmSN4OywvlT8jOaPrY9fcPcLJDXJ5jrU=; b=FcqEzA5GmI1zCcrJY8+S58rRiA9iqsp4FZdJ37q7iKUdhpdKFk89FieYxGc7ME7Anv mdrgp8/aedJJIkgdquH30qaw8gNNqwEVDLfKcgZ6gCt5F4nGNdsXn4yLWG8DC4ShRpxo kxL3jEWKsgq9XVXs0TzH7cee9UauNsHzvESxMWCaxLih1iWc2JoPNCh3DxS4+SJ3GImN 1ZYz+OGYuHHOl9oblz3E3YbRQmYb0iqFwZxllo6y/88G+n3NH0CH4qdstbdyTlPVNsjT 2EQoGxR5ZHeTGv0/z/XOTOZwTx23W1qQHrp+vb2kgO8e5gQ2spWcmlX0Oq/1yrcXaXM+ BXBg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=EoFIiT6hMqjTmSN4OywvlT8jOaPrY9fcPcLJDXJ5jrU=; b=S0J+nM00p5QSTWi0/QfxOD2LTT/oLU4iZoikNM3NWM2C+S0zDZXMdwuAzWi9bASHA8 AQTJqnxsuaPJX50nHi39qBwGnu7rphfEeS/FRreB4KTMaTEGMcJXkiUgxNEU4x1uH1ag C8FuwcOxLXvUk3xHm+7VAnPxZ6St+lXlcru49OQ6OIjAsVb+VhsNG3sZiPYPgOdMMw/X /HO1FnnQtYD/2fzeWAlqrMufipRWevCa9Fwqfsu8zrDAxD3V7LCXNwYUCoQqhwGwPuv0 tzjIQye8WG23hyhDXBhzq4CQbw/fwGD7g+GJGD/NG4P3KEYkBXZAOIYakqcTz8oTTI9I vmkA== X-Gm-Message-State: AOPr4FVzuhz9xV0BDK+Qu9H/FqnSMjXWe7xkOaERFx0RqvIuEiDjq0c8tfJVgokn+GL/+DnlPGEVPAApN1WojA== MIME-Version: 1.0 X-Received: by 10.50.110.35 with SMTP id hx3mr23590540igb.69.1462233113035; Mon, 02 May 2016 16:51:53 -0700 (PDT) Received: by 10.107.133.65 with HTTP; Mon, 2 May 2016 16:51:52 -0700 (PDT) In-Reply-To: <5727D20D.9090502@FreeBSD.org> References: <1616736.1pUkklcWcu@ralph.baldwin.cx> <5727D20D.9090502@FreeBSD.org> Date: Mon, 2 May 2016 19:51:52 -0400 Message-ID: Subject: Re: Kernel panic from recent build From: Ryan Stone To: Eric van Gyzen Cc: "Bill O'Hanlon" , John Baldwin , FreeBSD Current Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 02 May 2016 23:51:53 -0000 Do we need this debug output? It's quite clear from the acpidump output that there is an entry for APIC ID 0 in memory domain 0 and memory domain 1. Not sure if that's legal by the spec. On Mon, May 2, 2016 at 6:17 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 wrote: > > > >> 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/1dtJxTwWXfhXVUUtn1Vvpzh3laJt7AILyCg/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 > settings. > >>> 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 then g= rab > >> the output of 'acpidump -t' on your next boot. The SRAT table used 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! > > Bill, > > 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. > > Eric > > > 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, void > *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; > > _______________________________________________ > freebsd-current@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org= " >