From owner-freebsd-scsi@FreeBSD.ORG Mon Sep 5 11:07:17 2011 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 728A01065670 for ; Mon, 5 Sep 2011 11:07:17 +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 57A758FC1D for ; Mon, 5 Sep 2011 11:07:17 +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 p85B7H2h065994 for ; Mon, 5 Sep 2011 11:07:17 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id p85B7GPR065992 for freebsd-scsi@FreeBSD.org; Mon, 5 Sep 2011 11:07:16 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 5 Sep 2011 11:07:16 GMT Message-Id: <201109051107.p85B7GPR065992@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, 05 Sep 2011 11:07:17 -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/159412 scsi [ciss] 7.3 RELEASE: ciss0 ADAPTER HEARTBEAT FAILED err o kern/157770 scsi [iscsi] [panic] iscsi_initiator panic o kern/154432 scsi [xpt] run_interrupt_driven_hooks: still waiting after o kern/153514 scsi [cam] [panic] CAM related panic o kern/153361 scsi [ciss] Smart Array 5300 boot/detect drive problem o kern/152250 scsi [ciss] [patch] Kernel panic when hw.ciss.expose_hidden o kern/151564 scsi [ciss] ciss(4) should increase CISS_MAX_LOGICAL to 10 o docs/151336 scsi Missing documentation of scsi_ and ata_ functions in c s kern/149927 scsi [cam] hard drive not stopped before removing power dur o kern/148083 scsi [aac] Strange device reporting 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 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/127717 scsi [ata] [patch] [request] - support write cache toggling o kern/124667 scsi [amd] [panic] FreeBSD-7 kernel page faults at amd-scsi o kern/123674 scsi [ahc] ahc driver dumping o kern/123520 scsi [ahd] unable to boot from net while using ahd 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/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/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 bin/57088 scsi [cam] [patch] for a possible fd leak in libcam.c 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/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 48 problems total. From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 16:43:15 2011 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 EF235106564A for ; Wed, 7 Sep 2011 16:43:14 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id AE90D8FC0C for ; Wed, 7 Sep 2011 16:43:14 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p87GhDiX023535; Wed, 7 Sep 2011 10:43:13 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p87GhDfw023534; Wed, 7 Sep 2011 10:43:13 -0600 (MDT) (envelope-from ken) Date: Wed, 7 Sep 2011 10:43:13 -0600 From: "Kenneth D. Merry" To: Douglas Gilbert Message-ID: <20110907164313.GA20036@nargothrond.kdm.org> References: <4E60FD85.4070708@interlog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E60FD85.4070708@interlog.com> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders 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, 07 Sep 2011 16:43:15 -0000 On Fri, Sep 02, 2011 at 12:00:05 -0400, Douglas Gilbert wrote: > smp_utils is a package of command line utilities for > accessing and controlling SAS expanders via the Serial > Management Protocol (SMP). See this page: > http://sg.danny.cz/sg/smp_utils.html > for more information. > > This package was written for Linux and has been ported > to FreeBSD (starting at smp_utils version 0.97b1). It > uses the extensions to CAM added in late 2010 and only > found in the yet to be released FreeBSD 9.0 . Very cool! Thank you for porting it! > A quirk of > the CAM extensions is that SAS expanders (more precisely > SMP targets) are not visible in the user space. CAM > assumes there will be a "twin" SES device (true for the > SAS-2 expanders I have) on the same silicon as the > expander. Hence invocations look like this: > smp_discover /dev/ses2 Yes, that is a shortcoming. We have plans to put the expanders in the topology, but at the moment, CAM doesn't have any SMP probe code. So that was the quickest way to make things work. You can also send SMP commands to any device attached to an expander (e.g. /dev/da5), and you should also get the information from the expander: [root@storage-domain ~/smp_utils-0.97b1/src]# ./smp_discover /dev/da5 phy 0:S:attached:[50090a502ff80200:26 exp i(SMP) t(SMP)] 3 Gbps phy 1:S:attached:[50090a502ff80200:27 exp i(SMP) t(SMP)] 3 Gbps phy 2: inaccessible (phy vacant) phy 3: inaccessible (phy vacant) phy 4:T:attached:[5000c50026360ecd:00 t(SSP)] 3 Gbps phy 5:T:attached:[5000c50026360ece:01 t(SSP)] 3 Gbps phy 6:T:attached:[5000c50026360d5d:00 t(SSP)] 3 Gbps phy 7:T:attached:[5000c50026360d5e:01 t(SSP)] 3 Gbps phy 8:T:attached:[5000c500263cd829:00 t(SSP)] 3 Gbps phy 9:T:attached:[5000c500263cd82a:01 t(SSP)] 3 Gbps phy 10:T:attached:[5000c500263476b1:00 t(SSP)] 3 Gbps phy 11:T:attached:[5000c500263476b2:01 t(SSP)] 3 Gbps phy 12:T:attached:[5000c5002635fcd1:00 t(SSP)] 3 Gbps phy 13:T:attached:[5000c5002635fcd2:01 t(SSP)] 3 Gbps phy 14:T:attached:[5000c500263c532d:00 t(SSP)] 3 Gbps phy 15:T:attached:[5000c500263c532e:01 t(SSP)] 3 Gbps phy 16:T:attached:[5000c500263d603d:00 t(SSP)] 3 Gbps phy 17:T:attached:[5000c500263d603e:01 t(SSP)] 3 Gbps phy 18:T:attached:[5000c500261d1099:00 t(SSP)] 3 Gbps phy 19:T:attached:[5000c500261d109a:01 t(SSP)] 3 Gbps phy 20:T:attached:[5000c500263cd089:00 t(SSP)] 3 Gbps phy 21:T:attached:[5000c500263cd08a:01 t(SSP)] 3 Gbps phy 22:T:attached:[5000c50026360329:00 t(SSP)] 3 Gbps phy 23:T:attached:[5000c5002636032a:01 t(SSP)] 3 Gbps phy 24:D:attached:[50090a502ff80619:00 V i(SSP) t(SSP)] 3 Gbps > camcontrol has been extended in FreeBSD 9.0 to access > some SMP functions. smp_utils version 0.97b1 supports > all functions defined in SAS-2 (up until the lastest > draft: spl2r02.pdf) and that includes zoning support. Excellent! That will come in handy especially when we get around to doing the multipathing work in CAM and adding SMP devices to the topology. Thanks again for doing the work. > Doug Gilbert > > > P.S. For at least the last 3 years I have been unable to > post to this list. The postmaster@freebsd.org informed > me that my email domain was blacklisted. Not bad for a > grand-fathered email domain that probably hasn't added > a new email account in 10 years! FreeBSD's blacklisting > probably dates from a period when some crazy service in > the US identified every major and minor Canadian email > domain as full of spammers. So anyone else who feels > they have been blacklisted, contact the postmaster. Not good, but I'm glad things are cleared up now. Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 16:48:58 2011 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 7D84D1065672 for ; Wed, 7 Sep 2011 16:48:58 +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 461078FC0C for ; Wed, 7 Sep 2011 16:48:58 +0000 (UTC) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id p87GmvQi003825 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Sep 2011 09:48:57 -0700 (PDT) (envelope-from mj@feral.com) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.4/8.14.4/Submit) with ESMTP id p87GmvcF003822; Wed, 7 Sep 2011 09:48:57 -0700 (PDT) (envelope-from mj@feral.com) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Wed, 7 Sep 2011 09:48:57 -0700 (PDT) From: Matthew Jacob To: "Kenneth D. Merry" In-Reply-To: <20110907164313.GA20036@nargothrond.kdm.org> Message-ID: References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (ns1.feral.com [127.0.0.1]); Wed, 07 Sep 2011 09:48:57 -0700 (PDT) Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mj@feral.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 16:48:58 -0000 > > You can also send SMP commands to any device attached to an expander (e.g. > /dev/da5), and you should also get the information from the expander: > This is so very wrong, Ken. From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 17:22:22 2011 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 E42A1106566C for ; Wed, 7 Sep 2011 17:22:22 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 993798FC0C for ; Wed, 7 Sep 2011 17:22:22 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p87HMJLh031324; Wed, 7 Sep 2011 11:22:19 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p87HMJUQ031323; Wed, 7 Sep 2011 11:22:19 -0600 (MDT) (envelope-from ken) Date: Wed, 7 Sep 2011 11:22:19 -0600 From: "Kenneth D. Merry" To: Matthew Jacob Message-ID: <20110907172219.GA31291@nargothrond.kdm.org> References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders 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, 07 Sep 2011 17:22:23 -0000 On Wed, Sep 07, 2011 at 09:48:57 -0700, Matthew Jacob wrote: > > > >You can also send SMP commands to any device attached to an expander (e.g. > >/dev/da5), and you should also get the information from the expander: > > > > This is so very wrong, Ken. Yep. It's a side-effect of the implementation. It'll get fixed when we add SMP probe code into CAM. Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@FreeBSD.ORG Wed Sep 7 18:20:00 2011 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 D56FB106566B; Wed, 7 Sep 2011 18:20:00 +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 8062A8FC0C; Wed, 7 Sep 2011 18:20:00 +0000 (UTC) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.14.4/8.14.4) with ESMTP id p87IJxg8004266 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 7 Sep 2011 11:19:59 -0700 (PDT) (envelope-from mj@feral.com) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.14.4/8.14.4/Submit) with ESMTP id p87IJx8g004263; Wed, 7 Sep 2011 11:19:59 -0700 (PDT) (envelope-from mj@feral.com) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Wed, 7 Sep 2011 11:19:59 -0700 (PDT) From: Matthew Jacob To: "Kenneth D. Merry" In-Reply-To: <20110907172219.GA31291@nargothrond.kdm.org> Message-ID: References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> <20110907172219.GA31291@nargothrond.kdm.org> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (ns1.feral.com [127.0.0.1]); Wed, 07 Sep 2011 11:19:59 -0700 (PDT) Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mj@feral.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Sep 2011 18:20:00 -0000 > It'll get fixed when we add SMP probe code into CAM. ETA? From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 8 14:49:51 2011 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 58A6C1065670 for ; Thu, 8 Sep 2011 14:49:51 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 2267F8FC0C for ; Thu, 8 Sep 2011 14:49:50 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p88Enmhk078818; Thu, 8 Sep 2011 08:49:48 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p88Enmvl078817; Thu, 8 Sep 2011 08:49:48 -0600 (MDT) (envelope-from ken) Date: Thu, 8 Sep 2011 08:49:48 -0600 From: "Kenneth D. Merry" To: Matthew Jacob Message-ID: <20110908144948.GA76725@nargothrond.kdm.org> References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> <20110907172219.GA31291@nargothrond.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders 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, 08 Sep 2011 14:49:51 -0000 On Wed, Sep 07, 2011 at 11:19:59 -0700, Matthew Jacob wrote: > > >It'll get fixed when we add SMP probe code into CAM. > > ETA? Last year I would have said this year. Right now I'm not sure. It'll probably happen along with the multipathing work we're planning to do for CAM, since our initial goal will be handling multiple paths in a SAS topology. Our management is currently figuring out our priorties for the next set of features they want. Once they figure that out I may have a better idea of when it'll happen. I'm pretty sure multipathing won't be the next feature we do, so my guess is that we wouldn't start on it until next year. If there are other folks who are interested in helping out so that the multipathing work happens sooner, that might influence our time frame for working on it to some extent. One short-term note -- I'm working on support for descriptor sense right now. Seagate's new 3TB SAS drives return descriptor sense by default. I'm planning to put the code into head once it unfreezes. Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 8 15:50:27 2011 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 C5DCE106566B for ; Thu, 8 Sep 2011 15:50:27 +0000 (UTC) (envelope-from dgilbert@interlog.com) Received: from smtp.infotech.no (smtp.infotech.no [82.134.31.41]) by mx1.freebsd.org (Postfix) with ESMTP id 7A6798FC16 for ; Thu, 8 Sep 2011 15:50:27 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp.infotech.no (Postfix) with ESMTP id 5E59320426F; Thu, 8 Sep 2011 17:50:24 +0200 (CEST) X-Virus-Scanned: by amavisd-new-2.6.6 (20110518) (Debian) at infotech.no Received: from smtp.infotech.no ([127.0.0.1]) by localhost (smtp.infotech.no [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FWkQOgyW5FOg; Thu, 8 Sep 2011 17:50:22 +0200 (CEST) Received: from [192.168.48.66] (ip-106.55.99.216.dsl-cust.ca.inter.net [216.99.55.106]) by smtp.infotech.no (Postfix) with ESMTPA id 05B65204261; Thu, 8 Sep 2011 17:50:21 +0200 (CEST) Message-ID: <4E68E43B.9080907@interlog.com> Date: Thu, 08 Sep 2011 11:50:19 -0400 From: Douglas Gilbert User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.21) Gecko/20110831 Thunderbird/3.1.13 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> <20110907172219.GA31291@nargothrond.kdm.org> <20110908144948.GA76725@nargothrond.kdm.org> In-Reply-To: <20110908144948.GA76725@nargothrond.kdm.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Matthew Jacob , ken@freebsd.org Subject: Re: smp_utils: command line utilities for SAS expanders X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: dgilbert@interlog.com List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2011 15:50:27 -0000 On 11-09-08 10:49 AM, Kenneth D. Merry wrote: > On Wed, Sep 07, 2011 at 11:19:59 -0700, Matthew Jacob wrote: >> >>> It'll get fixed when we add SMP probe code into CAM. >> >> ETA? > > Last year I would have said this year. Right now I'm not sure. > > It'll probably happen along with the multipathing work we're planning to do > for CAM, since our initial goal will be handling multiple paths in a SAS > topology. > > Our management is currently figuring out our priorties for the next set of > features they want. Once they figure that out I may have a better idea of > when it'll happen. I'm pretty sure multipathing won't be the next feature > we do, so my guess is that we wouldn't start on it until next year. > > If there are other folks who are interested in helping out so that the > multipathing work happens sooner, that might influence our time frame for > working on it to some extent. > > One short-term note -- I'm working on support for descriptor sense right > now. Seagate's new 3TB SAS drives return descriptor sense by default. If you are working on sense data then you might find the sg_decode_sense utility in the sg3_utils package useful. [BTW I have ported most of my packages to FreeBSD: sg3_utils, sdparm, smp_utils and ddpt.] Also the sg_lib_data.c file in the sg3_utils' lib directory contains an up to date list (in C) of asc/ascq strings. And then there is this nasty slipped into SAM-5 (sam5r07.pdf section 5.3.1): "Sense data may be delivered in the buffer defined by the Sense Data argument of the Execute Command procedure call (see 5.1) for ANY status code." The only example of this so far seems to be referrals (see sbc3r27.pdf section 4.26.4). Now a successful SCSI READ may return status=GOOD with sense data that contains sense_key=COMPLETED and the asc/ascq pair for "INSPECT REFERRALS SENSE DESCRIPTORS". I don't think Linux is even close to handling this new wrinkle. Doug Gilbert From owner-freebsd-scsi@FreeBSD.ORG Thu Sep 8 22:30:55 2011 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 999EC10656D0 for ; Thu, 8 Sep 2011 22:30:55 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 47D6A8FC12 for ; Thu, 8 Sep 2011 22:30:54 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id p88MUphf072310; Thu, 8 Sep 2011 16:30:51 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id p88MUpT8072309; Thu, 8 Sep 2011 16:30:51 -0600 (MDT) (envelope-from ken) Date: Thu, 8 Sep 2011 16:30:50 -0600 From: "Kenneth D. Merry" To: Douglas Gilbert Message-ID: <20110908223050.GA70361@nargothrond.kdm.org> References: <4E60FD85.4070708@interlog.com> <20110907164313.GA20036@nargothrond.kdm.org> <20110907172219.GA31291@nargothrond.kdm.org> <20110908144948.GA76725@nargothrond.kdm.org> <4E68E43B.9080907@interlog.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4E68E43B.9080907@interlog.com> User-Agent: Mutt/1.4.2i Cc: freebsd-scsi@freebsd.org, Matthew Jacob Subject: Re: smp_utils: command line utilities for SAS expanders 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, 08 Sep 2011 22:30:55 -0000 On Thu, Sep 08, 2011 at 11:50:19 -0400, Douglas Gilbert wrote: > On 11-09-08 10:49 AM, Kenneth D. Merry wrote: > >On Wed, Sep 07, 2011 at 11:19:59 -0700, Matthew Jacob wrote: > >> > >>>It'll get fixed when we add SMP probe code into CAM. > >> > >>ETA? > > > >Last year I would have said this year. Right now I'm not sure. > > > >It'll probably happen along with the multipathing work we're planning to do > >for CAM, since our initial goal will be handling multiple paths in a SAS > >topology. > > > >Our management is currently figuring out our priorties for the next set of > >features they want. Once they figure that out I may have a better idea of > >when it'll happen. I'm pretty sure multipathing won't be the next feature > >we do, so my guess is that we wouldn't start on it until next year. > > > >If there are other folks who are interested in helping out so that the > >multipathing work happens sooner, that might influence our time frame for > >working on it to some extent. > > > >One short-term note -- I'm working on support for descriptor sense right > >now. Seagate's new 3TB SAS drives return descriptor sense by default. > > If you are working on sense data then you might find the > sg_decode_sense utility in the sg3_utils package useful. > [BTW I have ported most of my packages to FreeBSD: > sg3_utils, sdparm, smp_utils and ddpt.] Also the > sg_lib_data.c file in the sg3_utils' lib directory contains > an up to date list (in C) of asc/ascq strings. Thanks! > And then there is this nasty slipped into SAM-5 (sam5r07.pdf > section 5.3.1): "Sense data may be delivered in the buffer > defined by the Sense Data argument of the Execute Command > procedure call (see 5.1) for ANY status code." > The only example of this so far seems to be referrals (see > sbc3r27.pdf section 4.26.4). Now a successful SCSI READ may > return status=GOOD with sense data that contains > sense_key=COMPLETED and the asc/ascq pair for "INSPECT > REFERRALS SENSE DESCRIPTORS". I don't think Linux is even > close to handling this new wrinkle. That is very tricky. I guess it makes sense that they did that, but it does change some long-held assumptions about when sense data is present. FreeBSD won't look at the sense data either unless the status is CHECK CONDITION. Although it wouldn't be too difficult to check in the da(4) driver to see whether any sense data was reported, and collect any referral information if necessary. I'm guessing we'll wind up looking at the referrals at least when we do the multipathing work. It'll be interesting to see what other ways they use sense data later on. Ken -- Kenneth Merry ken@FreeBSD.ORG