From owner-freebsd-acpi@FreeBSD.ORG Mon Apr 27 19:20:23 2009 Return-Path: Delivered-To: freebsd-acpi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5E4110656BD; Mon, 27 Apr 2009 19:20:23 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from smtprelay09.ispgateway.de (smtprelay09.ispgateway.de [80.67.29.23]) by mx1.freebsd.org (Postfix) with ESMTP id 67D038FC20; Mon, 27 Apr 2009 19:20:23 +0000 (UTC) (envelope-from freebsd-listen@fabiankeil.de) Received: from [62.143.132.243] (helo=localhost) by smtprelay09.ispgateway.de with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.68) (envelope-from ) id 1LyWNK-0006LP-1a; Mon, 27 Apr 2009 21:20:22 +0200 Date: Mon, 27 Apr 2009 21:20:16 +0200 From: Fabian Keil To: Andriy Gapon Message-ID: <20090427212016.43dd83d6@fabiankeil.de> In-Reply-To: <49F5AAF0.9080607@freebsd.org> References: <49DB639A.4090504@icyb.net.ua> <49DCF5C2.60805@root.org> <49DDF906.8090400@icyb.net.ua> <49DF3CA4.1090309@freebsd.org> <49E4B2A7.3020302@freebsd.org> <49E61986.7040709@root.org> <49E8AED0.1090008@freebsd.org> <20090418125806.2a48b0a8@fabiankeil.de> <49E9FFB0.6090707@root.org> <49EC60C6.7000702@freebsd.org> <49EC9D2F.8080701@root.org> <49EDFBBA.1080504@freebsd.org> <20090422183214.1e3372c6@fabiankeil.de> <49F09A23.9080802@freebsd.org> <20090425102109.0520ce59@fabiankeil.de> <49F5AAF0.9080607@freebsd.org> X-Mailer: Claws Mail 3.7.1 (GTK+ 2.16.1; i386-portbld-freebsd8.0) X-PGP-KEY-URL: http://www.fabiankeil.de/gpg-keys/freebsd-listen-2008-08-18.asc Mime-Version: 1.0 Content-Type: multipart/signed; micalg=PGP-SHA1; boundary="Sig_/mnqm9zSn_LDfWpgvZdfAAOr"; protocol="application/pgp-signature" X-Df-Sender: 775067 Cc: freebsd-acpi@freebsd.org Subject: Re: run resume code only for S1-S4 states X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Apr 2009 19:20:25 -0000 --Sig_/mnqm9zSn_LDfWpgvZdfAAOr Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Andriy Gapon wrote: > on 25/04/2009 11:21 Fabian Keil said the following: > > Sure. It turns out that the problem is unrelated to your patch. > > I can reproduce it with an unpatched kernel too, by once pressing > > the power button before the second core is started. > >=20 > > I probably did the same a few days ago, and forgot about it. Sorry. > thank you very much for the testing and the insight, this is very useful = and > interesting. > I think that it might be that 'init' process in pre-natal state loses a s= ignal > sent to it. >=20 > I decided to follow Nate's advice and exempt S5 from timeout policy (afte= r all it > is possible to execute shutdown(8) multiple times and concurrently with a= ny other > sleep request). With previous version of the patch once shutdown_nice() f= ailed > once it was impossible to enter any sleep state ever. shutdown_nice failu= re is > quite exotic event, but as you have proven it is not impossible. >=20 > So the new patch is attached. Thanks. The patch works and pressing the power button early on boot before it actually has any effect no longer prevents the power button from working later on. Fabian --Sig_/mnqm9zSn_LDfWpgvZdfAAOr Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) iEYEARECAAYFAkn2BXUACgkQBYqIVf93VJ1P8ACguVbw8uRZG2FrHIqtIRQkHQem xTEAoLcEzlvwOc2e1M9cTIonRHHmbIb+ =LOW1 -----END PGP SIGNATURE----- --Sig_/mnqm9zSn_LDfWpgvZdfAAOr--