From: "Grover, Andrew" <andrew.grover@intel.com>
To: linux-hotplug@vger.kernel.org
Subject: RE: hotplug TTD
Date: Fri, 12 Jan 2001 01:13:47 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-97927163817418@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>
> From: David Brownell [mailto:david-b@pacbell.net]
> > From: Grover, Andrew <andrew.grover@intel.com>
> > Is it unreasonable, long-term, to move towards a unified
> Linux hotplug
> > architecture?
>
> I don't see why it would be unreasonable. Arguably, that's
> the direction
> that has been set already. But -- what do you mean by "architecture"?
> That's a loaded word in many minds.
I mean we have individual subsystems doing HP all over the place. While each
has bus-specific stuff, a lot of the stuff is the same across all of these.
> > Under both Windows and BeOS, a given bus driver is responsible for
> > enumerating the devices on it, and it tells a central "configuration
> > manager", who then is the one who loads the drivers.
>
> Many of us don't know those two systems very well; but perhaps the
> "/sbin/hotplug" policy agent is analagous to that mananager. Except
> that it can't just "load drivers", it's got to configure them too.
> Maybe you could elaborate a bit?
Well, of course devices need to be configured, but in my mind once we've
loaded the driver that's half the battle. If I insert a USB foo device, the
foo driver is going to be the one who knows how to configure it, yes? And, I
remember reading that the latest modutils had some mechanism to pass config
info, but I haven't looked further..
> Using USB and PCI (in Linux 2.4 kernels) as an example, clearly the
> bus drivers (USB HCDs, Cardbus or Hotplug PCI bridges) are going to
> enumerate devices and handle some of the config change details. But
> the goal is to punt all the hard policy questions (what driver, how
> to set it up) to userspace through one mechanism (/sbin/hotplug).
True, some setup info is surely needed. But one of the goals of hotplug is
you insert the device and it "just works". Won't that be awesome?? ;-)
> So far I've been thinking of power management as _mostly_ an issue
> that subsystems should deal with locally ... following global rules
> and policies. Likely you have clearer ideas about how those should
> get reflected down to the subsystems, or back to some global/central
> entity when policy questions arise.
I agree, a given subsystem driver is in a much better position to power
manage itself instead of a global entity. But I also think the system needs
be able to veto a subsystem's PM in light of the system's overall state.
For example, in Windows, a driver can request to be put into a power state.
If the system has no objections, it turns around and tells the driver to
switch states. This has two advantages: 1) it gives the OS the chance to not
fulfill the request (if it knows turning off the device would have bad
consequences) and 2) it lets the OS implement a simple PM strategy, that can
then be overridden by the subsystem if it wishes. This saves each driver
from worrying about PM policy if the OS's default policy is good enough.
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 1:13 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
2001-01-12 1:13 ` Grover, Andrew [this message]
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-97927163817418@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).