From sysseh@devetir.qld.gov.au  Wed Jan 17 23:17:57 1996
Received: from bunyip.cc.uq.oz.au (pp@bunyip.cc.uq.oz.au [130.102.2.1])
          by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id XAA26223
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 17 Jan 1996 23:17:52 -0800 (PST)
Received: from cc.uq.oz.au by bunyip.cc.uq.oz.au 
          id <26091-0@bunyip.cc.uq.oz.au>; Thu, 18 Jan 1996 11:54:52 +1000
Received: from netfl15a.devetir.qld.gov.au 
          by pandora.devetir.qld.gov.au (8.6.10/DEVETIR-E0.3a) with ESMTP 
          id LAA15634 for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 18 Jan 1996 11:25:06 +1000
Received: from localhost by netfl15a.devetir.qld.gov.au (8.6.8.1/DEVETIR-0.1) 
          id BAA19202 for <FreeBSD-gnats-submit@freebsd.org>;
          Thu, 18 Jan 1996 01:20:25 GMT
Message-Id: <199601180120.BAA19202@netfl15a.devetir.qld.gov.au>
Date: Thu, 18 Jan 1996 11:20:22 +1000
From: Stephen Hocking <sysseh@devetir.qld.gov.au>
Sender: sysseh@devetir.qld.gov.au
To: FreeBSD-gnats-submit@freebsd.org
Subject: DEVFS panic with SCSI tape
X-Send-Pr-Version: 3.2

>Number:         951
>Category:       kern
>Synopsis:       -current kernel crashes with devfs error on bootup
>Confidential:   no
>Severity:       serious
>Priority:       high
>Responsible:    julian
>State:          closed
>Quarter:
>Keywords:
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jan 17 23:20:03 PST 1996
>Closed-Date:    Sun Oct 6 12:30:22 PDT 1996
>Last-Modified:  Sun Oct  6 12:32:38 PDT 1996
>Originator:     Stephen Hocking
>Release:        FreeBSD 2.2-CURRENT i386
>Organization:
DEVETIR
>Environment:

	Kernel built at ctm src-cur 1392 with the following config file.
machine		"i386"
cpu		"I486_CPU"
cpu		"I586_CPU"		# out until transient problem fixed
ident		bloop
maxusers	20
options	DEVFS		# testing DEVFS
config		kernel	root on sd0 
options		"COMPAT_43"
options		USER_LDT		#allow user-level control of i386 ldt
options		SYSVSHM
options		SYSVSEM
options		SYSVMSG
options		"SHMMAXPGS=1024"	# Max 4Mb shared mem
options		DDB
options		KTRACE			#kernel tracing
options		UCONSOLE
options		INET			#Internet communications protocols
pseudo-device	ether			#Generic Ethernet
pseudo-device	loop			#Network loopback device
pseudo-device	sl	2		#Serial Line IP
pseudo-device	bpfilter	4	#Berkeley packet filter
pseudo-device	disc			#Discard device
pseudo-device	tun	1		#Tunnel driver(user process ppp)
options		"TCP_COMPAT_42"		#emulate 4.2BSD TCP bugs
options		MROUTING		# Multicast routing
options		FFS			#Fast filesystem
options		MFS			#Memory File System
controller	scbus0	#base SCSI code
device		ch0	#SCSI media changers
device		sd0	#SCSI disks
device		st0	#SCSI tapes
device		cd0	#SCSI CD-ROMs
device		od0	#SCSI optical disk
options		SCSIDEBUG
options		SCSI_REPORT_GEOMETRY
pseudo-device	pty	16	#Pseudo ttys - can go as high as 64
pseudo-device	log		#Kernel syslog interface (/dev/klog)
pseudo-device	vn		#Vnode driver (turns a file into a device)
controller	isa0
options		"AUTO_EOI_1"
options		BOUNCE_BUFFERS
options		XSERVER			# include code for XFree86
options		FAT_CURSOR		# start with block cursor
device		sc0	at isa? port "IO_KBD" tty irq 1 vector scintr
options		HARDFONTS
options         "MAXCONS=16"
device		npx0	at isa? port "IO_NPX" irq 13 vector npxintr
controller	aha0	at isa? port "IO_AHA0" bio irq ? drq 5 vector ahaintr
controller	fdc0	at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr
disk		fd0	at fdc0 drive 0
disk		fd1	at fdc0 drive 1
options	FDSEEKWAIT="16"
device		lpt0	at isa? port? tty irq 7 vector lptintr
device		sio0	at isa? port "IO_COM1" tty irq 4 vector siointr
device		sio1	at isa? port "IO_COM2" tty irq 3 vector siointr
device ed0 at isa? port 0x280 net irq 10 iomem 0xd8000 vector edintr
options BROKEN_BUS_CLOCK	#PAS-16 isn't working and OPTI chipset
options EXCLUDE_SBPRO		#PAS-16
options "SBC_IRQ=9"		#PAS-16. Must match irq on sb0 line.
controller	snd0
device pas0     at isa? port 0x388 irq 12 drq 6 vector pasintr
device sb0      at isa? port 0x220 irq 9 conflicts drq 1 vector sbintr
device opl0     at isa? port 0x38a conflicts
device pca0 at isa? port IO_TIMER1 tty
device		joy0	at isa? port "IO_GAME"
options		COMPAT_LINUX

	Here is dmesg from an earlier working kernel (essentially the same
	except it still has the wt0 device).

FreeBSD 2.2-CURRENT #9: Tue Jan 16 11:21:40 EST 1996
    toor@unixtest.devetir.qld.gov.au:/usr/src/sys/compile/bloop
CPU: i486DX (486-class CPU)
real memory  = 8388608 (8192K bytes)
avail memory = 6676480 (6520K bytes)
DEVFS: ready for devices
Probing for devices on the ISA bus:
sc0 at 0x60-0x6f irq 1 on motherboard
sc0: VGA color <16 virtual consoles, flags=0x0>
ed0 at 0x280-0x29f irq 10 maddr 0xd8000 msize 16384 on isa
ed0: address 00:00:c0:d2:b2:72, type SMC8216T (16 bit) 
lpt0 at 0x378-0x37f irq 7 on isa
lpt0: Interrupt-driven port
lp0: TCP/IP capable interface
sio0 at 0x3f8-0x3ff irq 4 on isa
sio0: type 16450
sio1 at 0x2f8-0x2ff irq 3 on isa
sio1: type 16450
pca0 on motherboard
pca0: PC speaker audio driver
aha0 at 0x330-0x333 irq 11 drq 5 on isa
(aha0:0:0): "SEAGATE ST12550N 0013" type 0 fixed SCSI 2
sd0(aha0:0:0): Direct-Access 2040MB (4178874 512 byte sectors)
sd0(aha0:0:0): with 2708 cyls, 19 heads, and an average 81 sectors/track
(aha0:6:0): "EMERALD  TDC 3800 R02." type 1 removable SCSI 1
st0(aha0:6:0): Sequential-Access density code 0x0,  drive empty
fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa
fdc0: NEC 765
fd0: 1.44MB 3.5in
wt0 not found at 0x300
npx0 on motherboard
npx0: INT 16 interface
pas0 at 0x388 irq 12 drq 6 on isa
pas0: <Pro AudioSpectrum 16D rev 63>
sb0 at 0x220 irq 9 drq 1 on isa
sb0: <SoundBlaster 2.0>
opl0 at 0x38a on isa
opl0: <Yamaha OPL-3 FM>
joy0 at 0x201 on isa
joy0: joystick
devfs ready to run

>Description:

	I created a new kernel after removing the info for the wt0 tape
	as it broke and I replaced it with a Tandberg QIC-525Mb SCSI tape.

	When booting up, we see a bunch of messages flash up after it probes
	the SCSI devices, to do with not being able to find/create slots for
	what looks like SCSI tape devices. Much of the error messages are
	non-7bit ascii, i.e. there's a lot of garbage in there.  After these
	messages it then panics & drops into the debugger. An earlier
	kernel (about a week old) works fine.

	Here's the stack backtrace from DDB.

_dev_link(f0154941,efbffe84,0,efbffe84,f015493a) at _dev_link+0x25
_stattach(f0556780) at _stattach+0x48d
_scsi_device_attach(f0556780) at _scsi_device_attach+0xb3
_scsi_probe_bus(0,6,0,1e8480,f055af00) at _scsi_probe_bus+0x19d
_scsi_attachdevs(f0548f70,f01b4270,0,efbfff60,f01897e3) at 
_scsi_attachdevs+0x8e
_ahaattach(f01b4270) at _ahaattach+0x7a
_config_isadev_c(f01b4270,f01ac364,0,efbfff88,f01893c0) at 
_config_isadev_c+0x1df
_config_isadev(f01b4270,f01ac364) at _config_isadev+0x10
_isa_configure(efbfffac,f0104f5a,0,1ebf24,,1f8000) at _isa_configure+0x154
_configure(0) at _configure+0x2a
_main(efbfffb8,800,800000,f017727a,f01003ac,f01ec128,17,30,1ebf24,1f8000,1f8000
,0,84740407) at _main+0x92
_begin() at _begin+0x59


It's fixed

>How-To-Repeat:

	Build kernel with my config file & boot with my devices.

>Fix:
	
	Yes please!
-- 

        I do not speak for the Worker's Compensation Board of Queensland -
                     They don't pay me enough for that!


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->julian 
Responsible-Changed-By: wosch 
Responsible-Changed-When: Tue Sep 24 17:13:24 PDT 1996 
Responsible-Changed-Why:  
Julian's area. 
State-Changed-From-To: open->closed 
State-Changed-By: julian 
State-Changed-When: Sun Oct 6 12:30:22 PDT 1996 
State-Changed-Why:  

This was fixed by ongoing development a few weeks after the bug report. 

>Unformatted:
