From owner-freebsd-arm@FreeBSD.ORG Wed Jul 30 17:30:39 2014 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7861EFD5 for ; Wed, 30 Jul 2014 17:30:39 +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 4D34A2BAC for ; Wed, 30 Jul 2014 17:30:38 +0000 (UTC) Received: from c-50-155-136-3.hsd1.co.comcast.net ([50.155.136.3] helo=ilsoft.org) by mho-01-ewr.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.72) (envelope-from ) id 1XCXhw-000M6u-58; Wed, 30 Jul 2014 17:30:32 +0000 Received: from [172.22.42.240] (revolution.hippie.lan [172.22.42.240]) by ilsoft.org (8.14.9/8.14.9) with ESMTP id s6UHUV2I001466; Wed, 30 Jul 2014 11:30:31 -0600 (MDT) (envelope-from ian@FreeBSD.org) X-Mail-Handler: Dyn Standard SMTP by Dyn X-Originating-IP: 50.155.136.3 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+fLdYHDRc206wrxxifplU7 X-Authentication-Warning: paranoia.hippie.lan: Host revolution.hippie.lan [172.22.42.240] claimed to be [172.22.42.240] Subject: Re: Kernel Panic on BeagleBone Black From: Ian Lepore To: Shawn Webb In-Reply-To: <20140730121922.GI1869@pwnie.vrt.sourcefire.com> References: <20140730121922.GI1869@pwnie.vrt.sourcefire.com> Content-Type: text/plain; charset="us-ascii" Date: Wed, 30 Jul 2014 11:30:30 -0600 Message-ID: <1406741430.56408.218.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.18 Precedence: list List-Id: "Porting FreeBSD to ARM processors." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jul 2014 17:30:39 -0000 On Wed, 2014-07-30 at 08:19 -0400, Shawn Webb wrote: > Hey All, > > I've just updated to a recent HEAD (r269240). I get a kernel panic > almost immediately on boot. Below is the log. > > ==== Start of dump ==== > cpsw0: <3-port Switch Ethernet Subsystem> mem 0x4a100000-0x4a103fff irq 40,41,42,43 on simplebus0 > cpsw0: CPSW SS Version 1.12 (0) > cpsw0: Initial queue size TX=128 RX=384 > cpsw0: Ethernet address: 1c:ba:8c:e4:6d:6a > cpsw0: Failed to read from PHY. > cpsw0: attaching PHYs failed > > vm_fault(0xc070b9e0, 0, 1, 0) -> 1 > Fatal kernel mode data abort: 'Translation Fault (S)' > trapframe: 0xc080eb28 > FSR=00000005, FAR=00000018, spsr=80000193 > r0 =c266f280, r1 =00000000, r2 =00000019, r3 =60000193 > r4 =00000000, r5 =c266f280, r6 =00000006, r7 =c05c99b4 > r8 =c266f280, r9 =c26ca28c, r10=c26c80c8, r11=c080eb88 > r12=00000000, ssp=c080eb78, slr=c05ee1cc, pc =c03d2614 > > [ thread pid 0 tid 100000 ] > Stopped at device_delete_child+0x14: ldr r1, [r4, #0x018] > db> bt > Tracing pid 0 tid 100000 td 0xc070b6d0 [...] > Unable to unwind further > ==== End of dump ==== > > If there's anything I can do, let me know. > > Thanks, > > Shawn Hmm, I can't reproduce this on my BB White at r269302. The real error is "Failed to read from PHY". The kernel abort was just accidental fallout from trying to clean up and detach the ethernet driver since it failed to init properly (error paths never get tested enough). What was the prior release you were on that worked okay? Since I just made a series of changes to armv6 busdma I'm tempted to suspect them, even though there shouldn't be any DMA involved in talking to the PHY. Still, it would be interesting to know if backing off to r269134 makes the problem go away. -- Ian