NetBSD Problem Report #38655

From simonb@thistledown.com.au  Wed May 14 03:46:31 2008
Return-Path: <simonb@thistledown.com.au>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 2BF6163B293
	for <gnats-bugs@gnats.NetBSD.org>; Wed, 14 May 2008 03:46:31 +0000 (UTC)
Message-Id: <20080514034629.73E57AFD05@thoreau.thistledown.com.au>
Date: Wed, 14 May 2008 13:46:29 +1000 (EST)
From: Simon Burge <simonb@NetBSD.org>
Reply-To: Simon Burge <simonb@NetBSD.org>
To: gnats-bugs@gnats.NetBSD.org
Subject: ld(4) on twa(4) and twe(4) panic at shutdown
X-Send-Pr-Version: 3.95

>Number:         38655
>Category:       kern
>Synopsis:       ld(4) on twa(4) and twe(4) panic at shutdown
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    kern-bug-people
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed May 14 03:50:00 +0000 2008
>Closed-Date:    Sat Oct 25 19:15:25 +0000 2008
>Last-Modified:  Sat Oct 25 19:15:25 +0000 2008
>Originator:     Simon Burge
>Release:        NetBSD current as of May 13 2008
>Organization:
>Environment:
Architecture: all?
Machine: all?
>Description:
	pmf_system_shutdown() is called at splhigh() on all
	architectures (except atari!) and the twe(4) driver
	flush function ends up calling tsleep() and you get
	the following panic:

		panic: cpu_switcho: switching above IPL_SCHED

>How-To-Repeat:
	Reboot a system with a twa(4) or twe(4) (and possibly
	with or(4) and iop(4) but this isn't known).

>Fix:
	A suggested fix involving polling was posted in:
	  http://mail-index.netbsd.org/tech-kern/2008/05/12/msg001353.html
	A reply for not doing this was posted in:
	  http://mail-index.netbsd.org/tech-kern/2008/05/12/msg001354.html
	Further postings in:
	  http://mail-index.netbsd.org/tech-kern/2008/05/12/msg001356.html
	  http://mail-index.netbsd.org/tech-kern/2008/05/13/msg001360.html

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: christos@NetBSD.org
State-Changed-When: Sat, 25 Oct 2008 15:15:25 -0400
State-Changed-Why:
patch has been applied


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.