From owner-freebsd-stable@freebsd.org Thu Sep 1 11:45:07 2016 Return-Path: Delivered-To: freebsd-stable@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 4726ABCB812 for ; Thu, 1 Sep 2016 11:45:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2FD348AB for ; Thu, 1 Sep 2016 11:45:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: by mailman.ysv.freebsd.org (Postfix) id 2EEE2BCB811; Thu, 1 Sep 2016 11:45:07 +0000 (UTC) Delivered-To: stable@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 2E95FBCB810 for ; Thu, 1 Sep 2016 11:45:07 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::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 A31608AA; Thu, 1 Sep 2016 11:45:06 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u81Bj0mc060817 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Thu, 1 Sep 2016 14:45:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u81Bj0mc060817 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u81Bj0M2060816; Thu, 1 Sep 2016 14:45:00 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Thu, 1 Sep 2016 14:45:00 +0300 From: Konstantin Belousov To: Slawa Olhovchenkov Cc: stable@freebsd.org, avg@freebsd.org Subject: Re: X2APIC support Message-ID: <20160901114500.GJ83214@kib.kiev.ua> References: <20151212130615.GE70867@zxy.spb.ru> <20151212133513.GL82577@kib.kiev.ua> <20160901112724.GX88122@zxy.spb.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160901112724.GX88122@zxy.spb.ru> User-Agent: Mutt/1.6.1 (2016-04-27) X-Spam-Status: No, score=-2.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FREEMAIL_FROM,NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on tom.home X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 Sep 2016 11:45:07 -0000 On Thu, Sep 01, 2016 at 02:27:24PM +0300, Slawa Olhovchenkov wrote: > On Sat, Dec 12, 2015 at 03:35:13PM +0200, Konstantin Belousov wrote: > > > On Sat, Dec 12, 2015 at 04:06:15PM +0300, Slawa Olhovchenkov wrote: > > > Does STABLE support X2APIC? > > > I see X2APIC related commits in CURRENT, what is status for STABLE? > > > I am try to enable X2APIC support on X10DRi and see kernel trap on > > > boot. > > > > x2APIC is only supported in HEAD. The code to parse processor x2APIC > > structures in MADT was committed, but AFAIK never tested on real hardware. > > > > There are no plans to merge this to stable/10. > > I am try now on real hardware and got kernel fault at boot when set in > BIOS X2APIC_OPT_OUT Flag to [Enable]. > https://s9.postimg.org/6mt8bu21b/fault2.jpg How do you know that the issue is due to that flag ? I doubt that BIOS would provide direct knob to manage that flag, since requesting that out-out only makes sense if BIOS is unable to handle x2APIC mode, e.g. in SMI handlers. How precisely the BIOS setting called which you frobbed ? Show complete verbose dmesg from the first line to backtrace. > > 0xffffffff80537e74 is /usr/src/sys/kern/subr_smp.c:959 And this is a topology probe code, which should not be affected by the x2APIC mode at all, except possibly due to longer format of the APIC IDs. I added Andrey to Cc:, he might give some more guidance. > > Boot success if X2APIC_OPT_OUT Flag set to [Disable] > Supermicro X10DRi, dual E5-2650v4