From: "Grover, Andrew" <andrew.grover@intel.com>
To: linux-hotplug@vger.kernel.org
Subject: RE: hotplug TTD
Date: Fri, 12 Jan 2001 00:33:01 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-97927168217486@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>
> From: Andrew Morton [mailto:andrewm@uow.edu.au]
>
> "Grover, Andrew" wrote:
> > Having one entity who knows about all devices on a system
> is also great for
> > power management, and implementing suspend-to-memory and
> suspend-to-disk.
> >
>
> Not sure I completely understand this one.
>
> Given that all the different bus ("resource"?) types have different
> discovery mechanisms, I think you're proposing that, once discovered,
> they will be recorded in a database of some form? In a
> unified format?
While different buses have different discovery mechanisms, they all will
either result in either device removal or device insertion notifications.
Since we will want to have one hotplug module loader (yes?) it seems
necessary that the various bus enumerators communicate with it in a common
format.
Having the loading entity keep track of what devices/drivers are already
present would then have two advantages:
1) Bus enumeration drivers can, when queried, report all devices found, and
do not have to worry about which ones have come or gone, because the manager
is keeping track.
2) Because we know the entire device attachment tree, when suspending, we
can send power-down requests outermost-first and vice-versa when resuming.
> So we have, if you like, an array of objects each of which represents
> a device in the system, and they each have state, `eject',
> `powerdown' methods,
> etc?
I think so. But perhaps the appropriate structure is a tree, because devices
depend on each other and we will need to sequence power transitions with
that in mind. (e.g. don't turn off the PCI bus until all PCI devices are
powered down.)
>
> Heh. XircomNic is-a CardbusDevice is-a PCIDevice is-a Device
> is-a blah.
>
> It could get complex with devices behind bridges behind bridges. Is a
> bridge a device? Do we need to care about bridges?
Yes, it can get complex, but I think we do need to account for bridges.
Regards -- Andy
_______________________________________________
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-12 0:33 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
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 [this message]
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-97927168217486@msgid-missing \
--to=andrew.grover@intel.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).