* [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram
@ 2005-02-23 9:53 akpm-3NddpPZAyC0
2005-02-25 7:32 ` Christian Borntraeger
[not found] ` <200502230953.j1N9rFj1020702-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
0 siblings, 2 replies; 4+ messages in thread
From: akpm-3NddpPZAyC0 @ 2005-02-23 9:53 UTC (permalink / raw)
To: len.brown-ral2JQCrhuEAvxtiuMwx3w
Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f, akpm-3NddpPZAyC0,
linux-kernel-Ki4U9mvT0kswryQfseakQg
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram
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>
1 sibling, 1 reply; 4+ messages in thread
From: Christian Borntraeger @ 2005-02-25 7:32 UTC (permalink / raw)
To: linux-kernel; +Cc: akpm, len.brown, acpi-devel
akpm@osdl.org wrote:
> From: Christian Borntraeger <linux-kernel@borntraeger.net>
>
> During the wakeup from suspend-to-ram I get several warnings.
>
> Signed-off-by: Christian Borntraeger <linux-kernel@borntraeger.net>
> Signed-off-by: Andrew Morton <akpm@osdl.org>
Andrew,
Len told me that he is going to solve the issue in a different and better
way.
cheers
Christian
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram
2005-02-25 7:32 ` Christian Borntraeger
@ 2005-02-25 7:38 ` Andrew Morton
0 siblings, 0 replies; 4+ messages in thread
From: Andrew Morton @ 2005-02-25 7:38 UTC (permalink / raw)
To: Christian Borntraeger; +Cc: linux-kernel, len.brown, acpi-devel
Christian Borntraeger <linux-kernel@borntraeger.net> wrote:
>
> akpm@osdl.org wrote:
> > From: Christian Borntraeger <linux-kernel@borntraeger.net>
> >
> > During the wakeup from suspend-to-ram I get several warnings.
> >
> > Signed-off-by: Christian Borntraeger <linux-kernel@borntraeger.net>
> > Signed-off-by: Andrew Morton <akpm@osdl.org>
>
> Andrew,
>
> Len told me that he is going to solve the issue in a different and better
> way.
OK, well I'll retain the patch until the problem is fixed anyway - it's my
lame-o bug tracking system.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [patch 05/12] acpi: sleep-while-atomic during S3 resume from ram
[not found] ` <200502230953.j1N9rFj1020702-bipKiLWnuIsyyg0EjBt7GtHuzzzSOjJt@public.gmane.org>
@ 2005-03-02 18:51 ` Len Brown
0 siblings, 0 replies; 4+ messages in thread
From: Len Brown @ 2005-03-02 18:51 UTC (permalink / raw)
To: Andrew Morton
Cc: ACPI Developers, linux-kernel-Ki4U9mvT0kswryQfseakQg, Shaohua Li
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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-02 18:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox