From owner-acpi-jp@jp.freebsd.org  Wed Jul 25 05:31:30 2001
Received: (from daemon@localhost)
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) id FAA46566;
	Wed, 25 Jul 2001 05:31:30 +0900 (JST)
	(envelope-from owner-acpi-jp@jp.FreeBSD.org)
Received: from ganymede.or.intel.com (jffdns01.or.intel.com [134.134.248.3])
	by castle.jp.freebsd.org (8.9.3+3.2W/8.7.3) with ESMTP id FAA46561
	for <acpi-jp@jp.FreeBSD.org>; Wed, 25 Jul 2001 05:31:29 +0900 (JST)
	(envelope-from andrew.grover@intel.com)
Received: from SMTP (orsmsxvs02-1.jf.intel.com [192.168.65.201])
	by ganymede.or.intel.com (8.9.1a+p1/8.9.1/d: relay.m4,v 1.41 2001/07/09 21:06:22 root Exp $) with SMTP id UAA28263;
	Tue, 24 Jul 2001 20:30:47 GMT
Received: from orsmsx28.jf.intel.com ([192.168.70.28]) by 192.168.70.201
  (Norton AntiVirus for Internet Email Gateways 1.0) ;
  Tue, 24 Jul 2001 20:30:47 0000 (GMT)
Received: by orsmsx28.jf.intel.com with Internet Mail Service (5.5.2653.19)
	id <PRZAR9BH>; Tue, 24 Jul 2001 13:30:45 -0700
Message-ID: <4148FEAAD879D311AC5700A0C969E89006CDDFAB@orsmsx35.jf.intel.com>
From: "Grover, Andrew" <andrew.grover@intel.com>
To: "'Mike Smith'" <msmith@freebsd.org>, acpi-jp@jp.FreeBSD.org
Date: Tue, 24 Jul 2001 13:30:35 -0700
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain;
	charset="iso-8859-1"
Reply-To: acpi-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+010328
X-Sequence: acpi-jp 1188
Subject: [acpi-jp 1188] RE: ACPICA 20010717: S1 causes power-off 
Errors-To: owner-acpi-jp@jp.freebsd.org
Sender: owner-acpi-jp@jp.freebsd.org
X-Originator: andrew.grover@intel.com

I'm sure it is. I'll apply this to our tree right now.

Regards -- Andy

> -----Original Message-----
> From: Mike Smith [mailto:msmith@freebsd.org]
> Sent: Monday, July 23, 2001 1:47 PM
> To: acpi-jp@jp.FreeBSD.org
> Cc: andrew.grover@intel.com
> Subject: Re: [acpi-jp 1186] ACPICA 20010717: S1 causes power-off 
> 
> 
> 
> 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
> 
> 
> 

