NetBSD Problem Report #6998

Received: (qmail 27438 invoked from network); 14 Feb 1999 00:43:47 -0000
Message-Id: <199902140043.TAA00456@horowitz.ne.mediaone.net>
Date: Sat, 13 Feb 1999 19:43:40 -0500 (EST)
From: Marc Horowitz <marc@horowitz.ne.mediaone.net>
Reply-To: marc@horowitz.ne.mediaone.net
To: gnats-bugs@gnats.netbsd.org
Subject: epintr after epshutdown hangs in the driver.
X-Send-Pr-Version: 3.95

>Number:         6998
>Category:       kern
>Synopsis:       epintr after epshutdown hangs in the driver.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    mycroft
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat Feb 13 16:50:00 +0000 1999
>Closed-Date:    Thu Jul 08 17:23:16 +0000 2004
>Last-Modified:  Thu Jul 08 17:23:16 +0000 2004
>Originator:     Marc Horowitz
>Release:        Feb 2 (but nothing relevant has changed since)
>Organization:

>Environment:
System: NetBSD 1.3I (MARC) #50: Tue Feb  2 20:01:53 EST 1999 
marc@horowitz:/u1/netbsd/src/sys/arch/i386/compile/MARC

>Description:

rebooting on a busy network causes a hang in epstop (probably in the
one spin loop) after printing "ep0: adapter failure (0xffff)".  This
is presumably because the adapter is in a hard reset state.

This is actually two bugs.  First, nothing in any device driver should
spin forever.  Second, the interrupt handler should be disabled in
epshutdown().  I'm not sure what the better fix is: putting a disable
hook in every bus attachment, and calling epdisable() in epshutdown,
or just setting sc->enabled = 0 in epshutdown so that future calls to
epintr() return immediately.

>How-To-Repeat:

	reboot a kernel with an isa ep0 device.  (on inspection, pci
should fail the same way)

>Fix:
	see above.  I'll implement this if someone gives me a good
reason for one fix or the other.
>Release-Note:
>Audit-Trail:

From: Jason Thorpe <thorpej@nas.nasa.gov>
To: marc@horowitz.ne.mediaone.net
Cc: gnats-bugs@gnats.netbsd.org
Subject: Re: kern/6998: epintr after epshutdown hangs in the driver. 
Date: Sat, 13 Feb 1999 17:24:35 -0800

 On Sat, 13 Feb 1999 19:43:40 -0500 (EST) 
  Marc Horowitz <marc@horowitz.ne.mediaone.net> wrote:

  > 	see above.  I'll implement this if someone gives me a good
  > reason for one fix or the other.

 ...or put an splnet()/splx() pair in epshutdown().

         -- Jason R. Thorpe <thorpej@nas.nasa.gov>

State-Changed-From-To: open->closed 
State-Changed-By: mycroft 
State-Changed-When: Thu Jul 8 17:18:56 UTC 2004 
State-Changed-Why:  
This was fixed >5 years ago. 


Responsible-Changed-From-To: kern-bug-people->mycroft 
Responsible-Changed-By: mycroft 
Responsible-Changed-When: Thu Jul 8 17:18:56 UTC 2004 
Responsible-Changed-Why:  
. 
>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.