lkml.org 
[lkml]   [2003]   [Feb]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: Fixes to suspend-to-RAM

> void __init acpi_reserve_bootmem(void)
> {
> acpi_wakeup_address = (unsigned long)alloc_bootmem_low(PAGE_SIZE);
> + if (!acpi_wakeup_address)
> + printk(KERN_ERR "ACPI: Cannot allocate lowmem. S3 disabled.\n");
> if ((&wakeup_end - &wakeup_start) > PAGE_SIZE)
> printk(KERN_CRIT "ACPI: Wakeup code way too big, will crash on attempt to suspend\n");
> - printk(KERN_DEBUG "ACPI: have wakeup address 0x%8.8lx\n", acpi_wakeup_address);

If you say you're disabling S3, then please really do so and flip the bit
in the sleep_states[] array.

> --- clean/drivers/acpi/sleep/main.c 2003-02-15 18:51:17.000000000 +0100
> +++ linux/drivers/acpi/sleep/main.c 2003-02-15 18:57:27.000000000 +0100
> @@ -103,6 +103,10 @@
> return error;
> }
>
> + error = device_suspend(state, SUSPEND_DISABLE);
> + if (error)
> + panic("Sorry, devices really should know how to disable\n");
> +

Why is every error condition a panic()? That certainly does not add
robustness to the code..

Also, you say that the APIC needs this state. I wonder if that should be
done in the SUSPEND_POWER_DOWN stage with interrupts disabled?

-pat

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:33    [W:0.046 / U:2.016 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site