Date: Tue, 26 Oct 2010 02:20:47 +0530 From: Penta Upa <bsdboot@gmail.com> To: freebsd-scsi@freebsd.org Subject: Problems getting target mode to work with isp driver Message-ID: <AANLkTinc7LYQBXZ7TYwmTgsEU-uWrG_TW5eEoX7K7H48@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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: <Qlogic ISP 2312 PCI FC-AL Adapter> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?AANLkTinc7LYQBXZ7TYwmTgsEU-uWrG_TW5eEoX7K7H48>