From owner-acpi-jp@jp.freebsd.org  Wed Jul 25 02:14:43 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id CAA39041;
	Wed, 25 Jul 2001 02:14:43 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from mass.dis.org (sat.dis.org [216.240.44.14])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id CAA39036
	for <acpi-jp@jp.FreeBSD.org>; Wed, 25 Jul 2001 02:14:42 +0900 (JST)
	(envelope-from msmith@mass.dis.org)
Received: from mass.dis.org (localhost [127.0.0.1])
	by mass.dis.org (8.11.4/8.11.3) with ESMTP id f6NKlJ201793;
	Mon, 23 Jul 2001 13:47:19 -0700 (PDT)
	(envelope-from msmith@mass.dis.org)
Message-Id: <200107232047.f6NKlJ201793@mass.dis.org>
X-Mailer: exmh version 2.1.1 10/15/1999
To: acpi-jp@jp.FreeBSD.org
cc: andrew.grover@intel.com
In-reply-to: Your message of "Tue, 24 Jul 2001 03:38:11 +0900."
             <20010724033811M.iwasaki@jp.FreeBSD.org> 
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Date: Mon, 23 Jul 2001 13:47:19 -0700
From: Mike Smith <msmith@freebsd.org>
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1187
Subject: [acpi-jp 1187] Re: ACPICA 20010717: S1 causes power-off 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: msmith@freebsd.org


Thanks for tracking this one down; I'll check and see if this is what 
causes the "resume from suspend makes system power off" bug that people 
are complaining about.

> 
> I've noticed that 20010717 version of hwsleep.c:AcpiEnterSleepState()
> has 2-phase operation for sleep state transition and this cause a problem
> which S1 transition makes the system powered off.  I can see this on
> ASUS P2B based desktop system, not on any laptop machines around here.
> Could you review following workaround for this problem?
> 
> Thanks
> 
> Index: hwsleep.c
> ===================================================================
> RCS file: /home/ncvs/src/sys/contrib/dev/acpica/hwsleep.c,v
> retrieving revision 1.1.1.5
> diff -u -r1.1.1.5 hwsleep.c
> --- hwsleep.c	2001/07/21 03:55:15	1.1.1.5
> +++ hwsleep.c	2001/07/23 17:55:40
> @@ -298,8 +298,11 @@
>      /* wait a second, then try again */
>      AcpiOsStall(1000000);
>  
> -    AcpiHwRegisterWrite(ACPI_MTX_LOCK, PM1_CONTROL,
> -        (1 << AcpiHwGetBitShift (SLP_EN_MASK)));
> +    if (SleepState > ACPI_STATE_S1)
> +    {
> +        AcpiHwRegisterWrite(ACPI_MTX_LOCK, PM1_CONTROL,
> +            (1 << AcpiHwGetBitShift (SLP_EN_MASK)));
> +    }
>  
>      enable();
>  
> 

-- 
... every activity meets with opposition, everyone who acts has his
rivals and unfortunately opponents also.  But not because people want
to be opponents, rather because the tasks and relationships force
people to take different points of view.  [Dr. Fritz Todt]
           V I C T O R Y   N O T   V E N G E A N C E


