From owner-freebsd-current@FreeBSD.ORG Wed Oct 22 19:36:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id BA22916A4B3 for ; Wed, 22 Oct 2003 19:36:53 -0700 (PDT) Received: from sage.ts.co.nz (sage.tasman.net [202.49.92.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2788C43F75 for ; Wed, 22 Oct 2003 19:36:52 -0700 (PDT) (envelope-from marcos@thepacific.net) Received: (from root@localhost) by sage.ts.co.nz (8.12.10/8.11.3) id h9N2uFdv014428 for freebsd-current@freebsd.org; Thu, 23 Oct 2003 15:56:16 +1300 Received: from thepacific.net ([202.49.92.224]) by sage.ts.co.nz (8.12.10/8.11.3) with ESMTP id h9N2tRbT014002 for ; Thu, 23 Oct 2003 15:55:31 +1300 Message-ID: <3F973EBE.4020805@thepacific.net> Date: Thu, 23 Oct 2003 15:36:46 +1300 From: Marcos Biscaysaqu Organization: ThePacific.net User-Agent: Mozilla/5.0 (X11; U; Linux i386; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-current@freebsd.org References: <3F95CB0A.3030406@thepacific.net> <200310211746.01091.sam@errno.com> <3F95E20D.1040701@thepacific.net> <200310211902.29183.sam@errno.com> In-Reply-To: <200310211902.29183.sam@errno.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.1 Subject: Ath0 Crash the PC X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.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: Thu, 23 Oct 2003 02:36:53 -0000 Hi There. With the debug on in hte kernel "ZABU" I found this when my Atheros card crash: lock order reversal 1st 0xc36c1e84 rl0 (network driver) @ pci/if_rl.c:1485 2nd 0xc0766280 bridge (bridge) @ net/bridge.c:777 Stack backtrace: lock order reversal 1st 0xc0768540 ifnet (ifnet) @ net/bridge.c:424 2nd 0xc379307c radix node head (radix node head) @ net/route.c:544 Stack backtrace: looks like is a Bridge problem, I have the option BRIDGE in my kernel may be I need try another way to make the bridge work? any idea. thanks Sam Leffler wrote: >On Tuesday 21 October 2003 06:49 pm, you wrote: > > >>I using a pentium III 350Mghz 256 MB RAM , uniprocessor, PCI Atheros >>Card Netgear WAG311 a/b/g atheros chipset AR5212, same thing with a >>DLINK PCI AR5212, the last update of my source was yesterday, anyway I >>have the same problem with older versions. >> I trying now with a diferent PC to see what happend. >>I hope this infromation help, pls tell me if you need more information >> >> > >Yes the information (especially dmesg) helps. > >Build your kernel with DDB, INVARIANTS, and WITNESS and -g. When you get a >panic collect a stack trace from the ddb prompt and, if possible, a crash >dump. Also, if you have an 11a AP try using this machine as a station and >load the network with tools like netperf and see if you crash.. Also, if you >have different NIC's, try replacing the RealTek with something else. I >typically use fxp or em devices with an Intel Pro/1000 my favorite NIC. > >Finally, I notice you have ipfw+divert configured. I don't know if it is >being used but if so remove it. In general try to reduce the system >configuration to the minimum you need to run tests. > >Attached is a typicaly kernel configuration I use for debugging. I'm >providing it solely so you can see how to enable the stuff above. > > Sam > > >------------------------------------------------------------------------ > >machine i386 >cpu I686_CPU >ident ZABU >maxusers 0 > >#To statically compile in device wiring instead of /boot/device.hints >#hints "GENERIC.hints" #Default places to look for devices. > >makeoptions DEBUG=-g #Build kernel with gdb(1) debug symbols > >options SCHED_4BSD #4BSD scheduler >options INET #InterNETworking >options INET6 #IPv6 communications protocols >options FFS #Berkeley Fast Filesystem >options SOFTUPDATES #Enable FFS soft updates support >options UFS_DIRHASH #Improve performance on big directories >options NFSCLIENT #Network Filesystem Client >options NFSSERVER #Network Filesystem Server >options MSDOSFS #MSDOS Filesystem >options CD9660 #ISO 9660 Filesystem >options PROCFS #Process filesystem (requires PSEUDOFS) >options PSEUDOFS #Pseudo-filesystem framework >options COMPAT_43 #Compatible with BSD 4.3 [KEEP THIS!] >options COMPAT_FREEBSD4 #Compatible with FreeBSD4 >options KTRACE #ktrace(1) support >options SYSVSHM #SYSV-style shared memory >options SYSVMSG #SYSV-style message queues >options SYSVSEM #SYSV-style semaphores >options _KPOSIX_PRIORITY_SCHEDULING #Posix P1003_1B real-time extensions > ># Debugging for use in -current >options DDB #Enable the kernel debugger >options INVARIANTS #Enable calls of extra sanity checking >options INVARIANT_SUPPORT #Extra sanity checks of internal structures, required by INVARIANTS >options WITNESS #Enable checks to detect deadlocks and cycles >options WITNESS_SKIPSPIN #Don't run witness on spinlocks for speed > >options COMPAT_LINUX > >device isa >device eisa >device pci > ># Floppy drives >device fdc > ># ATA and ATAPI devices >device ata >device atadisk # ATA disk drives >device atapicd # ATAPI CDROM drives >options ATA_STATIC_ID #Static device numbering > ># atkbdc0 controls both the keyboard and the PS/2 mouse >device atkbdc # AT keyboard controller >device atkbd # AT keyboard >device psm # PS/2 mouse >device vga # VGA video card driver >device agp # support several AGP chipsets >device sc # syscons is the default console driver > >device npx # floating point support >device acpi > ># PCCARD (PCMCIA) support ># Pcmcia and cardbus bridge support >device cbb # cardbus (yenta) bridge >#device pcic # ExCA ISA and PCI bridges >device pccard # PC Card (16-bit) bus >device cardbus # CardBus (32-bit) bus > ># Serial (COM) ports >device sio # 8250, 16[45]50 based serial ports > ># Parallel port >device ppc >device ppbus # Parallel port bus (required) > >device miibus # MII bus support >device fxp # Intel EtherExpress PRO/100B (82557, 82558) > >device wlan # 802.11 support >device wi # WaveLAN/Intersil/Symbol 802.11 wireless NICs. >device ath >device ath_hal > ># Pseudo devices - the number indicates how many units to allocate. >device random # Entropy device >device loop # Network loopback >device ether # Ethernet support >device pty # Pseudo-ttys (telnet etc) > ># The `bpf' device enables the Berkeley Packet Filter. ># Be aware of the administrative consequences of enabling this! >device bpf # Berkeley packet filter > ># USB support >device uhci # UHCI PCI->USB interface >device ohci # OHCI PCI->USB interface >device usb # USB Bus (required) >#device umass # Disks/Mass storage - Requires scbus and da >device ums # Mouse > > -- Marcos Biscaysaqu Systems Administrator ThePacific.Net Ltd.