From: "Kari Karhi" <karhi@hotmail.com>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotpluggable ide cd-rom drive?
Date: Tue, 18 Mar 2003 13:17:33 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-104799370509547@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-104790612323451@msgid-missing>
Hi,
so let me try to summarize for my own understanding. Comments are welcome.
1. The mechanism used to probe the hardware for new devices during boot can
not be used later during normal operation of the os. This prevents linux
from running the ide-probe again and updating the device maps. Therefore
there can be no user level commands one could run after plugging in a
hot-pluggable device, that would find the device and add it to the device
maps.
2. The hot-plug mechanism is specific to the system hardware and is not
standardised. This prevents linux from finding out that new hardware has
been added, and automagically adding the hot-plugged devices.
3. It is not possible to guess the device map and to build it from some
static file at boot time (e.g. boot hdc=hotplug fd0=hotplug). This would
allow the device to always be there, but if you try to access it before it
is plugged in, you would get failures and time-outs.
So none of the above mechanisms would work?
Cheers,
Kari
----- Original Message -----
From: "Oliver Neukum" <oliver@neukum.name>
To: "Greg KH" <greg@kroah.com>
Cc: "Kari Karhi" <karhi@hotmail.com>;
<linux-hotplug-devel@lists.sourceforge.net>
Sent: Monday, March 17, 2003 2:44 PM
Subject: Re: hotpluggable ide cd-rom drive?
Am Montag, 17. März 2003 20:09 schrieb Greg KH:
> On Mon, Mar 17, 2003 at 08:05:21PM +0100, Oliver Neukum wrote:
> > Am Montag, 17. März 2003 18:50 schrieb Greg KH:
> > > On Mon, Mar 17, 2003 at 06:56:28AM -0600, Kari Karhi wrote:
> > > > Is there a user level command to kick the ide-probe module into
> > > > probing the ide bus again? Or is work going on to get the kernel to
> > > > support hot-pluggable ide drives? Or am I just missing some
> > > > configuration parameter?
> > >
> > > Unfortunately this is usually done in a hardware specific way, and
> > > since neither Dell, nor any other laptop manufacturer has provided the
> > > specs for how to detect and do this kind of hot-swap, Linux does not
> > > support it.
> >
> > Not entirely true. It's supported in Apple Powerbooks.
>
> Oh, forgot, some laptops support this if you suspend to ram, swap out
> the drive, and then resume. Works for some APM based laptops, don't
> know about ACPI based ones.
Powerbooks do it on a live system. Look at drivers/macintosh/mediabay.c.
> > What happens if we suspend to disk and wake up with a changed drive ?
>
> Heh, I don't want to think about that :)
Let me guess, you have an aversion against horror movies? ;-)
Seriously, looking power.c::device_resume() the code assumes that
resumption
is always successful. That is bad. Error codes need to be returned and
evaluated.
Regards
Oliver
-------------------------------------------------------
This SF.net email is sponsored by: Does your code think in ink?
You could win a Tablet PC. Get a free Tablet PC hat just for playing.
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
_______________________________________________
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
next prev parent reply other threads:[~2003-03-18 13:17 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-17 12:56 hotpluggable ide cd-rom drive? Kari Karhi
2003-03-17 17:50 ` Greg KH
2003-03-17 19:05 ` Oliver Neukum
2003-03-17 19:09 ` Greg KH
2003-03-17 20:44 ` Oliver Neukum
2003-03-18 13:17 ` Kari Karhi [this message]
2003-03-18 17:56 ` Greg KH
2003-03-19 10:30 ` Paul Hedderly
2003-03-19 10:47 ` Paul Hedderly
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-104799370509547@msgid-missing \
--to=karhi@hotmail.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).