public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
* DSDT Problems with 2.6.6-rc3
@ 2004-05-02  1:46 Andrew Barr
       [not found] ` <1083462390.5866.10.camel-7YzDMyNdTwE@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Barr @ 2004-05-02  1:46 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f


[-- Attachment #1.1: Type: text/plain, Size: 1914 bytes --]

Hello all--

I just downloaded and installed kernel 2.6.6-rc3 from kernel.org. I
patched it with the "dsdt-initrd" patch and set the initrd to a custom
DSDT for my hardware (a Dell Inspiron 300m notebook). This produced
several errors from the ACPI system on bootup, whereas in 2.6.5 this
didn't happen (no errors/warnings on bootup). The errors are at the
bottom of the message. The DSDT is attached. I have verified that the
custom DSDT is loading (bootup message says so). What has changed in the
ACPI code from 2.6.5 to 2.6.6-rc3 that might be causing my problems?
Does anyone have any suggestions that might save me from re-hacking the
DSDT? Thanks.

--
Andrew Barr

/usr/games/fortune says:
The electricity substation in the car park blew up.

ACPI errors are as follows:

ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed
[\_SB_.PCI0.LPCB.H_EC._REG] (Node cf5ca57c), AE_BAD_PARAMETER
ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed [\_SB_.ADP1._PSR] (Node
cf5d0ddc), AE_BAD_PARAMETER
ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed [\_SB_.BAT1._STA] (Node
cf5d0c9c), AE_AML_NO_RETURN_VALUE
ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed [\_SB_.BAT2._STA] (Node
cf5d0b7c), AE_AML_NO_RETURN_VALUE
ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed [\_TZ_.THRM._TMP] (Node
cf5d057c), AE_AML_NO_RETURN_VALUE
ACPI-0347: *** Error: Handler for [EmbeddedControl] returned
AE_BAD_PARAMETER
ACPI-1133: *** Error: Method execution failed [\_SB_.LID0._LID] (Node
cf5d0a9c), AE_AML_NO_RETURN_VALUE

[-- Attachment #1.2: 300m-A06-fixed.aml --]
[-- Type: application/octet-stream, Size: 21804 bytes --]

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [PATCH] Alexander Malysh's forgotten acpi_leave_sleep_state() IRQ patch
       [not found] ` <1083462390.5866.10.camel-7YzDMyNdTwE@public.gmane.org>
@ 2004-05-02  3:08   ` Huw Rogers
  0 siblings, 0 replies; 2+ messages in thread
From: Huw Rogers @ 2004-05-02  3:08 UTC (permalink / raw)
  To: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f

[-- Attachment #1: Type: text/plain, Size: 607 bytes --]

Feb 14, Alexander Malysh wrote:
> We disable non wakeup gpes (and store those values) with interrupts disabled, 
> but enable those with interrupts enabled which were already overwritten while 
> handling of wakeup interrupt. So we must restore non wakeup gpes as long 
> interrupts are disabled.

The second half of his patch never made it into 2.6.5, and remains
necessary. Without this patch my N258SA0 is dead on resume, requiring
removal of battery and mains power cable to get it back. With this patch,
I get some improvement. Attached.
-- 
Huw Rogers <count0-tC47gz4GrgtWk0Htik3J/w@public.gmane.org>

[-- Attachment #2: acpi_leave_sleep_state_irq_fix.diff --]
[-- Type: application/octet-stream, Size: 706 bytes --]

--- linux-2.6.5/drivers/acpi/sleep/main.c.orig	2004-05-01 22:34:11.000000000 -0400
+++ linux-2.6.5/drivers/acpi/sleep/main.c	2004-05-01 22:34:52.000000000 -0400
@@ -107,7 +107,6 @@
 	default:
 		return -EINVAL;
 	}
-	local_irq_restore(flags);
 	printk(KERN_DEBUG "Back to C!\n");
 
 	/* restore processor state
@@ -118,6 +117,8 @@
 	if (state > PM_SUSPEND_STANDBY)
 		acpi_restore_state_mem();
 
+	acpi_leave_sleep_state(state);
+	local_irq_restore(flags);
 
 	return ACPI_SUCCESS(status) ? 0 : -EFAULT;
 }
@@ -133,8 +134,6 @@
 
 static int acpi_pm_finish(u32 state)
 {
-	acpi_leave_sleep_state(state);
-
 	/* reset firmware waking vector */
 	acpi_set_firmware_waking_vector((acpi_physical_address) 0);
 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-05-02  3:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-02  1:46 DSDT Problems with 2.6.6-rc3 Andrew Barr
     [not found] ` <1083462390.5866.10.camel-7YzDMyNdTwE@public.gmane.org>
2004-05-02  3:08   ` [PATCH] Alexander Malysh's forgotten acpi_leave_sleep_state() IRQ patch Huw Rogers

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox