From owner-freebsd-current@FreeBSD.ORG Tue Mar 31 07:10:36 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 2263DB58; Tue, 31 Mar 2015 07:10:36 +0000 (UTC) Received: from mail.turbocat.net (heidi.turbocat.net [88.198.202.214]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D2812228; Tue, 31 Mar 2015 07:10:35 +0000 (UTC) Received: from laptop015.home.selasky.org (cm-176.74.213.204.customer.telag.net [176.74.213.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.turbocat.net (Postfix) with ESMTPSA id D92A11FE023; Tue, 31 Mar 2015 09:10:31 +0200 (CEST) Message-ID: <551A4895.6090500@selasky.org> Date: Tue, 31 Mar 2015 09:11:17 +0200 From: Hans Petter Selasky User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Konstantin Belousov , Gleb Smirnoff Subject: Re: Panic on current amd64 References: <201503282202.t2SM2cAb004263@pozo.com> <20150330211943.GV64665@FreeBSD.org> <5519CE6C.10600@selasky.org> <20150330224104.GZ64665@glebius.int.ru> <20150330235147.GH2379@kib.kiev.ua> <20150331001523.GJ2379@kib.kiev.ua> In-Reply-To: <20150331001523.GJ2379@kib.kiev.ua> Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: 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: Tue, 31 Mar 2015 07:10:36 -0000 On 03/31/15 02:15, Konstantin Belousov wrote: > On Tue, Mar 31, 2015 at 02:51:47AM +0300, Konstantin Belousov wrote: >> 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. > > Err, I am sorry, scratch this. Hi, Could you: cd sys/amd64/conf config YOURCONFIG cd ../compile/YOURCONFIG less Makefile and see if it includes something outside /sys ? OFED uses its own CFLAGS and check if some include directives have space after the "-Ixxxspace", because then this simple flag conversion will fail: OFEDCFLAGS= ${CFLAGS:N-I*} ${OFEDINCLUDES} ${CFLAGS:M-I*} ${OFEDNOERR} Thank you! --HPS