From pst@Shockwave.COM  Wed Apr 26 14:42:54 1995
Received: from precipice.shockwave.com (precipice.shockwave.com [171.69.108.33])
          by freefall.cdrom.com (8.6.10/8.6.6) with ESMTP id OAA27563
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 26 Apr 1995 14:42:53 -0700
Received: (from pst@localhost) by precipice.shockwave.com (8.6.11/8.6.9) id OAA05212; Wed, 26 Apr 1995 14:42:21 -0700
Message-Id: <199504262142.OAA05212@precipice.shockwave.com>
Date: Wed, 26 Apr 1995 14:42:21 -0700
From: Paul Traina <pst@Shockwave.COM>
Reply-To: pst@Shockwave.COM
To: FreeBSD-gnats-submit@freebsd.org
Cc: bcole@cisco.com
Subject: ep0 driver in generic kernel hangs during attach
X-Send-Pr-Version: 3.2

>Number:         367
>Category:       kern
>Synopsis:       kernel hangs after ep0 attach message appears
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pst
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Apr 26 14:50:00 1995
>Closed-Date:    Thu Feb 8 10:25:58 PST 1996
>Last-Modified:  Thu Feb  8 10:26:39 PST 1996
>Originator:     Bruce Cole
>Release:        FreeBSD 2.1.0-Development i386
>Organization:
cisco Systems, Inc.
>Environment:

April 24th FreeBSD snapshot generic kernel running on a Pentium based
unix box with a 3COM 3C509 ethernet card at 0x300 / irq 10.

>Description:

The system starts to boot, and hangs after the 3c509 attach message shows
up.

From:       Bruce Cole <bcole@cisco.com>
Subject:    Re: 386bsd hint? 
Date:       Wed, 26 Apr 1995 14:26:55 -0700
To:         Paul Traina <pst@cisco.com>
cc:         Bruce Cole <bcole@cisco.com>

> Isn't boot -c wonderful? :-)
> What has likely occured is that some other card has wedged the controller
> first.  I would use boot -c and disable anything that's probing at 0x300 or
> on irq 10, leaving just the 3c509 enabled.

I had tried disabling all the ones that came after it.  Just tried it more
completely like you suggested, and still no luck.  Then I tried a binary
search on getting rid of drivers...  Found that it doesn't hang if I disable
*both* eg0 and lnc0, but not just one or the other.  Either I've got a time
dependency or something weird is going on...


>How-To-Repeat:

Boot a generic kernel on Bruce's box.

>Fix:
	
Well, it's pretty clear that the probe routines for the eg0 and lnc0 drivers
are hosing over the 3c509.  I would suggest changing the order of the probes
in the ethernet driver section, since the ep driver is in much greater common
use than the eg and lnc drivers,  and if the ep driver gets attached first,
the probes for the eg and lnc drivers will never be executed.
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->pst 
Responsible-Changed-By: wollman 
Responsible-Changed-When: Thu Feb 8 08:56:31 PST 1996 
Responsible-Changed-Why:  
pst's bug.  Probably stale. 
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Thu Feb 8 10:25:58 PST 1996 
State-Changed-Why:  
Stale bug. 
>Unformatted:
