From owner-acpi-jp@jp.freebsd.org  Sun Nov  4 03:17:52 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id DAA97942;
	Sun, 4 Nov 2001 03:17:52 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from taxismtp2.alchemyfx.com (taxismtp2.alchemy.net [209.132.220.152])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id DAA97920
	for <acpi-jp@jp.FreeBSD.org>; Sun, 4 Nov 2001 03:17:51 +0900 (JST)
	(envelope-from neckpain@nettaxi.com)
From: neckpain@nettaxi.com
Received: from localhost (P061198168096.ppp.prin.ne.jp [61.198.168.96])
	by taxismtp2.alchemyfx.com (8.9.3/8.9.3) with ESMTP id KAA16780;
	Sat, 3 Nov 2001 10:25:28 -0800
Message-Id: <200111031825.KAA16780@taxismtp2.alchemyfx.com>
Date: Sun, 4 Nov 2001 03:16:29 +0900
To: acpi-jp@jp.FreeBSD.org
Cc: neckpain@nettaxi.com
References: <20011103.215652.130242360.iwasaki@jp.FreeBSD.org>
Mime-Version: 1.0
Content-Type: multipart/mixed; boundary="BOKacYhQ+x31HxR3"
Content-Disposition: inline
In-Reply-To: <20011103.215652.130242360.iwasaki@jp.FreeBSD.org>
User-Agent: Mutt/1.3.22.1i-ja0
X-Dispatcher: imput version 20000228(IM140)
Lines: 41
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1427
Subject: [acpi-jp 1427] Re: Fw: hwsleep.c, r1.1.1.9 killed resume from S1 state
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: neckpain@nettaxi.com


--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Thanks, Iwasaki-san.

On Sat, Nov 03, 2001 at 09:56:52PM +0900, Mitsuru IWASAKI wrote:
> I've found a bug report on AcpiHwDisableNonWakeupGpes() and
> AcpiHwEnableNonWakeupGpes() changes in -current ML .
> Any ideas?

After tweaking and reading sources under /sys/contrib/dev/acpica,
I found that something is missing at the end of AcpiHwEnableGpe()
(compare with AcpiHwDisableGpe()), but I'm still not confident as
other people don't seem to be affected by this.

Anyway, with the attached patch, I can resume from S1 state now.

--BOKacYhQ+x31HxR3
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename="hwgpe.c.diff"

Index: hwgpe.c
===================================================================
RCS file: /home/cvs/freebsd/src/sys/contrib/dev/acpica/hwgpe.c,v
retrieving revision 1.1.1.8
diff -u -u -r1.1.1.8 hwgpe.c
--- hwgpe.c	4 Oct 2001 23:12:11 -0000	1.1.1.8
+++ hwgpe.c	3 Nov 2001 17:32:40 -0000
@@ -166,6 +166,8 @@
     AcpiOsReadPort (AcpiGbl_GpeRegisters[RegisterIndex].EnableAddr, &InByte, 8);
     AcpiOsWritePort (AcpiGbl_GpeRegisters[RegisterIndex].EnableAddr,
                (InByte | BitMask), 8);
+
+    AcpiHwEnableGpeForWakeup(GpeNumber);
 }
 
 /******************************************************************************

--BOKacYhQ+x31HxR3--
