From owner-freebsd-scsi@FreeBSD.ORG Mon Oct 25 21:20:25 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 65536106566B for ; Mon, 25 Oct 2010 21:20:25 +0000 (UTC) (envelope-from bsdboot@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3BB468FC19 for ; Mon, 25 Oct 2010 21:20:24 +0000 (UTC) Received: by pvc22 with SMTP id 22so616268pvc.13 for ; Mon, 25 Oct 2010 14:20:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=SZ0RQbG3LGUDP5JHThTZJy56atrDBpovSn3NC3M+eV4=; b=mlekXCa3nEWpsjRlQ2+BLPDyx1VfvOK6tCDpS2HHdips5H34/kJP2uu4cQSkJKlW2o q+mZLi0LNihCJcaWgcTPILtaG5LXzjWKAdNyxYZyyvlzVPlCTBXbgQLk+DLOehmnzKg/ Ru7iVK76PRfpfKHBBEI89CuItXCgkcv5ocqz4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=sIj4NpbGKyLfDOKzJIlhR3cQMvTb9Tbds9y9gUUJJMszP9JrqILFFKNbwlXpgDJufA SXUmzXhd2Itdxt4VTzeu0YuPxMR8it+xGAG1A6Pohfnyw57j8er7rSN8Smt8e4QB6Ygv s3JjodDCdb7lXhlMePBq66lpOUhwd4oI0a1PY= MIME-Version: 1.0 Received: by 10.142.225.19 with SMTP id x19mr5827349wfg.322.1288039847324; Mon, 25 Oct 2010 13:50:47 -0700 (PDT) Received: by 10.143.13.19 with HTTP; Mon, 25 Oct 2010 13:50:47 -0700 (PDT) Date: Tue, 26 Oct 2010 02:20:47 +0530 Message-ID: From: Penta Upa To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 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: Mon, 25 Oct 2010 21:20:25 -0000 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