From: Andrew Morton <andrewm@uow.edu.au>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotplug TTD
Date: Wed, 10 Jan 2001 10:58:00 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-97912383614952@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>
David Brownell wrote:
>
> - Are those network API changes a 2.4.1 issue -- replacing
> init_etherdev() with prepare_etherdev()/withdraw_netdev() ?
> It was my understanding they were needed to cleanly do
> network hotplugging.
No, they're not likely to be a problem. The unpopular dev_probe_lock()
protects us for Cardbus and PCI devices. A `sleep 1' prior to running
`ifconfig up' will pretty well avoid any problems. Probably unnecessary
though.
> I think that all USB devices other than some of the funkier HID
> devices should be ready to hotplug at this time ... the main win
> from that ABI change was simpler handling for usb-storage, but we
> got some destabilization too.
>
> Second, there are various types of related functionality to be
> developed. Addressing the "can't hotplug during boot" issue
> (something kudzu-like to scan /proc/bus/{usb,pci}/*/* and create
> hotplug events). Some sort of generic analogue to "cardctl eject"
> would be good. And as Miles noted, "pcmcia_cs" is a degenerate
> case of (generic) hotplug ...
mm.. For PCI isn't it simply a matter of parsing /proc/bus/pci/*/*
(or lspci output) to determine all the devices, then synthesising
hotplug events for them?
Now, there are a number of bells-n-whistles which could be added
here. For example, people get irritated when they put their network
cards into different slots and eth0 and eth1 get swapped around. We
could fix this with some constraints, or a manual override before
the automatic hotplug synthesis.
This is just one requirement - there are surely many others. 'fraid
I haven't started to get my head around it yet.
> There's also device/driver specific initialization that we should
> understand better. We know how to ensure that a USB controller
> (on any PCI bus) is cleanly initted. I don't think we know how
> to do that for a disk drive (start with SCSI and generalize) or
> printer.
err, yes. Plus if you run `/sbin/hotplug pci' five times
back-to-back for five devices, you'll cause a great storm
of initialisation activity, concurrent execution of
modprobe and all sorts of things. Kernels will explode,
I promise :) This is going to be complex.
We do need to bring the devices up sequentially and
methodically.
-
_______________________________________________
Linux-hotplug-devel mailing list
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next prev parent reply other threads:[~2001-01-10 10:58 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-09 4:59 hotplug TTD Morton, Andrew [WOLL:4009-M:EXCH]
2001-01-09 5:47 ` Miles Lane
2001-01-09 6:55 ` Miles Lane
2001-01-09 8:49 ` Adam J. Richter
2001-01-09 17:09 ` David Brownell
2001-01-09 17:38 ` David Brownell
2001-01-10 6:20 ` Grover, Andrew
2001-01-10 6:34 ` Grover, Andrew
2001-01-10 10:58 ` Andrew Morton [this message]
2001-01-10 10:58 ` Andrew Morton
2001-01-10 10:59 ` Andrew Morton
2001-01-11 16:10 ` David Brownell
2001-01-11 16:40 ` David Brownell
2001-01-11 17:18 ` David Hinds
2001-01-11 18:04 ` David Brownell
2001-01-12 0:09 ` Grover, Andrew
2001-01-12 0:33 ` Grover, Andrew
2001-01-12 1:13 ` Grover, Andrew
2001-01-12 12:51 ` Andrew Morton
2001-01-12 16:42 ` David Brownell
2001-01-12 17:37 ` David Brownell
2001-01-12 23:45 ` Keith Owens
2001-01-13 18:54 ` David Brownell
2001-01-13 23:25 ` Keith Owens
2001-02-03 23:37 ` Miles Lane
2001-02-03 23:48 ` Keith Owens
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-97912383614952@msgid-missing \
--to=andrewm@uow.edu.au \
--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).