From: Li Shaohua <shaohua.li@intel.com>
To: lkml <linux-kernel@vger.kernel.org>
Cc: Andrew Morton <akpm@osdl.org>
Subject: Re: [PATCH]Teach drivers don't call may-sleep routines in resume code
Date: Fri, 19 Nov 2004 09:46:20 +0800 [thread overview]
Message-ID: <1100828780.18583.5.camel@sli10-desk.sh.intel.com> (raw)
In-Reply-To: <1100660643.7466.9.camel@sli10-desk.sh.intel.com>
On Wed, 2004-11-17 at 11:04, Li Shaohua wrote:
> Hi,
> We already found one driver (PCI link device driver) does the odd thing, so alert other drivers.
>
> Thanks,
> Shaohua
>
> --- 2.6/Documentation/power/devices.txt.orig 2004-11-17 10:42:25.160212832 +0800
> +++ 2.6/Documentation/power/devices.txt 2004-11-17 10:46:11.070869192 +0800
> @@ -70,6 +70,9 @@ System devices will only be suspended wi
> after all other devices have been suspended. On resume, they will be
> resumed before any other devices, and also with interrupts disabled.
>
> +*CAUTION*: The resume methods of drivers (normal devices and system devices)
> +should never use any may-sleep methods, since when resume from memory (S3),
> +no task is running.
Oops, the description isn't precise. Some may-sleep routines such as
waiting a sempahore are ok in resume routines, but some (kmalloc) are
bad. Please ignore it till I get a precise description.
Thanks,
Shaohua
prev parent reply other threads:[~2004-11-19 1:55 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-11-17 3:04 Li Shaohua
2004-11-19 1:46 ` Li Shaohua [this message]
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=1100828780.18583.5.camel@sli10-desk.sh.intel.com \
--to=shaohua.li@intel.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®