From owner-freebsd-arm@FreeBSD.ORG Wed Aug 23 17:57:58 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7DC2A16A4DE for ; Wed, 23 Aug 2006 17:57:58 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id B0C3843D72 for ; Wed, 23 Aug 2006 17:57:44 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7NHvhhB071254 for ; Wed, 23 Aug 2006 19:57:43 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7NHvcF2029123 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Aug 2006 19:57:38 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7NHvbBY048403; Wed, 23 Aug 2006 19:57:37 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7NHvb5K048402; Wed, 23 Aug 2006 19:57:37 +0200 (CEST) (envelope-from ticso) Date: Wed, 23 Aug 2006 19:57:37 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20060823175736.GE47093@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: Bernd Walter Subject: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 17:57:58 -0000 >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62603264 (59 MB) panic: Cannot allocate L1 KVM KDB: enter: panic This is a prototype board, so hardware problems are not impossible. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Wed Aug 23 18:10:17 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C0D2616A4DE for ; Wed, 23 Aug 2006 18:10:17 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1D02443D49 for ; Wed, 23 Aug 2006 18:10:16 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7NI7s2E066745; Wed, 23 Aug 2006 12:07:54 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Wed, 23 Aug 2006 12:08:01 -0600 (MDT) Message-Id: <20060823.120801.-861029429.imp@bsdimp.com> To: ticso@cicely.de, ticso@cicely12.cicely.de From: "M. Warner Losh" In-Reply-To: <20060823175736.GE47093@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Wed, 23 Aug 2006 12:07:55 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:10:17 -0000 In message: <20060823175736.GE47093@cicely12.cicely.de> Bernd Walter writes: : >e 0x20000000 : KDB: debugger backends: ddb : KDB: current backend: ddb : Copyright (c) 1992-2006 The FreeBSD Project. : Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 : The Regents of the University of California. All rights reserved. : FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 : ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT : CPU: ARM920T rev 0 (ARM9TDMI core) : DC enabled IC enabled WB enabled LABT : 16KB/32B 64-way Instruction cache : 16KB/32B 64-way write-back-locking-A Data cache : real memory = 67108864 (64 MB) : avail memory = 62603264 (59 MB) : panic: Cannot allocate L1 KVM : KDB: enter: panic : : This is a prototype board, so hardware problems are not impossible. First question: does this board actually have 64MB of RAM? If so, then I'm happy that the SDRAM detection code appears to be working... I'm running 64MB boards here with a substantially similar kernel to yours. This panic happens because we can't allocate enough memory for the L1 page table cache. Since you are early in boot, I'm amazed that a 16kb allocation is failing... Are you using the kb920x_machdep.c file to do initialization? Warner From owner-freebsd-arm@FreeBSD.ORG Wed Aug 23 18:23:02 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BF55216A4DD for ; Wed, 23 Aug 2006 18:23:02 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95BED43D45 for ; Wed, 23 Aug 2006 18:22:56 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7NIMrWe071826; Wed, 23 Aug 2006 20:22:53 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7NIMlMn029455 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Aug 2006 20:22:47 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7NIMkkV048517; Wed, 23 Aug 2006 20:22:46 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7NIMknR048516; Wed, 23 Aug 2006 20:22:46 +0200 (CEST) (envelope-from ticso) Date: Wed, 23 Aug 2006 20:22:46 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20060823182246.GI47093@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060823.120801.-861029429.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060823.120801.-861029429.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:23:02 -0000 On Wed, Aug 23, 2006 at 12:08:01PM -0600, M. Warner Losh wrote: > In message: <20060823175736.GE47093@cicely12.cicely.de> > Bernd Walter writes: > : >e 0x20000000 > : KDB: debugger backends: ddb > : KDB: current backend: ddb > : Copyright (c) 1992-2006 The FreeBSD Project. > : Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > : The Regents of the University of California. All rights reserved. > : FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 > : ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT > : CPU: ARM920T rev 0 (ARM9TDMI core) > : DC enabled IC enabled WB enabled LABT > : 16KB/32B 64-way Instruction cache > : 16KB/32B 64-way write-back-locking-A Data cache > : real memory = 67108864 (64 MB) > : avail memory = 62603264 (59 MB) > : panic: Cannot allocate L1 KVM > : KDB: enter: panic > : > : This is a prototype board, so hardware problems are not impossible. > > First question: does this board actually have 64MB of RAM? If so, > then I'm happy that the SDRAM detection code appears to be working... Yes - 64MB (2x MT48LC16M16A2TG-75) > I'm running 64MB boards here with a substantially similar kernel to > yours. This panic happens because we can't allocate enough memory for > the L1 page table cache. Since you are early in boot, I'm amazed that > a 16kb allocation is failing... > > Are you using the kb920x_machdep.c file to do initialization? Yes - basicly I took KB920X with small rearangements. I'd put the included ../at91/std.kb920x contents directly into the kernel file and added the hints file, because without hints nothing was seen on the debug port. [187]cicely7# diff -u KB920X BWCT --- KB920X Mon Aug 21 17:52:52 2006 +++ BWCT Wed Aug 23 19:46:19 2006 @@ -19,11 +19,22 @@ # $FreeBSD: src/sys/arm/conf/KB920X,v 1.9 2006/07/17 21:17:20 cognet Exp $ machine arm -ident KB920X +ident BWCT -include "../at91/std.kb920x" +include "../at91/std.at91" +files "../at91/files.kb920x" + +makeoptions KERNPHYSADDR=0x20000000 +makeoptions KERNVIRTADDR=0xc0000000 +options KERNPHYSADDR=0x20000000 +options KERNVIRTADDR=0xc0000000 +options PHYSADDR=0x20000000 +options STARTUP_PAGETABLE_ADDR=0x20800000 + +#include "../at91/std.kb920x" #To statically compile in device wiring instead of /boot/device.hints #hints "GENERIC.hints" #Default places to look for devices. +hints "../at91/hints.at91rm9200" makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols options DDB Exit 1 -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Wed Aug 23 18:42:20 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7F7B716A4DE for ; Wed, 23 Aug 2006 18:42:20 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id E12BA43D45 for ; Wed, 23 Aug 2006 18:42:19 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7NIgG9e072130; Wed, 23 Aug 2006 20:42:16 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7NIg8A1029642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 23 Aug 2006 20:42:09 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7NIg829048565; Wed, 23 Aug 2006 20:42:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7NIg86b048564; Wed, 23 Aug 2006 20:42:08 +0200 (CEST) (envelope-from ticso) Date: Wed, 23 Aug 2006 20:42:08 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20060823184207.GK47093@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060823.120801.-861029429.imp@bsdimp.com> <20060823182246.GI47093@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060823182246.GI47093@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: ticso@cicely12.cicely.de, freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 18:42:20 -0000 On Wed, Aug 23, 2006 at 08:22:46PM +0200, Bernd Walter wrote: > On Wed, Aug 23, 2006 at 12:08:01PM -0600, M. Warner Losh wrote: > > In message: <20060823175736.GE47093@cicely12.cicely.de> > > Bernd Walter writes: > > : >e 0x20000000 > > : KDB: debugger backends: ddb > > : KDB: current backend: ddb > > : Copyright (c) 1992-2006 The FreeBSD Project. > > : Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > > : The Regents of the University of California. All rights reserved. > > : FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 > > : ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT > > : CPU: ARM920T rev 0 (ARM9TDMI core) > > : DC enabled IC enabled WB enabled LABT > > : 16KB/32B 64-way Instruction cache > > : 16KB/32B 64-way write-back-locking-A Data cache > > : real memory = 67108864 (64 MB) > > : avail memory = 62603264 (59 MB) > > : panic: Cannot allocate L1 KVM > > : KDB: enter: panic > > : I don't know the difference, but after several times the same panic and without changing anything: >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62603264 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xfffffd00-0xfffffdff irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xfffff400-0xfffff5ff irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio0: [FAST] at91_pio1: mem 0xfffff600-0x3ffef7ff irq 1 on atmelarm0 device_attach: at91_pio1 attach returned 12 at91_pio2: mem 0xfffff800-0xfffff9ff irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio2: [FAST] at91_pio3: mem 0xfffffa00-0xfffffbff irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pio3: [FAST] at91_pmc0: mem 0xfffffc00-0xfffffcff irq 1 on atmelarm0 at91_pmc0: main clock: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz main 37 MHz at91_rtc0: mem 0xfffffe00-0xfffffeff irq 1 on atmelarm0 at91_rtc0: [FAST] ate0: mem 0xfffbc000-0xfffbffff irq 24 on atmelarm0 ate0: Cannot find my PHY. device_attach: ate0 attach returned 6 uart0: mem 0xfffff200-0xfffff3ff irq 1 on atmelarm0 uart0: [FAST]Ķuart0: console (115200,n,8,1) uart1: mem 0xfffc0000-0xfffc3fff irq 6 on atmelarm0 uart1: [FAST] uart2: mem 0xfffc4000-0xfffc7fff irq 7 on atmelarm0 uart2: [FAST] uart3: mem 0xfffc8000-0xfffcbfff irq 8 on atmelarm0 uart3: [FAST] uart4: mem 0xfffcc000-0xfffcffff irq 9 on atmelarm0 uart4: [FAST] at91_spi0: mem 0xfffe0000-0xfffe3fff irq 13 on atmelarm0 spibus0: on at91_spi0 Cannot get 100 Hz clock; using 128Hz at91_st0: [FAST] Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec panic: bootpc_init: no eligible interfaces KDB: enter: panic Fatal kernel mode prefetch abort at 0xc006c10c trapframe: 0xc01f4e2c, spsr=a0000013 r0 =00000012, r1 =40000013, r2 =ffffffff, r3 =c01bb218 r4 =00000001, r5 =c017fa40, r6 =c01f4e9c, r7 =00000100 r8 =c01ca830, r9 =0000058c, r10=21200100, r11=c01f4e84 r12=c01f6000, ssp=c01f4e78, slr=c0162444, pc =c006c10c [thread pid 0 tid 0 ] Stopped at kdb_enter+0x3c: ldrb r15, [r15, r15, ror r15]! db> The PHY problem is not surprising - I already know that there are unresolved problems with the connected switch. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Thu Aug 24 15:52:32 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3409516A4DA for ; Thu, 24 Aug 2006 15:52:32 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6FD4243D5E for ; Thu, 24 Aug 2006 15:52:19 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7OFqHqk095245 for ; Thu, 24 Aug 2006 17:52:17 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7OFq8OL042440 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 24 Aug 2006 17:52:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7OFq82d051952; Thu, 24 Aug 2006 17:52:08 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7OFq8u7051951; Thu, 24 Aug 2006 17:52:08 +0200 (CEST) (envelope-from ticso) Date: Thu, 24 Aug 2006 17:52:08 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20060824155207.GM49178@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20060823175736.GE47093@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: Bernd Walter Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 15:52:32 -0000 On Wed, Aug 23, 2006 at 07:57:37PM +0200, Bernd Walter wrote: > >e 0x20000000 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2006 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 7.0-CURRENT #4: Wed Aug 23 19:47:16 CEST 2006 > ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT > CPU: ARM920T rev 0 (ARM9TDMI core) > DC enabled IC enabled WB enabled LABT > 16KB/32B 64-way Instruction cache > 16KB/32B 64-way write-back-locking-A Data cache > real memory = 67108864 (64 MB) > avail memory = 62603264 (59 MB) > panic: Cannot allocate L1 KVM > KDB: enter: panic > > This is a prototype board, so hardware problems are not impossible. It was a hardware problem with power distribution to the SDRAM chips. My next problem ist ethernet. >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #6: Thu Aug 24 06:06:58 CEST 2006 ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62586880 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xfffffd00-0xfffffdff irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xfffff400-0xfffff5ff irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio0: [FAST] at91_pio1: mem 0xfffff600-0xfffff7ff irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio1: [FAST] at91_pio2: mem 0xfffff800-0xfffff9ff irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio2: [FAST] at91_pio3: mem 0xfffffa00-0xfffffbff irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pio3: [FAST] at91_pmc0: mem 0xfffffc00-0xfffffcff irq 1 on atmelarm0 at91_pmc0: main clock: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz main 37 MHz at91_rtc0: mem 0xfffffe00-0xfffffeff irq 1 on atmelarm0 at91_rtc0: [FAST] at91_twi0: mem 0xfffb8000-0xfffbbfff irq 12 on atmelarm0 iicbus0: on at91_twi0 iicsmb0: on iicbus0 smbus0: on iicsmb0 smb0: on smbus0 ate0: mem 0xfffbc000-0xfffbffff irq 24 on atmelarm0 miibus0: on ate0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ate0: Ethernet address: 00:0e:42:02:00:1f uart0: mem 0xfffff200-0xfffff3ff irq 1 on atmelarm0 uart0: [FAST]Ķuart0: console (115200,n,8,1) uart1: mem 0xfffc0000-0xfffc3fff irq 6 on atmelarm0 uart1: [FAST] uart2: mem 0xfffc4000-0xfffc7fff irq 7 on atmelarm0 uart2: [FAST] uart3: mem 0xfffc8000-0xfffcbfff irq 8 on atmelarm0 uart3: [FAST] uart4: mem 0xfffcc000-0xfffcffff irq 9 on atmelarm0 uart4: [FAST] at91_spi0: mem 0xfffe0000-0xfffe3fff irq 13 on atmelarm0 spibus0: on at91_spi0 Cannot get 100 Hz clock; using 128Hz at91_st0: [FAST] Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:1f) ate0: link state changed to DOWN ate0: link state changed to UP DHCP/BOOTP timeout for server 255.255.255.255 DHCP/BOOTP timeout for server 255.255.255.255 I see the packets on the DHCP-server: 17:48:24.996668 IP (tos 0x0, ttl 1, id 30, offset 0, flags [none], proto: UDP (17), length: 1488) 0.0.0.0.68 > 255.255.255.255.67: [udp sum ok] BOOTP/DHCP, Request from 00:0e:42:02:00:1f, length: 1460, xid:0xffff0001, secs:137, flags: [Broadcast] (0x8000) Client Ethernet Address: 00:0e:42:02:00:1f Vendor-rfc1048: MSZ:1460 VC:"FreeBSD:arm:7.0-CURRENT" DHCP:DISCOVER 17:48:25.001473 IP (tos 0x10, ttl 16, id 0, offset 0, flags [none], proto: UDP (17), length: 391) 85.159.14.49.67 > 255.255.255.255.68: [udp sum ok] BOOTP/DHCP, Reply, length: 363, xid:0xffff0001, secs:137, flags: [Broadcast] (0x8000) Your IP: 85.159.14.54 Server IP: 85.159.14.49 Client Ethernet Address: 00:0e:42:02:00:1f sname "cicely11.cicely.de" Vendor-rfc1048: DHCP:OFFER SID:85.159.14.49 LT:86400 SM:255.255.255.248 DG:85.159.14.49 NS:10.1.1.8,10.1.1.7 HN:"test-54.bwct.de^@" RP:"85.159.14.49:/var/d6/arm-boot/" RN:43200 RB:75600 BR:85.159.14.55 NTP:10.1.1.10 DN:"cicely.de" And I can see via scope that packets are transfered via MII to the MAC, nevertheless the kernel complains about timeouts. bootspi shows the same: ARP requests are send out repeatetly as if nothing was received. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Thu Aug 24 16:13:09 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AA5DC16A4DA for ; Thu, 24 Aug 2006 16:13:09 +0000 (UTC) (envelope-from imp@bsdimp.com) Received: from harmony.bsdimp.com (vc4-2-0-87.dsl.netrack.net [199.45.160.85]) by mx1.FreeBSD.org (Postfix) with ESMTP id 29C5B43D46 for ; Thu, 24 Aug 2006 16:13:09 +0000 (GMT) (envelope-from imp@bsdimp.com) Received: from localhost (localhost.village.org [127.0.0.1] (may be forged)) by harmony.bsdimp.com (8.13.4/8.13.4) with ESMTP id k7OGAnjC083935; Thu, 24 Aug 2006 10:10:49 -0600 (MDT) (envelope-from imp@bsdimp.com) Date: Thu, 24 Aug 2006 10:10:55 -0600 (MDT) Message-Id: <20060824.101055.1723237336.imp@bsdimp.com> To: ticso@cicely.de From: "M. Warner Losh" In-Reply-To: <20060824155207.GM49178@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060824155207.GM49178@cicely12.cicely.de> X-Mailer: Mew version 4.2 on Emacs 21.3 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0 (harmony.bsdimp.com [127.0.0.1]); Thu, 24 Aug 2006 10:10:50 -0600 (MDT) Cc: freebsd-arm@freebsd.org Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 24 Aug 2006 16:13:09 -0000 [ no packets ] I had some problems with my phy (*LOTS* of phy problems), but this sounds similar to one in particular. We weren't getting packets. I added code to read the PHY specific registers to see when there was a link indicated, then set registers in the EMAC part based on that. See GetLinkSpeed for the details in boot/arm/at91/libat91/emac.c. Warner From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 01:05:07 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AC00916A4DA for ; Fri, 25 Aug 2006 01:05:07 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1DA243D46 for ; Fri, 25 Aug 2006 01:05:06 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7P14ukj005328; Fri, 25 Aug 2006 03:04:56 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7P14jlG048266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7P14jV1053640; Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7P14jit053639; Fri, 25 Aug 2006 03:04:45 +0200 (CEST) (envelope-from ticso) Date: Fri, 25 Aug 2006 03:04:45 +0200 From: Bernd Walter To: "M. Warner Losh" Message-ID: <20060825010444.GV49178@cicely12.cicely.de> References: <20060823175736.GE47093@cicely12.cicely.de> <20060824155207.GM49178@cicely12.cicely.de> <20060824.101055.1723237336.imp@bsdimp.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060824.101055.1723237336.imp@bsdimp.com> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: AT91RM9200 problem X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 01:05:07 -0000 On Thu, Aug 24, 2006 at 10:10:55AM -0600, M. Warner Losh wrote: > [ no packets ] > > I had some problems with my phy (*LOTS* of phy problems), but this > sounds similar to one in particular. We weren't getting packets. I > added code to read the PHY specific registers to see when there was a > link indicated, then set registers in the EMAC part based on that. > See GetLinkSpeed for the details in boot/arm/at91/libat91/emac.c. I forgot to ground RXERR line, which is not supplied by the switch. It's always the simple things that consume most of the time... -current panics - will check that later - maybe something I modified. But P4 source is booting now :-) Boot SPI-Flash ID: 0x271f Status: 0xb4 0x0 : m 0 0e 42 02 0 1f[E] 0x1 : k 0x20000000[E] 0x2 : e 0x20000000[E] Autoboot... >m 0 0e 42 02 0 1f >k 0x20000000 >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #0: Wed Aug 23 20:07:29 CEST 2006 ticso@cicely7.cicely.de:/arm-p4/src/sys/arm/compile/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62603264 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xfffffd00:0x100 irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xfffff400:0x200 irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio1: mem 0xfffff600:0x200 irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio2: mem 0xfffff800:0x200 irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio3: mem 0xfffffa00:0x200 irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pmc0: mem 0xfffffc00:0x100 irq 1 on atmelarm0 at91_pmc0: Primary: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz MCK: 37 MHz at91_rtc0: mem 0xfffffe00:0x100 irq 1 on atmelarm0 ate0: mem 0xfffbc000:0x4000 irq 24 on atmelarm0 miibus0: on ate0 ukphy0: on miibus0 ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto ate0: Ethernet address: 00:0e:42:02:00:1f uart0: mem 0xfffff200:0x200 irq 1 on atmelarm0 uart0: console (115200,n,8,1) uart1: mem 0xfffc0000:0x4000 irq 6 on atmelarm0 uart2: mem 0xfffc4000:0x4000 irq 7 on atmelarm0 uart3: mem 0xfffc8000:0x4000 irq 8 on atmelarm0 uart4: mem 0xfffcc000:0x4000 irq 9 on atmelarm0 at91_spi0: mem 0xfffe0000:0x4000 irq 13 on atmelarm0 spibus0: on at91_spi0 Cannot get 100 Hz clock; using 128Hz Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:1f) ate0: link state changed to DOWN ate0: link state changed to UP Received DHCP Offer packet on ate0 from 10.1.1.7 (accepted) (no root path) Sending DHCP Request packet from interface ate0 (00:0e:42:02:00:1f) Received DHCP Ack packet on ate0 from 10.1.1.7 (accepted) (got root path) ate0 at 10.1.1.4 server 10.1.1.7 server name cicely11.cicely.de boot file pxeboot subnet mask 255.255.255.0 router 10.1.1.8 rootfs 10.1.1.8:/var/d6/arm-boot/ Adjusted interface ate0 Trying to mount root from nfs: NFS ROOT: 10.1.1.8:/var/d6/arm-boot/ Interface ate0 IP-Address 10.1.1.4 Broadcast 10.1.1.255 Loading configuration files. No suitable dump device was found. Entropy harvesting: interrupts ethernet point_to_point kickstart. Starting file system checks: mount_nfs: can't update /var/db/mounttab for c6:/var/d6/arm-boot Mounting local file systems:. Setting hostname: arm9.cicely.de. lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 Starting devd. devd: cannot open pid file: Operation not supported Additional routing options:. Mounting NFS file systems:. Creating and/or trimming log files:. Starting syslogd. /etc/rc: WARNING: Dump device does not exist. Savecore not run. ELF ldconfig path: /lib /usr/lib /usr/lib/compat Initial arm initialization:. Additional ABI support:. Setting date via ntp. 25 Aug 02:56:01 ntpdate[390]: step time server 10.1.1.7 offset 272854484.123604 sec Starting local daemons:. Updating motd. Mounting late file systems:. Starting sshd. Starting cron. Local package initialization:. Additional TCP options:. Starting background file system checks in 60 seconds. Fri Aug 25 02:56:30 CEST 2006 Aug 25 02:56:31 arm9 getty[577]: open /dev/ttyv2: No such file or directory Aug 25 02:56:32 arm9 getty[579]: open /dev/ttyv4: No such file or directory Aug 25 02:56:32 arm9 getty[582]: open /dev/ttyv7: No such file or directory Aug 25 02:56:32 arm9 getty[578]: open /dev/ttyv3: No such file or directory FreeBSD/arm (arm9.cicely.de) (ttyu0) login: Aug 25 02:56:32 arm9 getty[575]: open /dev/ttyv0: No such file or directory Aug 25 02:56:32 arm9 getty[581]: open /dev/ttyv6: No such file or directory Aug 25 02:56:32 arm9 getty[576]: open /dev/ttyv1: No such file or directory Aug 25 02:56:32 arm9 getty[580]: open /dev/ttyv5: No such file or directory -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 09:38:36 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4B96A16A4DA for ; Fri, 25 Aug 2006 09:38:36 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 37B9943D5F for ; Fri, 25 Aug 2006 09:38:28 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7P9cQmk012046 for ; Fri, 25 Aug 2006 11:38:26 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7P9cIPv052948 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Aug 2006 11:38:18 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7P9cHIi054871; Fri, 25 Aug 2006 11:38:18 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7P9cHVV054870; Fri, 25 Aug 2006 11:38:17 +0200 (CEST) (envelope-from ticso) Date: Fri, 25 Aug 2006 11:38:17 +0200 From: Bernd Walter To: freebsd-arm@freebsd.org Message-ID: <20060825093816.GD49178@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: Bernd Walter Subject: Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 09:38:36 -0000 >e 0x20000000 KDB: debugger backends: ddb KDB: current backend: ddb Copyright (c) 1992-2006 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 7.0-CURRENT #41: Fri Aug 25 11:29:00 CEST 2006 ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT CPU: ARM920T rev 0 (ARM9TDMI core) DC enabled IC enabled WB enabled LABT 16KB/32B 64-way Instruction cache 16KB/32B 64-way write-back-locking-A Data cache real memory = 67108864 (64 MB) avail memory = 62603264 (59 MB) CONFIG: invalid hint 'hint.ohci.at=apb' CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' atmelarm0: on motherboard at91_st0: mem 0xfffffd00-0xfffffdff irq 1 on atmelarm0 at91_st0: watchdog registered, timeout intervall max. 64 sec at91_pio0: mem 0xfffff400-0xfffff5ff irq 1 on atmelarm0 at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 at91_pio0: [FAST] at91_pio1: mem 0xfffff600-0xfffff7ff irq 1 on atmelarm0 at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 at91_pio1: [FAST] at91_pio2: mem 0xfffff800-0xfffff9ff irq 1 on atmelarm0 at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 at91_pio2: [FAST] at91_pio3: mem 0xfffffa00-0xfffffbff irq 1 on atmelarm0 at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 at91_pio3: [FAST] at91_pmc0: mem 0xfffffc00-0xfffffcff irq 1 on atmelarm0 at91_pmc0: main clock: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz main 37 MHz at91_rtc0: mem 0xfffffe00-0xfffffeff irq 1 on atmelarm0 at91_rtc0: [FAST] ate0: mem 0xfffbc000-0xfffbffff irq 24 on atmelarm0 miibus0: on ate0 rlswitch0: on miibus0 rlswitch0: 100baseTX-FDX rlswitch1: on miibus0 rlswitch1: ignoring this PHY, non-zero instance device_attach: rlswitch1 attach returned 6 rlswitch2: on miibus0 rlswitch2: ignoring this PHY, non-zero instance device_attach: rlswitch2 attach returned 6 rlswitch3: on miibus0 rlswitch3: ignoring this PHY, non-zero instance device_attach: rlswitch3 attach returned 6 rlswitch4: on miibus0 rlswitch4: ignoring this PHY, non-zero instance device_attach: rlswitch4 attach returned 6 rlswitch5: on miibus0 rlswitch5: ignoring this PHY, non-zero instance device_attach: rlswitch5 attach returned 6 ate0: Ethernet address: 00:0e:42:02:00:1f uart0: mem 0xfffff200-0xfffff3ff irq 1 on atmelarm0 uart0: [FAST]Ķuart0: console (115200,n,8,1) uart1: mem 0xfffc0000-0xfffc3fff irq 6 on atmelarm0 uart1: [FAST] uart2: mem 0xfffc4000-0xfffc7fff irq 7 on atmelarm0 uart2: [FAST] uart3: mem 0xfffc8000-0xfffcbfff irq 8 on atmelarm0 uart3: [FAST] uart4: mem 0xfffcc000-0xfffcffff irq 9 on atmelarm0 uart4: [FAST] Cannot get 100 Hz clock; using 128Hz at91_st0: [FAST] Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 Timecounters tick every 7.812 msec Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:1f) Received DHCP Offer packet on ate0 from 10.1.1.7 (accepted) (no root path) Sending DHCP Request packet from interface ate0 (00:0e:42:02:00:1f) Received DHCP Ack packet on ate0 from 10.1.1.7 (accepted) (got root path) ate0 at 10.1.1.4 server 10.1.1.7 server name cicely11.cicely.de boot file pxeboot subnet mask 255.255.255.0 router 10.1.1.8 rootfs 10.1.1.8:/var/d6/arm-boot/ Adjusted interface ate0 Trying to mount root from nfs: NFS ROOT: 10.1.1.8:/var/d6/arm-boot/ Interface ate0 IP-Address 10.1.1.4 Broadcast 10.1.1.255 Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock sched_switch() at sched_switch+0x10 scp=0xc0060e70 rlv=0xc0052600 (mi_switch+0x220) rsp=0xc52998b4 rfp=0xc52998e8 r7=0xc078e700 r6=0xc0794068 r5=0xc01ca3c8 r4=0x00000000 mi_switch() at mi_switch+0x10 scp=0xc00523f0 rlv=0xc0072760 (sleepq_set_timeout+0x27c) rsp=0xc52998ec rfp=0xc5299900 r10=0x73657000 r9=0x00000001 r8=0xc5299a18 r7=0xc078e700 r6=0xc0794068 r5=0xc01ca3c8 r4=0xc078e700 sleepq_set_timeout() at sleepq_set_timeout+0x204 scp=0xc00726e8 rlv=0xc0072870 (sleepq_wait+0x30) rsp=0xc5299904 rfp=0xc5299918 r4=0xc0794068 sleepq_wait() at sleepq_wait+0x10 scp=0xc0072850 rlv=0xc0024a24 (cv_wait_unlock+0xe4) rsp=0xc529991c rfp=0xc5299938 r4=0x00000000 cv_wait_unlock() at cv_wait_unlock+0x10 scp=0xc0024950 rlv=0xc0024920 (cv_wait+0x34) rsp=0xc529993c rfp=0xc5299950 r7=0xc078e700 r6=0xc0794000 r5=0xc01ca3c8 r4=0x00000000 cv_wait() at cv_wait+0x10 scp=0xc00248fc rlv=0xc0051b34 (_sx_xlock+0x4c) rsp=0xc5299954 rfp=0xc5299968 r5=0x00000001 r4=0xc0794044 _sx_xlock() at _sx_xlock+0x10 scp=0xc0051af8 rlv=0xc013c990 (_vm_map_lock_read+0x40) rsp=0xc529996c rfp=0xc5299978 r4=0x00000001 _vm_map_lock_read() at _vm_map_lock_read+0x10 scp=0xc013c960 rlv=0xc0140540 (vm_map_lookup+0x3c) rsp=0xc529997c rfp=0xc52999a8 vm_map_lookup() at vm_map_lookup+0x10 scp=0xc0140514 rlv=0xc01387b4 (vm_fault+0xb8) rsp=0xc52999ac rfp=0xc5299a90 r10=0xc5299ef8 r9=0xc5299b34 r8=0x00000000 r7=0xc078e700 r6=0x73657000 r5=0x00000001 r4=0xc52999c4 vm_fault() at vm_fault+0x10 scp=0xc013870c rlv=0xc015d1f0 (data_abort_handler+0x3b4) rsp=0xc5299a94 rfp=0xc5299b30 r10=0xc5299ef8 r9=0xc5299b34 r8=0x00000000 r7=0xc078e700 r6=0x73657000 r5=0x00000000 r4=0xc07ba728 data_abort_handler() at data_abort_handler+0x10 scp=0xc015ce4c rlv=0xc0152bb0 (address_exception_entry+0x50) rsp=0xc5299b34 rfp=0xc5299ba4 r10=0xc01e079c r9=0xc078e700 r8=0x00100000 r7=0xc07cf000 r6=0xc07ce200 r5=0xe0000004 r4=0x73657264 intr_event_schedule_thread() at intr_event_schedule_thread+0x10 scp=0xc0037b20 rlv=0xc0037d1c (swi_sched+0x38) rsp=0xc5299ba8 rfp=0xc5299bb4 r5=0xc07cf000 r4=0xc5299bc0 swi_sched() at swi_sched+0x10 scp=0xc0037cf4 rlv=0xc000fdd4 (uart_add_sysdev+0x88) rsp=0xc5299bb8 rfp=0xc5299bd4 uart_add_sysdev() at uart_add_sysdev+0x28 scp=0xc000fd74 rlv=0xc0010090 (uart_add_sysdev+0x344) rsp=0xc5299bd8 rfp=0xc5299c04 r4=0xc01c553c uart_add_sysdev() at uart_add_sysdev+0xa0 scp=0xc000fdec rlv=0xc0153a6c (arm_handler_execute+0x94) rsp=0xc5299c08 rfp=0xc5299c34 r8=0xc5299c38 r7=0x00000000 r6=0xc07ce200 r5=0x00000001 r4=0xc07f6080 arm_handler_execute() at arm_handler_execute+0x10 scp=0xc01539e8 rlv=0xc0162c40 (irq_entry+0x9c) rsp=0xc5299c38 rfp=0xc5299cc0 r10=0xc0794000 r9=0xc078e540 r8=0xc0794508 r7=0xc0794000 r6=0xc0250b28 r5=0xe0000004 r4=0x20066000 pmap_protect() at pmap_protect+0x10 scp=0xc0159394 rlv=0xc013f6f4 (vm_map_check_protection+0xfc) rsp=0xc5299cc4 rfp=0xc5299ce8 r10=0xc0794000 r9=0xc078e540 r8=0xc0794508 r7=0xc0794000 r6=0xc0250b28 r5=0xc024f088 r4=0xc0250b28 vm_map_check_protection() at vm_map_check_protection+0xac scp=0xc013f6a4 rlv=0xc013fb14 (vmspace_fork+0x238) rsp=0xc5299cec rfp=0xc5299d18 r8=0xc0794508 r7=0xc0794508 r6=0xc0794000 r5=0xc024f088 r4=0xc0250b28 vmspace_fork() at vmspace_fork+0x10 scp=0xc013f8ec rlv=0xc013b374 (vm_forkproc+0xd8) rsp=0xc5299d1c rfp=0xc5299d40 r10=0xc078e540 r8=0xc07ba900 r7=0xc078e700 r6=0xc07ba6c0 r5=0x00000014 r4=0xc078f840 vm_forkproc() at vm_forkproc+0x10 scp=0xc013b2ac rlv=0xc00368e8 (fork1+0xc20) rsp=0xc5299d44 rfp=0xc5299d80 r10=0xc078e700 r8=0x00000014 r7=0xc0808e00 r6=0xc07ba6c0 r5=0xc07ba900 r4=0xc078f840 fork1() at fork1+0x10 scp=0xc0035cd8 rlv=0xc0035afc (fork+0x24) rsp=0xc5299d84 rfp=0xc5299d98 r10=0x00000004 r9=0xc5299eac r8=0x00000002 r7=0xc07ba6c0 r6=0xc078e700 r5=0x00000000 r4=0xc078e700 fork() at fork+0x10 scp=0xc0035ae8 rlv=0xc015dc8c (badaddr_read+0x334) rsp=0xc5299d9c rfp=0xc5299e38 r4=0x00000000 badaddr_read() at badaddr_read+0x114 scp=0xc015da6c rlv=0xc015dea0 (swi_handler+0x104) rsp=0xc5299e3c rfp=0xc5299ea8 r10=0x002202c8 r9=0x0022027c r8=0x00000002 r7=0x00000000 r6=0xc5299eac r5=0xc078e700 r4=0x00000000 swi_handler() at swi_handler+0x10 scp=0xc015ddac rlv=0xc0152980 (swi_entry+0x28) rsp=0xc5299eac rfp=0xbfffe804 r6=0x0002ecdc r5=0x00240130 r4=0x00000000 panic: sleeping thread KDB: enter: panic [thread pid 8 tid 100026 ] Stopped at kdb_enter+0x3c: ldrb r15, [r15, r15, ror r15]! db> ps pid ppid pgrp uid state wmesg wchan cmd 32 27 23 0 N+ sh 27 23 23 0 SL+ user map 0xc0794068 sh 24 0 0 0 SL - 0xc01d1d28 [nfsiod 0] 23 1 23 0 Ss+ wait 0xc08a7000 sh 22 0 0 0 SL - 0xc56cfe74 [schedcpu] 21 0 0 0 SL vlruwt 0xc08a7480 [vnlru] 20 0 0 0 SL syncer 0xc01cb1dc [syncer] 9 0 0 0 SL psleep 0xc01cedfc [bufdaemon] 8 0 0 0 LL *vm page 0xc0807540 [pagezero] 7 0 0 0 SL psleep 0xc01d27d0 [pagedaemon] 19 0 0 0 WL [swi0: uart uart+++] 18 0 0 0 WL [intr24: ate0] 17 0 0 0 WL [swi5: +] 6 0 0 0 SL - 0xc07c8080 [thread taskq] 16 0 0 0 WL [swi6: Giant taskq] 15 0 0 0 WL [swi6: task queue] 5 0 0 0 SL - 0xc077d180 [kqueue taskq] 14 0 0 0 SL - 0xc01c8854 [yarrow] 4 0 0 0 SL - 0xc01c910c [g_down] 3 0 0 0 SL - 0xc01c9108 [g_up] 2 0 0 0 SL - 0xc01c9100 [g_event] 13 0 0 0 WL [swi3: vm] 12 0 0 0 WL [swi4: clock] 11 0 0 0 WL [swi1: net] 10 0 0 0 RL [idle] 1 0 1 0 SLs wait 0xc0792000 [init] 0 0 0 0 WLs [swapper] db> -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 11:01:32 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9ABA016A4DD for ; Fri, 25 Aug 2006 11:01:32 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 73C9843D46 for ; Fri, 25 Aug 2006 11:01:31 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.6/8.13.4) with ESMTP id k7PBCA1H059399; Fri, 25 Aug 2006 13:12:10 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.7/8.13.4/Submit) id k7PBCA4h059398; Fri, 25 Aug 2006 13:12:10 +0200 (CEST) (envelope-from mlfbsd) Date: Fri, 25 Aug 2006 13:12:10 +0200 From: Olivier Houchard To: Bernd Walter Message-ID: <20060825111209.GA59325@ci0.org> References: <20060825093816.GD49178@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825093816.GD49178@cicely12.cicely.de> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 11:01:32 -0000 On Fri, Aug 25, 2006 at 11:38:17AM +0200, Bernd Walter wrote: > >e 0x20000000 > KDB: debugger backends: ddb > KDB: current backend: ddb > Copyright (c) 1992-2006 The FreeBSD Project. > Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 > The Regents of the University of California. All rights reserved. > FreeBSD 7.0-CURRENT #41: Fri Aug 25 11:29:00 CEST 2006 > ticso@cicely7.cicely.de:/FreeBSD-arm-src/src/sys/arm/compile/BWCT > CPU: ARM920T rev 0 (ARM9TDMI core) > DC enabled IC enabled WB enabled LABT > 16KB/32B 64-way Instruction cache > 16KB/32B 64-way write-back-locking-A Data cache > real memory = 67108864 (64 MB) > avail memory = 62603264 (59 MB) > CONFIG: invalid hint 'hint.ohci.at=apb' > CONFIG: invalid hint 'hint.ohci.maddr=0x00300000' > atmelarm0: on motherboard > at91_st0: mem 0xfffffd00-0xfffffdff irq 1 on atmelarm0 > at91_st0: watchdog registered, timeout intervall max. 64 sec > at91_pio0: mem 0xfffff400-0xfffff5ff irq 1 on atmelarm0 > at91_pio0: ABSR: 0x60 OSR: 0 PSR:0x3f380010 ODSR: 0 > at91_pio0: [FAST] > at91_pio1: mem 0xfffff600-0xfffff7ff irq 1 on atmelarm0 > at91_pio1: ABSR: 0xff300 OSR: 0 PSR:0x3fc00cff ODSR: 0 > at91_pio1: [FAST] > at91_pio2: mem 0xfffff800-0xfffff9ff irq 1 on atmelarm0 > at91_pio2: ABSR: 0 OSR: 0x400 PSR:0xc47f ODSR: 0 > at91_pio2: [FAST] > at91_pio3: mem 0xfffffa00-0xfffffbff irq 1 on atmelarm0 > at91_pio3: ABSR: 0 OSR: 0 PSR:0xfffffff ODSR: 0 > at91_pio3: [FAST] > at91_pmc0: mem 0xfffffc00-0xfffffcff irq 1 on atmelarm0 > at91_pmc0: main clock: 10000000 Hz PLLA: 112 MHz CPU: 112 MHz main 37 MHz > at91_rtc0: mem 0xfffffe00-0xfffffeff irq 1 on atmelarm0 > at91_rtc0: [FAST] > ate0: mem 0xfffbc000-0xfffbffff irq 24 on atmelarm0 > miibus0: on ate0 > rlswitch0: on miibus0 > rlswitch0: 100baseTX-FDX > rlswitch1: on miibus0 > rlswitch1: ignoring this PHY, non-zero instance > device_attach: rlswitch1 attach returned 6 > rlswitch2: on miibus0 > rlswitch2: ignoring this PHY, non-zero instance > device_attach: rlswitch2 attach returned 6 > rlswitch3: on miibus0 > rlswitch3: ignoring this PHY, non-zero instance > device_attach: rlswitch3 attach returned 6 > rlswitch4: on miibus0 > rlswitch4: ignoring this PHY, non-zero instance > device_attach: rlswitch4 attach returned 6 > rlswitch5: on miibus0 > rlswitch5: ignoring this PHY, non-zero instance > device_attach: rlswitch5 attach returned 6 > ate0: Ethernet address: 00:0e:42:02:00:1f > uart0: mem 0xfffff200-0xfffff3ff irq 1 on atmelarm0 > uart0: [FAST]?uart0: console (115200,n,8,1) > uart1: mem 0xfffc0000-0xfffc3fff irq 6 on atmelarm0 > uart1: [FAST] > uart2: mem 0xfffc4000-0xfffc7fff irq 7 on atmelarm0 > uart2: [FAST] > uart3: mem 0xfffc8000-0xfffcbfff irq 8 on atmelarm0 > uart3: [FAST] > uart4: mem 0xfffcc000-0xfffcffff irq 9 on atmelarm0 > uart4: [FAST] > Cannot get 100 Hz clock; using 128Hz > at91_st0: [FAST] > Timecounter "AT91RM9200 timer" frequency 32768 Hz quality 1000 > Timecounters tick every 7.812 msec > Sending DHCP Discover packet from interface ate0 (00:0e:42:02:00:1f) > Received DHCP Offer packet on ate0 from 10.1.1.7 (accepted) (no root path) > Sending DHCP Request packet from interface ate0 (00:0e:42:02:00:1f) > Received DHCP Ack packet on ate0 from 10.1.1.7 (accepted) (got root path) > ate0 at 10.1.1.4 server 10.1.1.7 server name cicely11.cicely.de boot file pxeboot > subnet mask 255.255.255.0 router 10.1.1.8 rootfs 10.1.1.8:/var/d6/arm-boot/ > Adjusted interface ate0 > Trying to mount root from nfs: > NFS ROOT: 10.1.1.8:/var/d6/arm-boot/ > Interface ate0 IP-Address 10.1.1.4 Broadcast 10.1.1.255 > Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock > sched_switch() at sched_switch+0x10 > scp=0xc0060e70 rlv=0xc0052600 (mi_switch+0x220) > rsp=0xc52998b4 rfp=0xc52998e8 > r7=0xc078e700 r6=0xc0794068 > r5=0xc01ca3c8 r4=0x00000000 > mi_switch() at mi_switch+0x10 > scp=0xc00523f0 rlv=0xc0072760 (sleepq_set_timeout+0x27c) > rsp=0xc52998ec rfp=0xc5299900 > r10=0x73657000 r9=0x00000001 > r8=0xc5299a18 r7=0xc078e700 r6=0xc0794068 r5=0xc01ca3c8 > r4=0xc078e700 > sleepq_set_timeout() at sleepq_set_timeout+0x204 > scp=0xc00726e8 rlv=0xc0072870 (sleepq_wait+0x30) > rsp=0xc5299904 rfp=0xc5299918 > r4=0xc0794068 > sleepq_wait() at sleepq_wait+0x10 > scp=0xc0072850 rlv=0xc0024a24 (cv_wait_unlock+0xe4) > rsp=0xc529991c rfp=0xc5299938 > r4=0x00000000 > cv_wait_unlock() at cv_wait_unlock+0x10 > scp=0xc0024950 rlv=0xc0024920 (cv_wait+0x34) > rsp=0xc529993c rfp=0xc5299950 > r7=0xc078e700 r6=0xc0794000 > r5=0xc01ca3c8 r4=0x00000000 > cv_wait() at cv_wait+0x10 > scp=0xc00248fc rlv=0xc0051b34 (_sx_xlock+0x4c) > rsp=0xc5299954 rfp=0xc5299968 > r5=0x00000001 r4=0xc0794044 > _sx_xlock() at _sx_xlock+0x10 > scp=0xc0051af8 rlv=0xc013c990 (_vm_map_lock_read+0x40) > rsp=0xc529996c rfp=0xc5299978 > r4=0x00000001 > _vm_map_lock_read() at _vm_map_lock_read+0x10 > scp=0xc013c960 rlv=0xc0140540 (vm_map_lookup+0x3c) > rsp=0xc529997c rfp=0xc52999a8 > vm_map_lookup() at vm_map_lookup+0x10 > scp=0xc0140514 rlv=0xc01387b4 (vm_fault+0xb8) > rsp=0xc52999ac rfp=0xc5299a90 > r10=0xc5299ef8 r9=0xc5299b34 > r8=0x00000000 r7=0xc078e700 r6=0x73657000 r5=0x00000001 > r4=0xc52999c4 > vm_fault() at vm_fault+0x10 > scp=0xc013870c rlv=0xc015d1f0 (data_abort_handler+0x3b4) > rsp=0xc5299a94 rfp=0xc5299b30 > r10=0xc5299ef8 r9=0xc5299b34 > r8=0x00000000 r7=0xc078e700 r6=0x73657000 r5=0x00000000 > r4=0xc07ba728 > data_abort_handler() at data_abort_handler+0x10 > scp=0xc015ce4c rlv=0xc0152bb0 (address_exception_entry+0x50) > rsp=0xc5299b34 rfp=0xc5299ba4 > r10=0xc01e079c r9=0xc078e700 > r8=0x00100000 r7=0xc07cf000 r6=0xc07ce200 r5=0xe0000004 > r4=0x73657264 > intr_event_schedule_thread() at intr_event_schedule_thread+0x10 > scp=0xc0037b20 rlv=0xc0037d1c (swi_sched+0x38) > rsp=0xc5299ba8 rfp=0xc5299bb4 > r5=0xc07cf000 r4=0xc5299bc0 Here, something is deadly wrong. You get a page fault while scheduling the interrupt. Most likely something writes where it shouldn't and corrupts the ithread structures, or you're mixing INTR_FAST and non-INTR_FAST drivers, but reading at your dmesg it doesn't seem so. Can you reproduce it, or does it just happen randomly ? Olivier From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 12:13:55 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 895C016A4E0 for ; Fri, 25 Aug 2006 12:13:55 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id 72EF043D45 for ; Fri, 25 Aug 2006 12:13:54 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7PCDpoC014427; Fri, 25 Aug 2006 14:13:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7PCDgj9054642 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Aug 2006 14:13:42 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7PCDf6S055279; Fri, 25 Aug 2006 14:13:41 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7PCDfvS055278; Fri, 25 Aug 2006 14:13:41 +0200 (CEST) (envelope-from ticso) Date: Fri, 25 Aug 2006 14:13:41 +0200 From: Bernd Walter To: Olivier Houchard Message-ID: <20060825121341.GG49178@cicely12.cicely.de> References: <20060825093816.GD49178@cicely12.cicely.de> <20060825111209.GA59325@ci0.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825111209.GA59325@ci0.org> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter Subject: Re: Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 12:13:55 -0000 On Fri, Aug 25, 2006 at 01:12:10PM +0200, Olivier Houchard wrote: > > Here, something is deadly wrong. You get a page fault while scheduling the > interrupt. Most likely something writes where it shouldn't and corrupts the > ithread structures, or you're mixing INTR_FAST and non-INTR_FAST drivers, but > reading at your dmesg it doesn't seem so. > Can you reproduce it, or does it just happen randomly ? It is reproduceable. And contrary to the original boot problem I get excactly the same panic when turning off one SDRAM chip. But the panic is gone if I use a kernel without my rlswitch driver. Now ukphy gets connected to all 6 PHY mappings. Can't imagine at which place rlswitch could have corrupted memory, but maybe it happens because of refusing multiple attachment. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 13:52:05 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 07F5316A4DE for ; Fri, 25 Aug 2006 13:52:05 +0000 (UTC) (envelope-from ticso@cicely12.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.FreeBSD.org (Postfix) with ESMTP id A0EC743D80 for ; Fri, 25 Aug 2006 13:51:54 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de ([10.1.1.7]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id k7PDppCu015904; Fri, 25 Aug 2006 15:51:51 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [10.1.1.14]) by cicely5.cicely.de (8.13.4/8.13.4) with ESMTP id k7PDpfZf055728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 25 Aug 2006 15:51:42 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.13.4/8.13.3) with ESMTP id k7PDpf7Z055542; Fri, 25 Aug 2006 15:51:41 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.13.4/8.13.3/Submit) id k7PDpfwm055541; Fri, 25 Aug 2006 15:51:41 +0200 (CEST) (envelope-from ticso) Date: Fri, 25 Aug 2006 15:51:41 +0200 From: Bernd Walter To: Olivier Houchard Message-ID: <20060825135140.GI49178@cicely12.cicely.de> References: <20060825093816.GD49178@cicely12.cicely.de> <20060825111209.GA59325@ci0.org> <20060825121341.GG49178@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825121341.GG49178@cicely12.cicely.de> X-Operating-System: FreeBSD cicely12.cicely.de 5.4-STABLE alpha User-Agent: Mutt/1.5.9i X-Spam-Status: No, score=-4.4 required=5.0 autolearn=ham version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on cicely12.cicely.de Cc: freebsd-arm@freebsd.org, Bernd Walter Subject: Re: Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 13:52:05 -0000 On Fri, Aug 25, 2006 at 02:13:41PM +0200, Bernd Walter wrote: > On Fri, Aug 25, 2006 at 01:12:10PM +0200, Olivier Houchard wrote: > > > > Here, something is deadly wrong. You get a page fault while scheduling the > > interrupt. Most likely something writes where it shouldn't and corrupts the > > ithread structures, or you're mixing INTR_FAST and non-INTR_FAST drivers, but > > reading at your dmesg it doesn't seem so. > > Can you reproduce it, or does it just happen randomly ? > > It is reproduceable. > And contrary to the original boot problem I get excactly the same panic > when turning off one SDRAM chip. > But the panic is gone if I use a kernel without my rlswitch driver. > Now ukphy gets connected to all 6 PHY mappings. > Can't imagine at which place rlswitch could have corrupted memory, but > maybe it happens because of refusing multiple attachment. If I don't refuse multiple connects everthing is fine. So there is a problem elsewhere. -- B.Walter http://www.bwct.de http://www.fizon.de bernd@bwct.de info@bwct.de support@fizon.de From owner-freebsd-arm@FreeBSD.ORG Fri Aug 25 14:23:17 2006 Return-Path: X-Original-To: freebsd-arm@freebsd.org Delivered-To: freebsd-arm@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 589BE16A4DD for ; Fri, 25 Aug 2006 14:23:17 +0000 (UTC) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (cognet.ci0.org [80.65.224.102]) by mx1.FreeBSD.org (Postfix) with ESMTP id 264F543D8B for ; Fri, 25 Aug 2006 14:23:09 +0000 (GMT) (envelope-from mlfbsd@dong.ci0.org) Received: from dong.ci0.org (localhost.ci0.org [127.0.0.1]) by dong.ci0.org (8.13.6/8.13.4) with ESMTP id k7PEXvLW060908; Fri, 25 Aug 2006 16:33:57 +0200 (CEST) (envelope-from mlfbsd@dong.ci0.org) Received: (from mlfbsd@localhost) by dong.ci0.org (8.13.7/8.13.4/Submit) id k7PEXvVl060907; Fri, 25 Aug 2006 16:33:57 +0200 (CEST) (envelope-from mlfbsd) Date: Fri, 25 Aug 2006 16:33:56 +0200 From: Olivier Houchard To: ticso@cicely.de Message-ID: <20060825143356.GA60471@ci0.org> References: <20060825093816.GD49178@cicely12.cicely.de> <20060825111209.GA59325@ci0.org> <20060825121341.GG49178@cicely12.cicely.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060825121341.GG49178@cicely12.cicely.de> User-Agent: Mutt/1.4.1i Cc: freebsd-arm@freebsd.org Subject: Re: Sleeping thread (tid 100017, pid 27) owns a non-sleepable lock X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Aug 2006 14:23:17 -0000 On Fri, Aug 25, 2006 at 02:13:41PM +0200, Bernd Walter wrote: > On Fri, Aug 25, 2006 at 01:12:10PM +0200, Olivier Houchard wrote: > > > > Here, something is deadly wrong. You get a page fault while scheduling the > > interrupt. Most likely something writes where it shouldn't and corrupts the > > ithread structures, or you're mixing INTR_FAST and non-INTR_FAST drivers, but > > reading at your dmesg it doesn't seem so. > > Can you reproduce it, or does it just happen randomly ? > > It is reproduceable. > And contrary to the original boot problem I get excactly the same panic > when turning off one SDRAM chip. > But the panic is gone if I use a kernel without my rlswitch driver. > Now ukphy gets connected to all 6 PHY mappings. > Can't imagine at which place rlswitch could have corrupted memory, but > maybe it happens because of refusing multiple attachment. No I don't think your rlswitch driver is responsible for your problem. I remember we had a a similar problem when trying to use iic. We blame iic at that time, but now I think we have something somewhere code which writes at random location, and it just happen to be noticable when the iic or your rlswitch driver are in the kernel. Or maybe it malloc() some chunk of code, and write before/after the allocated chunk. That's just a guess of course. I thought memguard could help us on this one, but it doesn't seem so. That's really an hard to track problem I fear. Olivier