From owner-freebsd-scsi@FreeBSD.ORG Tue Oct 26 23:09:45 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 25650106564A for ; Tue, 26 Oct 2010 23:09:45 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id D21E38FC13 for ; Tue, 26 Oct 2010 23:09:44 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o9QN9e7i093787 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 26 Oct 2010 16:09:44 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4CC75FAE.9060708@feral.com> Date: Tue, 26 Oct 2010 16:09:34 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.6 (ns1.feral.com [192.168.221.1]); Tue, 26 Oct 2010 16:09:44 -0700 (PDT) Subject: Re: Problems getting target mode to work with isp driver X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 Oct 2010 23:09:45 -0000 To a first approximation, it worked for me on a 24XX: localhost.localdomain > lsscsi [4:0:0:0] disk SEAGATE ST314655SSUN146G 0791 /dev/sda [4:0:1:0] disk ATA ST3500630NS G /dev/sdb [4:0:2:0] disk ATA ST3500630NS G /dev/sdc [4:0:3:0] disk ATA Maxtor 7Y250M0 1EW0 /dev/sdd [4:0:4:0] disk ATA ST3500630NS G /dev/sde [4:0:5:0] disk ATA ST3500630NS G /dev/sdf [4:0:6:0] enclosu ESG-SHV. SCA HSBP M1..... 2.09 - [6:0:0:0] disk FreeBSD Emulated Disk 0.1 /dev/sdg It's entirely 23XX is broken. I'll see if I can hook one up and let you know. On 10/25/2010 1:50 PM, Penta Upa wrote: > Hi, > > I am having trouble getting target mode to work with isp. The setup is a > linux box as the initiator and a FreeBSD 8.1 box as the target. The linux > box has a qla2340 card while the target has a qla2342 card both hbas are > connected point to point. > > The target is running a custom build kernel. Kernel configuration is the > GENERIC configuration, removing most of the drivers, but i have added the > following options relevant to isp > >> device da > 111a117,122 >> device targ >> device targbh >> options CAMDEBUG >> options VFS_AIO >> options ISP_TARGET_MODE >> options ISP_DEFAULT_ROLES=1 > isp device hints are as below > hint.isp.0.role="target" > hint.isp.0.fullduplex="1" > > To test target mode i ran the following > scsi_target 0:0:0 disk.out (i have tried with 0:1:0 also) > > Once the FreeBSD target is up and running, on the linux side i load the > qlogic driver (/sbin/modprobe qla2xxx). The only error message i see on the > linux side is something on the lines - command > > The FreeBSD box was earlier running linux with a target mode driver and the > same steps on the initiator used to work fine, so i guess i can rule out an > issue with the HBA hardware. I later reinstalled the box with the 8.1 > release. I have changed the cabling a few times to rule out any faulty > cables. > > Below are relevant syslog messages > > Linux > ------ > Oct 26 01:09:20 scache2 kernel: QLogic Fibre Channel HBA Driver: > 8.02.00-k5-rhel5.2-04 > Oct 26 01:09:20 scache2 kernel: QLogic QLA2342 - 133MHz PCI-X to 2Gb FC, > Dual Channel > Oct 26 01:09:20 scache2 kernel: ISP2312: PCI-X (133 MHz) @ 0000:06:01.1 > hdma-, host#=17, fw=3.03.26 IPX > Oct 26 01:09:21 scache2 kernel: qla2xxx 0000:06:01.1: LIP occured (f7f7). > Oct 26 01:09:21 scache2 kernel: qla2xxx 0000:06:01.1: LOOP UP detected (2 > Gbps). > Oct 26 01:09:43 scache2 kernel: scsi 17:0:0:0: timing out command, waited > 22s > > FreeBSD > ------- > isp0: port 0x2000-0x20ff mem > 0x81a00000-0x81a00fff irq 32 at device 2.0 on pci2 > Oct 25 19:38:32 scache kernel: isp0: [ITHREAD] > Oct 25 19:41:09 scache kernel: isp0: target notify code 0x100b > > Is there anything i'm missing here. Kindly help. > > Regards, > Penta > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org"