From owner-freebsd-current@freebsd.org Fri Apr 15 14:37:10 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 1518CAEDF94 for ; Fri, 15 Apr 2016 14:37:10 +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 B43871941 for ; Fri, 15 Apr 2016 14:37:09 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id u3FEb4c6029133 (version=TLSv1 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 15 Apr 2016 17:37:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua u3FEb4c6029133 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id u3FEb4Sg029132; Fri, 15 Apr 2016 17:37:04 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Fri, 15 Apr 2016 17:37:04 +0300 From: Konstantin Belousov To: Vladimir Zakharov Cc: freebsd-current@freebsd.org Subject: Re: GENERIC-NODEBUG panics, GENERIC does not Message-ID: <20160415143704.GL2422@kib.kiev.ua> References: <20160415102644.GA1380@vzakharov> <20160415105055.GI2422@kib.kiev.ua> <20160415113818.GA1613@vzakharov> <20160415125341.GJ2422@kib.kiev.ua> <20160415141154.GA1522@vzakharov> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160415141154.GA1522@vzakharov> User-Agent: Mutt/1.6.0 (2016-04-01) 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-current@freebsd.org X-Mailman-Version: 2.1.21 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: Fri, 15 Apr 2016 14:37:10 -0000 On Fri, Apr 15, 2016 at 05:11:54PM +0300, Vladimir Zakharov wrote: > On Fri, Apr 15, 2016, Konstantin Belousov wrote: > > On Fri, Apr 15, 2016 at 02:38:18PM +0300, Vladimir Zakharov wrote: > > > On Fri, Apr 15, 2016, Konstantin Belousov wrote: > > > > On Fri, Apr 15, 2016 at 01:26:44PM +0300, Vladimir Zakharov wrote: > > > > > Hello > > > > > > > > > > Setting 'kern.eventtimer.periodic = 1' in /etc/sysctl.conf leads to > > > > > GENERIC-NODEBUG panic. GENERIC loads without problems. > > > > > So do GENERIC-NODEBUG as of r297245. > > > > > > > > > > https://imgur.com/0DtDU3m > > > > > > > > > > $ uname -a > > > > > > > > > > FreeBSD vzakharov 11.0-CURRENT FreeBSD 11.0-CURRENT #4 r298037: Fri Apr > > > > > 15 12:27:40 MSK 2016 root@vzakharov:/home/obj/usr/src/sys/GENERIC-NODEBUG amd64 > > > > > > > > > > > > > I cannot reproduce it locally. > > > > Please provide me verbose dmesg from the successfull boot on your machine. > > > > > > GENERIC with kern.eventtimer.periodic=1: http://pastebin.com/raw/TB0TKSje > > > GENERIC-NODEBUG: http://pastebin.com/raw/05CchraS > > I need _verbose_ dmesg. I need the reports about LAPICs initializations, > > with register dumps. > > dmesg before patching (kern.eventtimer.periodic is not set to avoid > panic): > http://pastebin.com/raw/CnJ911gX > > dmesg for patched kernel (kern.eventtimer.periodic = 1): > http://pastebin.com/raw/9Azz9LxT Thanks. > > > > > > > > > > Also, for the panic, show me the output of the same data as on the > > > > screenshot and the output of 'show registers'. > > > > > > https://imgur.com/pO8Yc3w > > Ok, this seems to be yet another case of missed count mode divisor > > initialization. Please try the patch at the end of the messasge. > > Patched kernel doesn't panic anymore. Thanks. Committed as r298056. > > > > > Also please load your kernel into kgdb and do > > > > list *lapic_et_start+0x281 > > By 'your kernel' I mean 'your panicing kernel'. > It _was_ panicing kernel. Than not sure what you meant. There is no any > dump/core files because dumpdev is not configured yet at the moment of > panic. What should I do to retrieve the required information? > I've simply run: $ kgdb /boot/kernel/kernel No, core is not needed, only kernel to translate faulted address into the source line. The translation that you show did not make sense. The registers value was more useful.