Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 10 Nov 1999 22:08:15 -0800 (PST)
From:      ab@astralblue.com
To:        freebsd-gnats-submit@freebsd.org
Subject:   kern/14819: REQ: support for ``immediate'' SCSI commands
Message-ID:  <19991111060815.0879715456@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         14819
>Category:       kern
>Synopsis:       REQ: support for ``immediate'' SCSI commands
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Nov 10 22:10:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Eugene M. Kim
>Release:        3-stable and 4-current
>Organization:
>Environment:
FreeBSD raista.ia.cp 4.0-CURRENT FreeBSD 4.0-CURRENT #0: Wed Nov 10 19:59:27 PST 1999     root@raista.ia.cp:/usr/src/sys/compile/IA-RAISTA  i386

Kernel configuration:
--------------------------------- snip ---------------------------------
#
# IA-RAISTA - kernel configuration for Raista's IA Server
#

#
# CORE PARAMETERS
#

machine         i386            # configuration architecture
ident           IA-RAISTA       # kernel identification
config          kernel          # kernel name
maxusers        64              # hint for system table sizes

#
# GENERAL
#

# CPU options
cpu             I686_CPU        # Intel Pentium Pro/II/III/Celeron CPU

# Config options
#options        USERCONFIG      # boot-up hardware configuration menu
#options        VISUAL_USERCONFIG # visual menu
#options        INCLUDE_CONFIG_FILE # in-line kernel configuration file

# Compatibility options
options         COMPAT_43       # 4.3BSD/FreeBSD 1.x syscall compatibility
options         SYSVSHM         # System V shared memory
options         SYSVSEM         # System V semaphore
options         SYSVMSG         # System V message queue

# Compatibility options - POSIX 1003.1B realtime extensions
options         P1003_1B        # core
options         _KPOSIX_PRIORITY_SCHEDULING # priority scheduling
options         _KPOSIX_VERSION=199309L # POSIX kernel version

# Miscellaneous options
options         MD5             # md5 hashing routine
options         MSGBUF_SIZE=40960 # kernel message buffer size

#
# NETWORKING
#

# Internet family
options         INET            # Internet core code

# Network interface types/options
pseudo-device   loop            # loopback (MANDATORY)
pseudo-device   ether           # Ethernet
pseudo-device   bpf             # Berkeley packet filter (for Samba)

#
# FILESYSTEMS
#

# Real filesystems
options         FFS             # 4.2BSD fast filesystem
options         FFS_ROOT        # FFS usable as root filesystem
options         SOFTUPDATES     # FFS Softupdates technology

# General filesystem options
options         QUOTA           # disk quota check

# Swap options
options         NSWAPDEV=1      # number of swap devices

#
# MISCELLANEOUS DEVICES
#

pseudo-device   pty             # pseudo tty
pseudo-device   vn              # vnode driver

#
# ISA BUS/DEVICES
#

# Core options
controller      isa0            # ISA system bus
controller      pnp0            # ISA plug-and-play support
options         AUTO_EOI_1      # automatic EOI on master PIC
#options        AUTO_EOI_2      # automatic EOI on slave PIC

# AT keyboard controller (required for atkbd0, psm0, vga0 and sc0)
controller      atkbdc0 at isa? port IO_KBD

# AT keyboard
device          atkbd0  at atkbdc? irq 1

# PS/2 mouse
device          psm0    at atkbdc? irq 12

# Standard VGA
device          vga0    at isa? port ? conflicts

# System console
device          sc0     at isa?
options         MAXCONS=12
options         SC_HISTORY_SIZE=1000
options         VESA

# Splash screen at start up (screen savers require this too)
pseudo-device   splash

# Numeric processing extension
device          npx0    at nexus? port IO_NPX irq 13

# Floppy disk controller
controller      fdc0    at isa? port IO_FD1 irq 6 drq 2
device          fd0     at fdc0 drive 0

# Serial ports
device          sio0    at isa? port IO_COM1 irq 4
device          sio1    at isa? port IO_COM2 irq 3

# Newpcm
device          pcm0

#
# PCI BUS/DEVICES
#

# Core options
controller      pci0

# Adaptec aic7895-based SCSI host adapter
controller      ahc0
options         AHC_ALLOW_MEMIO

# MII PHY bus support (for PCI network interface cards)
controller      miibus0

#
# SCSI BUS/DEVICES
#

controller      scbus0          # SCSI bus
device          da0             # disks (direct access)
device          sa0             # tapes (sequential access)
device          cd0             # CD-ROM
device          pass0           # passthrough device

#
# PARALLEL PORT BUS/DEVICES
#

controller      ppbus0          # parallel port bus
controller      lpt0    at ppbus? # parallel printer
device          ppc0    at isa? port ? irq 7 # parallel port device
--------------------------------- snip ---------------------------------

Boot dmesg log:
--------------------------------- snip ---------------------------------
Copyright (c) 1992-1999 The FreeBSD Project.
Copyright (c) 1982, 1986, 1989, 1991, 1993
        The Regents of the University of California. All rights reserved.
FreeBSD 4.0-CURRENT #0: Wed Nov 10 19:59:27 PST 1999
    root@raista.ia.cp:/usr/src/sys/compile/IA-RAISTA
Timecounter "i8254"  frequency 1193182 Hz
Timecounter "TSC"  frequency 267274194 Hz
CPU: Pentium II (267.27-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x633  Stepping = 3
  Features=0x80f9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV,MMX>
real memory  = 134205440 (131060K bytes)
avail memory = 127356928 (124372K bytes)
Preloaded elf kernel "kernel.IA-RAISTA" at 0xc027c000.
VESA: v2.0, 4096k memory, flags:0x1, mode table:0xc0236246 (1000022)
VESA: Matrox Graphics Inc.
Pentium Pro MTRR support enabled
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Intel 82443LX (440 LX) host to PCI bridge> on motherboard
pci0: <PCI bus> on pcib0
pcib1: <Intel 82443LX (440 LX) PCI-PCI (AGP) bridge> at device 1.0 on pci0
pci1: <PCI bus> on pcib1
isab0: <Intel 82371AB PCI to ISA bridge> at device 4.0 on pci0
isa0: <ISA bus> on isab0
chip1: <Intel PIIX4 IDE controller> at device 4.1 on pci0
chip2: <UHCI USB controller> irq 5 at device 4.2 on pci0
chip3: <Intel 82371AB Power management controller> at device 4.3 on pci0
ahc0: <Adaptec aic7880 Ultra SCSI adapter> irq 5 at device 6.0 on pci0
ahc0: aic7880 Wide Channel A, SCSI Id=7, 16/255 SCBs
pci0: unknown card (vendor=0x8086, dev=0x1229) at 10.0 irq 10
vga-pci0: <Matrox MGA 2164W graphics accelerator> irq 11 at device 12.0 on pci0
atkbdc0: <keyboard controller (i8042)> at port 0x60-0x6f on isa0
atkbd0: <AT Keyboard> irq 1 on atkbdc0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model GlidePoint, device ID 0
vga0: <Generic ISA VGA> at port 0x3b0-0x3df iomem 0xa0000-0xbffff on isa0
sc0: <System console> on isa0
sc0: VGA <12 virtual consoles, flags=0x200>
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
sio0 at port 0x3f8-0x3ff irq 4 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0 at port 0x378-0x37f irq 7 on isa0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/9 bytes threshold
lpt0: <generic printer> on ppbus 0
lpt0: Interrupt-driven port
Waiting 2 seconds for SCSI devices to settle
Creating DISK da0
Creating DISK da1
Creating DISK da2
Creating DISK da3
sa0 at ahc0 bus 0 target 6 lun 0
sa0: <OnStream SC-50 1.03> Removable Sequential Access SCSI-2 device 
sa0: 5.813MB/s transfers (5.813MHz, offset 7)
Creating DISK cd0
da0 at ahc0 bus 0 target 0 lun 0
da0: <QUANTUM XP34550W LXY4> Fixed Direct Access SCSI-2 device 
da0: 40.000MB/s transfers (20.000MHz, offset 8, 16bit), Tagged Queueing Enabled
da0: 4341MB (8890760 512 byte sectors: 255H 63S/T 553C)
da1 at ahc0 bus 0 target 13 lun 0
da1: <IBM DRVS18V 0270> Fixed Direct Access SCSI-3 device 
da1: 11.626MB/s transfers (5.813MHz, offset 8, 16bit), Tagged Queueing Enabled
da1: 17519MB (35879135 512 byte sectors: 255H 63S/T 2233C)
da2 at ahc0 bus 0 target 14 lun 0
da2: <IBM DRVS09V 0140> Fixed Direct Access SCSI-3 device 
da2: 11.626MB/s transfers (5.813MHz, offset 8, 16bit), Tagged Queueing Enabled
da2: 8754MB (17928698 512 byte sectors: 255H 63S/T 1116C)
da3 at ahc0 bus 0 target 15 lun 0
da3: <IBM DRVS09V 0140> Fixed Direct Access SCSI-3 device 
da3: 11.626MB/s transfers (5.813MHz, offset 8, 16bit), Tagged Queueing Enabled
da3: 8754MB (17928698 512 byte sectors: 255H 63S/T 1116C)
Root mount failed: 22
Mounting root from ufs:da0s1a
--------------------------------- snip ---------------------------------

>Description:
The OnStream SC50 tape drive doesn't work with mt(1), which prints the
following error and exits for all commands:

	mt: /dev/nrsa0: Invalid argument

And the following dmesg is logged simultaneously:

	(sa0:ahc0:0:6:0): REWIND. CDB: 1 0 0 0 0 0 
	(sa0:ahc0:0:6:0): ILLEGAL REQUEST info?:b6ca6 asc:24,0
	(sa0:ahc0:0:6:0): Invalid field in CDB

After some experiment, it seems that the drive only accepts REWIND
command only when the `immediate' flag is set in CDB, i.e. `camcontrol
cmd -c 1 1 0 0 0 0 -n sa' works as expected.

>How-To-Repeat:
Install the OnStream SC50 tape drive and issue `mt status'.
>Fix:
No fix or workaround known.

>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991111060815.0879715456>