NetBSD Problem Report #44409

From jruohone@gmail.com  Tue Jan 18 14:13:31 2011
Return-Path: <jruohone@gmail.com>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id B1B8463B883
	for <gnats-bugs@gnats.netbsd.org>; Tue, 18 Jan 2011 14:13:31 +0000 (UTC)
Message-Id: <20110118141246.6E5E656BC@marx.bitnet>
Date: Tue, 18 Jan 2011 16:12:46 +0200 (EET)
From: Jukka Ruohonen <jruohonen@iki.fi>
Sender: a b <jruohone@gmail.com>
Reply-To: jruohonen@iki.fi
To: gnats-bugs@gnats.NetBSD.org
Subject: 5.1/i386 panics in halt -p
X-Send-Pr-Version: 3.95

>Number:         44409
>Category:       port-i386
>Synopsis:       5.1/i386 panics in halt -p
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-i386-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Tue Jan 18 14:15:00 +0000 2011
>Closed-Date:    Sat Dec 19 02:52:55 +0000 2015
>Last-Modified:  Sat Dec 19 02:52:55 +0000 2015
>Originator:     Jukka Ruohonen
>Release:        NetBSD 5.1_STABLE
>Organization:
-
>Environment:
Architecture: i386
Machine: i386

>Description:

NetBSD 5.1 panics during halt -p:

panic: cpu_switchto: switching above IPL_SCHED(8)

syscall(...
sys_reboot(...
cpu_reboot(...
acpi_enter_sleep_state(...
AcpiEnterSleepStatePrep(...
AcpiEvaluateObject(...
AcpiNsEvaluate(...
AcpiPsExecuteMethod(...
AcpiPSParseAml(...
AcpiPsParseLoop(...
AcpiDsExecEndOp(...
AcpiDsEvaluateNamePath(...
AcpiExResolveToValue(...
AcpiExReadDataFromField(...
AcpiExExtractFromField(...
AcpiExFieldDatumIo(...
AcpiExAccessRegion(...
AcpiEvAddressSpaceDispatch(...
acpiec_space_handler(...
cv_timedwait(...
sleep_block(...
cpu_switchto(...
panic(...

This is another locking error. Something is dispatched to the EC,
acpiec(4) does not detect that we are in a middle of powerdown, and uses
condvar(9).

>How-To-Repeat:

halt -p

>Fix:

Not yet investigated.

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->feedback
State-Changed-By: chs@NetBSD.org
State-Changed-When: Sat, 21 Jan 2012 18:02:56 +0000
State-Changed-Why:
this looks like it's fixed by rev 1.56 of acpi_ec.c, can you confirm?


State-Changed-From-To: feedback->analyzed
State-Changed-By: jruoho@NetBSD.org
State-Changed-When: Mon, 05 Mar 2012 05:19:42 +0000
State-Changed-Why:

Indeed this is fixed in 6.0. But I can not confirm whether it is the
mentioned change in the EC driver or something else.



State-Changed-From-To: analyzed->closed
State-Changed-By: dholland@NetBSD.org
State-Changed-When: Sat, 19 Dec 2015 02:52:55 +0000
State-Changed-Why:
-5 is now EOL, fixed in -6


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.