From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pavel Machek Subject: Re: S3 resume and Wake events Date: Fri, 2 Apr 2004 12:31:50 +0200 Sender: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Message-ID: <20040402103150.GA677@elf.ucw.cz> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: Errors-To: acpi-devel-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , List-Archive: To: Manpreet Singh Cc: acpi-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: linux-acpi@vger.kernel.org Hi! > I am attempting to resume from S3 using a magic packet from an NIC. The NIC > asserts the PME# and the status bit gets set in the I/O controller, but it > turns out that the ACPI suspend code in the kernel disables *all* GPEs before > sleeping and so I can't wake the system up after it goes to sleep. > > Tracing through the code (on the 2.6.4 stock kernel), at one point, the > function acpi_enter_sleep_state() calls acpi_disable_non_wakeup_gpes() which > disables all GPEs, even the ones that are potentially the wake-up events like > the PME_EN bit. This needs some work. API should be invented to tell the kernel what GPEs may wake us up. Pavel -- When do you have a heart between your knees? [Johanka's followup: and *two* hearts?] ------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click