From owner-freebsd-current@FreeBSD.ORG Mon Mar 30 23:51:53 2015 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 6DC70CA3; Mon, 30 Mar 2015 23:51:53 +0000 (UTC) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D0B25D0C; Mon, 30 Mar 2015 23:51:52 +0000 (UTC) Received: from tom.home (kostik@localhost [127.0.0.1]) by kib.kiev.ua (8.14.9/8.14.9) with ESMTP id t2UNplH6073232 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Tue, 31 Mar 2015 02:51:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.9.2 kib.kiev.ua t2UNplH6073232 Received: (from kostik@localhost) by tom.home (8.14.9/8.14.9/Submit) id t2UNplpV073231; Tue, 31 Mar 2015 02:51:47 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Tue, 31 Mar 2015 02:51:47 +0300 From: Konstantin Belousov To: Gleb Smirnoff Subject: Re: Panic on current amd64 Message-ID: <20150330235147.GH2379@kib.kiev.ua> References: <201503282202.t2SM2cAb004263@pozo.com> <20150330211943.GV64665@FreeBSD.org> <5519CE6C.10600@selasky.org> <20150330224104.GZ64665@glebius.int.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150330224104.GZ64665@glebius.int.ru> User-Agent: Mutt/1.5.23 (2014-03-12) 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.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on tom.home Cc: Hans Petter Selasky , rrs@FreeBSD.org, freebsd-current@freebsd.org X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.18-1 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, 30 Mar 2015 23:51:53 -0000 On Tue, Mar 31, 2015 at 01:41:04AM +0300, Gleb Smirnoff wrote: > On Tue, Mar 31, 2015 at 12:30:04AM +0200, Hans Petter Selasky wrote: > H> On 03/30/15 23:19, Gleb Smirnoff wrote: > H> > On Sat, Mar 28, 2015 at 03:02:28PM -0700, Manfred Antar wrote: > H> > M> I get the following panic on current svn ver r280793: > H> > M> > H> > M> Sat Mar 28 14:41:28 PDT 2015 > H> > M> > H> > M> FreeBSD/amd64 (pozo.com) (ttyu0) > H> > M> > H> > M> panic: Invalid CPU in callout 16 > H> > > H> > The same happened to me in the OFED code. After investigation > H> > it appeared that for some unknown reason, the OFED code used > H> > /usr/include/sys/callout.h instead of SYSDIR/sys/callout.h, > H> > that yield in wrong value passing as parameter. > H> > > H> > I failed to reproduce the problem. :( So, the fix is a rebuild > H> > of kernel. But the right fix is to understand what went wrong > H> > in the previous build. > H> > H> How did you compile the OFED stuff? Did you set the SYSDIR variable when > H> building? > > I just have this in my kernel config: > > options OFED > device mlxen Quick grep of the sys/ofed immediately shows the following: sys/ofed/include/linux/wait.h:#include sys/ofed/include/linux/wait.h:#include sys/ofed/include/linux/wait.h:#include sys/ofed/include/linux/wait.h:#include sys/ofed/include/linux/wait.h:#include ys/ofed/include/linux/timer.h:#include sys/ofed/include/linux/types.h:#include sys/ofed/include/linux/types.h:#include sys/ofed/include/linux/types.h:#include sys/ofed/include/linux/types.h:#include and so on.