From owner-freebsd-bugs@FreeBSD.ORG  Thu Jan 22 08:00:34 2004
Return-Path: <owner-freebsd-bugs@FreeBSD.ORG>
Delivered-To: freebsd-bugs@hub.freebsd.org
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 75CC016A4CE
	for <freebsd-bugs@hub.freebsd.org>;
	Thu, 22 Jan 2004 08:00:34 -0800 (PST)
Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DA96643D2F
	for <freebsd-bugs@hub.freebsd.org>;
	Thu, 22 Jan 2004 08:00:30 -0800 (PST)
	(envelope-from gnats@FreeBSD.org)
Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1])
	i0MG0UFR084825	for <freebsd-bugs@freefall.freebsd.org>;
	Thu, 22 Jan 2004 08:00:30 -0800 (PST)
	(envelope-from gnats@freefall.freebsd.org)
Received: (from gnats@localhost)
	by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i0MG0Uwl084824;
	Thu, 22 Jan 2004 08:00:30 -0800 (PST)
	(envelope-from gnats)
Resent-Date: Thu, 22 Jan 2004 08:00:30 -0800 (PST)
Resent-Message-Id: <200401221600.i0MG0Uwl084824@freefall.freebsd.org>
Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer)
Resent-To: freebsd-bugs@FreeBSD.org
Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org,
	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])
	i0MFtUP3029669;	Thu, 22 Jan 2004 16:55:30 +0100 (CET)
Received: from BGSZ082.kfunigraz.ac.at (BGSZ082.kfunigraz.ac.at
	<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: 
	kern/61733: panic: resource_list_release: resource entry is not busy
X-BeenThere: freebsd-bugs@freebsd.org
X-Mailman-Version: 2.1.1
Precedence: list
List-Id: Bug reports <freebsd-bugs.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>,
	<mailto:freebsd-bugs-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-bugs>
List-Post: <mailto:freebsd-bugs@freebsd.org>
List-Help: <mailto:freebsd-bugs-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-bugs>,
	<mailto:freebsd-bugs-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 22 Jan 2004 16:00:34 -0000


>Number:         61733
>Category:       kern
>Synopsis:       panic: resource_list_release: resource entry is not busy
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 22 08:00:30 PST 2004
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: