> On Tue, Mar 26, 2002 at 07:01:18PM +0000, Pavel Machek wrote:
> > > IDE isn't really meant to allow hot swap but it can be done.
> > >
> > > As Jeremy says, electrically it is difficult to do it with a
> > > master+slave on one cable because you really must power down
> > > the interface (cable) and that would mean downing both devices.
> >
> > But that's not a problem most times, right? Downing device on same
> > channel for 10 second it takes to plug it in should not be a problem.
> > Pavel
>
> Sure, just be sure you POWER down the device(s) and the
> interface. IDE is no more designed to be hot-swap than the
> ISA buss. It was originally a buss level emulation of a
> specific Western Digital controller for ST506 drives. Talk
> to an EE familiar with the spec and implementations and make
> sure that your card can either power down or go buffered
> tristate. Smoking can be hazardous to your computer's
> health.
Hi, here your EE :)
IDE indeed never was ment to be hot pluggable. With SCSI, you can tell a
hard disk to shut down and disconnect from the bus. With IDE, your
controller has to shut down completely. You can tell your disk to
spin down, but in any case, your disk will remain powered. In shutdown
mode, your disk will not consume much power anymore, but the electronics
are NOT in a "feel free to disconnect now" state. The disk is still
listening to the bus.
This means that unplugging one device can have undetermined results for
both that device and the complementary device on the bus. As an EE, I must
admit the chances are VERY, VERY odd that it will actually affect data,
but personally, I'm one of those guys who say: In theory, it's possible,
so this is a "don't".
There are controllers who say they can shut down completely, but I have
never seen an IDE disk which can do it. The fact you can bring any disk
back alive after a sleep command (part of the latest ATA standards), means
the disk isn't suitable for hot-swapping.
If you really want to build in IDE hot swap support, I demand it comes
with a warning: Enabling this option will probably destroy your harddisks
and your chipset. Feel free to continue, but don't blame us.
> Disclaimer: I am not an Electronics Engineer, nor an expert
> on IDE/ATA/ATAPI yadda, yadda, yadda. I wrote because this
> thread, while useful for the future was on a tangent that
> wasn't telling John Summerfield how he might actually do
> what he wants, today.
Disclaimer: I am an EE, well known with IDE/ATA. I wrote this because my
opinion is Linus should block any attempts of hot pluggable IDE devices,
for Linux will be the only OS that supports it and destroys your harddisks
thanks to the fact it supports it (If other OSes support it, please let
me know, I'll guarantee you there are lots of warnings involved). Hot
plugging might work, when you are lucky. Luck is not something that should
be the base of a decent OS. If hot IDE plugging makes its way in, don't
blame me...
Jos
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/