From owner-freebsd-scsi@FreeBSD.ORG Mon Jun 21 11:07:03 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 B19871065678 for ; Mon, 21 Jun 2010 11:07:03 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 9FB828FC13 for ; Mon, 21 Jun 2010 11:07:03 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5LB73GV098371 for ; Mon, 21 Jun 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5LB73XY098369 for freebsd-scsi@FreeBSD.org; Mon, 21 Jun 2010 11:07:03 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 21 Jun 2010 11:07:03 GMT Message-Id: <201006211107.o5LB73XY098369@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: gnats set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to freebsd-scsi@FreeBSD.org 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, 21 Jun 2010 11:07:03 -0000 Note: to view an individual PR, use: http://www.freebsd.org/cgi/query-pr.cgi?pr=(number). The following is a listing of current problems submitted by FreeBSD users. These represent problem reports covering all versions including experimental development code and obsolete releases. S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/147704 scsi [mpt] sys/dev/mpt: new chip revision, partially unsupp o kern/146287 scsi [ciss] ciss(4) cannot see more than one SmartArray con o kern/145768 scsi [mpt] can't perform I/O on SAS based SAN disk in freeb o kern/144648 scsi [aac] Strange values of speed and bus width in dmesg o kern/144301 scsi [ciss] [hang] HP proliant server locks when using ciss o kern/142351 scsi [mpt] LSILogic driver performance problems o kern/141934 scsi [cam] [patch] add support for SEAGATE DAT Scopion 130 o kern/134488 scsi [mpt] MPT SCSI driver probes max. 8 LUNs per device o kern/132250 scsi [ciss] ciss driver does not support more then 15 drive o kern/132206 scsi [mpt] system panics on boot when mirroring and 2nd dri p kern/130735 scsi [cam] [patch] pass M_NOWAIT to the malloc() call insid o kern/130621 scsi [mpt] tranfer rate is inscrutable slow when use lsi213 o kern/129602 scsi [ahd] ahd(4) gets confused and wedges SCSI bus o kern/128452 scsi [sa] [panic] Accessing SCSI tape drive randomly crashe o kern/128245 scsi [scsi] "inquiry data fails comparison at DV1 step" [re o kern/127927 scsi [isp] isp(4) target driver crashes kernel when set up o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping f kern/123666 scsi [aac] attach fails with Adaptec SAS RAID 3805 controll o sparc/121676 scsi [iscsi] iscontrol do not connect iscsi-target on sparc o kern/120487 scsi [sg] scsi_sg incompatible with scanners o kern/120247 scsi [mpt] FreeBSD 6.3 and LSI Logic 1030 = only 3.300MB/s o kern/119668 scsi [cam] [patch] certain errors are too verbose comparing o kern/114597 scsi [sym] System hangs at SCSI bus reset with dual HBAs o kern/110847 scsi [ahd] Tyan U320 onboard problem with more than 3 disks o kern/99954 scsi [ahc] reading from DVD failes on 6.x [regression] o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load o kern/60598 scsi wire down of scsi devices conflicts with config s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/40895 scsi wierd kernel / device driver bug o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce 40 problems total. From owner-freebsd-scsi@FreeBSD.ORG Wed Jun 23 10:15:57 2010 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 80277106564A; Wed, 23 Jun 2010 10:15:57 +0000 (UTC) (envelope-from linimon@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 580068FC15; Wed, 23 Jun 2010 10:15:57 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5NAFvpa099813; Wed, 23 Jun 2010 10:15:57 GMT (envelope-from linimon@freefall.freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5NAFuVt099809; Wed, 23 Jun 2010 10:15:57 GMT (envelope-from linimon) Date: Wed, 23 Jun 2010 10:15:57 GMT Message-Id: <201006231015.o5NAFuVt099809@freefall.freebsd.org> To: linimon@FreeBSD.org, freebsd-bugs@FreeBSD.org, freebsd-scsi@FreeBSD.org From: linimon@FreeBSD.org Cc: Subject: Re: kern/148083: [aac] Strange device reporting 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: Wed, 23 Jun 2010 10:15:57 -0000 Synopsis: [aac] Strange device reporting Responsible-Changed-From-To: freebsd-bugs->freebsd-scsi Responsible-Changed-By: linimon Responsible-Changed-When: Wed Jun 23 10:15:37 UTC 2010 Responsible-Changed-Why: Over to maintainer(s). http://www.freebsd.org/cgi/query-pr.cgi?pr=148083 From owner-freebsd-scsi@FreeBSD.ORG Wed Jun 23 16:40:07 2010 Return-Path: Delivered-To: freebsd-scsi@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 091D7106564A for ; Wed, 23 Jun 2010 16:40:07 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id D378E8FC17 for ; Wed, 23 Jun 2010 16:40:06 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5NGe6dA034722 for ; Wed, 23 Jun 2010 16:40:06 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5NGe6bm034721; Wed, 23 Jun 2010 16:40:06 GMT (envelope-from gnats) Date: Wed, 23 Jun 2010 16:40:06 GMT Message-Id: <201006231640.o5NGe6bm034721@freefall.freebsd.org> To: freebsd-scsi@FreeBSD.org From: Sean Bruno Cc: Subject: Re: kern/148083: [aac] Strange device reporting X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Sean Bruno List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Jun 2010 16:40:07 -0000 The following reply was made to PR kern/148083; it has been noted by GNATS. From: Sean Bruno To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua Cc: Subject: Re: kern/148083: [aac] Strange device reporting Date: Wed, 23 Jun 2010 09:32:37 -0700 Did this happen on previous releases of FBSD? Sean From owner-freebsd-scsi@FreeBSD.ORG Wed Jun 23 23:10:26 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 20B48106566C for ; Wed, 23 Jun 2010 23:10:26 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from pooker.samsco.org (pooker.samsco.org [168.103.85.57]) by mx1.freebsd.org (Postfix) with ESMTP id D2DDE8FC13 for ; Wed, 23 Jun 2010 23:10:25 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.4/8.14.4) with ESMTP id o5NNAMsD039979; Wed, 23 Jun 2010 17:10:22 -0600 (MDT) (envelope-from scottl@samsco.org) Mime-Version: 1.0 (Apple Message framework v1078) Content-Type: text/plain; charset=us-ascii From: Scott Long In-Reply-To: <201006231640.o5NGe6bm034721@freefall.freebsd.org> Date: Wed, 23 Jun 2010 17:10:22 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <201006231640.o5NGe6bm034721@freefall.freebsd.org> To: Sean Bruno X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-50.0 required=3.8 tests=ALL_TRUSTED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: kern/148083: [aac] Strange device reporting 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: Wed, 23 Jun 2010 23:10:26 -0000 On Jun 23, 2010, at 10:40 AM, Sean Bruno wrote: > The following reply was made to PR kern/148083; it has been noted by = GNATS. >=20 > From: Sean Bruno > To: bug-followup@FreeBSD.org, mitya@cabletv.dp.ua > Cc: =20 > Subject: Re: kern/148083: [aac] Strange device reporting > Date: Wed, 23 Jun 2010 09:32:37 -0700 >=20 > Did this happen on previous releases of FBSD? >=20 > Sean Every single bit of information reported by devices on aacp buses is = either fictitious or potentially fictitious. Anyone who is using DMESG = to accurately inventory their system should look to other tools like = aaccli or arcconf. Scott 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. From owner-freebsd-scsi@FreeBSD.ORG Thu Jun 24 18:13:39 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 CDE311065673; Thu, 24 Jun 2010 18:13:39 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id 8672A8FC19; Thu, 24 Jun 2010 18:13:39 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id A502578C6A; Fri, 25 Jun 2010 03:13:38 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 939A778C67; Fri, 25 Jun 2010 03:13:38 +0900 (JST) Message-ID: From: "Daisuke Aoyama" To: , , Date: Fri, 25 Jun 2010 03:12:38 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=original Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: Subject: iSCSI boot driver version 0.1.1 for iBFT 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 18:13:39 -0000 Hello, I made small device driver for the first time. It is published on my blog. Because it is written in Japanese, I try to write here. This module provides initial connection of the iSCSI target with setting via iBFT (iSCSI Boot Firmware Table). Currently, it is intended to use Intel NIC and istgt (iSCSI target). Any other cards, targets may not work. Also, I'm developing under FreeBSD 7.3. (build check under 8.1) Please refer to Microsoft website about iBFT: http://www.microsoft.com/whdc/system/platform/firmware/ibft.mspx I did't use iscsi_initiator.ko within kernel module. So, I'm creating a small version of initiator based on iscsi-2.2.4 and istgt-20100606. Now it have only one cmd holding space in the iSCSI session and use polling. It should be added the queuing/asynchronous operation :) After loading it via /boot/loader.conf, you can install to/boot from the iSCSI target as same as a local SCSI harddisk. Complex settings such as TFTP, NFS, DHCP and PXE are no longer needed. Just use /dev/da0 and so on. How to compile: isboot is a stand alone iSCSI initiator, but source code is depend on the header file of iscsi-2.2.4. You need to extract iscsi-2.2.4 before compiling isboot. # cd /usr/src # tar xvf /path/to/iscsi-2.2.4.tar.gz # tar xvf /path/to/isboot-0.1.1.tar.gz # make buildkernel # make installkernel or # cd /usr/src/sys/modules/iscsi/isboot # make obj # make depend # make all # make install After above install, you have /boot/kernel/isboot.ko. Using as module: Add isboot_load="YES" to /boot/loader.conf. Setup iSCSI target. (recommend istgt-20100407 or later) Configure NIC BIOS to connect the target. Try to boot the server. If the NIC find the target, iBFT can be found by isboot. Then, isboot create own bus for CAM device with iBFT parameters. All LUNs in the target are appeared in the bus. Once FreeBSD + isboot is booted, you can handle it by camcontrol and other normal way as same as SCSI HDD. If you want full install and boot demo, please download FreeNAS 0.7.2 5226 p4 from my blog and try it without local harddisk. FYI: FreeNAS 0.7.1 5127 (stable) includes istgt-20100407. FYI: FreeNAS 0.7.2 5226 p3 includes istgt-20100606. FYI: FreeNAS 0.7.2 5226 p4 includes istgt-20100606 + isboot-0.1.1. sysctl MIBs (read only): net.isboot.version net.isboot.nic net.isboot.device hw.ibft.nic_gateway hw.ibft.nic_prefix hw.ibft.target_lun hw.ibft.target_port hw.ibft.target_address hw.ibft.target_name hw.ibft.initiator_address hw.ibft.initiator_name Performance (read from the target): All using Intel PRO/1000 PT Server Adapter. istgt 20100606 + isboot 0.1 with header/data digest(CRC32C): # dd if=/dev/da6 of=/dev/null bs=1m count=1k 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 20.452429 secs (52499477 bytes/sec) istgt 20100606 + isboot 0.1 with header digest: # dd if=/dev/da6 of=/dev/null bs=1m count=1k 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 17.684945 secs (60715022 bytes/sec) istgt 20100606 + isboot 0.1 without digest: # dd if=/dev/da6 of=/dev/null bs=1m count=1k 1024+0 records in 1024+0 records out 1073741824 bytes transferred in 17.508400 secs (61327239 bytes/sec) Notes/Known Issues/Limitations: bootup/reconnect time might be a little long. ifconfig(8),route(8),etc should not change booted NIC and critical path. Unload the module will cause to panic. IPv6 is not tested. DNS is not configured. Queuing is not supported at this time. CHAP is not supported at this time. Can't configure iSCSI parameter without modifing soure code. Can't reject running XPT command when the socket is lost. Can't exchange the session to iscsi_initiator.ko. The source code depend on iscsi initiator's structure. (first I tried to use it, but finally gave up) The controller such as iscontrol(8) is not provided. Documentation is not written. I'm new to the kernel land. If you have any suggestion, please tell me. Download here (the page is Japanese only): isboot-0.1.1 http://shell.peach.ne.jp/aoyama/archives/1179 FreeNAS 0.7.2 5226 p4 http://shell.peach.ne.jp/aoyama/archives/1181 FYI: danny's iscsi initiator: ftp://ftp.cs.huji.ac.il/users/danny/freebsd/iscsi-2.2.4.tar.gz Regards, Daisuke Aoyama From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 25 13:49:53 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 B5172106566C for ; Fri, 25 Jun 2010 13:49:53 +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 3DA448FC1C for ; Fri, 25 Jun 2010 13:49:52 +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 o5PDnnW6019806 for ; Fri, 25 Jun 2010 09:49:49 -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 o5PDnnF7019802 for ; Fri, 25 Jun 2010 09:49:49 -0400 Message-ID: <4C24B3FF.2040208@nec-labs.com> Date: Fri, 25 Jun 2010 09:49:51 -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 References: <4C23655F.1070408@nec-labs.com> In-Reply-To: <4C23655F.1070408@nec-labs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: 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: Fri, 25 Jun 2010 13:49:53 -0000 I managed to get the scsi target mode running by changing the isp_freebsd.c driver code to explicity put the bus in target mode when it loads. Earlier it used to "defer putting the bus in target mode". The initiator reports "scsi scan: INQUIRY result too short (5), using 36" . Does anyone have pointers on this ? Thanks. Now , my scsi_target code when run on 0:0:0 shows : scsi_target: sending ccb (0x332) scsi_target: sending ccb (0x334) .... .... scsi_target: sending ccb (0x332) scsi_target: sending ccb (0x334) scsi_target: sending ccb (0x332) scsi_target: sending ccb (0x334) scsi_target: sending ccb (0x332) scsi_target: sending ccb (0x334) scsi_target: main loop beginning scsi_target: read ready scsi_target: event -1 done scsi_target: Working on ATIO 0x2826e740 scsi_target: tcmd_handle atio 0x2826e740 ctio 0x2826e8c0 atioflags 0x8000 scsi_target: INQUIRY from 1: 12 20 0 0 24 0 scsi_target: sending ccb (0x933) While the Linux initiator shows : QLogic Fibre Channel HBA Driver: 8.03.01-k10 qla2xxx 0000:01:06.0: PCI INT A -> GSI 16 (level, low) -> IRQ 16 qla2xxx 0000:01:06.0: Found an ISP2300, irq 16, iobase 0xf7e18000 qla2xxx 0000:01:06.0: Configuring PCI space... qla2xxx 0000:01:06.0: Configure NVRAM parameters... qla2xxx 0000:01:06.0: Verifying loaded RISC code... scsi(5): **** Load RISC code **** qla2xxx 0000:01:06.0: firmware: requesting ql2300_fw.bin scsi(5): Verifying Checksum of loaded RISC code. scsi(5): Checksum OK, start firmware. qla2xxx 0000:01:06.0: Allocated (412 KB) for firmware dump... scsi(5): Issue init firmware. DEBUG: detect hba 5 at address = f5ea0000 scsi5 : qla2xxx qla2xxx 0000:01:06.0: QLogic Fibre Channel HBA Driver: 8.03.01-k10 QLogic QLA2310 - ISP2300: PCI-X (66 MHz) @ 0000:01:06.0 hdma-, host#=5, fw=3.03.28 IPX scsi(5): Asynchronous P2P MODE received. scsi(5): Asynchronous LOOP UP (2 Gbps). qla2xxx 0000:01:06.0: LOOP UP detected (2 Gbps). scsi(5): Asynchronous PORT UPDATE. scsi(5): Port database changed ffff 0006 0000. scsi(5): Asynchronous PORT UPDATE ignored 0000/0006/0000. scsi(5): qla2x00_reset_marker() scsi(5): qla2x00_loop_resync() scsi(5): F/W Ready - OK scsi(5): fw_state=3 (8cc0, f5f8, 2e81, ffff) curr time=ffff30e2. scsi(5): Configure loop -- dpc flags =0x112e0 scsi(5): LOOP READY scsi(5): qla2x00_loop_resync - end scsi scan: INQUIRY result too short (5), using 36 qla2xxx_eh_abort(5): aborting sp f69bcf60 from RISC. pid=3. scsi(5): ABORT status detected 0x5-0x0. qla2xxx 0000:01:06.0: scsi(5:0:1): Abort command issued -- 1 3 2002. qla2xxx_eh_abort(5): aborting sp f69bcf60 from RISC. pid=3. scsi(5): ABORT status detected 0x5-0x0. qla2xxx 0000:01:06.0: scsi(5:0:1): Abort command issued -- 1 3 2002. qla2xxx 0000:01:06.0: scsi(5:0:1): DEVICE RESET ISSUED. qla2xxx 0000:01:06.0: scsi(5:0:1): DEVICE RESET SUCCEEDED. qla2xxx_eh_abort(5): aborting sp f69bcf60 from RISC. pid=3. scsi(5): ABORT status detected 0x5-0x0. qla2xxx 0000:01:06.0: scsi(5:0:1): Abort command issued -- 1 3 2002. qla2xxx 0000:01:06.0: scsi(5:0:1): TARGET RESET ISSUED. qla2xxx 0000:01:06.0: scsi(5:0:1): TARGET RESET SUCCEEDED. qla2xxx 0000:01:06.0: scsi(5:0:1): BUS RESET ISSUED. scsi(5): Asynchronous P2P MODE received. scsi(5): fcport-0 - port retry count: 29 remaining scsi(5): qla2x00_reset_marker() scsi(5): fcport-0 - port retry count: 28 remaining scsi(5): fcport-0 - port retry count: 27 remaining scsi(5): fcport-0 - port retry count: 26 remaining scsi(5): fcport-0 - port retry count: 25 remaining scsi(5): fcport-0 - port retry count: 24 remaining scsi(5): fcport-0 - port retry count: 23 remaining On 06/24/2010 10:02 AM, Leo Prasath Arulraj wrote: > 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. > From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 25 14:02:28 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 29461106564A for ; Fri, 25 Jun 2010 14:02:28 +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 E44218FC0A for ; Fri, 25 Jun 2010 14:02:27 +0000 (UTC) Received: from [192.168.0.102] (m206-63.dsl.tsoft.com [198.144.206.63]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o5PE2RAN011044 for ; Fri, 25 Jun 2010 07:02:27 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4C24B6F6.2050800@feral.com> Date: Fri, 25 Jun 2010 07:02:30 -0700 From: Matthew Jacob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4C23655F.1070408@nec-labs.com> <4C24B3FF.2040208@nec-labs.com> In-Reply-To: <4C24B3FF.2040208@nec-labs.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.67.166.1]); Fri, 25 Jun 2010 07:02:27 -0700 (PDT) Subject: Re: 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: Fri, 25 Jun 2010 14:02:28 -0000 You should have: options ISP_DEFAULT_ROLES=1 set. The 'too short' is indicative of the chip in target mode, but with no ATIO resources, so it gives back a default INQUIRY response. From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 25 14:05:08 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 A6DF9106566B for ; Fri, 25 Jun 2010 14:05:08 +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 6EFD68FC16 for ; Fri, 25 Jun 2010 14:05:08 +0000 (UTC) Received: from [192.168.0.102] (m206-63.dsl.tsoft.com [198.144.206.63]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o5PE570T011067 for ; Fri, 25 Jun 2010 07:05:08 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4C24B797.6060305@feral.com> Date: Fri, 25 Jun 2010 07:05:11 -0700 From: Matthew Jacob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.10) Gecko/20100512 Thunderbird/3.0.5 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: In-Reply-To: Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit X-Greylist: Default is to whitelist mail, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.67.166.1]); Fri, 25 Jun 2010 07:05:08 -0700 (PDT) Subject: Re: iSCSI boot driver version 0.1.1 for iBFT 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: Fri, 25 Jun 2010 14:05:08 -0000 Very interesting! From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 25 16:33:03 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 B62F21065673; Fri, 25 Jun 2010 16:33:03 +0000 (UTC) (envelope-from aoyama@peach.ne.jp) Received: from moon.peach.ne.jp (unknown [IPv6:2001:380:e06:127::53]) by mx1.freebsd.org (Postfix) with ESMTP id 7CC6A8FC1B; Fri, 25 Jun 2010 16:33:03 +0000 (UTC) Received: from moon.peach.ne.jp (localhost [127.0.0.1]) by moon.peach.ne.jp (Postfix) with ESMTP id 5F82378C3B; Sat, 26 Jun 2010 01:33:02 +0900 (JST) Received: from artemis (unknown [192.168.2.20]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by moon.peach.ne.jp (Postfix) with ESMTP id 4D56178C34; Sat, 26 Jun 2010 01:33:02 +0900 (JST) Message-ID: <1931AE1113EC4A8983B8A52A2A1966C2@ad.peach.ne.jp> From: "Daisuke Aoyama" To: References: In-Reply-To: Date: Sat, 26 Jun 2010 01:32:05 +0900 MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-2022-jp"; reply-type=response Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal Importance: Normal X-Mailer: Microsoft Windows Live Mail 14.0.8117.416 X-MimeOLE: Produced By Microsoft MimeOLE V14.0.8117.416 X-Virus-Scanned: ClamAV using ClamSMTP Cc: freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: iSCSI boot driver version 0.1.1 for iBFT 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: Fri, 25 Jun 2010 16:33:03 -0000 Sorry, isboot-0.1.1 was broken under i386 kernel + loader. The version 0.1.2 is uploaded in my blog. Also I uploaded isboot integrated FreeBSD 7.3 disc1, 8.1-RC1 dics1 and making script. Use at your own risk. You need only iBFT supported NIC and iSCSI target. Please see Intel's site about iBFT supported NIC. http://www.intel.com/support/network/adapter/pro100/sb/CS-028681.htm If you can connect to iSCSI target by NIC BIOS, isboot.ko shows the following log. In this case, em0 is configured automatically with NIC0 parameter in iBFT, and you can install FreeBSD to da1 directly and you can boot from da1. If you want to try to copy existing FreeBSD, then configure NIC and loading isboot.ko via loader.conf or "kldload isboot.ko" from shell. Then, use normal way such as dump/restore. Note: do not set IP to em0 when installation. it might be a problem. --------------------------------------------------------------- iSCSI boot driver version 0.1.2 IS: Initiator name: iqn.2007-09.jp.ne.peach:pluto NIC0: IP address: 192.168.3.48 NIC0: Prefix: 24 NIC0: Gateway: 0.0.0.0 NIC0: MAC address: 00:15:17:97:85:ab TGT0: Target IP address: 192.168.3.36 TGT0: Target Port: 3260 TGT0: Target LUN: 2 TGT0: Target name: iqn.2007-09.jp.ne.peach:isboot1 Boot NIC: em0 Configure IPv4 by NIC0 Attempting to login to iSCSI target and scan all LUNs. ... cut ... da0 at isboot0 bus 0 scbus0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 40960MB (83886080 512 byte sectors: 255H 63S/T 5221C) da1 at isboot0 bus 0 scbus0 target 0 lun 2 da1: Fixed Direct Access SCSI-5 device da1: 10240MB (20971520 512 byte sectors: 255H 63S/T 1305C) da2 at isboot0 bus 0 scbus0 target 0 lun 3 da2: Fixed Direct Access SCSI-5 device da2: 1024MB (2097152 512 byte sectors: 64H 32S/T 1024C) ... cut ... Boot device: da1 --------------------------------------------------------------- Download links: http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-7.3-RELEASE-amd64-isboot-0.1.2.iso http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-7.3-RELEASE-i386-isboot-0.1.2.iso http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-8.1-RC1-amd64-isboot-0.1.2.iso http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-8.1-RC1-i386-isboot-0.1.2.iso http://www.peach.ne.jp/archives/isboot/demo/unionfs-mkisboot.sh Try it you self :) Daisuke Aoyama From owner-freebsd-scsi@FreeBSD.ORG Fri Jun 25 22:47:29 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 8F56E1065670; Fri, 25 Jun 2010 22:47:29 +0000 (UTC) (envelope-from vince@unsane.co.uk) Received: from unsane.co.uk (unsane-pt.tunnel.tserv5.lon1.ipv6.he.net [IPv6:2001:470:1f08:110::2]) by mx1.freebsd.org (Postfix) with ESMTP id B8B068FC18; Fri, 25 Jun 2010 22:47:28 +0000 (UTC) Received: from vhoffman-macbook.local ([10.0.0.173]) (authenticated bits=0) by unsane.co.uk (8.14.4/8.14.4) with ESMTP id o5PMlPfL061584 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO); Fri, 25 Jun 2010 23:47:26 +0100 (BST) (envelope-from vince@unsane.co.uk) Message-ID: <4C2531FD.8050605@unsane.co.uk> Date: Fri, 25 Jun 2010 23:47:25 +0100 From: Vincent Hoffman User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: Daisuke Aoyama References: <1931AE1113EC4A8983B8A52A2A1966C2@ad.peach.ne.jp> In-Reply-To: <1931AE1113EC4A8983B8A52A2A1966C2@ad.peach.ne.jp> X-Enigmail-Version: 1.0.1 Content-Type: text/plain; charset=ISO-2022-JP Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, freebsd-current@freebsd.org, freebsd-stable@freebsd.org Subject: Re: iSCSI boot driver version 0.1.1 for iBFT 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: Fri, 25 Jun 2010 22:47:29 -0000 On 25/06/2010 17:32, Daisuke Aoyama wrote: > Sorry, isboot-0.1.1 was broken under i386 kernel + loader. > The version 0.1.2 is uploaded in my blog. > Also I uploaded isboot integrated FreeBSD 7.3 disc1, 8.1-RC1 dics1 and > making script. Use at your own risk. > > You need only iBFT supported NIC and iSCSI target. Since I dont have a supported nic, would the iscsi support in gpxe (http://etherboot.org/wiki/iscsiboot) be enough? (might give it a try if i get time after the weekend.) Vince > > Please see Intel's site about iBFT supported NIC. > http://www.intel.com/support/network/adapter/pro100/sb/CS-028681.htm > > If you can connect to iSCSI target by NIC BIOS, isboot.ko shows the > following log. > > In this case, em0 is configured automatically with NIC0 parameter in > iBFT, > and you can install FreeBSD to da1 directly and you can boot from da1. > > If you want to try to copy existing FreeBSD, then configure NIC and > loading isboot.ko via loader.conf or "kldload isboot.ko" from shell. > Then, use normal way such as dump/restore. > > Note: do not set IP to em0 when installation. it might be a problem. > --------------------------------------------------------------- > iSCSI boot driver version 0.1.2 > IS: Initiator name: iqn.2007-09.jp.ne.peach:pluto > NIC0: IP address: 192.168.3.48 > NIC0: Prefix: 24 > NIC0: Gateway: 0.0.0.0 > NIC0: MAC address: 00:15:17:97:85:ab > TGT0: Target IP address: 192.168.3.36 > TGT0: Target Port: 3260 > TGT0: Target LUN: 2 > TGT0: Target name: iqn.2007-09.jp.ne.peach:isboot1 > Boot NIC: em0 > Configure IPv4 by NIC0 > Attempting to login to iSCSI target and scan all LUNs. > ... cut ... > da0 at isboot0 bus 0 scbus0 target 0 lun 0 > da0: Fixed Direct Access SCSI-5 device > da0: 40960MB (83886080 512 byte sectors: 255H 63S/T 5221C) > da1 at isboot0 bus 0 scbus0 target 0 lun 2 > da1: Fixed Direct Access SCSI-5 device > da1: 10240MB (20971520 512 byte sectors: 255H 63S/T 1305C) > da2 at isboot0 bus 0 scbus0 target 0 lun 3 > da2: Fixed Direct Access SCSI-5 device > da2: 1024MB (2097152 512 byte sectors: 64H 32S/T 1024C) > ... cut ... > Boot device: da1 > --------------------------------------------------------------- > > Download links: > http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-7.3-RELEASE-amd64-isboot-0.1.2.iso > > http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-7.3-RELEASE-i386-isboot-0.1.2.iso > > http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-8.1-RC1-amd64-isboot-0.1.2.iso > > http://www.peach.ne.jp/archives/isboot/demo/FreeBSD-8.1-RC1-i386-isboot-0.1.2.iso > > http://www.peach.ne.jp/archives/isboot/demo/unionfs-mkisboot.sh > > Try it you self :) > Daisuke Aoyama > > > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to > "freebsd-current-unsubscribe@freebsd.org"