From owner-freebsd-acpi@FreeBSD.ORG Wed Mar 25 16:12:21 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 3A5F6106564A for ; Wed, 25 Mar 2009 16:12:21 +0000 (UTC) (envelope-from nate@root.org) Received: from nlpi043.prodigy.net (nlpi043.sbcis.sbc.com [207.115.36.72]) by mx1.freebsd.org (Postfix) with ESMTP id 0EB4B8FC08 for ; Wed, 25 Mar 2009 16:12:20 +0000 (UTC) (envelope-from nate@root.org) Received: from [10.0.5.18] (ppp-71-139-16-151.dsl.snfc21.pacbell.net [71.139.16.151]) (authenticated bits=0) by nlpi043.prodigy.net (8.13.8 smtpauth/dk/map_regex/8.13.8) with ESMTP id n2PGCIjp031533; Wed, 25 Mar 2009 11:12:19 -0500 Message-ID: <49CA57E2.7090805@root.org> Date: Wed, 25 Mar 2009 09:12:18 -0700 From: Nate Lawson User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) MIME-Version: 1.0 To: Andriy Gapon References: <49C8E143.2080305@icyb.net.ua> In-Reply-To: <49C8E143.2080305@icyb.net.ua> X-Enigmail-Version: 0.95.7 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org Subject: Re: shutdown via power button: "acpi: resumed at..." 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: Wed, 25 Mar 2009 16:12:21 -0000 Andriy Gapon wrote: > I noticed that sometimes I am getting "acpi: resumed at..." message on console and > in system log when I initiate system shutdown by pressing power button. > I think that the cause is in acpi_UserNotify("Resume") call and this call is only > found in acpi_EnterSleepState(). > > I see the following code in that function: > case ACPI_STATE_S5: > /* > * Shut down cleanly and power off. This will call us back through the > * shutdown handlers. > */ > shutdown_nice(RB_POWEROFF); > break; > > So it seems that it is expected that shutdown_nice() would return immediately. > I think it makes S5 a special case comparing to other states where return happens > upon resuming from the state. > In this case, maybe it is not necessary for S5 request to go through the > resume/wakeup half of acpi_EnterSleepState. > I thought shutdown*() should never return at all. It sounds like interrupts are being re-enabled or something. -- Nate