Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jul 2004 19:57:09 +0000
From:      "Alex N. Markelov" <Alex.Markelov@rambler.ru>
To:        freebsd-stable@freebsd.org
Subject:   Problem with aacp and HP 40x6 changer on STABLE
Message-ID:  <40FC2795.9060506@rambler.ru>

next in thread | raw e-mail | index | archive | help
Hi Guys!

I'm having problems on the latest STABLE with tape changer HP 40x6.
The device correctly detected by sa0 and pass8 device drivers, but when 
I issue mtx -f /dev/pass8 status command, error appears:

neptun# mtx -f /dev/pass8 status
mtx: Request Sense: Long Report=yes
mtx: Request Sense: Valid Residual=no
mtx: Request Sense: Error Code=0 (Unknown?!)
mtx: Request Sense: Sense Key=No Sense
mtx: Request Sense: FileMark=no
mtx: Request Sense: EOM=no
mtx: Request Sense: ILI=no
mtx: Request Sense: Additional Sense Code = 00
mtx: Request Sense: Additional Sense Qualifier = 00
mtx: Request Sense: BPV=no
mtx: Request Sense: Error in CDB=no
mtx: Request Sense: SKSV=no
READ ELEMENT STATUS Command Failed

In messages I have:

(pass8:aacp1:0:5:1): READ ELEMENT STATUS. CDB: b8 12 0 0 0 40 0 0 16 1c 0 0
(pass8:aacp1:0:5:1): ILLEGAL REQUEST asc:24,0
(pass8:aacp1:0:5:1): Invalid field in CDB sks:cc,1

Here my dmesg:
neptun# dmesg
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 4.10-STABLE #0: Mon Jul 19 11:00:31 GMT 2004
     root@neptun:/usr/obj/usr/src/sys/IRON
Timecounter "i8254"  frequency 1193182 Hz
CPU: Intel(R) Xeon(TM) CPU 3.20GHz (3199.11-MHz 686-class CPU)
   Origin = "GenuineIntel"  Id = 0xf25  Stepping = 5
 
Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
   Hyperthreading: 2 logical CPUs
real memory  = 2146959360 (2096640K bytes)
avail memory = 2087280640 (2038360K bytes)
Programming 24 pins in IOAPIC #0
IOAPIC #0 intpin 2 -> irq 0
Programming 24 pins in IOAPIC #1
Programming 24 pins in IOAPIC #2
Programming 24 pins in IOAPIC #3
Programming 24 pins in IOAPIC #4
FreeBSD/SMP: Multiprocessor motherboard: 4 CPUs
  cpu0 (BSP): apic id:  0, version: 0x00050014, at 0xfee00000
  cpu1 (AP):  apic id:  6, version: 0x00050014, at 0xfee00000
  cpu2 (AP):  apic id:  1, version: 0x00050014, at 0xfee00000
  cpu3 (AP):  apic id:  7, version: 0x00050014, at 0xfee00000
  io0 (APIC): apic id:  2, version: 0x00178020, at 0xfec00000
  io1 (APIC): apic id:  3, version: 0x00178020, at 0xfec80000
  io2 (APIC): apic id:  4, version: 0x00178020, at 0xfec80400
  io3 (APIC): apic id:  5, version: 0x00178020, at 0xfec81000
  io4 (APIC): apic id:  8, version: 0x00178020, at 0xfec81400
Preloaded elf kernel "kernel" at 0xc03ca000.
Warning: Pentium 4 CPU: PSE disabled
Pentium Pro MTRR support enabled
md0: Malloc disk
Using $PIR table, 29 entries at 0xc00fddf0
npx0: <math processor> on motherboard
npx0: INT 16 interface
pcib0: <Host to PCI bridge> on motherboard
IOAPIC #0 intpin 16 -> irq 2
IOAPIC #0 intpin 19 -> irq 10
IOAPIC #0 intpin 18 -> irq 11
pci0: <PCI bus> on pcib0
pci0: <unknown card> (vendor=0x8086, dev=0x2541) at 0.1
pcib1: <PCI to PCI bridge (vendor=8086 device=2543)> at device 2.0 on pci0
pci1: <PCI bus> on pcib1
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib2: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci1
pci2: <PCI bus> on pcib2
pci1: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib3: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci1
IOAPIC #1 intpin 0 -> irq 16
IOAPIC #1 intpin 4 -> irq 17
IOAPIC #1 intpin 5 -> irq 18
pci3: <PCI bus> on pcib3
aac0: <Adaptec SCSI RAID 2200S> mem 0xf8000000-0xfbffffff irq 16 at 
device 1.0 on pci3
aac0: Unknown processor 100MHz, 48MB cache memory, optional battery present
aac0: Kernel 4.1-0, Build 7244, S/N ba9aa7
aac0: Supported 
Options=11d7e<CLUSTERS,WCACHE,DATA64,HOSTTIME,RAID50,WINDOW4GB,SOFTERR,SGMAP64,ALARM,NONDASD>
aacp0: <SCSI Passthrough Bus> on aac0
aacp1: <SCSI Passthrough Bus> on aac0
em0: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 
0x3000-0x303f mem 0xf4200000-0xf421ffff irq 17 at device 2.0 on pci3
em0:  Speed:N/A  Duplex:N/A
em1: <Intel(R) PRO/1000 Network Connection, Version - 1.7.25> port 
0x3040-0x307f mem 0xf4220000-0xf423ffff irq 18 at device 2.1 on pci3
em1:  Speed:N/A  Duplex:N/A
pcib4: <PCI to PCI bridge (vendor=8086 device=2545)> at device 3.0 on pci0
pci4: <PCI bus> on pcib4
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 28.0
pcib5: <PCI to PCI bridge (vendor=8086 device=1460)> at device 29.0 on pci4
pci5: <PCI bus> on pcib5
pci4: <unknown card> (vendor=0x8086, dev=0x1461) at 30.0
pcib6: <PCI to PCI bridge (vendor=8086 device=1460)> at device 31.0 on pci4
pci6: <PCI bus> on pcib6
uhci0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> port 
0x2000-0x201f irq 2 at device 29.0 on pci0
usb0: <Intel 82801CA/CAM (ICH3) USB controller USB-A> on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> port 
0x2020-0x203f irq 10 at device 29.1 on pci0
usb1: <Intel 82801CA/CAM (ICH3) USB controller USB-B> on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> port 
0x2040-0x205f irq 11 at device 29.2 on pci0
usb2: <Intel 82801CA/CAM (ICH3) USB controller USB-C> on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pcib7: <Intel 82801BA/BAM (ICH2) Hub to PCI bridge> at device 30.0 on pci0
pci7: <PCI bus> on pcib7
pci7: <ATI Mach64-GR graphics accelerator> at 1.0 irq 2
isab0: <PCI to ISA bridge (vendor=8086 device=2480)> at device 31.0 on pci0
isa0: <ISA bus> on isab0
atapci0: <Intel ICH3 ATA100 controller> port 
0x2060-0x206f,0x374-0x377,0x170-0x177,0x3f4-0x3f7,0x1f0-0x1f7 irq 0 at 
device 31.1 on pci0
ata0: at 0x1f0 irq 14 on atapci0
ata1: at 0x170 irq 15 on atapci0
pci0: <unknown card> (vendor=0x8086, dev=0x2483) at 31.3 irq 0
orm0: <Option ROMs> at iomem 
0xc0000-0xc7fff,0xc8000-0xc8fff,0xc9000-0xc9fff,0xca000-0xcafff,0xcb000-0xcf7ff,0xe0000-0xe3fff 
on isa0
pmtimer0 on isa0
fdc0: <NEC 72065B or clone> at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: FIFO enabled, 8 bytes threshold
fd0: <1440-KB 3.5" drive> on fdc0 drive 0
atkbdc0: <Keyboard controller (i8042)> at port 0x60,0x64 on isa0
atkbd0: <AT Keyboard> flags 0x1 irq 1 on atkbdc0
kbd0 at atkbd0
psm0: <PS/2 Mouse> irq 12 on atkbdc0
psm0: model IntelliMouse Explorer, device ID 4
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=0x300>
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 16550A
sio1 at port 0x2f8-0x2ff irq 3 on isa0
sio1: type 16550A
ppc0: <Parallel port> 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
ppi0: <Parallel I/O> on ppbus0
lpt0: <Printer> on ppbus0
lpt0: Interrupt-driven port
APIC_IO: Testing 8254 interrupt delivery
APIC_IO: routing 8254 via IOAPIC #0 intpin 2
IP packet filtering initialized, divert enabled, rule-based forwarding 
enabled, default to deny, logging limited to 100 packets/entry by default
SMP: AP CPU #1 Launched!
SMP: AP CPU #3 Launched!
SMP: AP CPU #2 Launched!
acd0: CDROM <CD-224E> at ata1-master PIO4
aacd0: <Volume> on aac0
aacd0: 139981MB (286681728 sectors)
(probe20:aacp1:0:5:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe20:aacp1:0:5:0): NOT READY asc:3a,0
(probe20:aacp1:0:5:0): Medium not present
sa0 at aacp1 bus 0 target 5 lun 0
sa0: <HP C5713A H307> Removable Sequential Access SCSI-3 device
sa0: 40.000MB/s transfers (20.000MHz, offset 32, 16bit)
pass0 at aacp0 bus 0 target 0 lun 0
pass0: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass0: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass1 at aacp0 bus 0 target 1 lun 0
pass1: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass1: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass2 at aacp0 bus 0 target 2 lun 0
pass2: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass2: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass3 at aacp0 bus 0 target 3 lun 0
pass3: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass3: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass4 at aacp0 bus 0 target 4 lun 0
pass4: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass4: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass5 at aacp0 bus 0 target 5 lun 0
pass5: <SEAGATE ST3146807LC 0007> Fixed unknown SCSI-3 device
pass5: 160.000MB/s transfers (80.000MHz, offset 63, 16bit)
pass6 at aacp0 bus 0 target 6 lun 0
pass6: <SUPER GEM318 0> Fixed unknown SCSI-2 device
pass6: 3.300MB/s transfers
pass8 at aacp1 bus 0 target 5 lun 1
pass8: <HP C5713A H307> Removable Changer SCSI-3 device
pass8: 40.000MB/s transfers (20.000MHz, offset 32, 16bit)
Mounting root from ufs:/dev/aacd0s1a
em0: Link is up 100 Mbps Half Duplex

Here is my kernel config file:

#
# IRON -- Generic kernel configuration file for Iron Systems
#

machine         i386
cpu             I686_CPU
ident           IRON
maxusers        0

#makeoptions    DEBUG=-g                #Build kernel with gdb(1) debug 
symbols

options         MATH_EMULATE            #Support for x87 emulation
options         INET                    #InterNETworking
options         INET6                   #IPv6 communications protocols
options         FFS                     #Berkeley Fast Filesystem
options         FFS_ROOT                #FFS usable as root device [keep 
this!]
options         SOFTUPDATES             #Enable FFS soft updates support
options         UFS_DIRHASH             #Improve performance on big 
directories
options         MFS                     #Memory Filesystem
options         MD_ROOT                 #MD is a potential root device
options         NFS                     #Network Filesystem
options         NFS_ROOT                #NFS usable as root device, NFS 
required
options         MSDOSFS                 #MSDOS Filesystem
options         CD9660                  #ISO 9660 Filesystem
options         CD9660_ROOT             #CD-ROM usable as root, CD9660 
required
options         PROCFS                  #Process filesystem
options         COMPAT_43               #Compatible with BSD 4.3 [KEEP 
THIS!]
options         SCSI_DELAY=15000        #Delay (in ms) before probing SCSI
options         UCONSOLE                #Allow users to grab the console
options         USERCONFIG              #boot -c editor
options         VISUAL_USERCONFIG       #visual boot -c editor
options         KTRACE                  #ktrace(1) support
options         SYSVSHM                 #SYSV-style shared memory
options         SYSVMSG                 #SYSV-style message queues
options         SYSVSEM                 #SYSV-style semaphores
options         P1003_1B                #Posix P1003_1B real-time extensions
options         _KPOSIX_PRIORITY_SCHEDULING
options         ICMP_BANDLIM            #Rate limit bad replies
options         KBD_INSTALL_CDEV        # install a CDEV entry in /dev
options         AHC_REG_PRETTY_PRINT    # Print register bitfields in debug
                                         # output.  Adds ~128k to driver.
options         AHD_REG_PRETTY_PRINT    # Print register bitfields in debug
                                         # output.  Adds ~215k to driver.


# To make an SMP kernel, the next two are needed
options         SMP                     # Symmetric MultiProcessor Kernel
options         APIC_IO                 # Symmetric (APIC) I/O

# To support HyperThreading, HTT is needed in addition to SMP and APIC_IO
#options        HTT                     # HyperThreading Technology

device          isa
device          eisa
device          pci

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

# ATA and ATAPI devices
device          ata0    at isa? port IO_WD1 irq 14
device          ata1    at isa? port IO_WD2 irq 15
device          ata
device          atadisk                 # ATA disk drives
device          atapicd                 # ATAPI CDROM drives
device          atapifd                 # ATAPI floppy drives
device          atapist                 # ATAPI tape drives
options         ATA_STATIC_ID           #Static device numbering

# SCSI peripherals
device          scbus           # SCSI bus (required)
device          da              # Direct Access (disks)
device          sa              # Sequential Access (tape etc)
device          cd              # CD
device          pass            # Passthrough device (direct SCSI access)

# RAID controllers
device          aac             # Adaptec FSA RAID, Dell PERC2/PERC3
device          aacp            # SCSI passthrough for aac (requires CAM)
options         COMPAT_LINUX
options         AAC_COMPAT_LINUX

# atkbdc0 controls both the keyboard and the PS/2 mouse
device          atkbdc0 at isa? port IO_KBD
device          atkbd0  at atkbdc? irq 1 flags 0x1
device          psm0    at atkbdc? irq 12

device          vga0    at isa?

# splash screen/screen saver
pseudo-device   splash

# syscons is the default console driver, resembling an SCO console
device          sc0     at isa? flags 0x100

device          agp             # support several AGP chipsets

# Floating point support - do not disable.
device          npx0    at nexus? port IO_NPX irq 13

# Power management support (see LINT for more options)
device          apm0    at nexus? disable flags 0x20 # Advanced Power 
Management

# Serial (COM) ports
device          sio0    at isa? port IO_COM1 flags 0x10 irq 4
device          sio1    at isa? port IO_COM2 irq 3

# Parallel port
device          ppc0    at isa? irq 7
device          ppbus           # Parallel port bus (required)
device          lpt             # Printer
device          ppi             # Parallel port interface device
device          vpo             # Requires scbus and da


# PCI Ethernet NICs.
device          em              # Intel PRO/1000 adapter Gigabit 
Ethernet Card (``Wiseman'')

# Pseudo devices - the number indicates how many units to allocate.
pseudo-device   loop            # Network loopback
pseudo-device   ether           # Ethernet support
pseudo-device   tun             # Packet tunnel.
pseudo-device   pty             # Pseudo-ttys (telnet etc)
pseudo-device   md              # Memory "disks"

# The `bpf' pseudo-device enables the Berkeley Packet Filter.
# Be aware of the administrative consequences of enabling this!
pseudo-device   bpf             #Berkeley packet filter

# USB support
device          uhci            # UHCI PCI->USB interface
device          usb             # USB Bus (required)
device          ugen            # Generic
device          uhid            # "Human Interface Devices"
device          ukbd            # Keyboard
device          umass           # Disks/Mass storage - Requires scbus and da
device          ums             # Mouse

#
# Internet family options:
#
# MROUTING enables the kernel multicast packet forwarder, which works
# with mrouted(8).
#
# IPFIREWALL enables support for IP firewall construction, in
# conjunction with the `ipfw' program.  IPFIREWALL_VERBOSE sends
# logged packets to the system logger.  IPFIREWALL_VERBOSE_LIMIT
# limits the number of times a matching entry can be logged.
#
# WARNING:  IPFIREWALL defaults to a policy of "deny ip from any to any"
# and if you do not add other rules during startup to allow access,
# YOU WILL LOCK YOURSELF OUT.  It is suggested that you set 
firewall_type=open
# in /etc/rc.conf when first enabling this feature, then refining the
# firewall rules in /etc/rc.firewall after you've tested that the new kernel
# feature works properly.
#
# IPFIREWALL_DEFAULT_TO_ACCEPT causes the default rule (at boot) to
# allow everything.  Use with care, if a cracker can crash your
# firewall machine, they can get to your protected machines.  However,
# if you are using it as an as-needed filter for specific problems as
# they arise, then this may be for you.  Changing the default to 'allow'
# means that you won't get stuck if the kernel and /sbin/ipfw binary get
# out of sync.
#
# IPDIVERT enables the divert IP sockets, used by ``ipfw divert''
#
# IPSTEALTH enables code to support stealth forwarding (i.e., forwarding
# packets without touching the ttl).  This can be useful to hide firewalls
# from traceroute and similar tools.
#
# TCPDEBUG is undocumented.
#
options         MROUTING                # Multicast routing
options         IPFIREWALL              #firewall
options         IPFIREWALL_VERBOSE      #enable logging to syslogd(8)
options         IPFIREWALL_FORWARD      #enable transparent proxy support
options         IPFIREWALL_VERBOSE_LIMIT=100    #limit verbosity
#options        IPFIREWALL_DEFAULT_TO_ACCEPT    #allow everything by default
options         IPDIVERT                #divert sockets
options         IPSTEALTH               #support for stealth forwarding
options         TCPDEBUG

# RANDOM_IP_ID causes the ID field in IP packets to be randomized
# instead of incremented by 1 with each packet generated.  This
# option closes a minor information leak which allows remote
# observers to determine the rate of packet generation on the
# machine by watching the counter.
options         RANDOM_IP_ID

# ICMP_BANDLIM enables icmp error response bandwidth limiting.   You
# typically want this option as it will help protect the machine from
# D.O.S. packet attacks.
#
options         ICMP_BANDLIM

The machine is Iron Systems EM2255 (aka Supermicro) with Adaptec RAID 
2200S controller.
The tape changer is connected to the second channel and terminated.
I have tried to change channel termination from 'Auto' to 'Disabled' - 
all the same.

Any ideas are greatly appreciated.
Is it a valid combination to have a changer (or any external device) to 
be hooked on a RAID controller's external connection. Seems good enough 
to me.
I tried combinations with and without RAID array configured - no luck.

Regards,
Alex.



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