From owner-freebsd-arch Mon Jun 24 13:51:15 2002 Delivered-To: freebsd-arch@freebsd.org Received: from rover.village.org (rover.bsdimp.com [204.144.255.66]) by hub.freebsd.org (Postfix) with ESMTP id 55B9C37B49A for ; Mon, 24 Jun 2002 13:50:29 -0700 (PDT) Received: from harmony.village.org (harmony.village.org [10.0.0.6]) by rover.village.org (8.11.3/8.11.3) with ESMTP id g5OKoSY77886; Mon, 24 Jun 2002 14:50:28 -0600 (MDT) (envelope-from imp@village.org) Received: from localhost (warner@rover2.village.org [10.0.0.1]) by harmony.village.org (8.11.6/8.11.6) with ESMTP id g5OKoQG53462; Mon, 24 Jun 2002 14:50:26 -0600 (MDT) (envelope-from imp@village.org) Date: Mon, 24 Jun 2002 14:50:12 -0600 (MDT) Message-Id: <20020624.145012.32175932.imp@village.org> To: phk@critter.freebsd.dk Cc: winter@jurai.net, arch@FreeBSD.ORG Subject: Re: It is time to admit that removable devices exist From: "M. Warner Losh" In-Reply-To: <83073.1024951336@critter.freebsd.dk> References: <20020624163116.J95270-100000@sasami.jurai.net> <83073.1024951336@critter.freebsd.dk> X-Mailer: Mew version 2.1 on Emacs 21.1 / Mule 5.0 (SAKAKI) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-arch@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <83073.1024951336@critter.freebsd.dk> Poul-Henning Kamp writes: : When you eject a pccard, we may get in pccard-socket interrupt : before it disappears but we may also not. Depending on the world+dog : this interrupt me come before, during or after the relevant device : driver enters its interrupt routine. For ISA cards this is definitely true. Either the CSR happens first or the card interrupt, depending on a lot of complex issues (including the bridge generating interrupts in ways that are ill defined at best). For PCI cards, where we have shared interrupts, we already implement an interlock. We could implement one more layer of indirection in the ISA case as well. Still doesn't solve the detach issue (it is currently ambiguous: used for both unload and for device has disappeared), which my proposal solves nicely. Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message