From owner-freebsd-sparc64@FreeBSD.ORG Mon Sep 29 11:06:58 2008 Return-Path: Delivered-To: freebsd-sparc64@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 17B3010656AE for ; Mon, 29 Sep 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 0686D8FC0A for ; Mon, 29 Sep 2008 11:06:58 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.2/8.14.2) with ESMTP id m8TB6vvN040944 for ; Mon, 29 Sep 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.2/8.14.1/Submit) id m8TB6vdK040940 for freebsd-sparc64@FreeBSD.org; Mon, 29 Sep 2008 11:06:57 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 29 Sep 2008 11:06:57 GMT Message-Id: <200809291106.m8TB6vdK040940@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-sparc64@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-sparc64@FreeBSD.org X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Sep 2008 11:06:58 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o sparc/127051 sparc64 [hme] hme interfaces "pause" with the message "device o sparc/119244 sparc64 X11Forwarding to X11 server on sparc crashes Xorg o sparc/119240 sparc64 top has WCPU over 100% on UP system s sparc/119239 sparc64 gdb coredumps on sparc64 o sparc/119017 sparc64 7.0 Beta won't install on U60 o sparc/118932 sparc64 7.0-BETA4/sparc-64 kernel panic in rip_output o sparc/113556 sparc64 panic: trap: memory address not aligned; Rebooting... o sparc/109908 sparc64 apache22 mod_perl issue on sparc64 f sparc/108732 sparc64 ping(8) reports 14 digit time on sparc64 s sparc/107087 sparc64 system is hinged during boot from CD f sparc/106251 sparc64 [libmalloc] malloc fails > for large allocations f sparc/105157 sparc64 No reply to ping on Sparc64 o sparc/105048 sparc64 [trm] trm(4) panics on sparc64 o sparc/104428 sparc64 [nullfs] nullfs panics on E4500 (but not E420) o sparc/95297 sparc64 vt100 term does not work in install o sparc/80890 sparc64 [panic] kmem_malloc(73728): kmem_map too small running o sparc/80410 sparc64 [netgraph] netgraph is causing crash with mpd on sparc o sparc/71729 sparc64 printf in kernel thread causes panic on SPARC 18 problems total. From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 30 00:42:37 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 379F61065690 for ; Tue, 30 Sep 2008 00:42:37 +0000 (UTC) (envelope-from scaron@umich.edu) Received: from heartbreakers.mr.itd.umich.edu (heartbreakers.mr.itd.umich.edu [141.211.93.154]) by mx1.freebsd.org (Postfix) with ESMTP id D7BC68FC2F for ; Tue, 30 Sep 2008 00:42:36 +0000 (UTC) (envelope-from scaron@umich.edu) Received: FROM chipewa.web.itd.umich.edu (chipewa.web.itd.umich.edu [141.211.144.147]) BY heartbreakers.mr.itd.umich.edu ID 48E170A4.CF1AC.18785 ; 29 Sep 2008 20:19:48 -0400 Received: (from www@localhost) by chipewa.web.itd.umich.edu () id m8U0JlF0006423; Mon, 29 Sep 2008 20:19:47 -0400 Received: from arbo-1-core-1.diablonet.net (arbo-1-core-1.diablonet.net [75.144.70.41]) by web.mail.umich.edu (Horde Framework) with HTTP; Mon, 29 Sep 2008 20:19:47 -0400 Message-ID: <20080929201947.86701vp3bs8vcatc@web.mail.umich.edu> Date: Mon, 29 Sep 2008 20:19:47 -0400 From: Sean Thomas Caron To: freebsd-sparc64@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.2) X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1 X-IMP-Server: 141.211.144.229 (chipewa) X-Originating-IP: 75.144.70.41 X-Originating-User: scaron Cc: Subject: Kernel panic in 7.0-RELEASE with fatm driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2008 00:42:37 -0000 Hi folks, I've been running FreeBSD 6.x on a number of Ultrasparc based systems =20 using the Cranor NATM driver with a bunch of Fore PCA-200E cards. It =20 generally worked but as the machines got hit with higher and higher =20 network load I would get kernel panics at fairly random intervals on =20 "sbdrop" and "sbflush". Sometimes I would get two per day, sometimes I =20 wouldn't get any for two weeks. So after a while at this I decided to try 7.0-RELEASE out hoping =20 whatever bug was causing these random kernel panics might have gotten =20 fixed. Test system is Sun Fire v120, 550 MHz, 1 GB RAM, PCA-200e installed in =20 PCI slot. I pruned a bunch of stuff from GENERIC and added the usual Cranor NATM =20 stuff that I was using in 6.x. In particular - # ATM options NATM device atm device fatm device utopia Kernel does have multiprocessing enabled (as GENERIC did) even though =20 it's a uniprocessor machine. I built the new kernel then reboot and it panics immediately after =20 touching the ATM card - fatm0: mem 0x200000-0x3fffff at device 5.0 on pci2 panic: bus_dma_tag_create: parent DMA tag NULL cpuid =3D 0 Uptime: 1s Automatic reboot in 15 seconds - press a key on the console to abort --> Press a key on the console to reboot, --> or switch off the system now. I'm hoping maybe someone has seen this before and has a patch laying =20 around somewhere, or if nothing else, it might get passed along to the =20 fatm maintainer eventually? If anyone wants to see any further information e.g. full kernel =20 configuration file, I will be happy to pass along. I can also procure =20 a backtrace if someone can tell me how to hardcode a dump path into =20 the kernel; I can't find a procedure documented anywhere. Thanks! -Sean From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 30 06:54:12 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id C7E7C106568E for ; Tue, 30 Sep 2008 06:54:12 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 53C628FC13 for ; Tue, 30 Sep 2008 06:54:12 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id m8U6sBVI087789; Tue, 30 Sep 2008 08:54:11 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id m8U6sApK087787; Tue, 30 Sep 2008 08:54:10 +0200 (CEST) (envelope-from marius) Date: Tue, 30 Sep 2008 08:54:10 +0200 From: Marius Strobl To: Sean Thomas Caron Message-ID: <20080930065410.GA87677@alchemy.franken.de> References: <20080929201947.86701vp3bs8vcatc@web.mail.umich.edu> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="+QahgC5+KEYLbs62" Content-Disposition: inline In-Reply-To: <20080929201947.86701vp3bs8vcatc@web.mail.umich.edu> User-Agent: Mutt/1.4.2.3i Cc: freebsd-sparc64@freebsd.org Subject: Re: Kernel panic in 7.0-RELEASE with fatm driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2008 06:54:12 -0000 --+QahgC5+KEYLbs62 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Mon, Sep 29, 2008 at 08:19:47PM -0400, Sean Thomas Caron wrote: > Hi folks, > > I've been running FreeBSD 6.x on a number of Ultrasparc based systems > using the Cranor NATM driver with a bunch of Fore PCA-200E cards. It > generally worked but as the machines got hit with higher and higher > network load I would get kernel panics at fairly random intervals on > "sbdrop" and "sbflush". Sometimes I would get two per day, sometimes I > wouldn't get any for two weeks. > > So after a while at this I decided to try 7.0-RELEASE out hoping > whatever bug was causing these random kernel panics might have gotten > fixed. > > Test system is Sun Fire v120, 550 MHz, 1 GB RAM, PCA-200e installed in > PCI slot. > > I pruned a bunch of stuff from GENERIC and added the usual Cranor NATM > stuff that I was using in 6.x. In particular - > > # ATM > > options NATM > device atm > device fatm > device utopia > > Kernel does have multiprocessing enabled (as GENERIC did) even though > it's a uniprocessor machine. If you're compiling a custom kernel anyway you should leave out options SMP on a UP machine for performance reasons. > > I built the new kernel then reboot and it panics immediately after > touching the ATM card - > > fatm0: mem 0x200000-0x3fffff at device 5.0 on pci2 > panic: bus_dma_tag_create: parent DMA tag NULL > cpuid = 0 > Uptime: 1s > Automatic reboot in 15 seconds - press a key on the console to abort > --> Press a key on the console to reboot, > --> or switch off the system now. > > I'm hoping maybe someone has seen this before and has a patch laying > around somewhere, or if nothing else, it might get passed along to the > fatm maintainer eventually? Please give the attached patch a try. > > If anyone wants to see any further information e.g. full kernel > configuration file, I will be happy to pass along. I can also procure > a backtrace if someone can tell me how to hardcode a dump path into > the kernel; I can't find a procedure documented anywhere. > FYI, you can specifiy the path (defaulting to /var/crash) for the dump via "dumpdir" in /etc/rc.conf. Marius --+QahgC5+KEYLbs62 Content-Type: text/x-diff; charset=us-ascii Content-Disposition: attachment; filename="fatm_bus_get_dma_tag.diff" Index: if_fatm.c =================================================================== --- if_fatm.c (revision 183423) +++ if_fatm.c (working copy) @@ -2880,7 +2880,7 @@ fatm_attach(device_t dev) * restrictions for the controller (and PCI bus) and is never used * to do anything. */ - if (bus_dma_tag_create(NULL, 1, 0, + if (bus_dma_tag_create(bus_get_dma_tag(dev), 1, 0, BUS_SPACE_MAXADDR_32BIT, BUS_SPACE_MAXADDR, NULL, NULL, BUS_SPACE_MAXSIZE_32BIT, MAXDMASEGS, BUS_SPACE_MAXSIZE_32BIT, 0, NULL, NULL, --+QahgC5+KEYLbs62-- From owner-freebsd-sparc64@FreeBSD.ORG Tue Sep 30 16:22:29 2008 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BFB941065698 for ; Tue, 30 Sep 2008 16:22:29 +0000 (UTC) (envelope-from scaron@umich.edu) Received: from arapaho.web.itd.umich.edu (arapaho.web.itd.umich.edu [141.211.144.136]) by mx1.freebsd.org (Postfix) with ESMTP id 6A7CF8FC25 for ; Tue, 30 Sep 2008 16:22:29 +0000 (UTC) (envelope-from scaron@umich.edu) Received: (from www@localhost) by arapaho.web.itd.umich.edu () id m8UGMSZ0023975; Tue, 30 Sep 2008 12:22:28 -0400 Received: from host8-99.sph.umich.edu (host8-99.sph.umich.edu [141.211.8.99]) by web.mail.umich.edu (Horde Framework) with HTTP; Tue, 30 Sep 2008 12:22:28 -0400 Message-ID: <20080930122228.142223bgn8iye9ok@web.mail.umich.edu> Date: Tue, 30 Sep 2008 12:22:28 -0400 From: Sean Thomas Caron To: freebsd-sparc64@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: 7bit User-Agent: Internet Messaging Program (IMP) H3 (4.2) X-Remote-Browser: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9) Gecko/2008052906 Firefox/3.0 X-IMP-Server: 141.211.144.104 (arapaho) X-Originating-IP: 141.211.8.99 X-Originating-User: scaron Cc: Subject: Kernel panic in 7.0-RELEASE with fatm driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 30 Sep 2008 16:22:29 -0000 Hi Marius, I applied the patch that you furnished and rebuilt the kernel, now the system is coming up just fine after probing the ATM card and the interface seems to take an IP and ifconfig up with no problems at all. I'm away from home using ILOM right now to interact with the server but I will actually try hooking it up to my switch and passing some packets through it tonight when I get home to be absolutely sure that it's working -- but this is looking very promising indeed. :) Thanks very much for your efforts! I really appreciate it. -Sean