linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: hotplug TTD
Date: Thu, 11 Jan 2001 16:10:45 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-97922932332202@msgid-missing> (raw)
In-Reply-To: <marc-linux-hotplug-97901650309422@msgid-missing>

> From: Grover, Andrew <andrew.grover@intel.com>
> Sent: Tuesday, January 09, 2001 10:34 PM
>
> 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.

So far I've been happy to start seeing subsystems share more structure and
start to behave in the same kinds of ways.  I think there's a long way we
can usefuly go down that path.  "Lightweight architecture"?  The design
patterns used by various subsystems need to fit together effectively.


> 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?

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).


> 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.

I'm glad you mentioned power management, the "hot" in "hot plug"!

USB has some work to do yet for power management.  For example, I
suspect that USB Host Controller Drivers ("HCDs") should mediate
suspend/resume processing for each of their devices, ensuring devices
get suspended before bridges (and resumed after).  That's simple
enough to do (Cardbus got complicated because of PCMCIA) but it calls
for "struct usb_driver" API updates.

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.

- Dave




_______________________________________________
Linux-hotplug-devel mailing list
Linux-hotplug-devel@lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

  parent reply	other threads:[~2001-01-11 16:10 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 [this message]
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-97922932332202@msgid-missing \
    --to=david-b@pacbell.net \
    --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).