From owner-freebsd-mobile Wed Dec 1 12:29:27 1999 Delivered-To: freebsd-mobile@freebsd.org Received: from ns.mt.sri.com (ns.mt.sri.com [206.127.79.91]) by hub.freebsd.org (Postfix) with ESMTP id 3E25B1511D; Wed, 1 Dec 1999 12:29:15 -0800 (PST) (envelope-from nate@mt.sri.com) Received: from mt.sri.com (rocky.mt.sri.com [206.127.76.100]) by ns.mt.sri.com (8.9.3/8.9.3) with SMTP id NAA05790; Wed, 1 Dec 1999 13:28:13 -0700 (MST) (envelope-from nate@rocky.mt.sri.com) Received: by mt.sri.com (SMI-8.6/SMI-SVR4) id NAA01870; Wed, 1 Dec 1999 13:28:12 -0700 Date: Wed, 1 Dec 1999 13:28:12 -0700 Message-Id: <199912012028.NAA01870@mt.sri.com> From: Nate Williams MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Mike Smith Cc: Warner Losh , mobile@FreeBSD.ORG Subject: Re: cvs commit: src/sys/pccard pccard.c src/sys/isa sio.c src/sys/dev/ed if_ed_pccard.c src/sys/dev/ep if_ep_pccard.c In-Reply-To: <199912012010.MAA00653@mass.cdrom.com> References: <199912011600.JAA02186@harmony.village.org> <199912012010.MAA00653@mass.cdrom.com> X-Mailer: VM 6.34 under 19.16 "Lille" XEmacs Lucid Reply-To: nate@mt.sri.com (Nate Williams) Sender: owner-freebsd-mobile@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org > > Spin limiters in the ISRs of drivers that support detach. Doing > > thinks like sio does with sc->gone (w/o the softc) and other > > techniques are going to be what is required to fix this. > > Again, soft state is not adequate. sc->gone can only be set if something > preempts the spinning interrupt handler. Correct. > In the old old code this only > worked because the pcic interrupt handler wasn't masked, so the detach > routine could preempt the device interrupt handler and set the gone flag. Do you have a better solution than this? This was the 'most' correct solution I could come up with. (I'd love to hear about a better solution than this). The only other solution I could envision was one involving re-writing all of the drivers to modify them so they would have timeouts reading hardware (difficult and time consuming), but this wouldn't work in newbus due to softc going away. :( Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-mobile" in the body of the message