From owner-freebsd-acpi@FreeBSD.ORG Tue Nov 13 15:14:54 2012 Return-Path: Delivered-To: freebsd-acpi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 3705C507 for ; Tue, 13 Nov 2012 15:14:54 +0000 (UTC) (envelope-from avg@FreeBSD.org) Received: from citadel.icyb.net.ua (citadel.icyb.net.ua [212.40.38.140]) by mx1.freebsd.org (Postfix) with ESMTP id 710E78FC08 for ; Tue, 13 Nov 2012 15:14:53 +0000 (UTC) Received: from odyssey.starpoint.kiev.ua (alpha-e.starpoint.kiev.ua [212.40.38.101]) by citadel.icyb.net.ua (8.8.8p3/ICyb-2.3exp) with ESMTP id RAA08627; Tue, 13 Nov 2012 17:14:49 +0200 (EET) (envelope-from avg@FreeBSD.org) Message-ID: <50A263E8.2060707@FreeBSD.org> Date: Tue, 13 Nov 2012 17:14:48 +0200 From: Andriy Gapon User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:16.0) Gecko/20121029 Thunderbird/16.0.2 MIME-Version: 1.0 To: Tom Lislegaard Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find resource] References: <5092F209.7090803@FreeBSD.org> <50979BCD.3060000@FreeBSD.org> <5097CB27.8040802@FreeBSD.org> <5097F24D.7040206@FreeBSD.org> <50995C8F.3040309@FreeBSD.org> <509B8F15.4030300@FreeBSD.org> <509BDF86.3080502@FreeBSD.org> <509D091A.8080108@FreeBSD.org> In-Reply-To: X-Enigmail-Version: 1.4.5 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: freebsd-acpi@FreeBSD.org X-BeenThere: freebsd-acpi@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: ACPI and power management development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Nov 2012 15:14:54 -0000 on 13/11/2012 17:09 Tom Lislegaard said the following: > > >> -----Original Message----- >> From: Andriy Gapon [mailto:avg@FreeBSD.org] >> Sent: 9. november 2012 14:46 >> To: Tom Lislegaard >> Cc: freebsd-acpi@FreeBSD.org >> Subject: Re: AcpiOsAcquireObject crash [Was: 9-Stable panic: resource_list_unreserve: can't find >> resource] >> >> on 09/11/2012 14:17 Tom Lislegaard said the following: >>> kgdb) up 7 >>> #7 0xffffffff802d1bdd in AcpiOsAcquireObject (Cache=0xfffffe00052bac60) at >> /usr/src/sys/contrib/dev/acpica/utilities/utcache.c:316 >>> 316 ACPI_DEBUG_PRINT ((ACPI_DB_EXEC, >>> (kgdb) x/9a Cache->ListHead >>> 0xfffffffeec85c730: Cannot access memory at address 0xfffffffeec85c730 >> >> [Slaps forehead] Ah, right, indeed.on >> I guess the problem hasn't happened again since then? >> Does the patch appear to work OK so far (with respect to the original problem)? >> > You're right, I haven't had any occurrence of the 'resource_list_unreserve' panic since the original patch. OK. Good news. Thank you! > The patch below works badly on my system. I notice that certain processes start to hang, for instance during boot I have to interrupt /etc/rc.d/initrandom to continue. Xorg also hangs and if I log in on another terminal I see the process is in processorstate 'acmtx'. Yeah... Please revert it. When I said that it was experimental, I was under-estimating its level of incompleteness :-( I have a better patch, which I tested at least. I'll send it to you soon-ish. > The kernel msg buffer is full of messages like this > > ACPI Error: Could not acquire AML Interpreter mutex (20110527/exutils-107) > ACPI Exception: AE_ERROR, Thread 100076 could not acquire Mutex [0x8] (20110527/utmutex-315) > ACPI Error: Mutex [0x8] is not acquired, cannot release (20110527/utmutex-359) > ACPI Error: Mutex [0x0] is not acquired, cannot release (20110527/utmutex-359) > ACPI Error: Could not release AML Interpreter mutex (20110527/exutils-177) > >> I have a suspicion about what causes the new problem. >> If it is correct then the following experimental patch may help with it: [bad patch snipped] -- Andriy Gapon