From owner-freebsd-current Tue Nov 30 9:40:34 1999 Delivered-To: freebsd-current@freebsd.org Received: from mass.cdrom.com (castles515.castles.com [208.214.165.79]) by hub.freebsd.org (Postfix) with ESMTP id 4DD1D14F1A for ; Tue, 30 Nov 1999 09:40:30 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Received: from mass.cdrom.com (localhost [127.0.0.1]) by mass.cdrom.com (8.9.3/8.9.3) with ESMTP id JAA02860; Tue, 30 Nov 1999 09:40:56 -0800 (PST) (envelope-from msmith@mass.cdrom.com) Message-Id: <199911301740.JAA02860@mass.cdrom.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Nick Hibma Cc: Warner Losh , FreeBSD CURRENT Mailing List In-reply-to: Your message of "Tue, 30 Nov 1999 13:02:08 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 30 Nov 1999 09:40:56 -0800 From: Mike Smith Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG From some very brief testing here, the problem is that the card's interrupt handler hasn't yet been disconected. When you power the card down, you get an edge on the interrupt pin, and then the driver interrupt handler spins madly because the card hardware is gone and thus doesn't behave. If you have an ethernet card, try suspending with just it in the slot and then break into DDB; I'll warrant that you end up inside the relevant driver's interrupt handler. If I'm correct, this is just an ordering issue; the driver has to be shut down _before_ the slot, not afterwards. > The system freezes on powering down a PCCARD slot. From memory the > location is putb1 called from pcic_disable. The freeze is easy to > reproduce, just remove the card. When stepping through the code, even > the debugger prompt does not return after the outb for PCIC_POWER on > line 698 of pcic.c. > > This is on CURRENT as of yesterday evening, but other CURRENTs of the > last month have the same problem. I've not been able to find a possible > culprit in recent commits to pcic.c or pccard.c. > > Do you have any hint on how to debug this or what version of pcic.c I > should take to get rid of this problem? > > pcic-pci0: irq 9 at device 19.0 on pci0 > pcic-pci1: irq 9 at device 19.1 on pci0 > ... > pcic: polling, can't alloc 0 > pcic: polling, can't alloc 0 > pcic0: on isa0 > pccard0: on pcic0 > pccard1: on pcic0 > > Thanks for the work being done. > > Nick > -- > hibma@skylink.it > n_hibma@freebsd.org USB project > http://www.etla.net/~n_hibma/ > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message > -- \\ Give a man a fish, and you feed him for a day. \\ Mike Smith \\ Tell him he should learn how to fish himself, \\ msmith@freebsd.org \\ and he'll hate you for a lifetime. \\ msmith@cdrom.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message