From owner-freebsd-scsi@FreeBSD.ORG Thu Jun 24 14: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 95FB6106564A for ; Thu, 24 Jun 2010 14:20:25 +0000 (UTC) (envelope-from leo@nec-labs.com) Received: from mail.nec-labs.com (mail.nec-labs.com [138.15.200.209]) by mx1.freebsd.org (Postfix) with ESMTP id 5CDC38FC19 for ; Thu, 24 Jun 2010 14:20:24 +0000 (UTC) Received: from mail.nec-labs.com (localhost.localdomain [127.0.0.1]) by mail.nec-labs.com (8.14.3/8.14.3) with ESMTP id o5OE26nX027541 for ; Thu, 24 Jun 2010 10:02:06 -0400 Received: from [138.15.166.202] (gsd2.nec-labs.com [138.15.166.202]) by mail.nec-labs.com (8.14.3/8.14.3) with ESMTP id o5OE26W1027537 for ; Thu, 24 Jun 2010 10:02:06 -0400 Message-ID: <4C23655F.1070408@nec-labs.com> Date: Thu, 24 Jun 2010 10:02:07 -0400 From: Leo Prasath Arulraj User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100430 Fedora/3.0.4-3.fc13 Lightning/1.0b2pre Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Scsi target mode with qlogic 2312 card help 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: Thu, 24 Jun 2010 14:20:25 -0000 Hi, I am trying to run the /usr/share/examples/scsi_target example scsi emulator code using : isp0: port 0xdc00-0xdcff mem 0xfcf00000-0xfcf00fff irq 16 at device 6.0 on pci1 cards. I am new to this but have spent about 2 weeks trying to get this working. Can someone tell me if I am missing something very basic ? Setup: 2 machines both with qlogic isp 2312 cards connected with a fibre channel. Both machines run FreeBSD 8. On the target machine : the kernel options are : # SCSI peripherals device scbus # SCSI bus (required for SCSI) device targ device targbh device ispfw options CAMDEBUG options CAM_DEBUG_FLAGS=CAM_DEBUG_INFO|CAM_DEBUG_CDB|CAM_DEBUG_TRACE|CAM_DEBUG_SUBTRACE|CAM_DEBUG_XPT|CAM_DEBUG_PERIPH options AHC_TMODE_ENABLE=0x8 options ISP_TARGET_MODE options VFS_AIO I have tried both with and without setting the following hints : hint.isp.0.iid="0" hint.isp.0.role="target" hint.isp.0.portwnn="w0000000000000000" hint.isp.0.nodewnn="w0000000000000001" I run the command : ./scsi_target -d 0:0:0 ./vol and get the output with a list of INOT and ATIOs followed by a final "entering main loop" message. But when I run camcontrol rescan all on the other machine, the emulated disk does not show up. I tried both with and without these hints : hint.isp.0.topology="nport" hint.isp.0.iid="0" hint.isp.0.portwnn="w0000000000000002" hint.isp.0.nodewnn="w0000000000000003" hint.isp.0.role="initiator" Any help is really appreciated. Thanks, Leo.