From owner-freebsd-current@freebsd.org Wed Jan 13 14:07:40 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id D6D644DE28D for ; Wed, 13 Jan 2021 14:07:40 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4DG8R05GsVz4jNW for ; Wed, 13 Jan 2021 14:07:40 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: by mailman.nyi.freebsd.org (Postfix) id B500E4DDFD2; Wed, 13 Jan 2021 14:07:40 +0000 (UTC) Delivered-To: current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id B4C6B4DDFD1 for ; Wed, 13 Jan 2021 14:07:40 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from relay1-d.mail.gandi.net (relay1-d.mail.gandi.net [217.70.183.193]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DG8R02N5Mz4jRL for ; Wed, 13 Jan 2021 14:07:40 +0000 (UTC) (envelope-from avg@FreeBSD.org) X-Originating-IP: 195.64.148.76 Received: from [192.168.0.24] (unknown [195.64.148.76]) (Authenticated sender: andriy.gapon@uabsd.com) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 1DAAE240018 for ; Wed, 13 Jan 2021 14:07:37 +0000 (UTC) Subject: Re: Laptop ACPI poweroff failed after main-c255826 -> main-c255850 To: current@freebsd.org References: <7bbd01c4-abfe-f046-a35e-79fc60f7cf66@FreeBSD.org> From: Andriy Gapon Message-ID: Date: Wed, 13 Jan 2021 16:07:35 +0200 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Firefox/78.0 Thunderbird/78.6.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4DG8R02N5Mz4jRL X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 13 Jan 2021 14:07:40 -0000 On 2021-01-13 16:03, David Wolfskill wrote: > On Tue, Jan 12, 2021 at 07:37:28AM -0800, David Wolfskill wrote: >> On Tue, Jan 12, 2021 at 05:31:30PM +0200, Andriy Gapon wrote: >>> On 2021-01-11 14:55, David Wolfskill wrote: >>>> pci3: unknown notify 0x2 >>>> ACPI Error: AE_ERROR, Thread 100002 could not acquire Mutex [ACPI_MTX_Caches] (0c4) (20201113/utmutex-434) >>> >>> Looks like that was some sort of a race or otherwise transient condition >>> that lead to the _PTS (prepare-to-sleep) failure. >>> >>>> ACPI Error: Aborting method \_PTS due to previous error (AE_NO_MEMORY) (20201113/psparse-689) >>>> acpi0: AcpiEnterSleepStatePrep failed - AE_NO_MEMORY >>> .... >> >> That's certainly plausible -- as I noted a bit earlier today, there was >> no recurrence after this morning's main-c255850-g16079c7233be -> >> main-c255894-g8b1839548750 update. >> >> Should I encounter a recurrence, I will plan to get another screenshot, >> then bring the machine back up and re-try the poweroff (and then report >> my findings). >> .... > > I had a recurrence this morninig, after the update from: > > FreeBSD g1-55.catwhisker.org 13.0-CURRENT FreeBSD 13.0-CURRENT #120 main-c255894-g8b1839548750-dirty: Tue Jan 12 05:23:50 PST 2021 root@g1-55.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 1300134 1300134 > > to: > > FreeBSD g1-55.catwhisker.org 13.0-CURRENT FreeBSD 13.0-CURRENT #121 main-c255921-gec2700e01532-dirty: Wed Jan 13 05:06:22 PST 2021 root@g1-55.catwhisker.org:/common/S4/obj/usr/src/amd64.amd64/sys/CANARY amd64 1300135 1300135 > > > New swcreenshot is in https://www.catwhisker.org/~david/FreeBSD/head/c255921; > the previous one is in https://www.catwhisker.org/~david/FreeBSD/head/c255850. > > They look quite similar to me. > > After grabbing the screenshot, I rebooted again, but the poweroff > just worked normally on re-try. > > I believe that this is evidence in favor of a "race condition" diagnosis. > (In precisely what, I don't know,) I haven't followed source changes too closely as of recent. It might be a good idea to check for recent imports of ACPICA updates. -- Andriy Gapon