From owner-freebsd-bugs Fri May 21 2:40: 5 1999 Delivered-To: freebsd-bugs@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id E7BDE15230 for ; Fri, 21 May 1999 02:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id CAA50039; Fri, 21 May 1999 02:40:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from rzmail.uni-trier.de (rzmail.uni-trier.de [136.199.8.220]) by hub.freebsd.org (Postfix) with ESMTP id 10B5914E9D for ; Fri, 21 May 1999 02:29:57 -0700 (PDT) (envelope-from blank@uni-trier.de) Received: from uni-trier.de (blank@rzppp-78.uni-trier.de [136.199.4.78]) by rzmail.uni-trier.de (8.8.5/8.6.9) with ESMTP id LAA01585 for ; Fri, 21 May 1999 11:29:45 +0200 (CEST) Received: (from blank@localhost) by uni-trier.de (8.9.3/8.9.3) id LAA00624; Fri, 21 May 1999 11:29:00 +0200 (CEST) (envelope-from blank) Message-Id: <199905210929.LAA00624@uni-trier.de> Date: Fri, 21 May 1999 11:29:00 +0200 (CEST) From: blank@uni-trier.de Reply-To: blank@uni-trier.de To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: kern/11815: SCSI tape driver fails on media type recognition Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 11815 >Category: kern >Synopsis: SCSI tape driver fails on media type recognition >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri May 21 02:40:02 PDT 1999 >Closed-Date: >Last-Modified: >Originator: Sascha Blank >Release: FreeBSD 3.2-STABLE i386 >Organization: >Environment: A FreeBSD 3.2-STABLE system, CVSupped on Thursday, May 20th at about 18:50 o'clock CEST. A "make world" has been performed after that. Import messages from dmesg output: ... ncr0: rev 0x03 int a irq 11 on pci0.8.0 ... sa0 at ncr0 bus 0 target 0 lun 0 sa0: Removable Sequential Access SCSI-2 device sa0: 4.807MB/s transfers (4.807MHz, offset 8) ... The tape drive's firmware has revision 07:28, and the drive itself is the only device connected to the ncr0 controller. ident /usr/src/sys/cam/scsi/scsi_sa.c: $Id: scsi_sa.c,v 1.16.2.4 1999/05/11 05:40:43 mjacob Exp $ >Description: When I insert a tape of my choice into the drive and do a "mt status", I get the following status report: Mode Density Blocksize bpi Compression Current: 0x11:QIC-320 1024 bytes 16000 disabled ---------available modes--------- 0: 0x11:QIC-320 1024 bytes 16000 none 1: 0x11:QIC-320 1024 bytes 16000 none 2: 0x11:QIC-320 1024 bytes 16000 none 3: 0x11:QIC-320 1024 bytes 16000 none --------------------------------- Current Driver State: at rest. --------------------------------- File Number: 0 Record Number: 0 The output is always the same, no matter whether I have inserted a QIC-120, a QIC-150 or a QIC-1000 tape! Doing tape operations like reading from or writing to the tape doesn't make a change either, even a "mt erase" doesn't help; the "mt status" output after these operations is always the same as shown above (except for the blocksize that I might have to change to 512 to be able to read "smaller" tapes like QIC-120s). >How-To-Repeat: See above. >Fix: The problem is introduced by changes that were made to scsi_sa.c when going from revision 1.16.2.3 to 1.16.2.4. Going back to version 1.16.2.3 makes the media type recognition work again. >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message