public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Len Brown <len.brown-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
To: Andrew Morton <akpm-3NddpPZAyC0@public.gmane.org>
Cc: ACPI Developers
	<acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org>,
	linux-kernel-Ki4U9mvT0kswryQfseakQg@public.gmane.org,
	Shaohua Li <shaohua.li-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: Re: [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram
Date: 02 Mar 2005 13:51:42 -0500	[thread overview]
Message-ID: <1109789502.2097.574.camel@d845pe> (raw)
In-Reply-To: <200502230953.j1N9rFj1020702-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>

Again, this patch should not be applied,
as it hides an issue rather than fixing it.

The correct fix is rather invasive and has been
waiting for 2.6.12 to open, so we should proceed
with that (deleting the pci_link restore code)
rather than applying this.

thanks,
-Len

On Wed, 2005-02-23 at 04:53, akpm-3NddpPZAyC0@public.gmane.org wrote:
> From: Christian Borntraeger <linux-kernel-Ki4U9mvT0kswryQfseakQg@public.gmane.org>
> 
> During the wakeup from suspend-to-ram I get several warnings.
> 
> Signed-off-by: Christian Borntraeger <linux-kernel-Ki4U9mvT0kswryQfseakQg@public.gmane.org>
> Signed-off-by: Andrew Morton <akpm-3NddpPZAyC0@public.gmane.org>
> ---
> 
>  25-akpm/drivers/acpi/osl.c      |    4 ++--
>  25-akpm/drivers/acpi/pci_link.c |    2 +-
>  2 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff -puN
> drivers/acpi/osl.c~acpi-sleep-while-atomic-during-s3-resume-from-ram
> drivers/acpi/osl.c
> ---
> 25/drivers/acpi/osl.c~acpi-sleep-while-atomic-during-s3-resume-from-ram     2005-02-23 01:48:02.000000000 -0800
> +++ 25-akpm/drivers/acpi/osl.c  2005-02-23 01:48:02.000000000 -0800
> @@ -145,7 +145,7 @@ acpi_os_vprintf(const char *fmt, va_list
>  void *
>  acpi_os_allocate(acpi_size size)
>  {
> -       return kmalloc(size, GFP_KERNEL);
> +       return kmalloc(size, GFP_ATOMIC);
>  }
> 
>  void
> @@ -905,7 +905,7 @@ acpi_os_wait_semaphore(
> 
>         ACPI_DEBUG_PRINT ((ACPI_DB_MUTEX, "Waiting for
> semaphore[%p|%d|%d]\n", handle, units, timeout));
> 
> -       if (in_atomic())
> +       if (in_atomic() || irqs_disabled())
>                 timeout = 0;
> 
>         switch (timeout)
> diff -puN
> drivers/acpi/pci_link.c~acpi-sleep-while-atomic-during-s3-resume-from-ram drivers/acpi/pci_link.c
> ---
> 25/drivers/acpi/pci_link.c~acpi-sleep-while-atomic-during-s3-resume-from-ram        2005-02-23 01:48:02.000000000 -0800
> +++ 25-akpm/drivers/acpi/pci_link.c     2005-02-23 01:48:02.000000000
> -0800
> @@ -315,7 +315,7 @@ acpi_pci_link_set (
>         if (!link || !irq)
>                 return_VALUE(-EINVAL);
> 
> -       resource = kmalloc( sizeof(*resource)+1, GFP_KERNEL);
> +       resource = kmalloc( sizeof(*resource)+1, GFP_ATOMIC);
>         if(!resource)
>                 return_VALUE(-ENOMEM);
> 
> _
> 
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click

      parent reply	other threads:[~2005-03-02 18:51 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-02-23  9:53 [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram akpm-3NddpPZAyC0
2005-02-25  7:32 ` Christian Borntraeger
2005-02-25  7:38   ` Andrew Morton
     [not found] ` <200502230953.j1N9rFj1020702-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
2005-03-02 18:51   ` Len Brown [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=1109789502.2097.574.camel@d845pe \
    --to=len.brown-ral2jqcrhueavxtiumwx3w@public.gmane.org \
    --cc=acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org \
    --cc=akpm-3NddpPZAyC0@public.gmane.org \
    --cc=linux-kernel-Ki4U9mvT0kswryQfseakQg@public.gmane.org \
    --cc=shaohua.li-ral2JQCrhuEAvxtiuMwx3w@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