From owner-freebsd-scsi@FreeBSD.ORG Mon Apr 26 11:07:09 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 96A301065675 for ; Mon, 26 Apr 2010 11:07:09 +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 3585C8FC13 for ; Mon, 26 Apr 2010 11:07:09 +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 o3QB79df004267 for ; Mon, 26 Apr 2010 11:07:09 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o3QB78JB004265 for freebsd-scsi@FreeBSD.org; Mon, 26 Apr 2010 11:07:08 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 26 Apr 2010 11:07:08 GMT Message-Id: <201004261107.o3QB78JB004265@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, 26 Apr 2010 11:07:09 -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/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 37 problems total. From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 08:43:55 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 127EB1065673; Tue, 27 Apr 2010 08:43:55 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id CC8BF8FC18; Tue, 27 Apr 2010 08:43:54 +0000 (UTC) Received: by pvc21 with SMTP id 21so885627pvc.13 for ; Tue, 27 Apr 2010 01:43:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=EyYvZ6iECQdqBwHACLYXyvYMDdZDv7QlgdyAYPeusZo=; b=BajOZzd/oVM92Mx9p5xJUu+juv85E/mcQ65+I+txPWvkL/OnF2UqdJCuKrZKDX9Vwi RvHmxHcmjPTPOG0Qg0/J3E6SOaIB1VaS+qvP56ATul3l2bRHrKht5Ux3UcwxutW8Rbqz csrLQZwzWQh6WkvGKhJ1YMWj6jgwdB1ll1Qnc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=VwSYWBKyaIhLi3ml759XyO4RY0WKzHWASld/QjxE0+ChTJQPQWwEEAUjVLpbOa9LT5 gi1FxvEw4QslZJKUorB9HA/fBeNIQOWsSUU2JFZLbhPzZwcnxgdtN3wTEbKsHj0hUea0 +lkns7uMCHa+prTvYF+KTPNx94RoH3veQghPE= MIME-Version: 1.0 Received: by 10.143.24.39 with SMTP id b39mr2506771wfj.184.1272357831558; Tue, 27 Apr 2010 01:43:51 -0700 (PDT) Received: by 10.143.167.7 with HTTP; Tue, 27 Apr 2010 01:43:51 -0700 (PDT) Date: Tue, 27 Apr 2010 18:43:51 +1000 Message-ID: From: Andy Farkas To: freebsd-scsi@freebsd.org, freebsd-stable@freebsd.org, mav@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: Subject: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 08:43:55 -0000 Hi, firstly: RELENG_8 csup'd with date=2010.02.14.00.00 works perfectly for days. RELENG_8 csup'd with date=2010.02.15.00.00 dead-locks the disk I/O subsystem. Network still operational but anything needing disk hangs. Power-cycle required. kernel config is GENERIC with KDB, DDB and BREAK_TO_DEBUGGER options added. hardware: ahc0: port 0x4000-0x40ff mem 0xefa00000-0xefa00fff irq 16 at device 0.0 on pci10 ahc0: [ITHREAD] aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs da0: Fixed Direct Access SCSI-3 device da1: Fixed Direct Access SCSI-3 device The dead-lock can happen at any time, but I can provoke it by running a bonnie++ disk test. It happens doing rm -rf /usr/obj/usr and it has happened doing a make installworld. It can survive a make buildworld (the system runs normally until it decides to dead-lock). The box (HP ProLiant ML 110) has 2 scsi disks and 4 sata disks. The 2010.02.15 kernel will run perfectly for days on the SATA disks. *Only* when the scsi disks are accessed will the system dead-lock. Note that the SATA disks do not work either if the system has dead-locked. I can provide more details and a vmcore.0 if anyone is interested. -andyf From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 11:16:10 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 6C304106566C; Tue, 27 Apr 2010 11:16:10 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 333358FC1A; Tue, 27 Apr 2010 11:16:10 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O6ilc-000OYO-R0; Tue, 27 Apr 2010 12:15:52 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O6ilc-0000GP-Q3; Tue, 27 Apr 2010 12:15:52 +0100 Date: Tue, 27 Apr 2010 12:15:52 +0100 Message-Id: To: chuzzwassa@gmail.com, freebsd-scsi@freebsd.org, freebsd-stable@freebsd.org, mav@freebsd.org In-Reply-To: From: Pete French Cc: Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 11:16:10 -0000 > RELENG_8 csup'd with date=2010.02.14.00.00 works perfectly for days. > > RELENG_8 csup'd with date=2010.02.15.00.00 dead-locks the disk I/O > subsystem. Network still operational but anything needing disk hangs. > Power-cycle required. An aditional point (and thanks to Andy for doing all the work to identify the changes which cause the problems) this appears to be the cause of the problem I have with gmirror since upgrading. I only see this on SCSI systems too, and both my systems are using Adaptec controllers, as is Andy's system. -pete. From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 14:18:48 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 3BE741065689 for ; Tue, 27 Apr 2010 14:18:48 +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 032298FC0A for ; Tue, 27 Apr 2010 14:18:47 +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 o3REIlrh082819 for ; Tue, 27 Apr 2010 07:18:47 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BD6F266.5080403@feral.com> Date: Tue, 27 Apr 2010 07:19:18 -0700 From: Matthew Jacob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: In-Reply-To: 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]); Tue, 27 Apr 2010 07:18:47 -0700 (PDT) Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 14:18:48 -0000 What do you mean by 'deadlock'? From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:08:30 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 D75ED1065670 for ; Tue, 27 Apr 2010 20:08:30 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id AE73E8FC14 for ; Tue, 27 Apr 2010 20:08:30 +0000 (UTC) Received: by pvg11 with SMTP id 11so510170pvg.13 for ; Tue, 27 Apr 2010 13:08:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=suW7sUWnry02jZ0NGty0NmQ3/49QjgpqwXG+zfpseaw=; b=GWAMlT4X6+ud+4XvdLTu/TyNxBx2v/hvxAToeRwwR1IfdtTRU1fPINI3bYGrl5EyCO 7Bxrx5E8ErLF8a6nvyQ37diTKfefJ+W/W4gmafgWqEEczv3q//AAucTl0Zd38zf/up1w GsfxDj1BhbfuaNhcLeNwyzCsTrfThcclq3HrA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=sCcpl+IyB/ah4l3K+v3um+OrSUg9POf+eB7BRm98NIv1jPNl1rZuudavgwaAGUCCTW SmMd/swEiNdZ6Uz+yK8iDPY3bQNQtT0t/kJPw0+z9sQaxyKXgw0rdggutv6/AiTpe7bc soo8HcLdbi6ZD0DBcgkofSS3ZpSxVX6oYmEWY= MIME-Version: 1.0 Received: by 10.143.24.39 with SMTP id b39mr3128036wfj.184.1272398905180; Tue, 27 Apr 2010 13:08:25 -0700 (PDT) Received: by 10.143.167.7 with HTTP; Tue, 27 Apr 2010 13:08:25 -0700 (PDT) In-Reply-To: <4BD6F266.5080403@feral.com> References: <4BD6F266.5080403@feral.com> Date: Wed, 28 Apr 2010 06:08:25 +1000 Message-ID: From: Andy Farkas To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 20:08:30 -0000 On Wed, Apr 28, 2010 at 12:19 AM, Matthew Jacob wrote: > What do you mean by 'deadlock'? All disk I/O stops. eg. bonnie++ will get stuck in 'getblk' state, or rm will get stuck in 'biord' state. bufdaemon gets stuck in 'wdrain' state. The system will respond to pings but any process requiring disk access hangs. Any help is appreciated, thanks. -andyf From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:12:45 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 718DA10656A9 for ; Tue, 27 Apr 2010 20:12:45 +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 4C3DF8FC19 for ; Tue, 27 Apr 2010 20:12:45 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o3RKCbaA086073 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 27 Apr 2010 13:12:44 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BD74535.4060503@feral.com> Date: Tue, 27 Apr 2010 13:12:37 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BD6F266.5080403@feral.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.168.221.1]); Tue, 27 Apr 2010 13:12:44 -0700 (PDT) Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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: Tue, 27 Apr 2010 20:12:45 -0000 On 04/27/2010 01:08 PM, Andy Farkas wrote: > On Wed, Apr 28, 2010 at 12:19 AM, Matthew Jacob wrote: > > >> What do you mean by 'deadlock'? >> > All disk I/O stops. > > eg. bonnie++ will get stuck in 'getblk' state, or rm will get stuck in > 'biord' state. > bufdaemon gets stuck in 'wdrain' state. > > The system will respond to pings but any process requiring disk access hangs. > > Any help is appreciated, thanks. > > -a > Does anything time out (eventually)? From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:14:59 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 CB08A106566C for ; Tue, 27 Apr 2010 20:14:59 +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 70D668FC1B for ; Tue, 27 Apr 2010 20:14:59 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o3RKChd6004967; Tue, 27 Apr 2010 14:12:43 -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: Date: Tue, 27 Apr 2010 14:12:43 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: <4BD6F266.5080403@feral.com> To: Andy Farkas X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.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: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 20:14:59 -0000 On Apr 27, 2010, at 2:08 PM, Andy Farkas wrote: > On Wed, Apr 28, 2010 at 12:19 AM, Matthew Jacob wrote: >=20 >> What do you mean by 'deadlock'? >=20 > All disk I/O stops. >=20 > eg. bonnie++ will get stuck in 'getblk' state, or rm will get stuck in > 'biord' state. > bufdaemon gets stuck in 'wdrain' state. >=20 > The system will respond to pings but any process requiring disk access = hangs. >=20 > Any help is appreciated, thanks. >=20 ACK. It'll take a little bit to unwind the problem out of that big = commit, and I'm consumed with finals and work at the moment. If someone = else doesn't fix it in the next few days, I'm going to propose that the = entire commit be reverted. Scott From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:20:05 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 9CACC106564A for ; Tue, 27 Apr 2010 20:20:05 +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 5F56F8FC1C for ; Tue, 27 Apr 2010 20:20:05 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o3RKK4JC086156 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Tue, 27 Apr 2010 13:20:04 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BD746F3.60108@feral.com> Date: Tue, 27 Apr 2010 13:20:03 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BD6F266.5080403@feral.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.168.221.1]); Tue, 27 Apr 2010 13:20:05 -0700 (PDT) Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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: Tue, 27 Apr 2010 20:20:05 -0000 Well, I might be motivated to fix this since Feral.COM runs on the 29160 @ RELENG_8. Kernel is of last December though.... From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:20:48 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 5C3D21065670 for ; Tue, 27 Apr 2010 20:20:48 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-px0-f182.google.com (mail-px0-f182.google.com [209.85.212.182]) by mx1.freebsd.org (Postfix) with ESMTP id F08828FC13 for ; Tue, 27 Apr 2010 20:20:47 +0000 (UTC) Received: by pxi17 with SMTP id 17so2484448pxi.13 for ; Tue, 27 Apr 2010 13:20:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type; bh=S8mRp42iR1IlJ9FhueutWseeXLciwA8/zcxvMAWAoT4=; b=fcI/dGVPbEjONveZGlPA6/MrMML1GMYldD2KsHtEZjJNnPUt7F2ILnsFzYAEt2JFFd WBIAAlSrjdVDVyeN1ciphECaugT8hMTKdMc1OeGSiIJ3Mb6weYYoxnsZiYyB7HFDFI9V Z8xwOeblmWZe1wkD8Gz2l30MA2iuNE968MOiQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=BCmKRmGmS2UvT1I0CKXe5wFwleHePY62u/oCJPscQk+Ocpc/YMq/WMlOLWeF1Ab25S qd4ia5GHo6GLCs9YQxHirdYyPPz5ACwIy3jLoVdY4X4pDQZ/xKUkuejmUlVUwN7C2+Vs /mKXjLok4Eb5OdYncnTpcm2zoUsHH8/kRBkvQ= MIME-Version: 1.0 Received: by 10.142.7.13 with SMTP id 13mr3525375wfg.122.1272399641116; Tue, 27 Apr 2010 13:20:41 -0700 (PDT) Received: by 10.143.167.7 with HTTP; Tue, 27 Apr 2010 13:20:41 -0700 (PDT) In-Reply-To: <4BD74535.4060503@feral.com> References: <4BD6F266.5080403@feral.com> <4BD74535.4060503@feral.com> Date: Wed, 28 Apr 2010 06:20:41 +1000 Message-ID: From: Andy Farkas To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 20:20:48 -0000 On Wed, Apr 28, 2010 at 6:12 AM, Matthew Jacob wrote: > Does anything time out (eventually)? No. I left it sitting overnight and it was still deadlocked in the morning... -andyf From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:26:17 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 8E1A110656AA for ; Tue, 27 Apr 2010 20:26:17 +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 319FD8FC17 for ; Tue, 27 Apr 2010 20:26:16 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o3RKQERb005049; Tue, 27 Apr 2010 14:26:14 -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: Date: Tue, 27 Apr 2010 14:26:14 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <76C33FA5-993A-4D23-8ECB-F0913E77A677@samsco.org> References: <4BD6F266.5080403@feral.com> <4BD74535.4060503@feral.com> To: Andy Farkas X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.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: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 20:26:17 -0000 On Apr 27, 2010, at 2:20 PM, Andy Farkas wrote: > On Wed, Apr 28, 2010 at 6:12 AM, Matthew Jacob wrote: >=20 >> Does anything time out (eventually)? >=20 > No. I left it sitting overnight and it was still deadlocked > in the morning... >=20 A couple of possible scenarios here: 1. A command completed with an error, that error was reported up to the = periph layer, and the periph failed to properly handle it, leading to a = lost command that eventually livelocked the VM/block layer. 2. An error happened the transport layer, and the aic7xxx tried to = freeze the CAM queues to perform error recovery. Something broke in the = freeze/unfreeze API, so the aic7xxx was left stranded. The more I think about it, it's likely case 2, since I know that = Alexander has been working in or near that code. Scott From owner-freebsd-scsi@FreeBSD.ORG Tue Apr 27 20:26:52 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 ADE181065675 for ; Tue, 27 Apr 2010 20:26:52 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 8180C8FC23 for ; Tue, 27 Apr 2010 20:26:52 +0000 (UTC) Received: by pvg11 with SMTP id 11so528673pvg.13 for ; Tue, 27 Apr 2010 13:26:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=tPSM5NuxmcSt9dkXxgMuzHDHBm8HWsWqrDXksqSmYFg=; b=yASDaJIuao4Zg5x8JN3YLoNQklWimX+RtbqdoZ4Ha8VbBQq++1A0zsWemwC6gLeGuf bDbFVO6e6EO3/njAtJeCxFwWYyHZcKYgKev4dXTvoD1ZD3SN8i4MHwVlqicO9HXFD1U9 KS+COk/CKizhOabIN47FVG2kBrUOXsox1SaII= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=UIQ6+/Qo5cl2lXjb+sUYk6k0c4Ea6aqFiCbyGSLHSPUGabccvkqdkeOFadhj+EzOog HEQ1YIla8xJ2nKIeAI1PCDOHCTQFjSYVbAS++yyNmykTj/150WY+Pe1WbU6E5RMPYUqS 8zfnrvP++M08HkJ1Pism6F+7H5OvDoTNbI7Kc= MIME-Version: 1.0 Received: by 10.142.119.22 with SMTP id r22mr3424385wfc.191.1272400007519; Tue, 27 Apr 2010 13:26:47 -0700 (PDT) Received: by 10.143.167.7 with HTTP; Tue, 27 Apr 2010 13:26:47 -0700 (PDT) In-Reply-To: References: <4BD6F266.5080403@feral.com> Date: Wed, 28 Apr 2010 06:26:47 +1000 Message-ID: From: Andy Farkas To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 27 Apr 2010 20:26:52 -0000 On Wed, Apr 28, 2010 at 6:12 AM, Scott Long wrote: > ACK. =A0It'll take a little bit to unwind the problem out of that big > commit, and I'm consumed with finals and work at the moment. =A0If > someone else doesn't fix it in the next few days, I'm going to propose > that the entire commit be reverted. Yes, the commit was huge and touched many parts of CAM. I tried to identify where the problem could be, but got lost in a maze of twisty passages... Here is the difference between 2010.02.14 and 2010.02.15: Updating collection src-all/cvs Edit src/sbin/camcontrol/camcontrol.c Edit src/sbin/sysctl/sysctl.8 Edit src/sbin/sysctl/sysctl.c Edit src/share/man/man4/vr.4 Edit src/share/man/man9/alloc_unr.9 Edit src/sys/cam/ata/ata_all.c Edit src/sys/cam/ata/ata_da.c Edit src/sys/cam/ata/ata_pmp.c Edit src/sys/cam/ata/ata_xpt.c Edit src/sys/cam/cam.c Edit src/sys/cam/cam.h Edit src/sys/cam/cam_ccb.h Edit src/sys/cam/cam_periph.c Edit src/sys/cam/cam_periph.h Edit src/sys/cam/cam_queue.h Edit src/sys/cam/cam_sim.c Edit src/sys/cam/cam_xpt.c Edit src/sys/cam/cam_xpt.h Edit src/sys/cam/cam_xpt_internal.h Edit src/sys/cam/cam_xpt_periph.h Edit src/sys/cam/cam_xpt_sim.h Edit src/sys/cam/scsi/scsi_all.c Edit src/sys/cam/scsi/scsi_cd.c Edit src/sys/cam/scsi/scsi_ch.c Edit src/sys/cam/scsi/scsi_da.c Edit src/sys/cam/scsi/scsi_low.c Edit src/sys/cam/scsi/scsi_pass.c Edit src/sys/cam/scsi/scsi_xpt.c Edit src/sys/dev/ahci/ahci.c Edit src/sys/dev/ahci/ahci.h Edit src/sys/dev/asr/asr.c Edit src/sys/dev/ata/ata-all.c Edit src/sys/dev/ata/ata-all.h Edit src/sys/dev/ata/ata-pci.c Edit src/sys/dev/ata/ata-pci.h Edit src/sys/dev/ata/ata_if.m Edit src/sys/dev/ata/atapi-cam.c Edit src/sys/dev/ata/chipsets/ata-marvell.c Edit src/sys/dev/ata/chipsets/ata-netcell.c Edit src/sys/dev/ata/chipsets/ata-siliconimage.c Edit src/sys/dev/ciss/ciss.c Edit src/sys/dev/hptiop/hptiop.c Edit src/sys/dev/hptrr/hptrr_osm_bsd.c Edit src/sys/dev/hptrr/os_bsd.h Edit src/sys/dev/mly/mly.c Edit src/sys/dev/mpt/mpt_cam.c Edit src/sys/dev/mpt/mpt_cam.h Edit src/sys/dev/mpt/mpt_raid.c Edit src/sys/dev/ppbus/vpo.c Edit src/sys/dev/siis/siis.c Edit src/sys/dev/siis/siis.h Edit src/sys/dev/sound/pcm/dsp.c Edit src/sys/dev/sound/pcm/mixer.c Edit src/sys/dev/trm/trm.c Edit src/sys/dev/twa/tw_osl_cam.c Edit src/sys/dev/usb/storage/umass.c Edit src/sys/dev/wpi/if_wpi.c Edit src/sys/fs/nfsclient/nfs_clvfsops.c Edit src/sys/fs/nfsclient/nfs_clvnops.c Edit src/sys/fs/nfsclient/nfsmount.h Edit src/sys/fs/nfsclient/nfsnode.h Edit src/sys/sys/ata.h Finished successfully -andyf From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 28 15:02:30 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 3652F1065672; Wed, 28 Apr 2010 15:02:30 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from ey-out-2122.google.com (ey-out-2122.google.com [74.125.78.26]) by mx1.freebsd.org (Postfix) with ESMTP id 63B7E8FC16; Wed, 28 Apr 2010 15:02:29 +0000 (UTC) Received: by ey-out-2122.google.com with SMTP id d26so961965eyd.9 for ; Wed, 28 Apr 2010 08:02:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=nvzxeErbDJ1abb+MzWkMLq01wcvB3SVX4DJs9cxFV5w=; b=hBOdN8tmVYPADzyv3CerBDvX6vN6wudOdLG8C6zRCnjkYpLXr6wvv/pLhmNFBQ7yt3 73fFWUUH41eBq5jUuDOWZehcX32fMHtdjlC9MGKCZn8W12kX5f82VPKBwmRS2PV+Masf w2qcJyjauZLiMCwa+z94k3I8kwaA6UkF9ukyE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=VfaKdZcrLrsY2CUdlxha4ynm1Bpt8IUpQz9QgPCvAD4nV24nH9RsvBcxRQKYlbaemD qgfLH7RTYFAaSAMkQdG76Y1VApV8pzl7qJ0dOJzD+PB4jU+AVZRMsh8C5qsi+IhYRiSb s4WiPFIlkOQr9pde7QXAggTWp7ZJ9/QAmDetI= Received: by 10.103.69.16 with SMTP id w16mr4189174muk.61.1272466940687; Wed, 28 Apr 2010 08:02:20 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id 12sm27509824muq.33.2010.04.28.08.02.18 (version=SSLv3 cipher=RC4-MD5); Wed, 28 Apr 2010 08:02:19 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD84DED.2060209@FreeBSD.org> Date: Wed, 28 Apr 2010 18:02:05 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Andy Farkas References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, Scott Long , freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 28 Apr 2010 15:02:30 -0000 Andy Farkas wrote: > RELENG_8 csup'd with date=2010.02.14.00.00 works perfectly for days. > > RELENG_8 csup'd with date=2010.02.15.00.00 dead-locks the disk I/O > subsystem. Network still operational but anything needing disk hangs. > Power-cycle required. > > kernel config is GENERIC with KDB, DDB and BREAK_TO_DEBUGGER options added. > > hardware: > ahc0: port 0x4000-0x40ff mem > 0xefa00000-0xefa00fff irq 16 at device 0.0 on pci10 > ahc0: [ITHREAD] > aic7892: Ultra160 Wide Channel A, SCSI Id=7, 32/253 SCBs > > da0: Fixed Direct Access SCSI-3 device > da1: Fixed Direct Access SCSI-3 device > > > The dead-lock can happen at any time, but I can provoke it by running > a bonnie++ disk test. It happens doing rm -rf /usr/obj/usr and it has > happened doing a make installworld. It can survive a make buildworld > (the system runs normally until it decides to dead-lock). > > The box (HP ProLiant ML 110) has 2 scsi disks and 4 sata disks. The > 2010.02.15 kernel will run perfectly for days on the SATA disks. *Only* > when the scsi disks are accessed will the system dead-lock. Note that > the SATA disks do not work either if the system has dead-locked. > > I can provide more details and a vmcore.0 if anyone is interested. I have some 29160N locally and I'll try to reproduce this. -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 28 16:37:45 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 5D229106566C; Wed, 28 Apr 2010 16:37:45 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 8987B8FC16; Wed, 28 Apr 2010 16:37:44 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7AGM-000B3w-99; Wed, 28 Apr 2010 17:37:26 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7AGM-0005ux-8E; Wed, 28 Apr 2010 17:37:26 +0100 Date: Wed, 28 Apr 2010 17:37:26 +0100 Message-Id: To: chuzzwassa@gmail.com, mav@FreeBSD.org In-Reply-To: <4BD84DED.2060209@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 28 Apr 2010 16:37:45 -0000 > I have some 29160N locally and I'll try to reproduce this. I would suggest you try gmirror across two drives - that is how both myself and the original poster first noticed the issue. cheers, -pete. From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 28 18:58:02 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 71B571065670 for ; Wed, 28 Apr 2010 18:58:02 +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 3671A8FC17 for ; Wed, 28 Apr 2010 18:58:02 +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 o3SIw1eu084538 for ; Wed, 28 Apr 2010 11:58:01 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BD8855A.3070300@feral.com> Date: Wed, 28 Apr 2010 11:58:34 -0700 From: Matthew Jacob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: In-Reply-To: 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]); Wed, 28 Apr 2010 11:58:01 -0700 (PDT) Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 28 Apr 2010 18:58:02 -0000 On 4/28/2010 9:37 AM, Pete French wrote: >> I have some 29160N locally and I'll try to reproduce this. >> > I would suggest you try gmirror across two drives - that is how > both myself and the original poster first noticed the issue. > > Interestingly enough, the machine I was going to test this on freezes up with HEAD. From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 28 20:12:52 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 9810E106564A; Wed, 28 Apr 2010 20:12:52 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id C83448FC1F; Wed, 28 Apr 2010 20:12:51 +0000 (UTC) Received: by ewy24 with SMTP id 24so4679723ewy.33 for ; Wed, 28 Apr 2010 13:12:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=KFSXfE729MXBYt1OU/QJBsqiLXTMKoBQ3wRmXoTjnho=; b=HWfOZokoTjoF6GSEw186IorNT9g9QhMKBM/rAc9X7vI3wJYCWvE3/Y5txnhSM0DxNj FUAFIEQEBMJNQWYP+svB/birfd5l3Vx5jeEyFesg4oPNUivwp/shGP5GKKDyBbejrqz3 g90XueIfZlET1VJDzXG9PhA+Oj7oOi4HqTu6U= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=hErb7r9n045z+4+CBz3Mc+HjhfUX48jUxLlsPpgQrvNO7IGnuD/6GNNNgcFw+tqSl4 BmclkJmre4wasgA0CuEGc3xN6UnawDGSxEnmseNbSycMVcaFba09JYxbt9YbvQiOjrdC hnRpHHW0UhofuGfVeFrcZ9wkgpkMyOHLEUS2c= Received: by 10.103.133.7 with SMTP id k7mr4387382mun.128.1272485565627; Wed, 28 Apr 2010 13:12:45 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id e8sm746290muf.39.2010.04.28.13.12.41 (version=SSLv3 cipher=RC4-MD5); Wed, 28 Apr 2010 13:12:42 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD896AC.4080509@FreeBSD.org> Date: Wed, 28 Apr 2010 23:12:28 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Pete French References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 28 Apr 2010 20:12:52 -0000 Pete French wrote: >> I have some 29160N locally and I'll try to reproduce this. > > I would suggest you try gmirror across two drives - that is how > both myself and the original poster first noticed the issue. Thanks. First step successful - I can steadily reproduce problem on CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same channel triggers issue in seconds. Any I/O on channel dying after both disks report "Queue full" error same time. The rest of system works fine. If I preliminarily manually adjust queue depth of one disk - everything works fine. I'll investigate it tomorrow. -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Wed Apr 28 20:17:27 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 CF32E106564A; Wed, 28 Apr 2010 20:17:27 +0000 (UTC) (envelope-from chuzzwassa@gmail.com) Received: from mail-pv0-f182.google.com (mail-pv0-f182.google.com [74.125.83.182]) by mx1.freebsd.org (Postfix) with ESMTP id 9EB678FC08; Wed, 28 Apr 2010 20:17:27 +0000 (UTC) Received: by pvg6 with SMTP id 6so329206pvg.13 for ; Wed, 28 Apr 2010 13:17:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type; bh=YBiN7qA3hQ6s5sWFXdxU66zHrE1xI9HP1lqkfRx6kBU=; b=XeMPC9OfjUUBDEsPwjDdUfEE6p49kje5LZ36/qo6kBqlYv6F8IjiiEzAfRAws20QYx McoIrxefOQf6brKZ8xBa4NtJlLICo46KjD0pdVRx5XoDDBKxyKWOus07tBsDg+D9eFML AyDZ+EyDow0aPTzNBvji504QlkmXimQNKg7cY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=HmYd6pZtdkTUbfm7q3lTlkA/fjO0GynDLnpAwjBCQIcNhUr6OK+jwMfKAAY/UkD/Gu b6rbt7hSwNnVYEH4q4Mc8srB0hBNReRNsvxK72lh78hwNakQOp6jYb5/lqPk1nQpjbzt 8jlD4TvQGTlYFxxSGmZYEtSUyBxJL3Zv7CHfM= MIME-Version: 1.0 Received: by 10.142.10.40 with SMTP id 40mr4553326wfj.26.1272485841422; Wed, 28 Apr 2010 13:17:21 -0700 (PDT) Received: by 10.143.167.7 with HTTP; Wed, 28 Apr 2010 13:17:21 -0700 (PDT) In-Reply-To: <4BD896AC.4080509@FreeBSD.org> References: <4BD896AC.4080509@FreeBSD.org> Date: Thu, 29 Apr 2010 06:17:21 +1000 Message-ID: From: Andy Farkas To: Alexander Motin Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-scsi@freebsd.org, Pete French Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 28 Apr 2010 20:17:27 -0000 2010/4/29 Alexander Motin : > Pete French wrote: >>> I have some 29160N locally and I'll try to reproduce this. >> >> I would suggest you try gmirror across two drives - that is how >> both myself and the original poster first noticed the issue. > > Thanks. First step successful - I can steadily reproduce problem on > CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same > channel triggers issue in seconds. Any I/O on channel dying after both > disks report "Queue full" error same time. The rest of system works > fine. If I preliminarily manually adjust queue depth of one disk - > everything works fine. I'll investigate it tomorrow. > > -- > Alexander Motin > Thanks. Look forward to any results. -andyf From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 08:54:18 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 EE2D5106566B; Thu, 29 Apr 2010 08:54:18 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 293988FC18; Thu, 29 Apr 2010 08:54:17 +0000 (UTC) Received: by fxm15 with SMTP id 15so904625fxm.13 for ; Thu, 29 Apr 2010 01:54:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=jYrF4v2Tcxr3sbmfjjfgt9eSrxMzhrFp57DiEBWdN3o=; b=mJnSni5R5fApZbjV/hREj+eLLaq7miX2hR/7TOlbztKswRdJtvUwypguO5wXKGCkpR MzFDxd51+2+dY2iaOF3Cf8BK5wua1ybc+y+74rXESNI5adfD3pxXQKY1m/Er13nu6Rek wa3Wmwg288BrTxjzeJxiGVH8P06YvzwlqTY58= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=ltlSH62rth7OboJV7spXOmXsxRtcfODs5x2whrIljP55DV/4ZblOK3eio4HYofL+Es XgCjSC+LpN5IZfJWa3QGPeCD2FToH5tGP8TAEf01dbXScnAfoeYx7ILwSxNHK9Unju8T mwnC1FHjgQsk7BZVilYHcAYzZv4Qvdhexkk/k= Received: by 10.102.14.5 with SMTP id 5mr4833907mun.33.1272531251149; Thu, 29 Apr 2010 01:54:11 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id t10sm3033669muh.59.2010.04.29.01.54.09 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 01:54:10 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD9491C.2070303@FreeBSD.org> Date: Thu, 29 Apr 2010 11:53:48 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Pete French References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 08:54:19 -0000 Pete French wrote: >> Thanks. First step successful - I can steadily reproduce problem on >> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same >> channel triggers issue in seconds. Any I/O on channel dying after both >> disks report "Queue full" error same time. The rest of system works >> fine. If I preliminarily manually adjust queue depth of one disk - >> everything works fine. I'll investigate it tomorrow. > > Glad you have managed to dupliate it - the queue depth thing is > inetersting, what changes did you make ? I can try them here and see > if they improve the situation on either of my two machines. camcontrol tags da0 -N 50 -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 09:12: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 1AA721065670; Thu, 29 Apr 2010 09:12:25 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (angel.ticketswitch.com [87.224.29.78]) by mx1.freebsd.org (Postfix) with ESMTP id D188A8FC1D; Thu, 29 Apr 2010 09:12:24 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7PS0-000Iyu-AC; Thu, 29 Apr 2010 09:50:28 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7PS0-00093c-9M; Thu, 29 Apr 2010 09:50:28 +0100 Date: Thu, 29 Apr 2010 09:50:28 +0100 Message-Id: To: mav@FreeBSD.org In-Reply-To: <4BD896AC.4080509@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 09:12:25 -0000 > Thanks. First step successful - I can steadily reproduce problem on > CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same > channel triggers issue in seconds. Any I/O on channel dying after both > disks report "Queue full" error same time. The rest of system works > fine. If I preliminarily manually adjust queue depth of one disk - > everything works fine. I'll investigate it tomorrow. Glad you have managed to dupliate it - the queue depth thing is inetersting, what changes did you make ? I can try them here and see if they improve the situation on either of my two machines. -pete. From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 13:03:44 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 BC796106566C; Thu, 29 Apr 2010 13:03:44 +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 404B18FC16; Thu, 29 Apr 2010 13:03:44 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o3TD3eFJ014992; Thu, 29 Apr 2010 07:03:41 -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: Date: Thu, 29 Apr 2010 07:03:40 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Pete French X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.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, Alexander Motin , FreeBSD Stable Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 13:03:44 -0000 On Apr 29, 2010, at 2:50 AM, Pete French wrote: >> Thanks. First step successful - I can steadily reproduce problem on >> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on = same >> channel triggers issue in seconds. Any I/O on channel dying after = both >> disks report "Queue full" error same time. The rest of system works >> fine. If I preliminarily manually adjust queue depth of one disk - >> everything works fine. I'll investigate it tomorrow. >=20 > Glad you have managed to dupliate it - the queue depth thing is > inetersting, what changes did you make ? I can try them here and see > if they improve the situation on either of my two machines. >=20 For the record, queue-full is a common, expected condition in CAM. It's = not something that should be avoided =3D-) Scott From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 13:55:40 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 08B2E106564A; Thu, 29 Apr 2010 13:55:40 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-ew0-f224.google.com (mail-ew0-f224.google.com [209.85.219.224]) by mx1.freebsd.org (Postfix) with ESMTP id 351E08FC20; Thu, 29 Apr 2010 13:55:38 +0000 (UTC) Received: by ewy24 with SMTP id 24so4895666ewy.33 for ; Thu, 29 Apr 2010 06:55:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type; bh=/EtQ/LwYy+Hdow8E8CDWQ0GxNK9RwmhaJMkzdmE3SWk=; b=KQXyRYX7JMcXvucbwwbeASM9JqVCxXhLWDCGtItCyT1CUyXmhJsHVsCm7Y3QVjlp5h kkPlmnl2KIv1QBr+VcgyhMSt1yLVHCiuGrS2zfevWwyhyZdls80dJebqDOnEcnE32oov 6bbSsAffYgHfsPP/Yxt0z+/5RUAPZjjFNkiw8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type; b=Eb68vAgb8vkOeFGL7gcbI+DVx9Cf0RZyF+3Vh5J4l5iUbduE1mjzihkSO5Czl6sqJk XCDvUr+LDaBe0008l/TpiTrv4wTWlgzyUkS3jzF2TdxzK7VP6vK5I6+qdmPZ/UaHpPhY YBacGVOXrmH26Xv5tZmiyEwTgvz+JSmiBlJIc= Received: by 10.102.237.35 with SMTP id k35mr5180278muh.72.1272549328839; Thu, 29 Apr 2010 06:55:28 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s10sm4277427muh.35.2010.04.29.06.55.27 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 06:55:28 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD98FC0.2030206@FreeBSD.org> Date: Thu, 29 Apr 2010 16:55:12 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Pete French References: <4BD896AC.4080509@FreeBSD.org> In-Reply-To: <4BD896AC.4080509@FreeBSD.org> X-Enigmail-Version: 0.96.0 Content-Type: multipart/mixed; boundary="------------080401080207070003020809" Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 13:55:40 -0000 This is a multi-part message in MIME format. --------------080401080207070003020809 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Alexander Motin wrote: > Pete French wrote: >>> I have some 29160N locally and I'll try to reproduce this. >> I would suggest you try gmirror across two drives - that is how >> both myself and the original poster first noticed the issue. > > Thanks. First step successful - I can steadily reproduce problem on > CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same > channel triggers issue in seconds. Any I/O on channel dying after both > disks report "Queue full" error same time. The rest of system works > fine. If I preliminarily manually adjust queue depth of one disk - > everything works fine. I'll investigate it tomorrow. Seems like I've found the reason. Attached patch fixes problem for me. This call was removed by mistake in specified commit. It is not needed during normal operation, only when device queue shrinking. And even in that case problem often wasn't not triggered if there were more requests and controller request allocation queue wasn't not exhausted at the moment. That's why problem wasn't detected and why gmirror increased it's chances. -- Alexander Motin --------------080401080207070003020809 Content-Type: text/plain; name="cam.sched_fix.patch" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="cam.sched_fix.patch" --- cam_xpt.c.prev 2010-04-28 08:15:40.000000000 +0300 +++ cam_xpt.c 2010-04-29 16:01:23.000000000 +0300 @@ -4903,6 +4903,10 @@ camisr_runqueue(void *V_queue) if ((dev->flags & CAM_DEV_TAG_AFTER_COUNT) != 0 && (--dev->tag_delay_count == 0)) xpt_start_tags(ccb_h->path); + if (!device_is_send_queued(dev)) { + runq = xpt_schedule_dev_sendq(ccb_h->path->bus, + dev); + } } if (ccb_h->status & CAM_RELEASE_SIMQ) { --------------080401080207070003020809-- From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 14:15:41 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 BBD131065670; Thu, 29 Apr 2010 14:15:41 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 6F3398FC08; Thu, 29 Apr 2010 14:15:41 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7UWa-000LP2-DP; Thu, 29 Apr 2010 15:15:32 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7UWa-000ABS-CV; Thu, 29 Apr 2010 15:15:32 +0100 Date: Thu, 29 Apr 2010 15:15:32 +0100 Message-Id: To: mav@FreeBSD.org In-Reply-To: <4BD98FC0.2030206@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 14:15:41 -0000 > Seems like I've found the reason. Attached patch fixes problem for me. Thanks, am trying this now.... -pete. From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 14:21:42 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 1DE43106566B for ; Thu, 29 Apr 2010 14:21:42 +0000 (UTC) (envelope-from rnoland@FreeBSD.org) Received: from gizmo.2hip.net (gizmo.2hip.net [64.74.207.195]) by mx1.freebsd.org (Postfix) with ESMTP id CBDB88FC17 for ; Thu, 29 Apr 2010 14:21:41 +0000 (UTC) Received: from [10.170.20.44] (nat-170-142-177-44.tn.gov [170.142.177.44]) (authenticated bits=0) by gizmo.2hip.net (8.14.3/8.14.3) with ESMTP id o3TDlVWa018098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 29 Apr 2010 09:47:32 -0400 (EDT) (envelope-from rnoland@FreeBSD.org) Message-ID: <4BD98DE2.8020703@FreeBSD.org> Date: Thu, 29 Apr 2010 08:47:14 -0500 From: Robert Noland Organization: FreeBSD User-Agent: Thunderbird 2.0.0.19 (X11/20090218) MIME-Version: 1.0 To: Scott Long References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=0.8 required=5.0 tests=AWL, BAYES_00, FH_DATE_PAST_20XX, RDNS_DYNAMIC,SPF_SOFTFAIL autolearn=no version=3.2.5 X-Spam-Checker-Version: SpamAssassin 3.2.5 (2008-06-10) on gizmo.2hip.net Cc: freebsd-scsi@FreeBSD.org, Alexander Motin , FreeBSD Stable , Pete French Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 14:21:42 -0000 Scott Long wrote: > On Apr 29, 2010, at 2:50 AM, Pete French wrote: > >>> Thanks. First step successful - I can steadily reproduce problem on >>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same >>> channel triggers issue in seconds. Any I/O on channel dying after both >>> disks report "Queue full" error same time. The rest of system works >>> fine. If I preliminarily manually adjust queue depth of one disk - >>> everything works fine. I'll investigate it tomorrow. >> Glad you have managed to dupliate it - the queue depth thing is >> inetersting, what changes did you make ? I can try them here and see >> if they improve the situation on either of my two machines. >> > > For the record, queue-full is a common, expected condition in CAM. It's not something that should be avoided =-) Should we maybe have a counter in sysctl rather than flooding the console with these messages then? robert. > Scott > > _______________________________________________ > freebsd-stable@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-stable > To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 15:55:57 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 BF76A106564A; Thu, 29 Apr 2010 15:55:57 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 84F1E8FC12; Thu, 29 Apr 2010 15:55:57 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7W5a-000MF8-EM; Thu, 29 Apr 2010 16:55:46 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7W5a-000AVb-DP; Thu, 29 Apr 2010 16:55:46 +0100 Date: Thu, 29 Apr 2010 16:55:46 +0100 Message-Id: To: mav@FreeBSD.org In-Reply-To: <4BD98FC0.2030206@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 15:55:57 -0000 > Seems like I've found the reason. Attached patch fixes problem for me. Inetersting - one of my machines has ginished a gmirror resync. The first time I tried this it did lock up, but with media rea errors (which may be genuine on these old drives). But this tiime it has finished, and without the patch this machine would never finish a rebuild. So far, so good... -pete. From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 16:18:41 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 726CB1065670; Thu, 29 Apr 2010 16:18:41 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 38C718FC08; Thu, 29 Apr 2010 16:18:41 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7WRe-000MSi-FR; Thu, 29 Apr 2010 17:18:34 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7WRe-000Aaz-EU; Thu, 29 Apr 2010 17:18:34 +0100 Date: Thu, 29 Apr 2010 17:18:34 +0100 Message-Id: To: mav@FreeBSD.org In-Reply-To: <4BD98FC0.2030206@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 16:18:41 -0000 ...and my other test amchine just completed a gmirror rebuild as well, with no problems. So intially it does look very much like it is fixed. Thanks Alexander! IIf I have any mmore problems I will let you know -pete. From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 16:35:13 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 566AE1065670; Thu, 29 Apr 2010 16:35:13 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 8691C8FC12; Thu, 29 Apr 2010 16:35:12 +0000 (UTC) Received: by fxm15 with SMTP id 15so1235691fxm.13 for ; Thu, 29 Apr 2010 09:35:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=yOlmICvI8y+STjIW0QYNmbizJMxa4ZltFkIcF/2Ddak=; b=QCTNPTb/07GdXQXtukYzrih1YUPZqTSo50Jt+s3CDbzPPTOQK83SUXAlDS4mLVmHeO tNggLIvlOmoRtjQ9aJrkFZTRinyNGRRdZ/Aosk7KoaWofIoG6fo5lDxQij/21lNT/DiC sUoqKzdxWd9XiV57RFXTMnwGF10RfjeiRYkzM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=hO38d1zViEzUfwSygXTJh6u6fPWHmGd7JMBBqqHeUdcdBE/AA65/EZ56k3f4VKnh3F k910PbB4D0tSDRbewSAxQugfRoMTxeeS76gEcdzlIFcxNEMKilgrdDnojRGTB+uu3UR4 7SDpR44EFRL8ptzy9AHq0K3VA7R7FUXv7J35U= Received: by 10.102.240.32 with SMTP id n32mr5383645muh.114.1272558902481; Thu, 29 Apr 2010 09:35:02 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id s10sm4955175mue.27.2010.04.29.09.35.01 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 09:35:01 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BD9B526.4060308@FreeBSD.org> Date: Thu, 29 Apr 2010 19:34:46 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Pete French References: In-Reply-To: X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 16:35:13 -0000 Pete French wrote: > ...and my other test amchine just completed a gmirror rebuild as well, with no > problems. So intially it does look very much like it > is fixed. Thanks Alexander! IIf I have any mmore problems I will > let you know I'm glad to hear it. But gmirror rebuild itself may be not enough for test. It uses very few requests same time. You should manage "Queue full" state, so you should make at least 150 concurrent write requests to the mirror running same time. -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Thu Apr 29 16:41: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 12040106566B; Thu, 29 Apr 2010 16:41:08 +0000 (UTC) (envelope-from petefrench@ticketswitch.com) Received: from constantine.ticketswitch.com (constantine.ticketswitch.com [IPv6:2002:57e0:1d4e:1::3]) by mx1.freebsd.org (Postfix) with ESMTP id 5736E8FC0A; Thu, 29 Apr 2010 16:41:07 +0000 (UTC) Received: from dilbert.rattatosk ([10.64.50.6] helo=dilbert.ticketswitch.com) by constantine.ticketswitch.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O7Wmo-000McT-EL; Thu, 29 Apr 2010 17:40:26 +0100 Received: from petefrench by dilbert.ticketswitch.com with local (Exim 4.71 (FreeBSD)) (envelope-from ) id 1O7Wmo-000Agc-DN; Thu, 29 Apr 2010 17:40:26 +0100 Date: Thu, 29 Apr 2010 17:40:26 +0100 Message-Id: To: mav@FreeBSD.org In-Reply-To: <4BD9B526.4060308@FreeBSD.org> From: Pete French Cc: freebsd-scsi@freebsd.org, scottl@FreeBSD.org, freebsd-stable@freebsd.org Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 29 Apr 2010 16:41:08 -0000 > I'm glad to hear it. But gmirror rebuild itself may be not enough for > test. It uses very few requests same time. You should manage "Queue > full" state, so you should make at least 150 concurrent write requests > to the mirror running same time. Am going to hammer it for a bit with a number of applications, but I am very happy with the rebuld as this would never complete previously so it's still a bit improvement! -pete. From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 03:45:48 2010 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E04C5106564A; Fri, 30 Apr 2010 03:45:48 +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 96E5A8FC08; Fri, 30 Apr 2010 03:45:48 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o3U3jiQd018547; Thu, 29 Apr 2010 21:45:44 -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: <4BD98DE2.8020703@FreeBSD.org> Date: Thu, 29 Apr 2010 21:45:44 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> References: <4BD98DE2.8020703@FreeBSD.org> To: Robert Noland X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.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, Alexander Motin , FreeBSD Stable , Pete French Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 30 Apr 2010 03:45:49 -0000 On Apr 29, 2010, at 7:47 AM, Robert Noland wrote: >=20 >=20 > Scott Long wrote: >> On Apr 29, 2010, at 2:50 AM, Pete French wrote: >>>> Thanks. First step successful - I can steadily reproduce problem on >>>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on = same >>>> channel triggers issue in seconds. Any I/O on channel dying after = both >>>> disks report "Queue full" error same time. The rest of system works >>>> fine. If I preliminarily manually adjust queue depth of one disk - >>>> everything works fine. I'll investigate it tomorrow. >>> Glad you have managed to dupliate it - the queue depth thing is >>> inetersting, what changes did you make ? I can try them here and see >>> if they improve the situation on either of my two machines. >>>=20 >> For the record, queue-full is a common, expected condition in CAM. = It's not something that should be avoided =3D-) >=20 > Should we maybe have a counter in sysctl rather than flooding the = console with these messages then? That's a pretty good idea. I'll make it happen. Scott From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 04:57:16 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 478F8106566B; Fri, 30 Apr 2010 04:57:16 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 720308FC1F; Fri, 30 Apr 2010 04:57:14 +0000 (UTC) Received: by fxm15 with SMTP id 15so1628929fxm.13 for ; Thu, 29 Apr 2010 21:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=UkEXl69YYhL31X3Ib5+d+FiYsnboyIm6FEb9Rq64imA=; b=RWSSZ+lY4igaXThqC+2gfD+hNL9dRN48UrM7bEUUVYVyV9peb2HzxtYvYRVono99Dj 2NYLqYdSVTZsn4/hfVqElO3bwOwVPIqLAoWiYn43P1rVZMyKQ5G57KTrcnlrjjco5X3f P2zH+csKESTO7x9d+8HQGUTIUQdfj+iXaIpvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=HKxvhLbrFefj5JATchvBYZH06N6R9yQ2dWGemwCpQEwkls4ha1LpDWMeLnSiCtPsrR DKy10/+s0yEUgt7YnDP/aL6KhD1rl72iBQGTGdAzYy7ekLHkFjdaHWkwJm4qngWLOaVx 4b6Bs5kf6BbRVSEVVjBnWs1fTn3bkNgBhQDQE= Received: by 10.102.17.22 with SMTP id 22mr5883465muq.37.1272603425281; Thu, 29 Apr 2010 21:57:05 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y2sm7231003mug.51.2010.04.29.21.57.03 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 21:57:04 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BDA6310.10902@FreeBSD.org> Date: Fri, 30 Apr 2010 07:56:48 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Scott Long References: <4BD98DE2.8020703@FreeBSD.org> <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> In-Reply-To: <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@FreeBSD.org, FreeBSD Stable , Pete French , Robert Noland Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 30 Apr 2010 04:57:16 -0000 Scott Long wrote: > On Apr 29, 2010, at 7:47 AM, Robert Noland wrote: >> >> Scott Long wrote: >>> On Apr 29, 2010, at 2:50 AM, Pete French wrote: >>>>> Thanks. First step successful - I can steadily reproduce problem on >>>>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same >>>>> channel triggers issue in seconds. Any I/O on channel dying after both >>>>> disks report "Queue full" error same time. The rest of system works >>>>> fine. If I preliminarily manually adjust queue depth of one disk - >>>>> everything works fine. I'll investigate it tomorrow. >>>> Glad you have managed to dupliate it - the queue depth thing is >>>> inetersting, what changes did you make ? I can try them here and see >>>> if they improve the situation on either of my two machines. >>>> >>> For the record, queue-full is a common, expected condition in CAM. It's not something that should be avoided =-) >> Should we maybe have a counter in sysctl rather than flooding the console with these messages then? > > That's a pretty good idea. I'll make it happen. It is already hidden behind bootverbose. Hiding it deeper will make unclear why CAM requeues the rest of commands (also reported under bootverbose). I've tuned log messages a bit recently and they seem to be more consistent and readable now IMHO. -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 05:07:19 2010 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id ACB25106566C; Fri, 30 Apr 2010 05:07:19 +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 4777F8FC0C; Fri, 30 Apr 2010 05:07:18 +0000 (UTC) Received: from [127.0.0.1] (pooker.samsco.org [168.103.85.57]) (authenticated bits=0) by pooker.samsco.org (8.14.3/8.14.3) with ESMTP id o3U57F41018855; Thu, 29 Apr 2010 23:07:16 -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: <4BDA6310.10902@FreeBSD.org> Date: Thu, 29 Apr 2010 23:07:15 -0600 Content-Transfer-Encoding: quoted-printable Message-Id: <221F6444-3102-4CD7-A1A7-1DF4352E7F50@samsco.org> References: <4BD98DE2.8020703@FreeBSD.org> <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> <4BDA6310.10902@FreeBSD.org> To: Alexander Motin X-Mailer: Apple Mail (2.1078) X-Spam-Status: No, score=-1.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, FreeBSD Stable , Pete French , Robert Noland Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 30 Apr 2010 05:07:19 -0000 On Apr 29, 2010, at 10:56 PM, Alexander Motin wrote: > Scott Long wrote: >> On Apr 29, 2010, at 7:47 AM, Robert Noland wrote: >>>=20 >>> Scott Long wrote: >>>> On Apr 29, 2010, at 2:50 AM, Pete French wrote: >>>>>> Thanks. First step successful - I can steadily reproduce problem = on >>>>>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks = on same >>>>>> channel triggers issue in seconds. Any I/O on channel dying after = both >>>>>> disks report "Queue full" error same time. The rest of system = works >>>>>> fine. If I preliminarily manually adjust queue depth of one disk = - >>>>>> everything works fine. I'll investigate it tomorrow. >>>>> Glad you have managed to dupliate it - the queue depth thing is >>>>> inetersting, what changes did you make ? I can try them here and = see >>>>> if they improve the situation on either of my two machines. >>>>>=20 >>>> For the record, queue-full is a common, expected condition in CAM. = It's not something that should be avoided =3D-) >>> Should we maybe have a counter in sysctl rather than flooding the = console with these messages then? >>=20 >> That's a pretty good idea. I'll make it happen. >=20 > It is already hidden behind bootverbose. Hiding it deeper will make > unclear why CAM requeues the rest of commands (also reported under > bootverbose). I've tuned log messages a bit recently and they seem to = be > more consistent and readable now IMHO. >=20 We used to run FreeBSD at Yahoo with bootverbose turned on in order to = help with debugging. After years of doing this, I finally turned = bootverbose off last year, partially because of the excessive console = spam produced by these queue-full messages. Even when we were writing = the ahc/ahd drivers at Adaptec years ago, I never really liked these = messages, and we rarely ran with bootverbose turned on unless we were = actively developing code or debugging a problem. I like Robert's = suggestion because not only does it make running with bootverbose less = painful, it can also provide counters and also calculate and report rate = measurements that might be more useful than just the printf. If you feel strongly against it, I won't push it, but I do like the = suggestion. Scott From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 05:10:59 2010 Return-Path: Delivered-To: freebsd-scsi@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 9BDC71065673; Fri, 30 Apr 2010 05:10:59 +0000 (UTC) (envelope-from mav@FreeBSD.org) Received: from smtpout13.attiva.biz (smtpout13.attiva.biz [85.37.16.15]) by mx1.freebsd.org (Postfix) with ESMTP id E83998FC1F; Fri, 30 Apr 2010 05:10:58 +0000 (UTC) Received: from FBCMFE02B07.fbc.local ([192.168.30.95]) by smtpout13.attiva.biz with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Apr 2010 06:58:43 +0200 Received: from mail pickup service by FBCMFE02B07.fbc.local with Microsoft SMTPSVC; Fri, 30 Apr 2010 06:58:42 +0200 Received: from ibs05.interbusiness.it ([85.45.31.135]) by FBCMFE02B07.fbc.local with Microsoft SMTPSVC(6.0.3790.3959); Fri, 30 Apr 2010 06:58:41 +0200 Received: from mx2.freebsd.org ([69.147.83.53]) by ibs05.interbusiness.it with ESMTP; 30 Apr 2010 06:58:35 +0200 Received: from hub.freebsd.org (hub.freebsd.org [69.147.83.54]) by mx2.freebsd.org (Postfix) with ESMTP id EF85D163B11; Fri, 30 Apr 2010 04:57:35 +0000 (UTC) Received: from hub.freebsd.org (localhost [127.0.0.1]) by hub.freebsd.org (Postfix) with ESMTP id CCF731065778; Fri, 30 Apr 2010 04:57:31 +0000 (UTC) (envelope-from owner-freebsd-stable@freebsd.org) Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 478F8106566B; Fri, 30 Apr 2010 04:57:16 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from mail-fx0-f54.google.com (mail-fx0-f54.google.com [209.85.161.54]) by mx1.freebsd.org (Postfix) with ESMTP id 720308FC1F; Fri, 30 Apr 2010 04:57:14 +0000 (UTC) Received: by fxm15 with SMTP id 15so1628929fxm.13 for ; Thu, 29 Apr 2010 21:57:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=UkEXl69YYhL31X3Ib5+d+FiYsnboyIm6FEb9Rq64imA=; b=RWSSZ+lY4igaXThqC+2gfD+hNL9dRN48UrM7bEUUVYVyV9peb2HzxtYvYRVono99Dj 2NYLqYdSVTZsn4/hfVqElO3bwOwVPIqLAoWiYn43P1rVZMyKQ5G57KTrcnlrjjco5X3f P2zH+csKESTO7x9d+8HQGUTIUQdfj+iXaIpvU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=HKxvhLbrFefj5JATchvBYZH06N6R9yQ2dWGemwCpQEwkls4ha1LpDWMeLnSiCtPsrR DKy10/+s0yEUgt7YnDP/aL6KhD1rl72iBQGTGdAzYy7ekLHkFjdaHWkwJm4qngWLOaVx 4b6Bs5kf6BbRVSEVVjBnWs1fTn3bkNgBhQDQE= Received: by 10.102.17.22 with SMTP id 22mr5883465muq.37.1272603425281; Thu, 29 Apr 2010 21:57:05 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id y2sm7231003mug.51.2010.04.29.21.57.03 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 21:57:04 -0700 (PDT) Message-ID: <4BDA6310.10902@FreeBSD.org> Date: Fri, 30 Apr 2010 07:56:48 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Scott Long References: <4BD98DE2.8020703@FreeBSD.org> <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> In-Reply-To: <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Sender: owner-freebsd-stable@freebsd.org Errors-To: owner-freebsd-stable@freebsd.org X-OriginalArrivalTime: 30 Apr 2010 04:58:41.0854 (UTC) FILETIME=[CDD825E0:01CAE821] Cc: freebsd-scsi@FreeBSD.org, FreeBSD Stable , Robert Noland , Pete French Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller X-BeenThere: freebsd-scsi@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 Apr 2010 05:10:59 -0000 Scott Long wrote: > On Apr 29, 2010, at 7:47 AM, Robert Noland wrote: >> >> Scott Long wrote: >>> On Apr 29, 2010, at 2:50 AM, Pete French wrote: >>>>> Thanks. First step successful - I can steadily reproduce problem on >>>>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same >>>>> channel triggers issue in seconds. Any I/O on channel dying after both >>>>> disks report "Queue full" error same time. The rest of system works >>>>> fine. If I preliminarily manually adjust queue depth of one disk - >>>>> everything works fine. I'll investigate it tomorrow. >>>> Glad you have managed to dupliate it - the queue depth thing is >>>> inetersting, what changes did you make ? I can try them here and see >>>> if they improve the situation on either of my two machines. >>>> >>> For the record, queue-full is a common, expected condition in CAM. It's not something that should be avoided =-) >> Should we maybe have a counter in sysctl rather than flooding the console with these messages then? > > That's a pretty good idea. I'll make it happen. It is already hidden behind bootverbose. Hiding it deeper will make unclear why CAM requeues the rest of commands (also reported under bootverbose). I've tuned log messages a bit recently and they seem to be more consistent and readable now IMHO. -- Alexander Motin _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 05:16:37 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F24371065670; Fri, 30 Apr 2010 05:16:37 +0000 (UTC) (envelope-from mavbsd@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.153]) by mx1.freebsd.org (Postfix) with ESMTP id 277C58FC13; Fri, 30 Apr 2010 05:16:36 +0000 (UTC) Received: by fg-out-1718.google.com with SMTP id 22so3507762fge.13 for ; Thu, 29 Apr 2010 22:16:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:sender:message-id:date:from :user-agent:mime-version:to:cc:subject:references:in-reply-to :x-enigmail-version:content-type:content-transfer-encoding; bh=aQ82ou089T2F+nd68fIj1Hq0FJnAK1p2WNs8zlVicRo=; b=FRjwiI6ybkmOtXYZAcGqEG+7R7mS7mXnHlGx10o1pIccolCU9+GEZ23PUcHhky0OyA MrFMj0r9S8JAgG2TyZxPjpouYzbO5wEF8WBEGRvAxJ0oZaMpqqVxjQHmmOjCyxQTdnko 4A4JQH6ke9DC/oIennO2t7im4hU4RffDKk7jY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=J307jOdjm9Jnm9HT7XVFTGiXucxvVT6tvNlUl5bfFeV0nHaUGLxk1LqfdXJnU2PXen sVeZ5Ksi6bPj/D72R3EUKDEnj9NJ0VBzZ5+ORrps6ycbJPh0LM+Cd8faymeJ744xH8GN uUduXA/OLwRdfifadsmBVvHM699wV1Zw7psYk= Received: by 10.102.7.12 with SMTP id 12mr5868608mug.104.1272604587752; Thu, 29 Apr 2010 22:16:27 -0700 (PDT) Received: from mavbook.mavhome.dp.ua (pc.mavhome.dp.ua [212.86.226.226]) by mx.google.com with ESMTPS id u26sm7245722mug.55.2010.04.29.22.16.26 (version=SSLv3 cipher=RC4-MD5); Thu, 29 Apr 2010 22:16:27 -0700 (PDT) Sender: Alexander Motin Message-ID: <4BDA679B.1000706@FreeBSD.org> Date: Fri, 30 Apr 2010 08:16:11 +0300 From: Alexander Motin User-Agent: Thunderbird 2.0.0.24 (X11/20100402) MIME-Version: 1.0 To: Scott Long References: <4BD98DE2.8020703@FreeBSD.org> <4A883035-3570-4FCC-B8EB-F205BD6D640D@samsco.org> <4BDA6310.10902@FreeBSD.org> <221F6444-3102-4CD7-A1A7-1DF4352E7F50@samsco.org> In-Reply-To: <221F6444-3102-4CD7-A1A7-1DF4352E7F50@samsco.org> X-Enigmail-Version: 0.96.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: freebsd-scsi@FreeBSD.org, FreeBSD Stable , Pete French , Robert Noland Subject: Re: MFC of "Large set of CAM improvements" breaks I/O to Adaptec 29160 SCSI controller 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, 30 Apr 2010 05:16:38 -0000 Scott Long wrote: > On Apr 29, 2010, at 10:56 PM, Alexander Motin wrote: >> Scott Long wrote: >>> On Apr 29, 2010, at 7:47 AM, Robert Noland wrote: >>>> Scott Long wrote: >>>>> On Apr 29, 2010, at 2:50 AM, Pete French wrote: >>>>>>> Thanks. First step successful - I can steadily reproduce problem on >>>>>>> CURRENT. raidtest with 200 I/O streams over gmirror of two disks on same >>>>>>> channel triggers issue in seconds. Any I/O on channel dying after both >>>>>>> disks report "Queue full" error same time. The rest of system works >>>>>>> fine. If I preliminarily manually adjust queue depth of one disk - >>>>>>> everything works fine. I'll investigate it tomorrow. >>>>>> Glad you have managed to dupliate it - the queue depth thing is >>>>>> inetersting, what changes did you make ? I can try them here and see >>>>>> if they improve the situation on either of my two machines. >>>>>> >>>>> For the record, queue-full is a common, expected condition in CAM. It's not something that should be avoided =-) >>>> Should we maybe have a counter in sysctl rather than flooding the console with these messages then? >>> That's a pretty good idea. I'll make it happen. >> It is already hidden behind bootverbose. Hiding it deeper will make >> unclear why CAM requeues the rest of commands (also reported under >> bootverbose). I've tuned log messages a bit recently and they seem to be >> more consistent and readable now IMHO. > > We used to run FreeBSD at Yahoo with bootverbose turned on in order to help with debugging. After years of doing this, I finally turned bootverbose off last year, partially because of the excessive console spam produced by these queue-full messages. Even when we were writing the ahc/ahd drivers at Adaptec years ago, I never really liked these messages, and we rarely ran with bootverbose turned on unless we were actively developing code or debugging a problem. I like Robert's suggestion because not only does it make running with bootverbose less painful, it can also provide counters and also calculate and report rate measurements that might be more useful than just the printf. > > If you feel strongly against it, I won't push it, but I do like the suggestion. No. I just wanted to say that requeue messages massively logged in that case are even less informative for regular user. -- Alexander Motin From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 14:50:36 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 8EA3E106567E; Fri, 30 Apr 2010 14:50:36 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id E4BB58FC2A; Fri, 30 Apr 2010 14:50:35 +0000 (UTC) Received: by bwz8 with SMTP id 8so188844bwz.3 for ; Fri, 30 Apr 2010 07:50:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=OMLN8EXpO7o5R+dLLld1mQ1KxLyIDhy0WMrwfmMTb78=; b=CQ5NLeKvoKwDm9vsYY3Jo7Tfsg69qszE+rzN1Tn0Fa9oGEVLiV03wHQXsU3TT2wzG9 6zNQ4HKd5t3ekE8IacP31WhdxdIa441asdr8OkILVDjjW3fXdf7VtW86Og90swtUGOkR AHSVl8PUGZflfqu6vKB9kSHM9jRmdu9K7W+1I= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=BjFDvQ9yjqvZd13y0pW36OOTVu9vj2S11OcrPcnSIwBxG1X/NeylbYoP2Nk0fu+qle xJBr34qabFjCtcrGXdm6mtMNNXXxUB1omUnQ3Y+f7pJNRGYrlzN1MCK/zWBsy+zoF41Y E+/f1f1T8mB84knKNum/bR4QqlfNIxVKVbMMM= MIME-Version: 1.0 Received: by 10.204.7.201 with SMTP id e9mr104429bke.122.1272639027080; Fri, 30 Apr 2010 07:50:27 -0700 (PDT) Received: by 10.204.79.3 with HTTP; Fri, 30 Apr 2010 07:50:26 -0700 (PDT) In-Reply-To: <4BDAE7BD.4000503@feral.com> References: <4BDAE7BD.4000503@feral.com> Date: Fri, 30 Apr 2010 18:50:26 +0400 Message-ID: From: pluknet To: Matthew Jacob Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-scsi , FreeBSD Current Subject: Re: mpt(4) MPI_EVENT_IR_RESYNC_UPDATE 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, 30 Apr 2010 14:50:36 -0000 On 30 April 2010 18:22, Matthew Jacob wrote: > pluknet wrote: > Seems good to me- why not trhow it freebsd-scsi? if nobody says no, I'll = put > it in Err.. I thought that list is dedicated for cam related stuff. [cc'ing scsi@ for better coverage. Sorry for cross-posting :/ ] > >> --- RELENG_7_3/src/sys/dev/mpt/mpt_cam.c =A0 =A0 =A0 =A02010-03-02 >> 15:38:13.000000000 +0300 >> +++ RELENG_7_3.ours/src/sys/dev/mpt/mpt_cam.c =A0 2010-04-21 >> 19:31:00.000000000 +0400 >> @@ -2564,6 +2564,12 @@ mpt_cam_event(struct mpt_softc *mpt, req >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CAMLOCK_2_MPTLOCK(mpt); >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; >> =A0 =A0 =A0 =A0} >> + =A0 =A0 =A0 case MPI_EVENT_IR_RESYNC_UPDATE: >> + =A0 =A0 =A0 { >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 uint8_t resync =3D (data0 >> 16) & 0xff; >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 mpt_prt(mpt, "IR resync update %d complete= d\n", resync); >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; >> + =A0 =A0 =A0 } >> =A0 =A0 =A0 =A0case MPI_EVENT_EVENT_CHANGE: >> =A0 =A0 =A0 =A0case MPI_EVENT_INTEGRATED_RAID: >> =A0 =A0 =A0 =A0case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: >> >> Another way - just hide such event since mptutil displays rebuild >> progress. >> >> --=20 wbr, pluknet From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 16:16:44 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 68705106564A for ; Fri, 30 Apr 2010 16:16:44 +0000 (UTC) (envelope-from doug@polands.org) Received: from hrndva-omtalb.mail.rr.com (hrndva-omtalb.mail.rr.com [71.74.56.123]) by mx1.freebsd.org (Postfix) with ESMTP id 2250E8FC13 for ; Fri, 30 Apr 2010 16:16:43 +0000 (UTC) Received: from hrndva-omtalb.mail.rr.com ([10.128.143.52]) by hrndva-qmta02.mail.rr.com with ESMTP id <20100430153758661.ZWTG12161@hrndva-qmta02.mail.rr.com> for ; Fri, 30 Apr 2010 15:37:58 +0000 X-Authority-Analysis: v=1.1 cv=tamp8Om8S85MB4Qj1n2yU9kNzNdU9gdJUe8fX0YwrYg= c=1 sm=0 a=8nJEP1OIZ-IA:10 a=02fl1sNAWVw4WL3Wmu4WJA==:17 a=UbzZPY2YvetLErNt0Q8A:9 a=Rzb31O8dnQdtqZHmqFad6zkAdAEA:4 a=wPNLvfGTeEIA:10 a=02fl1sNAWVw4WL3Wmu4WJA==:117 X-Cloudmark-Score: 0 X-Originating-IP: 75.87.219.217 Received: from [75.87.219.217] ([75.87.219.217:64178] helo=haran.polands.org) by hrndva-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.2.39 r()) with ESMTP id 63/8D-08792-719FADB4; Fri, 30 Apr 2010 15:36:55 +0000 Received: from email.polands.org (ararat.polands.org [172.16.1.20]) by haran.polands.org (8.14.4/8.14.4) with ESMTP id o3UFasog088822 for ; Fri, 30 Apr 2010 10:36:54 -0500 (CDT) (envelope-from doug@polands.org) Received: from 209.103.214.35 (SquirrelMail authenticated user djp) by email.polands.org with HTTP; Fri, 30 Apr 2010 10:36:54 -0500 Message-ID: <5628a6edb39b57e52e209c6a9d032812.squirrel@email.polands.org> Date: Fri, 30 Apr 2010 10:36:54 -0500 From: "Doug Poland" To: freebsd-scsi@freebsd.org User-Agent: SquirrelMail/1.4.20 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal Subject: LSI PCI-X HBA question 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, 30 Apr 2010 16:16:44 -0000 Hello, I've got an LSI PCI-X to Ultra320 SCSI Controller (LSI53C1020/1030) recognized as device mpt0 on FreeBSD 8-STABLE (amd64). If I understand correctly, this device should detect up to 14 LUNs connected on a single channel. Is that a true statement? -- Regards, Doug From owner-freebsd-scsi@FreeBSD.ORG Fri Apr 30 19:55:15 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id D688E106564A for ; Fri, 30 Apr 2010 19:55:15 +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 B3EF68FC18 for ; Fri, 30 Apr 2010 19:55:15 +0000 (UTC) Received: from [192.168.221.2] (remotevpn [192.168.221.2]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o3UJtE1T011339 (version=TLSv1/SSLv3 cipher=DHE-RSA-CAMELLIA256-SHA bits=256 verify=NO) for ; Fri, 30 Apr 2010 12:55:15 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BDB35A2.4010202@feral.com> Date: Fri, 30 Apr 2010 12:55:14 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.9) Gecko/20100330 Fedora/3.0.4-1.fc11 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <5628a6edb39b57e52e209c6a9d032812.squirrel@email.polands.org> In-Reply-To: <5628a6edb39b57e52e209c6a9d032812.squirrel@email.polands.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender DNS name whitelisted, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.168.221.1]); Fri, 30 Apr 2010 12:55:15 -0700 (PDT) Subject: Re: LSI PCI-X HBA question 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: Fri, 30 Apr 2010 19:55:15 -0000 On 04/30/2010 08:36 AM, Doug Poland wrote: > Hello, > > I've got an LSI PCI-X to Ultra320 SCSI Controller (LSI53C1020/1030) > recognized as device mpt0 on FreeBSD 8-STABLE (amd64). If I > understand correctly, this device should detect up to 14 LUNs > connected on a single channel. Is that a true statement? > > > Umm.. up to 15 targets on each channel. LUNs (logical units) are contingent on a number of factors about each target. Why do you ask? From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 01:47:12 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id A40BB106564A for ; Sat, 1 May 2010 01:47:12 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from web.nitronet.pl (web.nitronet.pl [195.90.106.5]) by mx1.freebsd.org (Postfix) with ESMTP id 630AE8FC14 for ; Sat, 1 May 2010 01:47:12 +0000 (UTC) Received: from mailnull by web.nitronet.pl with virscan (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O81EF-0006s2-4X for freebsd-scsi@freebsd.org; Sat, 01 May 2010 03:10:47 +0200 Date: Sat, 1 May 2010 03:10:42 +0200 From: Pawel Tyll X-Priority: 3 (Normal) Message-ID: <1688720753.20100501031042@nitronet.pl> To: freebsd-scsi@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Nitronet.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ptyll@nitronet.pl X-SA-Exim-Scanned: No (on web.nitronet.pl); SAEximRunCond expanded to false Subject: LSI SAS1078 on Intel S5520UR board. 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: Sat, 01 May 2010 01:47:12 -0000 Hello list, I'm having a problem with integrated LSI SAS1078 controller on S5520UR on FreeBSD 8.0-STABLE #1: Sat May 1 02:06:15 CEST 2010 after kldload mpt: mpt0@pci0:13:0:0: class=3D0x010000 card=3D0x35058086 chip=3D0x0062100= 0 rev=3D0x04 hdr=3D0x00 vendor =3D 'LSI Logic (Was: Symbios Logic, NCR)' device =3D 'PCI-Express Fusion-MPT SAS (LSISAS1078)' class =3D mass storage subclass =3D SCSI mpt0: port 0x1000-0x10ff mem 0xb1940000-0xb1943= fff,0xb1900000-0xb193ffff irq 16 at device 0.0 on pci13 mpt0: unable to map registers in PIO mode # mptutil show adapter mptutil: mpt_open: No such file or directory on the other hand, mfi doesn't even attach to this device, and kldunload mpt crashes the system. Is anyone successfully using this controller on any version of FreeBSD? Anything else I can do to help debug and fix this? From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 02:59:53 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 451361065670 for ; Sat, 1 May 2010 02:59:53 +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 24F388FC12 for ; Sat, 1 May 2010 02:59:52 +0000 (UTC) Received: from [172.16.135.100] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o412xpfj053429; Fri, 30 Apr 2010 19:59:52 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BDB9926.3050801@feral.com> Date: Fri, 30 Apr 2010 19:59:50 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Pawel Tyll References: <1688720753.20100501031042@nitronet.pl> In-Reply-To: <1688720753.20100501031042@nitronet.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.168.221.1]); Fri, 30 Apr 2010 19:59:52 -0700 (PDT) Cc: freebsd-scsi@freebsd.org Subject: Re: LSI SAS1078 on Intel S5520UR board. 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: Sat, 01 May 2010 02:59:53 -0000 Pawel Tyll wrote: > Hello list, > > I'm having a problem with integrated LSI SAS1078 controller on S5520UR > on FreeBSD 8.0-STABLE #1: Sat May 1 02:06:15 CEST 2010 > > after kldload mpt: > > mpt0@pci0:13:0:0: class=0x010000 card=0x35058086 chip=0x00621000 rev=0x04 hdr=0x00 > vendor = 'LSI Logic (Was: Symbios Logic, NCR)' > device = 'PCI-Express Fusion-MPT SAS (LSISAS1078)' > class = mass storage > subclass = SCSI > > mpt0: port 0x1000-0x10ff mem 0xb1940000-0xb1943fff,0xb1900000-0xb193ffff irq 16 at device 0.0 on pci13 > mpt0: unable to map registers in PIO mode > > # Some recovery mechanisms require both PIO as well as MMAP of registers. Guess your motheboard doesn't support that. From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 03:07:46 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DA8EF106566B for ; Sat, 1 May 2010 03:07:46 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from web.nitronet.pl (web.nitronet.pl [195.90.106.5]) by mx1.freebsd.org (Postfix) with ESMTP id 9B0AC8FC16 for ; Sat, 1 May 2010 03:07:46 +0000 (UTC) Received: from mailnull by web.nitronet.pl with virscan (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O833R-000CEy-Fs for freebsd-scsi@freebsd.org; Sat, 01 May 2010 05:07:45 +0200 Date: Sat, 1 May 2010 05:07:39 +0200 From: Pawel Tyll X-Priority: 3 (Normal) Message-ID: <641379455.20100501050739@nitronet.pl> To: Matthew Jacob In-Reply-To: <4BDB9926.3050801@feral.com> References: <1688720753.20100501031042@nitronet.pl> <4BDB9926.3050801@feral.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Nitronet.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ptyll@nitronet.pl X-SA-Exim-Scanned: No (on web.nitronet.pl); SAEximRunCond expanded to false Cc: freebsd-scsi@freebsd.org Subject: Re: LSI SAS1078 on Intel S5520UR board. 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: Sat, 01 May 2010 03:07:46 -0000 Hi Matthew, > Some recovery mechanisms require both PIO as well as MMAP of registers. > Guess your motheboard doesn't support that. So what can be done about it? I don't really have much of a choice here - controller is integrated with backplane/motherboard and there's no way of swapping it out. Just tested it in 9-CURRENT, but as you probably already figured out, without much of success :( Just for clarification: motherboard is Intel S5520UR, preinstalled in Intel SR2600URLX chassis. Any pointers will be much appreciated. From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 03:11:06 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id E55CE106566B for ; Sat, 1 May 2010 03:11:06 +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 A9D808FC0C for ; Sat, 1 May 2010 03:11:06 +0000 (UTC) Received: from [172.16.135.100] (lportal.in1.lcl [172.16.1.9]) by ns1.feral.com (8.14.3/8.14.3) with ESMTP id o413B6F5053505; Fri, 30 Apr 2010 20:11:06 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BDB9BC8.8030300@feral.com> Date: Fri, 30 Apr 2010 20:11:04 -0700 From: Matthew Jacob Organization: Feral Software User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: Pawel Tyll References: <1688720753.20100501031042@nitronet.pl> <4BDB9926.3050801@feral.com> <641379455.20100501050739@nitronet.pl> In-Reply-To: <641379455.20100501050739@nitronet.pl> Content-Type: text/plain; charset=ISO-8859-2; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.3 (ns1.feral.com [192.168.221.1]); Fri, 30 Apr 2010 20:11:06 -0700 (PDT) Cc: freebsd-scsi@freebsd.org Subject: Re: LSI SAS1078 on Intel S5520UR board. 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: Sat, 01 May 2010 03:11:07 -0000 I actually think I have this chassis and it seems to work okay for me. Do you have an alternate device to boot from? > Hi Matthew, > > >> Some recovery mechanisms require both PIO as well as MMAP of registers. >> Guess your motheboard doesn't support that. >> > So what can be done about it? I don't really have much of a choice > here - controller is integrated with backplane/motherboard and there's > no way of swapping it out. Just tested it in 9-CURRENT, but as you > probably already figured out, without much of success :( > > Just for clarification: motherboard is Intel S5520UR, preinstalled in > Intel SR2600URLX chassis. > > Any pointers will be much appreciated. > > > _______________________________________________ > 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 Sat May 1 03:16:15 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 626391065670 for ; Sat, 1 May 2010 03:16:15 +0000 (UTC) (envelope-from ptyll@nitronet.pl) Received: from web.nitronet.pl (web.nitronet.pl [195.90.106.5]) by mx1.freebsd.org (Postfix) with ESMTP id A495A8FC12 for ; Sat, 1 May 2010 03:16:14 +0000 (UTC) Received: from mailnull by web.nitronet.pl with virscan (Exim 4.69 (FreeBSD)) (envelope-from ) id 1O83Bd-000CQL-Eu for freebsd-scsi@freebsd.org; Sat, 01 May 2010 05:16:13 +0200 Date: Sat, 1 May 2010 05:16:06 +0200 From: Pawel Tyll X-Priority: 3 (Normal) Message-ID: <72502523.20100501051606@nitronet.pl> To: Matthew Jacob In-Reply-To: <4BDB9BC8.8030300@feral.com> References: <1688720753.20100501031042@nitronet.pl> <4BDB9926.3050801@feral.com> <641379455.20100501050739@nitronet.pl> <4BDB9BC8.8030300@feral.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: Nitronet.pl X-SA-Exim-Connect-IP: X-SA-Exim-Mail-From: ptyll@nitronet.pl X-SA-Exim-Scanned: No (on web.nitronet.pl); SAEximRunCond expanded to false Cc: freebsd-scsi@freebsd.org Subject: Re: LSI SAS1078 on Intel S5520UR board. 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: Sat, 01 May 2010 03:16:15 -0000 > I actually think I have this chassis and it seems to work okay for me. > Do you have an alternate device to boot from? Yes, system is up and running using standard on-board SATA controller, so I can do pretty much everything to help get to the bottom of this, including giving you root access if you wish so. From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 15:14:39 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C9AD9106566C for ; Sat, 1 May 2010 15:14:39 +0000 (UTC) (envelope-from marius@alchemy.franken.de) Received: from alchemy.franken.de (alchemy.franken.de [194.94.249.214]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5608FC1B for ; Sat, 1 May 2010 15:14:38 +0000 (UTC) Received: from alchemy.franken.de (localhost [127.0.0.1]) by alchemy.franken.de (8.14.3/8.14.3/ALCHEMY.FRANKEN.DE) with ESMTP id o41F3Wvp075917; Sat, 1 May 2010 17:03:33 +0200 (CEST) (envelope-from marius@alchemy.franken.de) Received: (from marius@localhost) by alchemy.franken.de (8.14.3/8.14.3/Submit) id o41F3V75075916; Sat, 1 May 2010 17:03:31 +0200 (CEST) (envelope-from marius) Date: Sat, 1 May 2010 17:03:31 +0200 From: Marius Strobl To: pluknet Message-ID: <20100501150331.GA74398@alchemy.franken.de> References: <4BDAE7BD.4000503@feral.com> Mime-Version: 1.0 Content-Type: text/plain; charset=unknown-8bit Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-scsi , FreeBSD Current , Matthew Jacob Subject: Re: mpt(4) MPI_EVENT_IR_RESYNC_UPDATE 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: Sat, 01 May 2010 15:14:39 -0000 On Fri, Apr 30, 2010 at 06:50:26PM +0400, pluknet wrote: > On 30 April 2010 18:22, Matthew Jacob wrote: > > pluknet wrote: > > Seems good to me- why not trhow it freebsd-scsi? if nobody says no, I'll put > > it in > > Err.. I thought that list is dedicated for cam related stuff. > > [cc'ing scsi@ for better coverage. Sorry for cross-posting :/ ] > > > > >> --- RELENG_7_3/src/sys/dev/mpt/mpt_cam.c        2010-03-02 > >> 15:38:13.000000000 +0300 > >> +++ RELENG_7_3.ours/src/sys/dev/mpt/mpt_cam.c   2010-04-21 > >> 19:31:00.000000000 +0400 > >> @@ -2564,6 +2564,12 @@ mpt_cam_event(struct mpt_softc *mpt, req > >>                CAMLOCK_2_MPTLOCK(mpt); > >>                break; > >>        } > >> +       case MPI_EVENT_IR_RESYNC_UPDATE: > >> +       { > >> +               uint8_t resync = (data0 >> 16) & 0xff; > >> +               mpt_prt(mpt, "IR resync update %d completed\n", resync); > >> +               break; > >> +       } > >>        case MPI_EVENT_EVENT_CHANGE: > >>        case MPI_EVENT_INTEGRATED_RAID: > >>        case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: > >> > >> Another way - just hide such event since mptutil displays rebuild > >> progress. > >> > >> > Could you maybe avoid defining a variable inside a nested scope for consistency with the majority of the existing cases and in order to not violate style(9) unnecessarily? Marius Index: mpt_cam.c =================================================================== --- mpt_cam.c (revision 207463) +++ mpt_cam.c (working copy) @@ -2575,6 +2575,10 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *re CAMLOCK_2_MPTLOCK(mpt); break; } + case MPI_EVENT_IR_RESYNC_UPDATE: + mpt_prt(mpt, "IR resync update %d completed\n", + (data0 >> 16) & 0xff); + break; case MPI_EVENT_EVENT_CHANGE: case MPI_EVENT_INTEGRATED_RAID: case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 16:28:28 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id DE8BF1065670; Sat, 1 May 2010 16:28:27 +0000 (UTC) (envelope-from pluknet@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id 3DB808FC0C; Sat, 1 May 2010 16:28:26 +0000 (UTC) Received: by bwz8 with SMTP id 8so685233bwz.3 for ; Sat, 01 May 2010 09:28:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=qx4/vhoEC09HpoZzOd3BtnuZR7b/q9ZxK41COB7a7r0=; b=pdzNgDCwg3DNDnHlCOVEDzgha16GZnE9WQlEIHUAp59ovNcqENlmvx5Kwf+buV8TKz 4vxXlLNKq+fNNiGUA6UsLLrneKK161KqBihZaT88CNG8kiHHofBUcLc9ITLyhcd4xu3R qHwWvWx4Huh+vHuoqqm5NTxczcJNUA81ahNhI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=D1EsmKKOMD9agbT6iLJF0qbEPZhJ6m+ppC03xhsxG/9RCl3m0ui1a30fREVuoYYb2D mzUOpYLrkEM6/8GXBZCBg+bH5Id+L6++ESutAnQQ8Kc456D5NAK4w6rl89M6oa1ObKET s3kxxbwhm9OdEiKQwpaYs/H7PIqXjStr4FPok= MIME-Version: 1.0 Received: by 10.204.5.87 with SMTP id 23mr8089586bku.206.1272731300363; Sat, 01 May 2010 09:28:20 -0700 (PDT) Received: by 10.204.79.3 with HTTP; Sat, 1 May 2010 09:28:20 -0700 (PDT) In-Reply-To: <20100501150331.GA74398@alchemy.franken.de> References: <4BDAE7BD.4000503@feral.com> <20100501150331.GA74398@alchemy.franken.de> Date: Sat, 1 May 2010 20:28:20 +0400 Message-ID: From: pluknet To: Marius Strobl Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Cc: freebsd-scsi , FreeBSD Current , Matthew Jacob Subject: Re: mpt(4) MPI_EVENT_IR_RESYNC_UPDATE 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: Sat, 01 May 2010 16:28:28 -0000 On 1 May 2010 19:03, Marius Strobl wrote: > On Fri, Apr 30, 2010 at 06:50:26PM +0400, pluknet wrote: >> On 30 April 2010 18:22, Matthew Jacob wrote: >> > pluknet wrote: >> > Seems good to me- why not trhow it freebsd-scsi? if nobody says no, I'= ll put >> > it in >> >> Err.. I thought that list is dedicated for cam related stuff. >> >> [cc'ing scsi@ for better coverage. Sorry for cross-posting :/ ] >> >> > >> >> --- RELENG_7_3/src/sys/dev/mpt/mpt_cam.c =A0 =A0 =A0 =A02010-03-02 >> >> 15:38:13.000000000 +0300 >> >> +++ RELENG_7_3.ours/src/sys/dev/mpt/mpt_cam.c =A0 2010-04-21 >> >> 19:31:00.000000000 +0400 >> >> @@ -2564,6 +2564,12 @@ mpt_cam_event(struct mpt_softc *mpt, req >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CAMLOCK_2_MPTLOCK(mpt); >> >> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; >> >> =A0 =A0 =A0 =A0} >> >> + =A0 =A0 =A0 case MPI_EVENT_IR_RESYNC_UPDATE: >> >> + =A0 =A0 =A0 { >> >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 uint8_t resync =3D (data0 >> 16) & 0xff= ; >> >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 mpt_prt(mpt, "IR resync update %d compl= eted\n", resync); >> >> + =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; >> >> + =A0 =A0 =A0 } >> >> =A0 =A0 =A0 =A0case MPI_EVENT_EVENT_CHANGE: >> >> =A0 =A0 =A0 =A0case MPI_EVENT_INTEGRATED_RAID: >> >> =A0 =A0 =A0 =A0case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: >> >> >> >> Another way - just hide such event since mptutil displays rebuild >> >> progress. >> >> >> >> >> > > Could you maybe avoid defining a variable inside a nested scope for > consistency with the majority of the existing cases and in order to > not violate style(9) unnecessarily? > > Marius > > Index: mpt_cam.c > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > --- mpt_cam.c =A0 (revision 207463) > +++ mpt_cam.c =A0 (working copy) > @@ -2575,6 +2575,10 @@ mpt_cam_event(struct mpt_softc *mpt, request_t *re > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0CAMLOCK_2_MPTLOCK(mpt); > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0break; > =A0 =A0 =A0 =A0} > + =A0 =A0 =A0 case MPI_EVENT_IR_RESYNC_UPDATE: > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 mpt_prt(mpt, "IR resync update %d completed= \n", > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 (data0 >> 16) & 0xff); > + =A0 =A0 =A0 =A0 =A0 =A0 =A0 break; > =A0 =A0 =A0 =A0case MPI_EVENT_EVENT_CHANGE: > =A0 =A0 =A0 =A0case MPI_EVENT_INTEGRATED_RAID: > =A0 =A0 =A0 =A0case MPI_EVENT_SAS_DEVICE_STATUS_CHANGE: > I'm fine with it, resync variable is not necessary there. Thanks for review. --=20 wbr, pluknet From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 16:40:38 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 5EF421065674 for ; Sat, 1 May 2010 16:40:38 +0000 (UTC) (envelope-from michael@fuckner.net) Received: from dedihh.fuckner.net (dedihh.fuckner.net [81.209.183.161]) by mx1.freebsd.org (Postfix) with ESMTP id 1F02A8FC16 for ; Sat, 1 May 2010 16:40:37 +0000 (UTC) Received: from dedihh.fuckner.net (localhost [127.0.0.1]) by dedihh.fuckner.net (Postfix) with ESMTP id 9BAF91588B for ; Sat, 1 May 2010 18:24:33 +0200 (CEST) X-Virus-Scanned: amavisd-new at fuckner.net Received: from dedihh.fuckner.net ([127.0.0.1]) by dedihh.fuckner.net (dedihh.fuckner.net [127.0.0.1]) (amavisd-new, port 10024) with SMTP id OcaOlDn8ZZXy for ; Sat, 1 May 2010 18:24:25 +0200 (CEST) Received: from c64.rebootking.de (e176139203.adsl.alicedsl.de [85.176.139.203]) by dedihh.fuckner.net (Postfix) with ESMTPA id C9B5C1587D for ; Sat, 1 May 2010 18:24:25 +0200 (CEST) Message-ID: <4BDC5573.9030905@fuckner.net> Date: Sat, 01 May 2010 18:23:15 +0200 From: Michael Fuckner User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100318 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Support for SAS-Tape Drives? 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: Sat, 01 May 2010 16:40:38 -0000 Hi, I am not exactly sure about the documentation: are LTO-Tapes with SAS-interface supported by FreeBSD8? I am thinking about LTO-4 on an LSI-SAS-HBA. Regards, Michael! From owner-freebsd-scsi@FreeBSD.ORG Sat May 1 16:44:55 2010 Return-Path: Delivered-To: freebsd-scsi@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A6A7106566C for ; Sat, 1 May 2010 16:44:55 +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 D6D258FC12 for ; Sat, 1 May 2010 16:44:54 +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 o41Gis2v042638 for ; Sat, 1 May 2010 09:44:54 -0700 (PDT) (envelope-from mj@feral.com) Message-ID: <4BDC5AAB.3060607@feral.com> Date: Sat, 01 May 2010 09:45:31 -0700 From: Matthew Jacob User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: freebsd-scsi@freebsd.org References: <4BDC5573.9030905@fuckner.net> In-Reply-To: <4BDC5573.9030905@fuckner.net> 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]); Sat, 01 May 2010 09:44:54 -0700 (PDT) Subject: Re: Support for SAS-Tape Drives? 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: Sat, 01 May 2010 16:44:55 -0000 On 5/1/2010 9:23 AM, Michael Fuckner wrote: > Hi, > > I am not exactly sure about the documentation: are LTO-Tapes with > SAS-interface supported by FreeBSD8? > > I am thinking about LTO-4 on an LSI-SAS-HBA. I'm not sure it's ever been tried.