From dada@sbox.tugraz.at  Thu Jan 22 07:55:35 2004
Return-Path: <dada@sbox.tugraz.at>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id E6B2416A4CE
	for <freebsd-gnats-submit@freebsd.org>; Thu, 22 Jan 2004 07:55:35 -0800 (PST)
Received: from mailrelay02.tugraz.at (mailrelay.tu-graz.ac.at [129.27.3.7])
	by mx1.FreeBSD.org (Postfix) with ESMTP id C800243D3F
	for <freebsd-gnats-submit@freebsd.org>; Thu, 22 Jan 2004 07:55:32 -0800 (PST)
	(envelope-from dada@sbox.tugraz.at)
Received: from localhost (webmail01.tu-graz.ac.at [129.27.3.143])
	by mailrelay02.tugraz.at (8.12.11/8.12.11) with ESMTP id i0MFtUP3029669;
	Thu, 22 Jan 2004 16:55:30 +0100 (CET)
Received: from BGSZ082.kfunigraz.ac.at (BGSZ082.kfunigraz.ac.at
	[143.50.30.82]) by webmail.tugraz.at (Horde) with HTTP for <dada@sbox>;
	Thu, 22 Jan 2004 16:55:29 +0100
Message-Id: <20040122165529.u9q1w0ggwo444w04@webmail.tugraz.at>
Date: Thu, 22 Jan 2004 16:55:29 +0100
From: dada@sbox.tugraz.at
To: freebsd-gnats-submit@freebsd.org
Subject: panic: resource_list_release: resource entry is not busy

>Number:         61733
>Category:       kern
>Synopsis:       panic: resource_list_release: resource entry is not busy
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    imp
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 22 08:00:30 PST 2004
>Closed-Date:    Fri May 13 14:03:53 MDT 2011
>Last-Modified:  Fri May 13 14:03:53 MDT 2011
>Originator:     Martin Kammerhofer
>Release:        FreeBSD 5.2-RELEASE i386
>Organization:
Graz University
>Environment:
FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:37:35 GMT 2004
    root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/BOOTMFS

>Description:
Kernel panics when probing 3COM ISA NIC:

  Hit [Enter] to boot immediately, or any other key for command prompt.
  Booting [/kernel]...
  Copyright (c) 1992-2004 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	    The Regents of the University of California. All rights reserved.
  FreeBSD 5.2-RELEASE #0: Sun Jan 11 04:37:35 GMT 2004
	root@wv1u.btc.adaptec.com:/usr/obj/usr/src/sys/BOOTMFS
  Preloaded elf kernel "/kernel" at 0xc0b05000.
  Preloaded mfs_root "/mfsroot" at 0xc0b050a8.
  Timecounter "i8254" frequency 1193182 Hz quality 0
  CPU: i486DX (486-class CPU)
  real memory  = 16777216 (16 MB)
  avail memory = 7131136 (6 MB)
  npx0: [FAST]
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
  isa0: <ISA bus> on motherboard
  orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
  ata0 at port 0x3f6,0x1f0-0x1f7 irq 14 on isa0
  ata0: [MPSAFE]
  ata1 at port 0x376,0x170-0x177 irq 15 on isa0
  ata1: [MPSAFE]
  atkbdc0: <Keyboard controller (i8042)> at port 0x64,0x60 on isa0
  fdc0: <NEC 765 or clone> at port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on isa0
  fd0: <1440-KB 3.5" drive> on fdc0 drive 0
  ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
  ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
  ppbus0: <Parallel port bus> on ppc0
  plip0: <PLIP network interface> on ppbus0
  sc0: <System console> at flags 0x100 on isa0
  sc0: VGA <16 virtual consoles, flags=0x100>
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16450, console
  sio1 at port 0x2f8-0x2ff irq 3 on isa0
  sio1: type 16450
  vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
  ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 10 on isa0
  ep0: eeprom failed to come ready.
  ep0: ep_alloc() failed! (6)
  panic: resource_list_release: resource entry is not busy
  cpuid = 0;
  Uptime: 1s
  Automatic reboot in 15 seconds - press a key on the console to abort
  --> Press a key on the console to reboot,
  --> or switch off the system now.

The rather old 3COM card actually gets probed twice as ep0 (bogus) and
ep1 (working). Below is a copy of dmesg(8) output from the same
hardware, but running a 4.9-STABLE kernel - where it doesn't panic :-)

  Copyright (c) 1992-2003 The FreeBSD Project.
  Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
	    The Regents of the University of California. All rights reserved.
  FreeBSD 4.9-STABLE #1: Mon Jan  5 14:43:09 CET 2004
	toor@Martin.liebt.Susi:/usr/obj/usr/src/sys/VLB486
  Timecounter "i8254"  frequency 1193182 Hz
  CPU: i486DX (486-class CPU)
  real memory  = 16777216 (16384K bytes)
  config> enable sio2
  config> irq sio2 11
  config> ls
  Device   port       irq   drq   iomem   iosize   unit  flags      enab
  fdc0     0x3f0      6     2     0       0        0     0          Yes
  fd0      0          0     0     0       0        0     0          Yes
  ata0     0x1f0      14    0     0       0        0     0          Yes
  ata1     0x170      15    0     0       0        1     0          Yes
  atkbdc0  0x60       0     0     0       0        0     0          Yes
  atkbd0   0          1     0     0       0        0     0x1        Yes
  vga0     0          0     0     0       0        0     0          Yes
  sc0      0          0     0     0       0        0     0x100      Yes
  npx0     0xf0       13    0     0       0        0     0          Yes
  sio0     0x3f8      4     0     0       0        0     0x10       Yes
  sio1     0x2f8      3     0     0       0        1     0x80       Yes
  sio2     0x3e8      11    0     0       0        2     0          Yes
  sio3     0x2e8      9     0     0       0        3     0          No
  sbc0     0x220      5     1     0       0        0     0x15       Yes
  ppc0     0          7     0     0       0        0     0          Yes
  sio1: gdb debugging port
  avail memory = 13713408 (13392K bytes)
  Preloaded elf kernel "kernel" at 0xc02d4000.
  Preloaded userconfig_script "/boot/kernel.conf" at 0xc02d409c.
  npx0: <math processor> on motherboard
  npx0: INT 16 interface
  isa0: <ISA bus> on motherboard
  orm0: <Option ROM> at iomem 0xc0000-0xc7fff on isa0
  pmtimer0 on isa0
  ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 10 on isa0
  ep0: eeprom failed to come ready.
  ep0: eeprom failed to come ready.
  ep0: eeprom failed to come ready.
  ep0: eeprom failed to come ready.
  ep0: eeprom failed to come ready.
  ep0: Ethernet address 00:00:00:00:00:00
  fdc0: <NEC 765 or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
  fd0: <1440-KB 3.5" drive> on fdc0 drive 0
  ata0 at port 0x1f0-0x1f7,0x3f6 irq 14 on isa0
  ata1 at port 0x170-0x177,0x376 irq 15 on isa0
  atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
  vga0: <Generic ISA VGA> at port 0x3c0-0x3df iomem 0xa0000-0xbffff on isa0
  sc0: <System console> at flags 0x100 on isa0
  sc0: VGA <16 virtual consoles, flags=0x100>
  sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
  sio0: type 16450, console
  sio1 at port 0x2f8-0x2ff irq 3 flags 0x80 on isa0
  sio1: type 16450
  sio2 at port 0x3e8-0x3ef irq 11 drq 0 on isa0
  sio2: type 16550A
  sbc0: <SoundBlaster 16> at port 0x220-0x22f irq 5 drq 1 flags 0x15 on isa0
  pcm0: <SB16 DSP 4.13> on sbc0
  ppc0: <Parallel port> at port 0x378-0x37f irq 7 on isa0
  ppc0: Generic chipset (NIBBLE-only) in COMPATIBLE mode
  ppi0: <Parallel I/O> on ppbus0
  plip0: <PLIP network interface> on ppbus0
  lpt0: <Printer> on ppbus0
  lpt0: Interrupt-driven port
  ep1: <3Com 3C509B-Combo EtherLink III (PnP)> at port 0x210-0x21f irq 9 on isa0
  ep1: Ethernet address 00:a0:24:44:81:eb
  ad0: 329MB <Maxtor 7345 AT> [790/15/57] at ata0-master BIOSPIO
  ad1: 408MB <ST3491A-XR> [899/15/62] at ata0-slave BIOSPIO
  acd0: CDROM <CDA66801I> at ata1-slave BIOSPIO
  Mounting root from ufs:/dev/ad1s1a

>How-To-Repeat:
Boot 5.2 with those NIC.

>Fix:
>Release-Note:
>Audit-Trail:

From: Andy Farkas <andyf@speednet.com.au>
To: dada@sbox.tugraz.at
Cc: freebsd-gnats-submit@freebsd.org, freebsd-bugs@freebsd.org
Subject: Re: kern/61733: panic: resource_list_release: resource entry is not
 busy
Date: Sat, 24 Jan 2004 09:24:31 +1000 (EST)

 > >Description:
 > Kernel panics when probing 3COM ISA NIC:
 >   ep0: <3Com 3C509-Combo EtherLink III> at port 0x300-0x30f irq 10 on isa0
 >   ep0: eeprom failed to come ready.
 >   ep0: ep_alloc() failed! (6)
 >   panic: resource_list_release: resource entry is not busy
 
 Maybe the card is in the wrong "mode", ie. it might be in PnP mode when it
 should be hard-coded (using the supplied DOS config program) or vice-verce..
 ..or maybe its just broken :)
 
 Although I don't know what mode mine is in, it works ok and gets probed as:
 
 ep0: <3Com 3C509B-TPO EtherLink III (PnP)> at port 0x210-0x21f irq 5 on isa0
 ep0: Ethernet address 00:10:4b:28:ed:dd
 
 It is also in a 16MB 486 box running 5.2-RELEASE.
 
 --
 
  :{ andyf@speednet.com.au
 
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
 
 

From: dada@sbox.tugraz.at
To: Andy Farkas <andyf@speednet.com.au>
Cc: freebsd-gnats-submit@freebsd.org
Subject: Re: kern/61733: panic: resource_list_release: resource entry is
	not busy
Date: Mon, 26 Jan 2004 15:50:32 +0100

 Zitat von Andy Farkas <andyf@speednet.com.au>:
 
 > Maybe the card is in the wrong "mode", ie. it might be in PnP mode when it
 > should be hard-coded (using the supplied DOS config program) or vice-verce..
 > ..or maybe its just broken :)
 
 The card works well with 4.9 (and Windows) and all the hardware is
 supported according to the 5.2 release documentation.
 Even if the card is misconfigured, 5.2 definitely should _not_ panic.
 

From: Andy Farkas <andyf@speednet.com.au>
To: dada@sbox.tugraz.at
Cc: freebsd-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/61733: panic: resource_list_release: resource entry is not
 busy
Date: Tue, 27 Jan 2004 11:16:28 +1000 (EST)

 dada@sbox.tugraz.at wrote:
 
 >  Even if the card is misconfigured, 5.2 definitely should _not_ panic.
 >
 
 It seems this problem is fairly old and FreeBSD has been doing it since 4.1.
 
 This PR is a duplicate of PR i386/20803
 
  <http://www.freebsd.org/cgi/query-pr.cgi?pr=20803>
 
 --
 
  :{ andyf@speednet.com.au
 
         Andy Farkas
     System Administrator
    Speednet Communications
  http://www.speednet.com.au/
 
 

From: dada@sbox.tugraz.at
To: Andy Farkas <andyf@speednet.com.au>
Cc: freebsd-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/61733: panic: resource_list_release: resource entry is
	not busy
Date: Tue, 27 Jan 2004 16:38:08 +0100

 Zitat von Andy Farkas <andyf@speednet.com.au>:
 
 > It seems this problem is fairly old and FreeBSD has been doing it since 4.=
 1.
 >
 > This PR is a duplicate of PR i386/20803
 >
 >  <http://www.freebsd.org/cgi/query-pr.cgi?pr=3D20803>
 >
 
 The PR you cited (as well as
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/18200">PR
 kern/18200</a>) report a nuisance, this one is about a real showstopper.
 The cause seems the same, but the symptom is fatal now in FreeBSD 5.
 
 The suggestion to use 3c5x9cfg.exe will likely solve my problem (see
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Di386/26344">PR
 i386/26344</a>, I have not tried it yet) but I won=B4t report it here to hav=
 e
 this PR closed too. I do not care much about a misleading device probe
 message, but imho the panic should be fixed (or this problem added to the
 errata or hardware notes.) These old cards are not that exotic, people will
 stumble over this again and again.
 

From: dada@sbox.tugraz.at
To: Andy Farkas <andyf@speednet.com.au>
Cc: freebsd-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: [Freebsd-bugs] Re: kern/61733: panic: resource_list_release:
	resource entry is not busy
Date: Tue, 27 Jan 2004 16:38:08 +0100

 Zitat von Andy Farkas <andyf@speednet.com.au>:
 
 > It seems this problem is fairly old and FreeBSD has been doing it since 4.=
 1.
 >
 > This PR is a duplicate of PR i386/20803
 >
 >  <http://www.freebsd.org/cgi/query-pr.cgi?pr=3D20803>
 >
 
 The PR you cited (as well as
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dkern/18200">PR
 kern/18200</a>) report a nuisance, this one is about a real showstopper.
 The cause seems the same, but the symptom is fatal now in FreeBSD 5.
 
 The suggestion to use 3c5x9cfg.exe will likely solve my problem (see
 <a href=3D"http://www.freebsd.org/cgi/query-pr.cgi?pr=3Di386/26344">PR
 i386/26344</a>, I have not tried it yet) but I won=B4t report it here to hav=
 e
 this PR closed too. I do not care much about a misleading device probe
 message, but imho the panic should be fixed (or this problem added to the
 errata or hardware notes.) These old cards are not that exotic, people will
 stumble over this again and again.
 
 _______________________________________________
 freebsd-bugs@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-bugs
 To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
 _______________________________________________
 Freebsd-bugs mailing list
 Freebsd-bugs@lists.elvandar.org
 http://lists.elvandar.org/mailman/listinfo/freebsd-bugs

From: dada@sbox.tugraz.at
To: Andy Farkas <andyf@speednet.com.au>
Cc: freebsd-bugs@freebsd.org, freebsd-gnats-submit@freebsd.org
Subject: Re: kern/61733: panic: resource_list_release: resource entry is
	not busy
Date: Mon,  2 Feb 2004 12:15:17 +0100

 Downloading 3c509x2.exe from www.3com.com and reconfiguring the card stopped
 the panic. However today I got email from a first time user who got the same
 panic with a very different NIC - a 3CR990SVR97 (Typhoon) PCI 100MBit card,
 when trying to install FreeBSD 5.2. (BTW he asked me, wether it makes sense
 to try FreeBSD again and I pointed him to FreeBSD 4.9.)
 So I guess this is not a problem with the ep driver alone.
 

From: "_______" <tpotenberg@verizon.net>
To: <freebsd-gnats-submit@FreeBSD.org>, <dada@sbox.tugraz.at>
Cc:  
Subject: Re: kern/61733: panic: resource_list_release: resource entry is not busy
Date: Sat, 24 Apr 2004 11:11:50 -0500

 This is a multi-part message in MIME format.
 
 ------=_NextPart_000_0003_01C429EC.F143F580
 Content-Type: text/plain;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 I'm having the same problem on an MSI motherboard with an integrated SiS =
 NIC. There are no 3Com cards present in this machine.
 ------=_NextPart_000_0003_01C429EC.F143F580
 Content-Type: text/html;
 	charset="iso-8859-1"
 Content-Transfer-Encoding: quoted-printable
 
 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
 <HTML><HEAD>
 <META http-equiv=3DContent-Type content=3D"text/html; =
 charset=3Diso-8859-1">
 <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
 <STYLE></STYLE>
 </HEAD>
 <BODY bgColor=3D#ffffff>
 <DIV><FONT face=3DArial size=3D2>I'm having the same problem on an MSI =
 motherboard=20
 with an integrated SiS NIC. There are no 3Com cards present in this=20
 machine.</FONT></DIV></BODY></HTML>
 
 ------=_NextPart_000_0003_01C429EC.F143F580--
 
Responsible-Changed-From-To: freebsd-bugs->imp 
Responsible-Changed-By: imp 
Responsible-Changed-When: Mon Jul 12 16:40:48 MDT 2004 
Responsible-Changed-Why:  
I'll look into this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=61733 
State-Changed-From-To: open->closed 
State-Changed-By: imp 
State-Changed-When: Fri May 13 14:03:30 MDT 2011 
State-Changed-Why:  
This is OBE.  I've not seen this panic in a long long time. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=61733 
>Unformatted:
