From owner-freebsd-scsi@FreeBSD.ORG Sun Aug 13 04:22:13 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D94A916A4DA for ; Sun, 13 Aug 2006 04:22:13 +0000 (UTC) (envelope-from toasty@dragondata.com) Received: from tokyo01.jp.mail.your.org (tokyo01.jp.mail.your.org [204.9.54.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 791E543D46 for ; Sun, 13 Aug 2006 04:22:13 +0000 (GMT) (envelope-from toasty@dragondata.com) Received: from mail.your.org (server3-a.your.org [64.202.112.67]) by tokyo01.jp.mail.your.org (Postfix) with ESMTP id 034162AD6C10 for ; Sun, 13 Aug 2006 04:22:11 +0000 (UTC) Received: from [69.31.99.38] (pool038.dhcp.your.org [69.31.99.38]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by mail.your.org (Postfix) with ESMTP id 4CBB5A0A44E for ; Sun, 13 Aug 2006 04:22:10 +0000 (UTC) Mime-Version: 1.0 (Apple Message framework v752.2) Content-Transfer-Encoding: 7bit Message-Id: Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: freebsd-scsi@freebsd.org From: Kevin Day Date: Sat, 12 Aug 2006 23:22:24 -0500 X-Mailer: Apple Mail (2.752.2) Subject: mpt0: reply length does not match message length: got 0x38, expected 0x3c 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: Sun, 13 Aug 2006 04:22:13 -0000 I've got a dual LSI 929 Fibrechannel adapter running in 6.1 pretty successfully. However, I'm seeing some messages on boot that I can't explain, and google doesn't seem to think anyone else has seen this either. mpt0: port 0xde00-0xdeff mem 0xfcfc0000-0xfcfcffff,0xfcfb0000-0xfcfbffff irq 27 at device 2.0 on pci3 mpt0: [GIANT-LOCKED] mpt0: reply length does not match message length: got 0x38, expected 0x3c mpt0: MPI Version=1.1.0.0 mpt0: Unhandled Event Notify Frame. Event 0xa. mpt0: Capabilities: ( RAID-1 ) mpt0: 0 Active Volumes (1 Max) mpt0: 0 Hidden Drive Members (0 Max) mpt0: mpt_read_cfg_header: Config Info Status 22 mpt1: port 0xdf00-0xdfff mem 0xfcfe0000-0xfcfeffff,0xfcfd0000-0xfcfdffff irq 26 at device 2.1 on pci3 mpt1: [GIANT-LOCKED] mpt1: reply length does not match message length: got 0x38, expected 0x3c mpt1: MPI Version=1.1.0.0 mpt1: Unhandled Event Notify Frame. Event 0xa. mpt1: Capabilities: ( RAID-1 ) mpt1: 0 Active Volumes (1 Max) mpt1: 0 Hidden Drive Members (0 Max) mpt1: mpt_read_cfg_header: Config Info Status 22 Anyone more familiar with the mpt driver know if that "reply length" or "Unhandled Event" message is harmless or not? It otherwise seems to work: da1 at mpt1 bus 0 target 0 lun 0 da1: Fixed Direct Access SCSI-5 device da1: 100.000MB/s transfers, Tagged Queueing Enabled da1: 1060176MB (2171240448 512 byte sectors: 255H 63S/T 135153C) da0 at mpt0 bus 0 target 0 lun 0 da0: Fixed Direct Access SCSI-5 device da0: 100.000MB/s transfers, Tagged Queueing Enabled da0: 1060176MB (2171240448 512 byte sectors: 255H 63S/T 135153C) # dd if=/dev/zero of=test bs=128k count=10000 10000+0 records in 10000+0 records out 1310720000 bytes transferred in 10.582999 secs (123851472 bytes/sec) From owner-freebsd-scsi@FreeBSD.ORG Sun Aug 13 20:17:44 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F93D16A4DE for ; Sun, 13 Aug 2006 20:17:43 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3CBAD43D45 for ; Sun, 13 Aug 2006 20:17:42 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [192.168.42.24] (andersonbox4.centtech.com [192.168.42.24]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7DKHgZI017767; Sun, 13 Aug 2006 15:17:42 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44DF88FB.90602@centtech.com> Date: Sun, 13 Aug 2006 15:18:03 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Matthew Jacob References: <44DB8A9C.8090609@centtech.com> <44DC6F9F.4060405@centtech.com> <20060811154348.GA83765@chuggalug.clues.com> <44DCA9F1.1000302@centtech.com> <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> In-Reply-To: <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1655/Sun Aug 13 13:39:20 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org Subject: Re: isp issues on recent -STABLE 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: Sun, 13 Aug 2006 20:17:44 -0000 On 08/12/06 13:01, Matthew Jacob wrote: > Hmm. I have no special help on this one. This doesn't seem > *particularly* related to any changes I've made recently. > > If you could isolate a date/change when this occurred for you it would help. > > All I see in the messages below is indications that we've given your > storage way too much work to do. Yea, I think that's all it is. Once I did less work, the problem went away, although I still get a lot of warnings from ISP about pretty much the same thing (so maybe I'm *close* to the line). Also, I recently booted up 6.1-RELEASE cd with two qlogic 2312's, installed, and booted up. After updating to -STABLE, and rebooting, I either would hang forever (literally days went by), or I resulted in a panic (when ispfw was loaded). Once I plugged the hba's into something, the issues went away. Only when they were totally disconnected did I have any issue. Let me know if you need more info/testing. Eric > On 8/11/06, Eric Anderson wrote: >> On 08/11/06 10:43, Geoff Buckingham wrote: >>> On Fri, Aug 11, 2006 at 06:53:03AM -0500, Eric Anderson wrote: >>>> [..snip..] >>>> Aug 9 23:02:10 snapshot1 kernel: isp0: command timed out for 0.2.2 >>>> Aug 9 23:02:10 snapshot1 kernel: (da8:isp0:0:2:2): Command timed out >>>> Aug 9 23:02:10 snapshot1 kernel: (da8:isp0:0:2:2): Retrying Command >>>> Aug 9 23:26:58 snapshot1 kernel: (da3:isp0:0:1:0): Queue Full >>>> Aug 9 23:26:58 snapshot1 kernel: (da3:isp0:0:1:0): tagged openings now 254 >>> I don't what may have changed in the driver recently, but from your post >>> you seem to be using the FC isp and potentially a "SAN" presenting arrays as >>> luns to you rather than JBOD on a loop or switch. >>> >>> If you you have some kind of data mover presenting arrays, your SAN vendor >>> may well recomend a maximum queue size per lun (often 20-30) >> I have this one host connected to a single QLogic fiber channel switch, >> which has 5 ACNC fiber channel arrays attached to it, along with a tape >> robot and tape drives. Three of the arrays present 3 LUNs each (2TB per >> LUN), and two of them present 2 LUNs each, 4GB and 10TB - I'm not using >> these two arrays much yet, and are not really associated with the problems. >> >>> man camcontrol, look at the tags section. >>> >>> Your commands may be timing out because you have managed to queue too many >>> command (which I hope should not happen). Or..... >>> >>> Your queues could be filling because your commands are timing out. Which >>> would imply something is broke :-( >> Strange that I've never hit this in the past, but now I seem to be >> hitting it quite often. The vendor of the arrays says queue depth is >> 256 per LUN, and that coincides with my messages above I believe. >> >> Eric >> >> >> >> -- >> ------------------------------------------------------------------------ >> Eric Anderson Sr. Systems Administrator Centaur Technology >> Anything that works is better than anything that doesn't. >> ------------------------------------------------------------------------ >> _______________________________________________ >> freebsd-scsi@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-scsi >> To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" >> -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 14 05:08:47 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D062016A4DF for ; Mon, 14 Aug 2006 05:08:47 +0000 (UTC) (envelope-from lydianconcepts@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.184]) by mx1.FreeBSD.org (Postfix) with ESMTP id E521343D55 for ; Mon, 14 Aug 2006 05:08:46 +0000 (GMT) (envelope-from lydianconcepts@gmail.com) Received: by nf-out-0910.google.com with SMTP id g2so1861280nfe for ; Sun, 13 Aug 2006 22:08:45 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=JRh5KdeoXhJxxDBfkD0pKSnL9j0zeivPv1VraJCUcM1GMrWEEax7wDFfFxZrLYtdsnikikLO2jaOfwFysmQSd7QhaC+JZ6Kt4T/euvafy1M0cjqim/Hfx3XLX2hamfJdNq5faptlBWgLhLXWDTlCrVlyrkBwC6zlYSKk+VY+QT8= Received: by 10.78.122.11 with SMTP id u11mr3096716huc; Sun, 13 Aug 2006 22:08:45 -0700 (PDT) Received: by 10.78.134.9 with HTTP; Sun, 13 Aug 2006 22:08:45 -0700 (PDT) Message-ID: <7579f7fb0608132208y74cedb7evc5c011a13de2120b@mail.gmail.com> Date: Sun, 13 Aug 2006 22:08:45 -0700 From: "Matthew Jacob" To: "Kevin Day" In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: Cc: freebsd-scsi@freebsd.org Subject: Re: mpt0: reply length does not match message length: got 0x38, expected 0x3c 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, 14 Aug 2006 05:08:47 -0000 This only happens on the GET IOC FACTS command. The reply for this has changed over the years. Newer structures have more data. Older f/w has less data. You're right that it's harmless. On 8/12/06, Kevin Day wrote: > > I've got a dual LSI 929 Fibrechannel adapter running in 6.1 pretty > successfully. However, I'm seeing some messages on boot that I can't > explain, and google doesn't seem to think anyone else has seen this > either. > > mpt0: port 0xde00-0xdeff mem > 0xfcfc0000-0xfcfcffff,0xfcfb0000-0xfcfbffff irq 27 at device 2.0 on pci3 > mpt0: [GIANT-LOCKED] > mpt0: reply length does not match message length: got 0x38, expected > 0x3c > mpt0: MPI Version=1.1.0.0 > mpt0: Unhandled Event Notify Frame. Event 0xa. > mpt0: Capabilities: ( RAID-1 ) > mpt0: 0 Active Volumes (1 Max) > mpt0: 0 Hidden Drive Members (0 Max) > mpt0: mpt_read_cfg_header: Config Info Status 22 > mpt1: port 0xdf00-0xdfff mem > 0xfcfe0000-0xfcfeffff,0xfcfd0000-0xfcfdffff irq 26 at device 2.1 on pci3 > mpt1: [GIANT-LOCKED] > mpt1: reply length does not match message length: got 0x38, expected > 0x3c > mpt1: MPI Version=1.1.0.0 > mpt1: Unhandled Event Notify Frame. Event 0xa. > mpt1: Capabilities: ( RAID-1 ) > mpt1: 0 Active Volumes (1 Max) > mpt1: 0 Hidden Drive Members (0 Max) > mpt1: mpt_read_cfg_header: Config Info Status 22 > > Anyone more familiar with the mpt driver know if that "reply length" > or "Unhandled Event" message is harmless or not? > > > It otherwise seems to work: > > da1 at mpt1 bus 0 target 0 lun 0 > da1: Fixed Direct Access SCSI-5 device > da1: 100.000MB/s transfers, Tagged Queueing Enabled > da1: 1060176MB (2171240448 512 byte sectors: 255H 63S/T 135153C) > da0 at mpt0 bus 0 target 0 lun 0 > da0: Fixed Direct Access SCSI-5 device > da0: 100.000MB/s transfers, Tagged Queueing Enabled > da0: 1060176MB (2171240448 512 byte sectors: 255H 63S/T 135153C) > > # dd if=/dev/zero of=test bs=128k count=10000 > 10000+0 records in > 10000+0 records out > 1310720000 bytes transferred in 10.582999 secs (123851472 bytes/sec) > > > > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 14 07:28:42 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B845516A4F4 for ; Mon, 14 Aug 2006 07:28:42 +0000 (UTC) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0C60543D90 for ; Mon, 14 Aug 2006 07:28:07 +0000 (GMT) (envelope-from owner-bugmaster@freebsd.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k7E7S7oK038591 for ; Mon, 14 Aug 2006 07:28:07 GMT (envelope-from owner-bugmaster@freebsd.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k7E7S67R038587 for freebsd-scsi@FreeBSD.org; Mon, 14 Aug 2006 07:28:06 GMT (envelope-from owner-bugmaster@freebsd.org) Date: Mon, 14 Aug 2006 07:28:06 GMT Message-Id: <200608140728.k7E7S67R038587@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@freebsd.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you 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, 14 Aug 2006 07:28:42 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/27059 scsi [sym] SCSI subsystem hangs under heavy load on (Server o kern/28508 scsi problems with backup to Tandberg SLR40 strimmer o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceProbeInfo comm o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/93128 scsi [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x (regression) 16 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/23314 scsi aic driver fails to detect Adaptec 1520B unless PnP is o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [feature request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/96133 scsi [scsi] [patch] add scsi quirk for joyfly 128mb flash u 6 problems total. From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 14 08:09:03 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4C7B116A4DD for ; Mon, 14 Aug 2006 08:09:03 +0000 (UTC) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (chuggalug2.demon.co.uk [83.104.169.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9672E43D45 for ; Mon, 14 Aug 2006 08:09:02 +0000 (GMT) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (localhost [127.0.0.1]) by chuggalug.clues.com (8.12.10/8.12.10) with ESMTP id k7E88wKP058902; Mon, 14 Aug 2006 08:08:58 GMT (envelope-from geoffb@chuggalug.clues.com) Received: (from geoffb@localhost) by chuggalug.clues.com (8.12.10/8.12.10/Submit) id k7E88w6w058901; Mon, 14 Aug 2006 08:08:58 GMT (envelope-from geoffb) Date: Mon, 14 Aug 2006 08:08:57 +0000 From: Geoff Buckingham To: Matthew Jacob Message-ID: <20060814080857.GA58022@chuggalug.clues.com> References: <44DB8A9C.8090609@centtech.com> <44DC6F9F.4060405@centtech.com> <20060811154348.GA83765@chuggalug.clues.com> <44DCA9F1.1000302@centtech.com> <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> User-Agent: Mutt/1.4.1i Cc: freebsd-scsi@freebsd.org Subject: Re: isp issues on recent -STABLE 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, 14 Aug 2006 08:09:03 -0000 > > On 8/11/06, Eric Anderson wrote: > >On 08/11/06 10:43, Geoff Buckingham wrote: > >> On Fri, Aug 11, 2006 at 06:53:03AM -0500, Eric Anderson wrote: > >>> [..snip..] > > > >I have this one host connected to a single QLogic fiber channel switch, > >which has 5 ACNC fiber channel arrays attached to it, along with a tape > >robot and tape drives. Three of the arrays present 3 LUNs each (2TB per > >LUN), and two of them present 2 LUNs each, 4GB and 10TB - I'm not using > >these two arrays much yet, and are not really associated with the problems. > > > >> man camcontrol, look at the tags section. > >> > > > >Strange that I've never hit this in the past, but now I seem to be > >hitting it quite often. The vendor of the arrays says queue depth is > >256 per LUN, and that coincides with my messages above I believe. > > You may want to try reducing the queue size with camcontrol as a potential work-around to your hangs. I believe the 256 queue size from your logs is the FreeBSD default, not a value negotiated with your LUN/Array. A small reduction might help if there was something like an off by one error in one of the queue implimentations. A larger reduction might help if, for example, there were only 256 tags available for the whole array (giving each of three LUNs around 80 tags each). The latter scenario may be more likely if you had recently started using new LUNs on the arrays in question. From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 14 08:59:39 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 03DE616A4DA for ; Mon, 14 Aug 2006 08:59:39 +0000 (UTC) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (chuggalug2.demon.co.uk [83.104.169.191]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5C76943D45 for ; Mon, 14 Aug 2006 08:59:38 +0000 (GMT) (envelope-from geoffb@chuggalug.clues.com) Received: from chuggalug.clues.com (localhost [127.0.0.1]) by chuggalug.clues.com (8.12.10/8.12.10) with ESMTP id k7E8xaKP059803; Mon, 14 Aug 2006 08:59:36 GMT (envelope-from geoffb@chuggalug.clues.com) Received: (from geoffb@localhost) by chuggalug.clues.com (8.12.10/8.12.10/Submit) id k7E8xaFL059802; Mon, 14 Aug 2006 08:59:36 GMT (envelope-from geoffb) Date: Mon, 14 Aug 2006 08:59:36 +0000 From: Geoff Buckingham To: Matthew Jacob Message-ID: <20060814085936.GB58022@chuggalug.clues.com> References: <44DB8A9C.8090609@centtech.com> <44DC6F9F.4060405@centtech.com> <20060811154348.GA83765@chuggalug.clues.com> <44DCA9F1.1000302@centtech.com> <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> <20060814080857.GA58022@chuggalug.clues.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20060814080857.GA58022@chuggalug.clues.com> User-Agent: Mutt/1.4.1i Cc: freebsd-scsi@freebsd.org Subject: Re: isp issues on recent -STABLE 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, 14 Aug 2006 08:59:39 -0000 > > > > > >I have this one host connected to a single QLogic fiber channel switch, > > >which has 5 ACNC fiber channel arrays attached to it, along with a tape > > >robot and tape drives. Three of the arrays present 3 LUNs each (2TB per > > >LUN), and two of them present 2 LUNs each, 4GB and 10TB - I'm not using > > >these two arrays much yet, and are not really associated with the problems. > > > Curiosity just lead me to the acnc website. The html data-sheets suggest the arrays support 253 commands, the PDFs 255! It also reads to me as if this is per FC port not per LUN. You will presumably have better informaton with whatever documentation these devices shipped with. From owner-freebsd-scsi@FreeBSD.ORG Mon Aug 14 11:34:47 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E1A9516A4DD for ; Mon, 14 Aug 2006 11:34:47 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh2.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7E80843D49 for ; Mon, 14 Aug 2006 11:34:47 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh2.centtech.com (8.13.1/8.13.1) with ESMTP id k7EBYfRB061174; Mon, 14 Aug 2006 06:34:42 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E05FE8.3060800@centtech.com> Date: Mon, 14 Aug 2006 06:35:04 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: Geoff Buckingham References: <44DB8A9C.8090609@centtech.com> <44DC6F9F.4060405@centtech.com> <20060811154348.GA83765@chuggalug.clues.com> <44DCA9F1.1000302@centtech.com> <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> <20060814080857.GA58022@chuggalug.clues.com> <20060814085936.GB58022@chuggalug.clues.com> In-Reply-To: <20060814085936.GB58022@chuggalug.clues.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1659/Mon Aug 14 03:44:22 2006 on mh2.centtech.com X-Virus-Status: Clean Cc: freebsd-scsi@freebsd.org Subject: Re: isp issues on recent -STABLE 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, 14 Aug 2006 11:34:48 -0000 On 08/14/06 03:59, Geoff Buckingham wrote: >>>> I have this one host connected to a single QLogic fiber channel switch, >>>> which has 5 ACNC fiber channel arrays attached to it, along with a tape >>>> robot and tape drives. Three of the arrays present 3 LUNs each (2TB per >>>> LUN), and two of them present 2 LUNs each, 4GB and 10TB - I'm not using >>>> these two arrays much yet, and are not really associated with the problems. >>>> > Curiosity just lead me to the acnc website. The html data-sheets suggest > the arrays support 253 commands, the PDFs 255! It also reads to me as if > this is per FC port not per LUN. You will presumably have better > informaton with whatever documentation these devices shipped with. *sigh* - I was going by what I was told on the phone by one of their support people. I trust the lowest number :) I see that now too. I'll try setting that lower (80 should be good for each of the three LUNs per array). Thanks everyone for the hints/help - I'll report back once I know if that made any difference. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 02:40:56 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 99D0D16A4DA for ; Tue, 15 Aug 2006 02:40:56 +0000 (UTC) (envelope-from jrhett@mail.meer.net) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4CF3043D49 for ; Tue, 15 Aug 2006 02:40:56 +0000 (GMT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k7F2epip056684; Mon, 14 Aug 2006 19:40:53 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k7F2enea034993; Mon, 14 Aug 2006 19:40:49 -0700 (PDT) (envelope-from jrhett@mail.meer.net) Received: (from jrhett@localhost) by mail.meer.net (8.13.3/8.13.3) id k7F2enBE034992; Mon, 14 Aug 2006 19:40:49 -0700 (PDT) (envelope-from jrhett) Date: Mon, 14 Aug 2006 19:40:49 -0700 From: Jo Rhett To: Scott Long Message-ID: <20060815024049.GA34903@svcolo.com> References: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> <44DD4A97.2050203@samsco.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <44DD4A97.2050203@samsco.org> Organization: svcolo.com User-Agent: Mutt/1.5.9i Cc: freebsd-scsi@freebsd.org Subject: Re: myl driver failing during server shutdown 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: Tue, 15 Aug 2006 02:40:56 -0000 Thanks for the quick reply. Unfortunately I still haven't had time to test it. I'm doing a build now, but I need to leave tonight so I'll try and test it tomorrow AM. On Fri, Aug 11, 2006 at 09:27:19PM -0600, Scott Long wrote: > Jo Rhett wrote: > >So I had thought that my motherboard didn't honor the acpi reset or > >power down command. It turns out that it does just fine -- but the > >shutdown is failing/hanging. Attaching a serial console to it, I see > >this: > > > >Waiting (max 60 seconds) for system process `syncer' to stop... > >Syncing disks, vnodes remaining...3 0 2 0 0 done > >All buffers synced. > >Uptime: 6d18h12m6s > >(da0:mly0:1:0:0): Synchronize cache failed, status == 0xb, scsi status > >== 0x0 > >mly0: flushing cache...kernel trap 12 with interrupts disabled > > > > > >Fatal trap 12: page fault while in kernel mode > >fault virtual address = 0x0 > >fault code = supervisor read, page not present > >instruction pointer = 0x20:0x0 > >stack pointer = 0x28:0xe25c1ac0 > >frame pointer = 0x28:0x0 > >code segment = base 0x0, limit 0xfffff, type 0x1b > > = DPL 0, pres 1, def32 1, gran 1 > >processor eflags = resume, IOPL = 0 > >current process = 1 (init) > >trap number = 12 > >panic: page fault > >Uptime: 6d19h12m38s > >(da0:mly0:1:0:0): Synchronize cache failed, status == 0xb, scsi status > >== 0x0 > >Dumping 991 MB (2 chunks) > >Aborting dump due to I/O error. > >status == 0xb, scsi status == 0x0 > > > >** DUMP FAILED (ERROR 5) ** > > > >This is 100% reproducable. Anyone have any ideas where to start on > >this problem? What does this error mean? > > > >Note: if you want to debug this, I can provide root access. It's just > >a personal box :-) > > > > Give this (untested) patch a try. If that doesn't work, it's going to > need a lot more digging, and I unfortunately don't have the time for > that right now. > > Scott > > Index: mly.c > =================================================================== > RCS file: /usr/ncvs/src/sys/dev/mly/mly.c,v > retrieving revision 1.39 > diff -u -r1.39 mly.c > --- mly.c 8 Aug 2005 12:23:26 -0000 1.39 > +++ mly.c 10 Aug 2006 11:57:54 -0000 > @@ -1128,9 +1128,12 @@ > mc->mc_data = *data; > mc->mc_flags |= MLY_CMD_DATAOUT; > } > - mc->mc_length = datasize; > - mc->mc_packet->generic.data_size = datasize; > + } else if (datasize != 0) { > + error = EINVAL; > + goto out; > } > + mc->mc_length = datasize; > + mc->mc_packet->generic.data_size = datasize; > > /* run the command */ > if ((error = mly_immediate_command(mc))) -- Jo Rhett senior geek SVcolo : Silicon Valley Colocation From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 12:16:16 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 9A98D16A4DD for ; Tue, 15 Aug 2006 12:16:16 +0000 (UTC) (envelope-from jhb@yahoo-inc.com) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 71E2F43D92 for ; Tue, 15 Aug 2006 12:16:16 +0000 (GMT) (envelope-from jhb@yahoo-inc.com) Received: from zion.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by elvis.mu.org (Postfix) with ESMTP id 4273A1A3C20 for ; Tue, 15 Aug 2006 05:16:16 -0700 (PDT) From: John Baldwin To: scsi@freebsd.org Date: Tue, 15 Aug 2006 08:15:57 -0400 User-Agent: KMail/1.9.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608150815.57259.jhb@yahoo-inc.com> Cc: Subject: O_NONBLOCK and /dev/passX devices.. 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: Tue, 15 Aug 2006 12:16:16 -0000 Is there a specific reasons that O_NONBLOCK isn't supported on /dev/passX devices? Would it be hard to add support for that? -- John Baldwin From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 13:23:11 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 026A316A4EA for ; Tue, 15 Aug 2006 13:23:11 +0000 (UTC) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id 47FB443D77 for ; Tue, 15 Aug 2006 13:23:05 +0000 (GMT) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.13.6/8.13.6) with ESMTP id k7FDN4m2039353; Tue, 15 Aug 2006 07:23:04 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.13.6/8.13.6/Submit) id k7FDN4Cb039352; Tue, 15 Aug 2006 07:23:04 -0600 (MDT) (envelope-from ken) Date: Tue, 15 Aug 2006 07:23:04 -0600 From: "Kenneth D. Merry" To: John Baldwin Message-ID: <20060815132304.GA39025@nargothrond.kdm.org> References: <200608150815.57259.jhb@yahoo-inc.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200608150815.57259.jhb@yahoo-inc.com> User-Agent: Mutt/1.4.2i X-Virus-Scanned: ClamAV 0.88.1/1662/Tue Aug 15 02:29:25 2006 on nargothrond.kdm.org X-Virus-Status: Clean Cc: scsi@freebsd.org Subject: Re: O_NONBLOCK and /dev/passX devices.. 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: Tue, 15 Aug 2006 13:23:11 -0000 On Tue, Aug 15, 2006 at 08:15:57 -0400, John Baldwin wrote: > Is there a specific reasons that O_NONBLOCK isn't supported on > /dev/passX devices? Would it be hard to add support for that? It depends. What exactly are the semantics of O_NONBLOCK? Does it only apply on open, or on subsequent operations, like ioctl? You're going to block for some period of time in almost every operation on a pass device. When you send a command down to a SCSI device, it'll take some amount of time to complete. It could be less than a second, or hours, depending on the command, device and timeout. We could probably come up with an async I/O type interface, where you'd get notification of command completion, but not blocking with the current interface probably wouldn't be practical, because most every request will block. What are you trying to do? Ken -- Kenneth Merry ken@FreeBSD.org From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 16:00:15 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E728D16A4E8; Tue, 15 Aug 2006 16:00:14 +0000 (UTC) (envelope-from jhb@freebsd.org) Received: from server.baldwin.cx (66-23-211-162.clients.speedfactory.net [66.23.211.162]) by mx1.FreeBSD.org (Postfix) with ESMTP id 068AE43D49; Tue, 15 Aug 2006 16:00:13 +0000 (GMT) (envelope-from jhb@freebsd.org) Received: from [10.0.1.107] (nat-outside.atlanta.corp.yahoo.com [63.172.193.57]) (authenticated bits=0) by server.baldwin.cx (8.13.6/8.13.6) with ESMTP id k7FG07LW028466; Tue, 15 Aug 2006 12:00:08 -0400 (EDT) (envelope-from jhb@freebsd.org) From: John Baldwin To: "Kenneth D. Merry" Date: Tue, 15 Aug 2006 11:52:44 -0400 User-Agent: KMail/1.9.1 References: <200608150815.57259.jhb@yahoo-inc.com> <20060815132304.GA39025@nargothrond.kdm.org> In-Reply-To: <20060815132304.GA39025@nargothrond.kdm.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200608151152.44365.jhb@freebsd.org> X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (server.baldwin.cx [66.23.211.162]); Tue, 15 Aug 2006 12:00:09 -0400 (EDT) X-Virus-Scanned: ClamAV 0.88.3/1664/Tue Aug 15 10:28:31 2006 on server.baldwin.cx X-Virus-Status: Clean X-Spam-Status: No, score=-3.2 required=4.2 tests=AWL,BAYES_00 autolearn=ham version=3.1.3 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on server.baldwin.cx Cc: scsi@freebsd.org Subject: Re: O_NONBLOCK and /dev/passX devices.. 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: Tue, 15 Aug 2006 16:00:15 -0000 On Tuesday 15 August 2006 09:23, Kenneth D. Merry wrote: > On Tue, Aug 15, 2006 at 08:15:57 -0400, John Baldwin wrote: > > Is there a specific reasons that O_NONBLOCK isn't supported on > > /dev/passX devices? Would it be hard to add support for that? > > It depends. What exactly are the semantics of O_NONBLOCK? Does it only > apply on open, or on subsequent operations, like ioctl? > > You're going to block for some period of time in almost every operation on > a pass device. When you send a command down to a SCSI device, it'll take > some amount of time to complete. It could be less than a second, or hours, > depending on the command, device and timeout. > > We could probably come up with an async I/O type interface, where you'd get > notification of command completion, but not blocking with the current > interface probably wouldn't be practical, because most every request will > block. > > What are you trying to do? In this case it's a 3rd party Linux firmware app, so I think I'll just punt for now as Scott has pointed out that there are likely far larger obstacles ahead in its use of /dev/passX vs the Linux equivalent. -- John Baldwin From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 19:01:40 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A1F216A4DE for ; Tue, 15 Aug 2006 19:01:40 +0000 (UTC) (envelope-from jrhett@svcolo.com) Received: from outbound0.sv.meer.net (outbound0.mx.meer.net [209.157.153.23]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1DD5443DDC for ; Tue, 15 Aug 2006 19:00:32 +0000 (GMT) (envelope-from jrhett@svcolo.com) Received: from mail.meer.net (mail.meer.net [209.157.152.14]) by outbound0.sv.meer.net (8.12.10/8.12.6) with ESMTP id k7FIxpio027831; Tue, 15 Aug 2006 12:00:32 -0700 (PDT) (envelope-from jrhett@svcolo.com) Received: from [10.66.240.106] (public-wireless.sv.svcolo.com [64.13.135.30]) by mail.meer.net (8.13.3/8.13.3/meer) with ESMTP id k7FIxSa1001388; Tue, 15 Aug 2006 11:59:28 -0700 (PDT) (envelope-from jrhett@svcolo.com) In-Reply-To: <44DD4A97.2050203@samsco.org> References: <27BE7ACB-BCF9-40A5-96F4-CE90A297CE71@svcolo.com> <44DD4A97.2050203@samsco.org> Mime-Version: 1.0 (Apple Message framework v752.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <22CAF3B5-49EA-413C-8EB5-BC27DB70CC82@svcolo.com> Content-Transfer-Encoding: 7bit From: Jo Rhett Date: Tue, 15 Aug 2006 11:59:26 -0700 To: Scott Long X-Mailer: Apple Mail (2.752.2) Cc: freebsd-scsi@freebsd.org Subject: Re: myl driver failing during server shutdown 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: Tue, 15 Aug 2006 19:01:40 -0000 > Jo Rhett wrote: >> So I had thought that my motherboard didn't honor the acpi reset >> or power down command. It turns out that it does just fine -- >> but the shutdown is failing/hanging. Attaching a serial console >> to it, I see On Aug 11, 2006, at 8:27 PM, Scott Long wrote: > Give this (untested) patch a try. If that doesn't work, it's going to > need a lot more digging, and I unfortunately don't have the time for > that right now. Now it fails to boot: /boot/kernel/acpi.ko text=0x40c2c data=0x2160+0x1090 syms=[0x4+0x7810 +0x4+0xa292] Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 6.0-RELEASE-p9 #0: Mon Aug 14 19:56:42 PDT 2006 root@triceratops.lizardarts.com:/usr/obj/usr/src/sys/GENERIC Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) Pros}ssor (1596.28-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x662 Stepping = 2 Features=0x383f9ff AMD Features=0xc0480800 real memory = 1040121856 (991 MB) avail memory = 1009188864 (962 MB) npx0: [FAST] npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) pci_link0: irq 11 on acpi0 pci_link1: irq 10 on acpi0 pci_link2: irq 12 on acpi0 pci_link3: irq 5 on acpi0 pci_link4: on acpi0 pci_link5: on acpi0 pci_link6: on acpi0 pci_link7: on acpi0 Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x4008-0x400b on acpi0 cpu0: on acpi0 acpi_button0: on acpi0 acpi_button1: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xe3ffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 pci1: at device 0.0 (no driver attached) mly0: mem 0xe8000000-0xe9ffffff irq 10 at device 8.0 on pci0 mly0: [GIANT-LOCKED] Fatal trap 12: page fault while in kernel mode fault virtual address = 0x0 fault code = supervisor read, page not present instruction pointer = 0x20:0xc05ec7d2 stack pointer = 0x28:0xc0c20b14 frame pointer = 0x28:0xc0c20b14 code segment = base 0x0, limit 0xfffff, type 0x1b = DPL 0, pres 1, def32 1, gran 1 processor eflags = interrupt enabled, resume, IOPL = 0 current process = 0 (swapper) trap number = 12 panic: page fault Uptime: 1s > > Scott > > Index: mly.c > =================================================================== > RCS file: /usr/ncvs/src/sys/dev/mly/mly.c,v > retrieving revision 1.39 > diff -u -r1.39 mly.c > --- mly.c 8 Aug 2005 12:23:26 -0000 1.39 > +++ mly.c 10 Aug 2006 11:57:54 -0000 > @@ -1128,9 +1128,12 @@ > mc->mc_data = *data; > mc->mc_flags |= MLY_CMD_DATAOUT; > } > - mc->mc_length = datasize; > - mc->mc_packet->generic.data_size = datasize; > + } else if (datasize != 0) { > + error = EINVAL; > + goto out; > } > + mc->mc_length = datasize; > + mc->mc_packet->generic.data_size = datasize; > > /* run the command */ > if ((error = mly_immediate_command(mc))) -- Jo Rhett senior geek Silicon Valley Colocation From owner-freebsd-scsi@FreeBSD.ORG Tue Aug 15 19:56:00 2006 Return-Path: X-Original-To: freebsd-scsi@freebsd.org Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 97C1816A4DD for ; Tue, 15 Aug 2006 19:56:00 +0000 (UTC) (envelope-from anderson@centtech.com) Received: from mh1.centtech.com (moat3.centtech.com [207.200.51.50]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67F3B43D68 for ; Tue, 15 Aug 2006 19:55:57 +0000 (GMT) (envelope-from anderson@centtech.com) Received: from [10.177.171.220] (neutrino.centtech.com [10.177.171.220]) by mh1.centtech.com (8.13.1/8.13.1) with ESMTP id k7FJtpms080147; Tue, 15 Aug 2006 14:55:51 -0500 (CDT) (envelope-from anderson@centtech.com) Message-ID: <44E226DE.30701@centtech.com> Date: Tue, 15 Aug 2006 14:56:14 -0500 From: Eric Anderson User-Agent: Thunderbird 1.5.0.5 (X11/20060802) MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <44DB8A9C.8090609@centtech.com> <44DC6F9F.4060405@centtech.com> <20060811154348.GA83765@chuggalug.clues.com> <44DCA9F1.1000302@centtech.com> <7579f7fb0608121101g112e006cy1112d282fab753d3@mail.gmail.com> <20060814080857.GA58022@chuggalug.clues.com> <20060814085936.GB58022@chuggalug.clues.com> <44E05FE8.3060800@centtech.com> In-Reply-To: <44E05FE8.3060800@centtech.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: ClamAV 0.87.1/1664/Tue Aug 15 09:28:31 2006 on mh1.centtech.com X-Virus-Status: Clean Cc: Subject: Re: isp issues on recent -STABLE 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: Tue, 15 Aug 2006 19:56:00 -0000 On 08/14/06 06:35, Eric Anderson wrote: > On 08/14/06 03:59, Geoff Buckingham wrote: >>>>> I have this one host connected to a single QLogic fiber channel switch, >>>>> which has 5 ACNC fiber channel arrays attached to it, along with a tape >>>>> robot and tape drives. Three of the arrays present 3 LUNs each (2TB per >>>>> LUN), and two of them present 2 LUNs each, 4GB and 10TB - I'm not using >>>>> these two arrays much yet, and are not really associated with the problems. >>>>> >> Curiosity just lead me to the acnc website. The html data-sheets suggest >> the arrays support 253 commands, the PDFs 255! It also reads to me as if >> this is per FC port not per LUN. You will presumably have better >> informaton with whatever documentation these devices shipped with. > > > *sigh* - I was going by what I was told on the phone by one of their > support people. I trust the lowest number :) > > I see that now too. I'll try setting that lower (80 should be good for > each of the three LUNs per array). > > Thanks everyone for the hints/help - I'll report back once I know if > that made any difference. > > Eric > > After setting the tag queue depth down, things seem much more stable. Seems like the default should be a bit lower that 256, since very few targets can provide 256 apparently. Eric -- ------------------------------------------------------------------------ Eric Anderson Sr. Systems Administrator Centaur Technology Anything that works is better than anything that doesn't. ------------------------------------------------------------------------ From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 18 14:13:56 2006 Return-Path: X-Original-To: scsi@FreeBSD.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 25C9B16A4DE for ; Fri, 18 Aug 2006 14:13:56 +0000 (UTC) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id EAFFE43D7F for ; Fri, 18 Aug 2006 14:13:41 +0000 (GMT) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.13.6/8.13.6) with ESMTP id k7IEDfGt076272 for ; Fri, 18 Aug 2006 08:13:41 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.13.6/8.13.6/Submit) id k7IEDfwg076271 for scsi@FreeBSD.org; Fri, 18 Aug 2006 08:13:41 -0600 (MDT) (envelope-from ken) Date: Fri, 18 Aug 2006 08:13:41 -0600 From: "Kenneth D. Merry" To: scsi@FreeBSD.org Message-ID: <20060818141340.GA75976@nargothrond.kdm.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.4.2i X-Virus-Scanned: ClamAV 0.88.1/1682/Fri Aug 18 06:42:16 2006 on nargothrond.kdm.org X-Virus-Status: Clean Cc: Subject: camcontrol reportluns patch available 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, 18 Aug 2006 14:13:56 -0000 I've got a patch that implements 'camcontrol reportluns' here: http://people.FreeBSD.org/~ken/camcontrol.reportluns.20060818 I'd appreciate any comments or feedback. Anyone with SCSI hardware that supports the REPORT LUNS command can use this. (Just send me the output.) It would be especially interesting to get reports from folks with fancy SAN hardware. (There are a number of different LUN address formats, but the hardware I have locally only supports the peripheral addressing model.) The patch is against -current, but should work against RELENG_6 as well. Thanks, Ken -- Kenneth Merry ken@FreeBSD.ORG From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 18 16:57:42 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E3F3316A4E9 for ; Fri, 18 Aug 2006 16:57:42 +0000 (UTC) (envelope-from lydianconcepts@gmail.com) Received: from nf-out-0910.google.com (nf-out-0910.google.com [64.233.182.190]) by mx1.FreeBSD.org (Postfix) with ESMTP id B2FA843D58 for ; Fri, 18 Aug 2006 16:57:41 +0000 (GMT) (envelope-from lydianconcepts@gmail.com) Received: by nf-out-0910.google.com with SMTP id n29so1482879nfc for ; Fri, 18 Aug 2006 09:57:40 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ttu9usrMrcioGnheudjN6deij7azep/UiGkaU1Wcu7+HMZkfItDNhjLFhw1sOArEhriQqRoDMSqAMj3PDMb3qzFQi6MyQdMUHjQAp1Pow2RaOLBsh0hDysSaXsT0phZDRNOtOu8ZoE/aztk5mfSSd78sERm+aWFQrBsPUyQ1ito= Received: by 10.48.220.15 with SMTP id s15mr4326022nfg; Fri, 18 Aug 2006 09:57:40 -0700 (PDT) Received: by 10.78.134.9 with HTTP; Fri, 18 Aug 2006 09:57:40 -0700 (PDT) Message-ID: <7579f7fb0608180957u5724d2b9x49e4fe070d4521fd@mail.gmail.com> Date: Fri, 18 Aug 2006 09:57:40 -0700 From: "Matthew Jacob" To: "Kenneth D. Merry" In-Reply-To: <20060818141340.GA75976@nargothrond.kdm.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20060818141340.GA75976@nargothrond.kdm.org> Cc: scsi@freebsd.org Subject: Re: camcontrol reportluns patch available 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, 18 Aug 2006 16:57:43 -0000 gonna stick this in the kernel ? On 8/18/06, Kenneth D. Merry wrote: > > I've got a patch that implements 'camcontrol reportluns' here: > > http://people.FreeBSD.org/~ken/camcontrol.reportluns.20060818 > > I'd appreciate any comments or feedback. Anyone with SCSI hardware that > supports the REPORT LUNS command can use this. (Just send me the output.) > > It would be especially interesting to get reports from folks with fancy SAN > hardware. (There are a number of different LUN address formats, but the > hardware I have locally only supports the peripheral addressing model.) > > The patch is against -current, but should work against RELENG_6 as well. > > Thanks, > > Ken > -- > Kenneth Merry > ken@FreeBSD.ORG > _______________________________________________ > freebsd-scsi@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-scsi > To unsubscribe, send any mail to "freebsd-scsi-unsubscribe@freebsd.org" > From owner-freebsd-scsi@FreeBSD.ORG Fri Aug 18 18:21:06 2006 Return-Path: X-Original-To: scsi@freebsd.org Delivered-To: freebsd-scsi@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B5A4116A4DE for ; Fri, 18 Aug 2006 18:21:06 +0000 (UTC) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.FreeBSD.org (Postfix) with ESMTP id C37CA43D8B for ; Fri, 18 Aug 2006 18:21:03 +0000 (GMT) (envelope-from ken@nargothrond.kdm.org) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.13.6/8.13.6) with ESMTP id k7IIL2Rh084365; Fri, 18 Aug 2006 12:21:02 -0600 (MDT) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.13.6/8.13.6/Submit) id k7IIL2dF084364; Fri, 18 Aug 2006 12:21:02 -0600 (MDT) (envelope-from ken) Date: Fri, 18 Aug 2006 12:21:02 -0600 From: "Kenneth D. Merry" To: Matthew Jacob Message-ID: <20060818182102.GA84082@nargothrond.kdm.org> References: <20060818141340.GA75976@nargothrond.kdm.org> <7579f7fb0608180957u5724d2b9x49e4fe070d4521fd@mail.gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <7579f7fb0608180957u5724d2b9x49e4fe070d4521fd@mail.gmail.com> User-Agent: Mutt/1.4.2i X-Virus-Scanned: ClamAV 0.88.1/1684/Fri Aug 18 10:09:44 2006 on nargothrond.kdm.org X-Virus-Status: Clean Cc: scsi@freebsd.org Subject: Re: camcontrol reportluns patch available 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, 18 Aug 2006 18:21:06 -0000 On Fri, Aug 18, 2006 at 09:57:40 -0700, Matthew Jacob wrote: > On 8/18/06, Kenneth D. Merry wrote: > > > >I've got a patch that implements 'camcontrol reportluns' here: > > > >http://people.FreeBSD.org/~ken/camcontrol.reportluns.20060818 > > > >I'd appreciate any comments or feedback. Anyone with SCSI hardware that > >supports the REPORT LUNS command can use this. (Just send me the output.) > > > >It would be especially interesting to get reports from folks with fancy SAN > >hardware. (There are a number of different LUN address formats, but the > >hardware I have locally only supports the peripheral addressing model.) > > > >The patch is against -current, but should work against RELENG_6 as well. > > > >Thanks, > > > >Ken > >-- > >Kenneth Merry > >ken@FreeBSD.ORG > > > gonna stick this in the kernel ? > It would probably be better to wait and make it a part of the probe changes Scott is doing as part of the CAM lock-down effort. (Otherwise it might be a wasted effort...) Ken -- Kenneth Merry ken@FreeBSD.ORG