public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh-XVmvHMARGAS8U2dJNN8I7kB+6BGkLq7r@public.gmane.org>
To: Pavel Machek <pavel-AlSwsSmVLrQ@public.gmane.org>
Cc: Linux-pm mailing list <linux-pm-qjLDD68F18O7TbgM5vRIOg@public.gmane.org>
Subject: Re: comments on irc log
Date: Sat, 19 Mar 2005 12:21:02 +1100	[thread overview]
Message-ID: <1111195262.25179.201.camel@gaston> (raw)
In-Reply-To: <20050318231801.GE24449-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>

[-- Attachment #1: Type: text/plain, Size: 1844 bytes --]

On Sat, 2005-03-19 at 00:18 +0100, Pavel Machek wrote:
> Hi!
> 
> > > Usually very fast.  Unfortunately for some kinds of USB host controllers 
> > > it can be relatively slow, since quiescing the controller has an 
> > > unavoidable side effect of suspending all devices on the bus.
> > 
> > I wonder if we need to quiesce the controller in fact for FREEZE.
> > Probably not. Just stop all queue processing and refuse URBs. The hcca
> > will still get updated, but who cares ? it will end up beeing saved in
> > an inconsistent state in the suspend image, so what ? On resume, we will
> > have rebooted, we can "clean it up".
> > 
> > This is sort-of breaking the rule of "no DMA", and thus is not suitable
> > for kexec (which is ok, kexec currently uses the separate "shutdown"
> > callback which must switch DMA off), but would fix the problem for
> > suspend to disk...
> 
> What problem? suspend seems to +/- work with suspend-to-disk just
> now. I'd really hate to have to think about "some memory may change
> behind my back" during suspend. I think "no DMA" is a good rule.

Well, it's not that simple. It may work for you and not for others, and
it will definitely introduce complications with the current scheme since
it seems we +/- have to suspend USB busses (and possibly disconnect some
devices) at freeze time...

Note that this will become a non-issue when instead of waking everybody
up, we just wake the devices on the disk path, we can do the real
suspend initially for the others.

For now, it might be interesting to not shut down the OHCI (not sure
about E/UHCI's tho) as just letting it touch the HCCA isn't an issue
(only for the freeze before snapshot tho, not when getting rid of the
loader kernel, but in this case, what we do is more like kexec and we
might prefer using shutdown callbacks to that effect).

Ben.



[-- Attachment #2: Type: text/plain, Size: 0 bytes --]



  parent reply	other threads:[~2005-03-19  1:21 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-18  2:32 comments on irc log Benjamin Herrenschmidt
2005-03-18 16:56 ` Alan Stern
     [not found]   ` <Pine.LNX.4.44L0.0503181147110.1099-100000-3WpdWqXrU/qjv4eRiOYp3g@public.gmane.org>
2005-03-18 18:14     ` Pavel Machek
2005-03-18 23:07     ` Benjamin Herrenschmidt
2005-03-18 23:18       ` Pavel Machek
     [not found]         ` <20050318231801.GE24449-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-19  1:21           ` Benjamin Herrenschmidt [this message]
2005-03-19  3:23             ` Alan Stern
     [not found]               ` <Pine.LNX.4.44L0.0503182205040.30560-100000-pYrvlCTfrz9XsRXLowluHWD2FQJk+8+b@public.gmane.org>
2005-03-19 10:33                 ` Pavel Machek
     [not found]                   ` <20050319103351.GM24449-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-19 15:49                     ` Alan Stern
2005-03-19 12:02                 ` Benjamin Herrenschmidt
2005-03-19 10:32             ` Pavel Machek
2005-03-18 18:13 ` Pavel Machek
     [not found]   ` <20050318181317.GD18427-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-18 23:15     ` Benjamin Herrenschmidt
2005-03-21 20:06     ` Jordan Crouse
     [not found]       ` <20050321130612.135d726e-aftB2sG12IhaqnLngUycEA@public.gmane.org>
2005-03-21 20:03         ` Pavel Machek
2005-03-23 19:46 ` David Brownell
     [not found]   ` <200503231146.17105.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2005-03-23 19:53     ` David Brownell
     [not found]       ` <200503231153.48230.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2005-03-23 20:16         ` Todd Poynor
     [not found]           ` <4241CE9B.5050604-Igf4POYTYCDQT0dZR+AlfA@public.gmane.org>
2005-03-23 20:46             ` David Brownell
     [not found]               ` <200503231246.05656.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2005-03-24  1:57                 ` Todd Poynor
2005-03-23 21:08         ` Pavel Machek
     [not found]           ` <20050323210835.GF30704-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-23 21:33             ` David Brownell
     [not found]               ` <200503231333.22647.david-b-yBeKhBN/0LDR7s880joybQ@public.gmane.org>
2005-03-23 21:53                 ` Pavel Machek
     [not found]                   ` <20050323215330.GJ30704-I/5MKhXcvmPrBKCeMvbIDA@public.gmane.org>
2005-03-24 18:40                     ` Patrick Mochel

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=1111195262.25179.201.camel@gaston \
    --to=benh-xvmvhmargas8u2djnn8i7kb+6bgklq7r@public.gmane.org \
    --cc=linux-pm-qjLDD68F18O7TbgM5vRIOg@public.gmane.org \
    --cc=pavel-AlSwsSmVLrQ@public.gmane.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