From owner-freebsd-scsi Mon Feb 12 18:32:24 1996 Return-Path: owner-freebsd-scsi Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id SAA23456 for freebsd-scsi-outgoing; Mon, 12 Feb 1996 18:32:24 -0800 (PST) Received: from Aspen.Woc.Atinc.COM (aspen.woc.atinc.com [198.138.38.205]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id SAA23439 for ; Mon, 12 Feb 1996 18:32:10 -0800 (PST) Received: (from root@localhost) by Aspen.Woc.Atinc.COM (8.6.12/8.6.9) id VAA02053; Mon, 12 Feb 1996 21:32:08 -0500 Date: Mon, 12 Feb 1996 21:32:07 -0500 (EST) From: Charlie ROOT X-Sender: root@Aspen.Woc.Atinc.COM Reply-To: jmb@freebsd.org To: freebsd-scsi@freebsd.org Subject: ncr.c | anaconda | cdrom changer bug Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@freebsd.org Precedence: bulk my second scsi bus dies if dump reaches the end of a tape and i abort the dump. the ncr scsi driver now report errors for each scsi operation. i an using an archive anaconda QIC-1305 tape drive and dump. (boot dmesg output at end, with kernel config file) i have SCSIDEBUG and superscsi in the kernel, so i can provide more data as requested. scsi chain: sc200 card----nakamichi---archive---fujitsu 1GB harddrive ncr 53c810 7 cdrom anaconda changer qic tape target: 7 0 4 6 luns: 0-6 none none dump process: DUMP: 49.01% done, finished in 0:10 DUMP: End of tape detected DUMP: Closing /dev/rst0.2 DUMP: Change Volumes: Mount volume #2 DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") DUMP: Is the new volume mounted and ready to go?: ("yes" or "no") DUMP: Do y ou want to abort?: ("yes" or "no") DUMP: The ENTIRE dump is aborted. so i did an "mt -f /dev/rst0 rewoffl" the tape was ejected. resulting dmesg output: ncr1:4: ERROR (80:140) (8-2a-0) (0/13) @ (544:900b0000). script cmd = 910a0000 reg: da 10 80 13 47 00 04 1f 01 08 84 2a 80 00 0a 00. ncr1: handshake timeout ncr1: restart (scsi reset). st0(ncr1:4:0): COMMAND FAILED (6 ff) @f068b200. st0(ncr1:4:0): UNIT ATTENTION st0(ncr1:4:0): NOT READY st0(ncr1:4:0): NOT READY ncr1:4: ERROR (80:140) (8-2a-0) (0/13) @ (544:900b0000). script cmd = 910a0000 reg: da 10 80 13 47 00 04 1f 01 08 04 2a 80 00 0a 00. ncr1: handshake timeout ncr1: restart (scsi reset). st0(ncr1:4:0): COMMAND FAILED (6 ff) @f068b200. then i tried to mount a cdrom: (mount -t cd9660 /dev/cd6c /mnt) the mount failed: "cd9660: /dev/cd6c: Input/output error" cd6(ncr1:0:6): asynchronous. cd6(ncr1:0:6): UNIT ATTENTION asc:29,0 cd6(ncr1:0:6): Power on, reset, or bus device reset occurred ncr1:0: ERROR (80:140) (8-2a-0) (e0/13) @ (544:900b0000). script cmd = 910a0000 reg: da 10 80 13 47 e0 00 1f 01 08 04 2a 80 00 0a 00. ncr1: handshake timeout ncr1: restart (scsi reset). cd6(ncr1:0:6): COMMAND FAILED (6 ff) @f068b600. cd6(ncr1:0:6): asynchronous. inserted a tape into the drive, which accepted the tape. then did another "mt -f /dev/rst0 rewoffl" producing this output: ncr1:4: ERROR (80:140) (8-2a-0) (0/13) @ (544:900b0000). script cmd = 910a0000 reg: da 10 80 13 47 00 04 1f 01 08 04 2a 80 00 0a 00. ncr1: handshake timeout ncr1: restart (scsi reset). st0(ncr1:4:0): COMMAND FAILED (6 ff) @f068b200. the tape was ejected. the cdrom changer sounds as if it changed cdroms! the archive anaconda tape drive chatters/buzzes as if it is resetting ?? the only other item on this scsi chain is a fujitsu 1GB drive. trying to mount causes: Aspen:[69] mount /dev/sd2e /mnt /dev/sd2e on /mnt: Operation not permitted Aspen:[70] id uid=0(root) gid=0(wheel) groups=0(wheel), 2(kmem), 3(sys), 4(tty), 5(operator), 20(staff), 31(guest) and in dmesg: st0(ncr1:4:0): COMMAND FAILED (6 ff) @f068b200. sd2(ncr1:6:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. sd2(ncr1:6:0): UNIT ATTENTION asc:29,0 sd2(ncr1:6:0): Power on, reset, or bus device reset occurred , retries:2 sd2s1: type 0xa5, start 62, end = 2131187, size 2131126 : OK WARNING: R/W mount of /usr denied. Filesystem is not clean - run fsck. this scsi bus is unusable till reboot. ;( Jonathan M. Bresler FreeBSD Postmaster jmb@FreeBSD.ORG play go. ride bike. hack FreeBSD.--ah the good life i am moving to a new job. PLEASE USE: jmb@FreeBSD.ORG boot time dmesg output: syncing disks... done Rebooting... FreeBSD 2.1-STABLE #0: Sun Feb 11 18:07:54 EST 1996 jmb@Aspen.Woc.Atinc.COM:/home/sup/src/sys/compile/ASPEN CPU: i486DX (486-class CPU) real memory = 16777216 (16384K bytes) avail memory = 15069184 (14716K bytes) Probing for devices on the ISA bus: sc0 at 0x60-0x6f irq 1 on motherboard sc0: VGA color <16 virtual consoles, flags=0x0> sio0 at 0x3f8-0x3ff irq 4 on isa sio0: type 16550A sio1 at 0x2f8-0x2ff irq 3 on isa sio1: type 16550A sio2 not found at 0x3e8 sio3 not found at 0x2e8 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface lpt1 not found at 0xffffffff fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: NEC 72065B fd0: 1.44MB 3.5in wdc0 not found at 0x1f0 ep0 not found at 0x300 npx0 on motherboard npx0: INT 16 interface Probing for devices on the PCI bus: chip0 rev 4 on pci0:0 ncr0 rev 2 int a irq 9 on pci0:1 (ncr0:0:0): "DEC DSP3053LS X442" type 0 fixed SCSI 2 sd0(ncr0:0:0): Direct-Access sd0(ncr0:0:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. 511MB (1046532 512 byte sectors) (ncr0:1:0): "FUJITSU M1606S-512 6220" type 0 fixed SCSI 2 sd1(ncr0:1:0): Direct-Access sd1(ncr0:1:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. 1041MB (2131992 512 byte sectors) chip1 rev 3 on pci0:2 vga0 rev 0 on pci0:4 ncr1 rev 1 int a irq 11 on pci0:5 (ncr1:0:0): "NRC MBR-7 110" type 5 removable SCSI 2 cd0(ncr1:0:0): CD-ROM cd0(ncr1:0:0): asynchronous. cd0(ncr1:0:0): NOT READY asc:4,1 cd0(ncr1:0:0): Logical unit is in process of becoming ready can't get the size (ncr1:0:1): "NRC MBR-7 110" type 5 removable SCSI 2 cd1(ncr1:0:1): CD-ROM cd1(ncr1:0:1): asynchronous. cd1(ncr1:0:1): NOT READY asc:4,1 cd1(ncr1:0:1): Logical unit is in process of becoming ready can't get the size (ncr1:0:2): "NRC MBR-7 110" type 5 removable SCSI 2 cd2(ncr1:0:2): CD-ROM cd2(ncr1:0:2): asynchronous. cd2(ncr1:0:2): NOT READY asc:4,1 cd2(ncr1:0:2): Logical unit is in process of becoming ready can't get the size (ncr1:0:3): "NRC MBR-7 110" type 5 removable SCSI 2 cd3(ncr1:0:3): CD-ROM cd3(ncr1:0:3): asynchronous. cd present.[326402 x 2048 byte records] (ncr1:0:4): "NRC MBR-7 110" type 5 removable SCSI 2 cd4(ncr1:0:4): CD-ROM cd4(ncr1:0:4): asynchronous. cd present.[269574 x 2048 byte records] (ncr1:0:5): "NRC MBR-7 110" type 5 removable SCSI 2 cd5(ncr1:0:5): CD-ROM cd5(ncr1:0:5): asynchronous. cd present.[300158 x 2048 byte records] (ncr1:0:6): "NRC MBR-7 110" type 5 removable SCSI 2 cd6(ncr1:0:6): CD-ROM cd6(ncr1:0:6): asynchronous. cd present.[160790 x 2048 byte records] (ncr1:4:0): "ARCHIVE ANCDA 2750 28077 -003" type 1 removable SCSI 1 st0(ncr1:4:0): Sequential-Access density code 0x0, drive empty (ncr1:6:0): "FUJITSU M1606S-512 6234" type 0 fixed SCSI 2 sd2(ncr1:6:0): Direct-Access sd2(ncr1:6:0): FAST SCSI-2 100ns (10 Mb/sec) offset 8. 1041MB (2131992 512 byte sectors) kernel config file: # # ASPEN # # machine "i386" cpu "I486_CPU" ident ASPEN maxusers 10 options INET #InterNETworking options FFS #Berkeley Fast Filesystem options PROCFS #Process filesystem options MSDOSFS #MSDOS Filesystem options "CD9660" #ISO 9660 Filesystem options UCONSOLE #X Console support options "FAT_CURSOR" #block cursor in syscons or pccons # options "SCSI_DELAY=15" #Be pessimistic about Joe SCSI device options "NCONS=4" #4 virtual consoles options USERCONFIG #Allow user configuration with -c options "COMPAT_43" #Compatible with BSD 4.3 # options BOUNCE_BUFFERS #include support for DMA bounce buffers options PROBE_VERBOSE #get all pci bus data options COMPAT_LINUX options SYSVSHM options SYSVSEM options SYSVMSG options "IBCS2" # options MAXMEM= options SCSIDEBUG config kernel root on sd1 swap on sd1 and sd0 dumps on sd1 controller isa0 controller pci0 controller fdc0 at isa? port "IO_FD1" bio irq 6 drq 2 vector fdintr disk fd0 at fdc0 drive 0 # tape ft0 at fdc0 drive 2 controller wdc0 at isa? port "IO_WD1" bio irq 14 vector wdintr disk wd0 at wdc0 drive 0 disk wd1 at wdc0 drive 1 controller ncr0 #Only need one of these, the memory allocation grows controller scbus0 device sd0 device sd1 device sd2 device sd3 device st0 device st1 device cd0 #Only need one of these, the code dynamically grows device sc0 at isa? port "IO_KBD" tty irq 1 vector scintr device npx0 at isa? port "IO_NPX" irq 13 vector npxintr 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 sio2 at isa? port "IO_COM3" tty irq 5 vector siointr device sio3 at isa? port "IO_COM4" tty irq 9 vector siointr device lpt0 at isa? port? tty irq 7 vector lptintr device lpt1 at isa? port? tty device ep0 at isa? port 0x300 net irq 10 vector epintr pseudo-device loop pseudo-device ether pseudo-device log pseudo-device sl 2 # # ijppp uses tun instead of ppp device # pseudo-device tun 2 pseudo-device pty 16 pseudo-device speaker pseudo-device gzip # Exec gzipped a.out's pseudo-device bpfilter 4 pseudo-device superscsi