From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Brownell Date: Thu, 15 Jan 2004 00:36:29 +0000 Subject: Re: unclean yanking out of device? Message-Id: <4005E08D.6010002@pacbell.net> List-Id: References: <20040114160002.G57254@forte.austin.ibm.com> In-Reply-To: <20040114160002.G57254@forte.austin.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org >>>That pci controller needs to tell the OS that it is going to shut down >>>that pci slot. Otherwise that pci controller violates the PCI spec. >> >>I was only half-joking about the cosmic ray. The cosmic ray violated >>the PCI spec. boo hoo. Now what? Tell it to go back to the supernova >>it came from? > > > No, tell the driver that it is going to be shut down. The driver will > do so, and then you can safely yank it out. That's what all pci hotplug > controller drivers do, why be different? Actually there's a good argument that every PCI driver for hardware that can be packaged onto CardBus _should_ handle those "unclean" shutdown modes ... and as Linus has observed, it's awfully convenient that most such cases also cause reads from those devices to return all-ones! The electrical details are of course a different issue. Cardbus and the various other kinds of PCI hotplug have different answers, so there's no universal guarantee that drivers will get notified first. - Dave ------------------------------------------------------- This SF.net email is sponsored by: Perforce Software. Perforce is the Fast Software Configuration Management System offering advanced branching capabilities and atomic changes on 50+ platforms. Free Eval! http://www.perforce.com/perforce/loadprog.html _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel