Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 12 Aug 2003 18:12:07 -0700
From:      Chuck Tuffli <chuck_tuffli@agilent.com>
To:        "Kenneth D. Merry" <ken@kdm.org>
Cc:        freebsd-scsi@freebsd.org
Subject:   Re: problem running scsi_target
Message-ID:  <20030813011206.GC2564@cre85086tuf.rose.agilent.com>
In-Reply-To: <20030813003357.GA90771@panzer.kdm.org>
References:  <20030813000620.GA2564@cre85086tuf.rose.agilent.com> <20030813003357.GA90771@panzer.kdm.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Aug 12, 2003 at 06:33:57PM -0600, Kenneth D. Merry wrote:
[snip]
> One thing I found, at least when connecting two Qlogic boards point to
> point, is that they'll typically negotiate which target ID they're using.
> 
> In short, if target 1 isn't working for you, try target 0 instead.  (If
> you've got the board hooked up to a switch, I'm not sure what will happen
> as far as IDs go.)

I do have this hooked up to a switch and 0:0:0 doesn't seem to work
either. I just tried hooking this up to a private loop and get a
different result

fluffy# scsi_target -d 0:0:0 ./test_file
scsi_target: aio support tested ok
scsi_target: sending ccb (0x4)
scsi_target: sending ccb (0x332)
...
scsi_target: sending ccb (0x334)
scsi_target: main loop beginning

and there it hangs. camcontrol makes it look like the right thing is
trying to happen

fluffy# camcontrol devlist -v
scbus0 on isp0 bus 0:
<  >                               at scbus0 target 0 lun 0 (targ0)
<  >                               at scbus0 target -1 lun -1 (targbh0)
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)

The isp relavant portion of dmsg

isp0: <Qlogic ISP 2200 PCI FC-AL Adapter> port 0x3000-0x30ff mem 0xfc204000-0xfc204fff irq 11 at device 1.0 on pci3
isp0: Mbox Command Async (0x4000) with no waiters
(noperiph:isp0:0:0:0): (xpt0:isp0:0:0:0): debugging flags now 20
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): Sending inline ccb 0x4 (0xbfbff99c)
(targ0:isp0:0:0:0): getccb 0xc24ec900
(targ0:isp0:0:0:0): sendccb 0xc24ec900
(targ0:isp0:0:0:0): targreturnccb 0xc24ec900
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec900
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f000)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec800
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f100)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec700
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f200)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec600
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f300)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec500
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f400)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec400
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f500)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec300
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f600)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec200
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f700)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec100
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f800)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ec000
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804f900)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eef00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804fa00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eee00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804fb00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eed00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804fc00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eec00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804fd00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eeb00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804fe00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eea00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x804ff00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee900
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051000)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee800
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051100)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee700
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051200)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee600
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051300)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee500
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051400)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee400
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051500)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee300
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051600)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee200
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051700)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee100
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051800)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24ee000
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051900)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24eff00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051a00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24efe00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051b00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24efd00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051c00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24efc00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051d00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24efb00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051e00)
(targ0:isp0:0:0:0): write - uio_resid 4
(targ0:isp0:0:0:0): getccb 0xc24efa00
(targ0:isp0:0:0:0): Sent ATIO/INOT (0x8051f00)

-- 
Chuck Tuffli    <chuck_tuffli AT NO_SPAM agilent DOT com>
Agilent Technologies, Storage and Networking



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