From owner-freebsd-current@FreeBSD.ORG Tue Mar 27 01:59:46 2007 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0214D16A400; Tue, 27 Mar 2007 01:59:46 +0000 (UTC) (envelope-from tom@uffner.com) Received: from eris.uffner.com (eris.uffner.com [207.245.121.212]) by mx1.freebsd.org (Postfix) with ESMTP id 9CD6E13C45E; Tue, 27 Mar 2007 01:59:45 +0000 (UTC) (envelope-from tom@uffner.com) Received: from xiombarg.uffner.com (static-71-162-143-94.phlapa.fios.verizon.net [71.162.143.94]) by eris.uffner.com (8.13.3/8.13.3) with ESMTP id l2R1xhTF098384; Mon, 26 Mar 2007 21:59:44 -0400 (EDT) (envelope-from tom@uffner.com) Message-ID: <46087A8F.9000606@uffner.com> Date: Mon, 26 Mar 2007 21:59:43 -0400 From: Tom Uffner User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070303 SeaMonkey/1.1.1 MIME-Version: 1.0 To: "Bruce M. Simpson" References: <4607893B.3080409@uffner.com> <4607F3EA.30902@FreeBSD.org> <46083AE6.2020600@uffner.com> <46086850.1060505@FreeBSD.org> In-Reply-To: <46086850.1060505@FreeBSD.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.0.2 (eris.uffner.com [192.168.1.212]); Mon, 26 Mar 2007 21:59:44 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.6/2931/Mon Mar 26 03:43:40 2007 on eris.uffner.com X-Virus-Status: Clean Cc: freebsd-current@FreeBSD.org Subject: Re: current panics when Netgear WG511T ejected (and other NICs too) X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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: Tue, 27 Mar 2007 01:59:46 -0000 Bruce M. Simpson wrote: > I believe this new patch should fix your panic. Because the hardware is > being ejected, the netinet part of the stack won't see the detach first, > but net will, and this is where the panic is happening. thank you very much. that appears to have fixed it for the Netgear card, and presumably any other well-behaved cardbus NIC that had the same problem. my Linksys Etherfast card which previously had the same panic, no longer panics on eject, but it still does some weird stuff when inserted & ejected: pccard0: CIS version PCCARD 2.0 or 2.1 pccard0: CIS info: Linksys, EtherFast 10/100 PC Card (PCMPC100), pccard0: Manufacturer code 0x149, product 0xc1ab pccard0: function 0: network adapter, ccr addr 400 mask 1 pccard0: function 0, config table entry 16: I/O card; irq mask befc; iomask 5, iospace 0-1f; mwait_required io16 irqlevel pccard0: function 0, config table entry 1: I/O card; irq mask befc; iomask a, iospace 300-31f; mwait_required io16 irqlevel pccard0: function 0, config table entry 2: I/O card; irq mask befc; iomask a, iospace 320-33f; mwait_required io16 irqlevel pccard0: function 0, config table entry 3: I/O card; irq mask befc; iomask a, iospace 340-35f; mwait_required io16 irqlevel pccard0: function 0, config table entry 4: I/O card; irq mask befc; iomask a, iospace 380-39f; mwait_required io16 irqlevel pccard0: function 0, config table entry 5: I/O card; irq mask befc; iomask a, iospace 200-21f; mwait_required io16 irqlevel pccard0: function 0, config table entry 6: I/O card; irq mask befc; iomask a, iospace 220-23f; mwait_required io16 irqlevel pccard0: function 0, config table entry 7: I/O card; irq mask befc; iomask a, iospace 240-25f; mwait_required io16 irqlevel ed0: at port 0x100-0x11f irq 9 function 0 config 16 on pccard0 ed0: Trying DL100xx probing ed0: CIR is 5 ed0: [MPSAFE] ed0: [ITHREAD] ed0: using obsoleted if_watchdog interface ed0: bpf attached ed0: Ethernet address: 00:e0:98:70:10:ee ed0: type DL10019 (16 bit) pccard0: Card already inserted. pccard0: CIS version PCCARD 2.0 or 2.1 pccard0: CIS info: Linksys, EtherFast 10/100 PC Card (PCMPC100), pccard0: Manufacturer code 0x149, product 0xc1ab pccard0: function 0: network adapter, ccr addr 400 mask 1 pccard0: function 0, config table entry 16: I/O card; irq mask befc; iomask 5, iospace 0-1f; mwait_required io16 irqlevel pccard0: function 0, config table entry 1: I/O card; irq mask befc; iomask a, iospace 300-31f; mwait_required io16 irqlevel pccard0: function 0, config table entry 2: I/O card; irq mask befc; iomask a, iospace 320-33f; mwait_required io16 irqlevel pccard0: function 0, config table entry 3: I/O card; irq mask befc; iomask a, iospace 340-35f; mwait_required io16 irqlevel pccard0: function 0, config table entry 4: I/O card; irq mask befc; iomask a, iospace 380-39f; mwait_required io16 irqlevel pccard0: function 0, config table entry 5: I/O card; irq mask befc; iomask a, iospace 200-21f; mwait_required io16 irqlevel pccard0: function 0, config table entry 6: I/O card; irq mask befc; iomask a, iospace 220-23f; mwait_required io16 irqlevel pccard0: function 0, config table entry 7: I/O card; irq mask befc; iomask a, iospace 240-25f; mwait_required io16 irqlevel ed1: at port 0x120-0x13f irq 9 function 0 config 16 on pccard0 ed1: Trying DL100xx probing ed1: CIR is 5 ed1: [MPSAFE] ed1: [ITHREAD] ed1: using obsoleted if_watchdog interface ed1: bpf attached ed1: Ethernet address: 00:e0:98:70:10:ee ed1: type DL10019 (16 bit) ed0: device timeout ed0: device timeout ed1: detached cbb0: Danger Will Robinson: Resource left allocated! This is a bug... (rid=0, type=3, addr=88000000) cbb0: Danger Will Robinson: Resource left allocated! This is a bug... (rid=0, type=1, addr=9) cbb0: Danger Will Robinson: Resource left allocated! This is a bug... (rid=0, type=4, addr=100) ed0: device timeout ed0: device timeout ed0: device timeout ed0: device timeout ed0: device timeout