From owner-freebsd-arm@FreeBSD.ORG Fri Mar 28 16:51:20 2014 Return-Path: Delivered-To: freebsd-arm@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 03AB9CAA; Fri, 28 Mar 2014 16:51:20 +0000 (UTC) Received: from mho-01-ewr.mailhop.org (mho-03-ewr.mailhop.org [204.13.248.66]) (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 CB88239E; Fri, 28 Mar 2014 16:51:19 +0000 (UTC) Received: from c-24-8-230-52.hsd1.co.comcast.net ([24.8.230.52] helo=damnhippie.dyndns.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1WTZzy-000ADk-9j; Fri, 28 Mar 2014 16:51:18 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by damnhippie.dyndns.org (8.14.3/8.14.3) with ESMTP id s2SGpG54080154; Fri, 28 Mar 2014 10:51:16 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 24.8.230.52 X-Report-Abuse-To: abuse@dyndns.com (see http://www.dyndns.com/services/sendlabs/outbound_abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX1/Xwgxuk55TbEssvL3f1W/s Subject: Re: Raspberry pi 11 Current panic From: Ian Lepore To: jungleboogie0 In-Reply-To: References: Content-Type: text/plain; charset="us-ascii" Date: Fri, 28 Mar 2014 10:51:16 -0600 Message-ID: <1396025476.81853.147.camel@revolution.hippie.lan> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 FreeBSD GNOME Team Port Content-Transfer-Encoding: 7bit Cc: "freebsd-arm@freebsd.org" X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 28 Mar 2014 16:51:20 -0000 On Tue, 2014-03-25 at 16:32 -0700, jungleboogie0 wrote: > And now to the group: > > > U-Boot 2013.01-rc1-svn18531 (Mar 24 2014 - 09:11:00) [...] > > > > > > I grabbed 11-CURRENT for raspberry pi here: > > > ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/arm/armv6/ISO-IMAGES/11.0 > > > > > > Booted up my pi and I'm trying to run vnstat but this occurs: > > > > > > root@raspberry-pi:~ # vmstat > > > procs memory page disks faults > > cpu > > > r b w avm fpanic: mutex process lock not owned at > > > /usr/src/sys/kern/kern_sig.c:2874 > > > KDB: enter: panic > > > [ thread pid 747 tid 100063 ] > > > Stopped at $d: ldrb r15, [r15, r15, ror r15]! > > > > > > So far I've been able to do this 3 times in a row by simply logging in > > and > > > typing vmstat. > > > > > > Is this expected behavior? > > > It took me a while to get around to this, but I can confirm that if you download the r263665 rpi image it behaves exactly as shown. On the other hand, if I build r263665 locally and boot from it I have no problems, but that's with an NFS root filesystem so it's not quite an identical test. The actual problem that causes the panic appears to be secondary fallout from an attempt to kill the process because of a floating point exception in supervisor mode. I think we have another mail thread about a similar problem. The kernel isn't supposed to be using floating point hardware, so I'll look into that. I have a vague suspicion we may be accidentally using an instruction not supported by the vfp version in the rpi while saving/restoring the state or something like that. -- Ian