From owner-freebsd-current@FreeBSD.ORG Fri Sep 3 17:08:54 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id EC78D16A4CE; Fri, 3 Sep 2004 17:08:54 +0000 (GMT) Received: from www.cryptography.com (li-22.members.linode.com [64.5.53.22]) by mx1.FreeBSD.org (Postfix) with ESMTP id B66A343D1F; Fri, 3 Sep 2004 17:08:54 +0000 (GMT) (envelope-from nate@root.org) Received: from [10.0.0.34] (adsl-67-127-84-57.dsl.snfc21.pacbell.net [67.127.84.57]) by www.cryptography.com (8.12.8/8.12.8) with ESMTP id i83H8qDl025613; Fri, 3 Sep 2004 10:08:52 -0700 Message-ID: <4138A524.8080107@root.org> Date: Fri, 03 Sep 2004 10:08:52 -0700 From: Nate Lawson User-Agent: Mozilla Thunderbird 0.7.3 (X11/20040901) X-Accept-Language: en-us, en MIME-Version: 1.0 To: John Baldwin References: <4137EA5C.30606@mcsi.pp.ru> <200409031023.55561.jhb@FreeBSD.org> In-Reply-To: <200409031023.55561.jhb@FreeBSD.org> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: Maxim Maximov cc: current@FreeBSD.org Subject: Re: panic on shutdown X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Fri, 03 Sep 2004 17:08:55 -0000 John Baldwin wrote: > On Thursday 02 September 2004 11:51 pm, Maxim Maximov wrote: > >>Hello. >> >> I just got this panic on shutdown using Power button, hand transcribed: >> >>Syncing disks: >>No buffers busy after final sync >>Uptime: 21m53s >>Powering system off using ACPI >> >>panic: lock (sleep mutex) Giant not locked @ >>/usr/src/sys/kern/kern_timeout.c:279 >> >>cpuid = 0 >>KDB: enter: panic >>ACPI power-off failed - timeout >> >>Rebooting... >>cpu_reset: called on cpu#1 >>cpu_reset: Stopping other CPUs >> >>Here it hung until I pressed Power button again. Then it shut down. > > Looks like the timeout/callout routine dropped Giant more than it acquired it. I don't see how this could be triggered by ACPI. If you reboot the system with ACPI disabled (or enabled), do you also get this message? We don't acquire or release Giant explicitly and the device and interrupt are both marked MPSAFE. Well, we use Giant for busdma to set up the 1 MB trampoline in low memory for resume but that shouldn't affect this unless there's a bug in busdma. BTW, why doesn't "panic" from the debugger prompt actually reset the system any more? -Nate