From owner-freebsd-acpi@FreeBSD.ORG Fri Dec 10 18:04:52 2004 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 36B9416A4CE for ; Fri, 10 Dec 2004 18:04:52 +0000 (GMT) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8626D43D54 for ; Fri, 10 Dec 2004 18:04:51 +0000 (GMT) (envelope-from q@uni.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id ACCADD4657; Fri, 10 Dec 2004 19:04:50 +0100 (CET) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 8A4B7AB3EB; Fri, 10 Dec 2004 19:04:50 +0100 (CET) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id 66F1CA7DD8; Fri, 10 Dec 2004 19:04:50 +0100 (CET) Received: from coyote.q.local (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id DAB45D4657; Fri, 10 Dec 2004 19:04:49 +0100 (CET) Received: from igor.q.local (igor.q.local [192.168.0.147]) by coyote.q.local (8.13.1/8.13.1) with ESMTP id iBAI4n7e081419; Fri, 10 Dec 2004 19:04:49 +0100 (CET) (envelope-from q@uni.de) Received: from igor.q.local (localhost.q.local [127.0.0.1]) by igor.q.local (8.13.1/8.13.1) with ESMTP id iBAI4nk3001143; Fri, 10 Dec 2004 19:04:49 +0100 (CET) (envelope-from q@uni.de) Received: (from q@localhost) by igor.q.local (8.13.1/8.13.1/Submit) id iBAI4kw8001142; Fri, 10 Dec 2004 19:04:46 +0100 (CET) (envelope-from q@uni.de) Date: Fri, 10 Dec 2004 19:04:46 +0100 From: Ulrich Spoerlein To: Nate Lawson Message-ID: <20041210180446.GA768@galgenberg.net> References: <41B4E577.9060502@root.org> <41B50754.10604@centtech.com> <41B50C12.6070103@root.org> <20041208095845.GA896@galgenberg.net> <41B76AF2.3040204@root.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline In-Reply-To: <41B76AF2.3040204@root.org> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) cc: acpi@FreeBSD.org Subject: Re: suspend/resume improved? X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 10 Dec 2004 18:04:52 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, 08.12.2004 at 12:58:26 -0800, Nate Lawson wrote: > Add an infinite loop at various points in the suspend process until it=20 > hangs but doesn't reset. Start with the end of the first function below= =20 > and work your way backwards. Once you identify the exact place the=20 > reset occurs, we can figure out why. Use boot -s to keep from having to= =20 > fsck on each reset or hang. >=20 > AcpiEnterSleepState():sys/contrib/dev/acpica/hwsleep.c Line 444 is the culprit: ACPI_FLUSH_CPU_CACHE (); Status =3D AcpiHwRegisterWrite (ACPI_MTX_DO_NOT_LOCK, ACPI_REGISTER_PM1= A_CONTROL, PM1AControl); if (ACPI_FAILURE (Status)) { return_ACPI_STATUS (Status); } Putting the loop before AcpiHwRegisterWrite will enter infinite loop, putting it after it -> Reset Running with ACPI_DEBUG, this is the last thing I see (hand transcribed) acpi_lid0: wake_prep enabled for \_SB.LID (S3) acpi_button0: wake_prep enabled for \_SB.PBTN (S3) unknown: wake_prep disabled wake for \_SB.PCI0.USB0 (S3) unknown: wake_prep disabled wake for \_SB.PCI0.USB1 (S3) unknown: wake_prep disabled wake for \_SB.PCI0.USB2 (S3) unknown: wake_prep disabled wake for \_SB.PCI0.USB3 (S3) =3D=3D acpi_printcpu() debug dump =3D=3D gdt[0077:c0610620] idt[07ff:c06109e0] ldt[0030] tr[0020] efl[00000092] eax[00000001] ebx[c0e31080] ecx[c0da569c] edx[0009e227] esi[00000000] edi[00000003] ebp[c5c72af8] esp[c5c72adc] cr0[8005003b] cr2[08049ed4] cr3[03e25000] cr4[00000691] cs[0008] ds[0010] es[0010] fs[0018] gs[008f] ss[0010] ASL and DSDT can be found here http://www.galgenberg.net/~q/freebsd/ Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --tKW2IUtsqtDRztdT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBueU+mArGtfDbn0QRArNYAJsHnryDXZIoG3KTv36p1Fq+5G1eEQCfZ5TY rr+hYZztZO0bYOC0Hw7Lyp8= =jRlY -----END PGP SIGNATURE----- --tKW2IUtsqtDRztdT--