From owner-freebsd-current Tue Nov 30 12:11:47 1999 Delivered-To: freebsd-current@freebsd.org Received: from ns.skylink.it (ns.skylink.it [194.177.113.1]) by hub.freebsd.org (Postfix) with ESMTP id 9D55F14CB8; Tue, 30 Nov 1999 12:11:38 -0800 (PST) (envelope-from hibma@skylink.it) Received: from skylink.it (va-167.skylink.it [194.185.55.167]) by ns.skylink.it (8.9.1/8.8.8) with ESMTP id WAA12578; Tue, 30 Nov 1999 22:14:29 +0100 Received: from localhost (localhost [127.0.0.1]) by skylink.it (8.9.3/8.9.3) with ESMTP id UAA01238; Tue, 30 Nov 1999 20:09:42 +0100 (CET) (envelope-from hibma@skylink.it) Date: Tue, 30 Nov 1999 20:09:41 +0100 (CET) From: Nick Hibma X-Sender: n_hibma@henny.jrc.it Reply-To: Nick Hibma To: Mike Smith Cc: Warner Losh , FreeBSD CURRENT Mailing List Subject: Re: your mail In-Reply-To: <199911301740.JAA02860@mass.cdrom.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG With freeze I meant, freeze. Rock solid. Nothing to be done. Stepping through the code the laptop freezes in the second putb in pcic_disable. As in stepping the assembler to that outb does never return the prompt. Nick > >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 > > -- 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