All of lore.kernel.org
 help / color / mirror / Atom feed
From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Patrick Mochel <mochel@digitalimplant.org>
Cc: "Zhu, Yi" <yi.zhu@intel.com>,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Subject: Re: suspend/resume support for driver requires an external firmware
Date: Fri, 24 Sep 2004 18:22:52 +1000	[thread overview]
Message-ID: <1096014170.30196.52.camel@gaston> (raw)
In-Reply-To: <Pine.LNX.4.50.0409240029110.32015-100000@monsoon.he.net>


> We talked about this in Ottawa a few months ago, and I think this is the
> right approach. Note though, that I think it needs to be more complete:
> 
> - There needs to be restore_state() to be symmetic.
> - There needs to be the proper failure recovery
>   If save_state() or suspend() fails, every device that has had their
>   state saved needs to be restored.
> - It needs to be called for all power management requests.
> - The PCI implementation should call pci_save_state() in it, instead of in
>   ->suspend().
> 
> It would be great if you could add these things. Otherwise, I'll add it to
> my TODO list..

Additionally, for devices like the above that need either to rely on
userland for firmware download or to allocate large amounts of memory
for firmware backup/restore, I think we need to revive the pre-suspend
and post-resume notifiers ... Of course, if a device that needs userland
to reload a firmware is on the swap patch, then we have a chicken & egg
problem, but there is no easy solution for that one, unless the driver
uses the pre-suspend callback to pre-load the firmware that it will need
for resume

Ben.


  reply	other threads:[~2004-09-24  8:23 UTC|newest]

Thread overview: 38+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-09-24  6:16 suspend/resume support for driver requires an external firmware Zhu, Yi
2004-09-24  7:33 ` Patrick Mochel
2004-09-24  8:22   ` Benjamin Herrenschmidt [this message]
2004-09-24 16:00 ` Oliver Neukum
2004-09-24 20:11 ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2004-09-28  6:16 Zhu, Yi
2004-09-28  6:07 Zhu, Yi
2004-09-28  6:11 ` Patrick Mochel
2004-09-28  5:31 Zhu, Yi
2004-09-28  5:34 ` Patrick Mochel
2004-09-28  2:28 Zhu, Yi
2004-09-28  4:55 ` Patrick Mochel
2004-09-28  2:28 Zhu, Yi
2004-09-28  2:27 Zhu, Yi
2004-09-28  4:52 ` Patrick Mochel
2004-09-27  6:23 Li, Shaohua
2004-09-27  7:51 ` Oliver Neukum
2004-09-27  3:43 Zhu, Yi
2004-09-27  3:43 Zhu, Yi
2004-09-27  7:47 ` Oliver Neukum
2004-09-27 16:50 ` Patrick Mochel
2004-09-27 17:19   ` Oliver Neukum
2004-09-27 18:19     ` Dmitry Torokhov
2004-09-27 18:37       ` Oliver Neukum
2004-09-27 22:47       ` Denis Vlasenko
2004-09-27 23:06         ` Dmitry Torokhov
2004-09-28 15:07           ` Denis Vlasenko
2004-09-24 15:03 Zhu, Yi
2004-09-24 11:52 Li, Shaohua
2004-09-24 12:42 ` Oliver Neukum
2004-09-24  0:05 Zhu, Yi
2004-09-24  0:02 Zhu, Yi
2004-09-23 14:00 Dmitry Torokhov
     [not found] ` <20040923140018.25346.qmail-ockkSbn3fCqA/QwVtaZbd3CJp6faPEW9@public.gmane.org>
2004-09-23 16:42   ` Pavel Machek
2004-09-23  7:17 Zhu, Yi
     [not found] ` <Pine.LNX.4.44.0409231514270.8729-100000-7yGjFsf0sy5rdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2004-09-23  7:46   ` Zhu, Yi
     [not found]     ` <Pine.LNX.4.44.0409231522530.8729-400000-7yGjFsf0sy5rdx17CPfAsdBPR1lH4CV8@public.gmane.org>
2004-09-23 12:07       ` Pavel Machek
2004-09-23 12:06   ` Pavel Machek

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=1096014170.30196.52.camel@gaston \
    --to=benh@kernel.crashing.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mochel@digitalimplant.org \
    --cc=yi.zhu@intel.com \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.