From owner-freebsd-scsi Fri Jan 23 01:07:42 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id BAA14516 for freebsd-scsi-outgoing; Fri, 23 Jan 1998 01:07:42 -0800 (PST) (envelope-from owner-freebsd-scsi@FreeBSD.ORG) Received: from skraldespand.demos.su (skraldespand.demos.su [194.87.5.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id BAA14506; Fri, 23 Jan 1998 01:07:25 -0800 (PST) (envelope-from mishania@skraldespand.demos.su) Received: (from mishania@localhost) by skraldespand.demos.su (8.8.8/D) id MAA28675; Fri, 23 Jan 1998 12:06:06 +0300 (MSK) Posted-Date: Fri, 23 Jan 1998 12:06:06 +0300 (MSK) Message-ID: <19980123120606.31963@demos.su> Date: Fri, 23 Jan 1998 12:06:06 +0300 From: "Mikhail A. Sokolov" To: gibbs@FreeBSD.ORG Cc: scsi@FreeBSD.ORG, ache@FreeBSD.ORG Subject: Infortrend's drivers/help needed, please. Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Organization: Demos Company, Ltd., Moscow, Russian Federation. X-Point-of-View: Gravity is myth, - the earth sucks. Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org Hello, could you please help us with the following: we have IFT controller, which allows us to create several (up to 64) logical units, which are routed to scsi channels with one (different for each channel, though) id and different lun's. There are no problems when you create two logical units and each of them is connected to different channel (hence, different id's). Both channels are connected to one scsi bus as different devices: term---+----+---------2940uw | | id1 id2 sd0 at scbus0 target 1 lun 0 sd0: type 0 fixed SCSI 2 sd0: Direct-Access 8683MB (17783104 512 byte sectors) sd1 at scbus0 target 2 lun 0 sd1: type 0 fixed SCSI 2 sd1: Direct-Access 8683MB (17783104 512 byte sectors) In case the same devices are connected to the same channel (hence, getting the same id with different lun's) - sd0 at scbus0 target 1 lun 0 sd0: type 0 fixed SCSI 2 sd0: Direct-Access 8683MB (17783104 512 byte sectors) sd1 at scbus0 target 1 lun 1 sd1: type 0 fixed SCSI 2 sd1: Direct-Access 8683MB (17783104 512 byte sectors) While working with separate device everything goes ok then; when you ccd those, errors like the below described start to appear: sd1: SCB 0x0 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x8 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd1: SCB 0: Immediate reset. Flags = 0x1 sd1: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 What we think here: it's hardly IFT's (i.e. hardware problem), it can work with different lun's (we checked on two different IFT devices), it's neither aic7880's trouble (it works with several lun's, doesn't it?), - might be some error in ahc driver. Likely, it isn't a typical case when fast devices like sd get one id and different lun's and isn't tested ok. This situation is the very same for -stable as well as for -current. Some details: Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-CURRENT #0: Tue Jan 20 12:54:29 MSK 1998 bag@dt.demos.su:/usr/src/sys/compile/RT CPU: Pentium (165.79-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 30785536 (30064K bytes) Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 fxp0: rev 0x01 int a irq 5 on pci0.6.0 fxp0: Ethernet address 00:a0:c9:1d:b2:aa vga0: rev 0x03 on pci0.7.0 ahc0: rev 0x01 int a irq 11 on pci0.8.0 ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs ahc0: waiting for scsi devices to settle scbus0 at ahc0 bus 0 sd0 at scbus0 target 1 lun 0 sd0: type 0 fixed SCSI 2 sd0: Direct-Access 8683MB (17783104 512 byte sectors) sd1 at scbus0 target 2 lun 0 sd1: type 0 fixed SCSI 2 sd1: Direct-Access 8683MB (17783104 512 byte sectors) chip1: rev 0x02 on pci0.15.0 ide_pci0: rev 0x02 on pci0.15.1 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 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 1222MB (2503872 sectors), 2484 cyls, 16 heads, 63 S/T, 512 B/S npx0 flags 0x1 on motherboard npx0: INT 16 interface Intel Pentium F00F detected, installing workaround ccd0-3: Concatenated disk drivers ^^^^^^ There're no errors, when sd0/sd1 have different ids. Copyright (c) 1992-1998 FreeBSD Inc. Copyright (c) 1982, 1986, 1989, 1991, 1993 The Regents of the University of California. All rights reserved. FreeBSD 3.0-CURRENT #0: Tue Jan 20 12:54:29 MSK 1998 bag@dt.demos.su:/usr/src/sys/compile/RT CPU: Pentium (165.79-MHz 586-class CPU) Origin = "GenuineIntel" Id = 0x52c Stepping=12 Features=0x1bf real memory = 33554432 (32768K bytes) avail memory = 30785536 (30064K bytes) Probing for devices on PCI bus 0: chip0: rev 0x02 on pci0.0.0 fxp0: rev 0x01 int a irq 5 on pci0.6.0 fxp0: Ethernet address 00:a0:c9:1d:b2:aa vga0: rev 0x03 on pci0.7.0 ahc0: rev 0x01 int a irq 11 on pci0.8.0 ahc0: aic7880 Wide Channel, SCSI Id=7, 16 SCBs ahc0: waiting for scsi devices to settle scbus0 at ahc0 bus 0 sd0 at scbus0 target 1 lun 0 sd0: type 0 fixed SCSI 2 sd0: Direct-Access 8683MB (17783104 512 byte sectors) sd1 at scbus0 target 1 lun 1 sd1: type 0 fixed SCSI 2 sd1: Direct-Access 8683MB (17783104 512 byte sectors) chip1: rev 0x02 on pci0.15.0 ide_pci0: rev 0x02 on pci0.15.1 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 lpt0 at 0x378-0x37f irq 7 on isa lpt0: Interrupt-driven port lp0: TCP/IP capable interface fdc0 at 0x3f0-0x3f7 irq 6 drq 2 on isa fdc0: FIFO enabled, 8 bytes threshold fd0: 1.44MB 3.5in wdc0 at 0x1f0-0x1f7 irq 14 on isa wdc0: unit 0 (wd0): wd0: 1222MB (2503872 sectors), 2484 cyls, 16 heads, 63 S/T, 512 B/S npx0 flags 0x1 on motherboard npx0: INT 16 interface Intel Pentium F00F detected, installing workaround ccd0-3: Concatenated disk drivers ^^^^^ There are errors, when sd0/sd1 have one id and different luns: sd1: SCB 0x0 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x8 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd1: SCB 0: Immediate reset. Flags = 0x1 sd1: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:4 sd1: SCB 0x2 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x7 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd1: SCB 2: Immediate reset. Flags = 0x1 sd1: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:3 sd0: SCB 0x3 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x7 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd0: SCB 3: Immediate reset. Flags = 0x1 sd0: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:1 sd0: SCB 0x2 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x7 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd0: SCB 2: Immediate reset. Flags = 0x1 sd0: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:3 sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd1: SCB 0x2 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x7 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd1: SCB 2: Immediate reset. Flags = 0x1 sd1: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:4 sd1: SCB 0x0 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x7 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd1: SCB 0: Immediate reset. Flags = 0x1 sd1: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd1: UNIT ATTENTION asc:29,0 sd1: Power on, reset, or bus device reset occurred , retries:3 sd0: SCB 0x3 - timed out while idle, LASTPHASE == 0x1, SCSISIGI == 0x0 SEQADDR = 0x6 SCSISEQ = 0x12 SSTAT0 = 0x5 SSTAT1 = 0xa sd0: SCB 3: Immediate reset. Flags = 0x1 sd0: no longer in timeout ahc0: Issued Channel A Bus Reset. 2 SCBs aborted sd0: UNIT ATTENTION asc:29,0 sd0: Power on, reset, or bus device reset occurred , retries:3 You help will be appreciated a lot. -- -mishania