From owner-freebsd-scsi@FreeBSD.ORG Mon Feb 12 11:10:54 2007 Return-Path: X-Original-To: freebsd-scsi@FreeBSD.org 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 920D016A469 for ; Mon, 12 Feb 2007 11:10:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 807E613C481 for ; Mon, 12 Feb 2007 11:10:54 +0000 (UTC) (envelope-from owner-bugmaster@FreeBSD.org) Received: from freefall.freebsd.org (linimon@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l1CBAsAQ098831 for ; Mon, 12 Feb 2007 11:10:54 GMT (envelope-from owner-bugmaster@FreeBSD.org) Received: (from linimon@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l1CBApxP098821 for freebsd-scsi@FreeBSD.org; Mon, 12 Feb 2007 11:10:51 GMT (envelope-from owner-bugmaster@FreeBSD.org) Date: Mon, 12 Feb 2007 11:10:51 GMT Message-Id: <200702121110.l1CBApxP098821@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: linimon set sender to owner-bugmaster@FreeBSD.org using -f From: FreeBSD bugmaster To: freebsd-scsi@FreeBSD.org Cc: Subject: Current problem reports assigned to you X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 12 Feb 2007 11:10:54 -0000 Current FreeBSD problem reports Critical problems Serious problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/27059 scsi [sym] SCSI subsystem hangs under heavy load on (Server o kern/39388 scsi ncr/sym drivers fail with 53c810 and more than 256MB m o kern/40895 scsi wierd kernel / device driver bug o kern/52638 scsi [panic] SCSI U320 on SMP server won't run faster than s kern/57398 scsi [mly] Current fails to install on mly(4) based RAID di o kern/60598 scsi wire down of scsi devices conflicts with config o kern/60641 scsi [sym] Sporadic SCSI bus resets with 53C810 under load s kern/61165 scsi [panic] kernel page fault after calling cam_send_ccb o kern/74627 scsi [ahc] [hang] Adaptec 2940U2W Can't boot 5.3 o kern/81887 scsi [aac] Adaptec SCSI 2130S aac0: GetDeviceProbeInfo comm o kern/90282 scsi [sym] SCSI bus resets cause loss of ch device o kern/92798 scsi [ahc] SCSI problem with timeouts o kern/93128 scsi [sym] FreeBSD 6.1 BETA 1 has problems with Symbios/LSI o kern/94838 scsi Kernel panic while mounting SD card with lock switch o o kern/99954 scsi [ahc] reading from DVD failes on 6.x (regression) 15 problems total. Non-critical problems S Tracker Resp. Description -------------------------------------------------------------------------------- o kern/23314 scsi aic driver fails to detect Adaptec 1520B unless PnP is o kern/35234 scsi World access to /dev/pass? (for scanner) requires acce o kern/38828 scsi [feature request] DPT PM2012B/90 doesn't work o kern/44587 scsi dev/dpt/dpt.h is missing defines required for DPT_HAND o kern/76178 scsi [ahd] Problem with ahd and large SCSI Raid system o kern/96133 scsi [scsi] [patch] add scsi quirk for joyfly 128mb flash u o kern/103702 scsi [cam] [patch] ChipsBnk: Unsupported USB memory stick 7 problems total. From owner-freebsd-scsi@FreeBSD.ORG Thu Feb 15 23:33:18 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 1B42F16A409 for ; Thu, 15 Feb 2007 23:33:18 +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 F04A013C4A7 for ; Thu, 15 Feb 2007 23:33:17 +0000 (UTC) (envelope-from mj@feral.com) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id l1FMvfIO045851; Thu, 15 Feb 2007 14:57:49 -0800 (PST) (envelope-from mj@feral.com) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id l1FMvec8045848; Thu, 15 Feb 2007 14:57:40 -0800 (PST) (envelope-from mj@feral.com) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Thu, 15 Feb 2007 14:57:40 -0800 (PST) From: Matthew Jacob To: "Justin T. Gibbs" In-Reply-To: <45A9225D.4080907@scsiguy.com> Message-ID: <20070215145657.N45611@ns1.feral.com> References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org, mjacob@freebsd.org Subject: Re: CAM rescanner thread? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: Matthew Jacob List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 15 Feb 2007 23:33:18 -0000 Following up from this, belatedly, I see lots of good stuff, and: > With the discovery process moved to a > thread and some augmentation to XPT_SCAN_*, we should be good enough > for now. So, in principle a thread for rescanning seems appropriate to you? -matt From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 16 00:16:43 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 C8A2716A402; Fri, 16 Feb 2007 00:16:43 +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 8C48613C441; Fri, 16 Feb 2007 00:16:43 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l1G0GR7f020649; Thu, 15 Feb 2007 17:16:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45D4F7C8.7050903@samsco.org> Date: Thu, 15 Feb 2007 17:16:08 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: Matthew Jacob References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> <20070215145657.N45611@ns1.feral.com> In-Reply-To: <20070215145657.N45611@ns1.feral.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Thu, 15 Feb 2007 17:16:33 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org, mjacob@freebsd.org Subject: Re: CAM rescanner thread? 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, 16 Feb 2007 00:16:43 -0000 Matthew Jacob wrote: > > Following up from this, belatedly, I see lots of good stuff, and: > > >> With the discovery process moved to a >> thread and some augmentation to XPT_SCAN_*, we should be good enough >> for now. > > So, in principle a thread for rescanning seems appropriate to you? > > -matt > I've had various prototypes of this in the past. Scott From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 16 02:33:20 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 C230916A402 for ; Fri, 16 Feb 2007 02:33:20 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 8D03013C428 for ; Fri, 16 Feb 2007 02:33:20 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id l1G1uEVg057312; Thu, 15 Feb 2007 17:56:22 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id l1G1uDwV057309; Thu, 15 Feb 2007 17:56:14 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Thu, 15 Feb 2007 17:56:13 -0800 (PST) From: mjacob@freebsd.org To: Scott Long In-Reply-To: <45D4F7C8.7050903@samsco.org> Message-ID: <20070215175554.X56445@ns1.feral.com> References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> <20070215145657.N45611@ns1.feral.com> <45D4F7C8.7050903@samsco.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org Subject: Re: CAM rescanner thread? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 02:33:20 -0000 And you didn't check it in because....? On Thu, 15 Feb 2007, Scott Long wrote: > Matthew Jacob wrote: >> >> Following up from this, belatedly, I see lots of good stuff, and: >> >> >>> With the discovery process moved to a >>> thread and some augmentation to XPT_SCAN_*, we should be good enough >>> for now. >> >> So, in principle a thread for rescanning seems appropriate to you? >> >> -matt >> > > I've had various prototypes of this in the past. > > Scott > > From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 16 04:41:35 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 8675316A401; Fri, 16 Feb 2007 04:41:35 +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 489D413C481; Fri, 16 Feb 2007 04:41:35 +0000 (UTC) (envelope-from scottl@samsco.org) Received: from phobos.samsco.home (phobos.samsco.home [192.168.254.11]) (authenticated bits=0) by pooker.samsco.org (8.13.4/8.13.4) with ESMTP id l1G4fS3q021762; Thu, 15 Feb 2007 21:41:33 -0700 (MST) (envelope-from scottl@samsco.org) Message-ID: <45D535E4.60609@samsco.org> Date: Thu, 15 Feb 2007 21:41:08 -0700 From: Scott Long User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X; en-US; rv:1.8.1.2pre) Gecko/20070111 SeaMonkey/1.1 MIME-Version: 1.0 To: mjacob@freebsd.org References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> <20070215145657.N45611@ns1.feral.com> <45D4F7C8.7050903@samsco.org> <20070215175554.X56445@ns1.feral.com> In-Reply-To: <20070215175554.X56445@ns1.feral.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-2.0.2 (pooker.samsco.org [168.103.85.57]); Thu, 15 Feb 2007 21:41:34 -0700 (MST) X-Spam-Status: No, score=-1.4 required=3.8 tests=ALL_TRUSTED autolearn=failed version=3.1.1 X-Spam-Checker-Version: SpamAssassin 3.1.1 (2006-03-10) on pooker.samsco.org Cc: freebsd-scsi@freebsd.org Subject: Re: CAM rescanner thread? 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, 16 Feb 2007 04:41:35 -0000 The goal was to create sys/cam/scsi/scsi_probe.c and start divorcing the SCSI knowledge from the XPT. Having it be a thread was just a side effect. Unfortunately, I haven't been able to finish that work yet. It's getting closer, though. But seriously, I saw little specific benefit to it being a separate thread rather than part of the camisr. Scanning/probing doesn't block, so it's not like it's blocking the camisr from processing other I/O. It's just nice from a modularity standpoint. Scott mjacob@freebsd.org wrote: > > And you didn't check it in because....? > > > On Thu, 15 Feb 2007, Scott Long wrote: > >> Matthew Jacob wrote: >>> >>> Following up from this, belatedly, I see lots of good stuff, and: >>> >>> >>>> With the discovery process moved to a >>>> thread and some augmentation to XPT_SCAN_*, we should be good enough >>>> for now. >>> >>> So, in principle a thread for rescanning seems appropriate to you? >>> >>> -matt >>> >> >> I've had various prototypes of this in the past. >> >> Scott >> >> From owner-freebsd-scsi@FreeBSD.ORG Fri Feb 16 16:32:47 2007 Return-Path: X-Original-To: freebsd-scsi@freebsd.org 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 457A216A408; Fri, 16 Feb 2007 16:32:47 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (ns1.feral.com [192.67.166.1]) by mx1.freebsd.org (Postfix) with ESMTP id 19B6D13C4AC; Fri, 16 Feb 2007 16:32:46 +0000 (UTC) (envelope-from mjacob@freebsd.org) Received: from ns1.feral.com (localhost [127.0.0.1]) by ns1.feral.com (8.13.8/8.13.8) with ESMTP id l1GGWcq3017283; Fri, 16 Feb 2007 08:32:46 -0800 (PST) (envelope-from mjacob@freebsd.org) Received: from localhost (mjacob@localhost) by ns1.feral.com (8.13.8/8.13.8/Submit) with ESMTP id l1GGWcYd017280; Fri, 16 Feb 2007 08:32:38 -0800 (PST) (envelope-from mjacob@freebsd.org) X-Authentication-Warning: ns1.feral.com: mjacob owned process doing -bs Date: Fri, 16 Feb 2007 08:32:38 -0800 (PST) From: mjacob@freebsd.org To: Scott Long In-Reply-To: <45D535E4.60609@samsco.org> Message-ID: <20070216083124.Q17178@ns1.feral.com> References: <20070104225519.Q92958@ns1.feral.com> <459E8AE7.90104@samsco.org> <20070105093930.Y34456@ns1.feral.com> <459E97E6.4000603@samsco.org> <459E989C.2020602@samsco.org> <20070105103431.A34456@ns1.feral.com> <20070105104021.D34456@ns1.feral.com> <45A9225D.4080907@scsiguy.com> <20070215145657.N45611@ns1.feral.com> <45D4F7C8.7050903@samsco.org> <20070215175554.X56445@ns1.feral.com> <45D535E4.60609@samsco.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-scsi@freebsd.org, mjacob@freebsd.org Subject: Re: CAM rescanner thread? X-BeenThere: freebsd-scsi@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: mjacob@freebsd.org List-Id: SCSI subsystem List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Feb 2007 16:32:47 -0000 > The goal was to create sys/cam/scsi/scsi_probe.c and start divorcing the > SCSI knowledge from the XPT. Having it be a thread was just a side > effect. Unfortunately, I haven't been able to finish that work yet. > It's getting closer, though. But seriously, I saw little specific > benefit to it being a separate thread rather than part of the camisr. > Scanning/probing doesn't block, so it's not like it's blocking the > camisr from processing other I/O. It's just nice from a modularity > standpoint. You can do mallocs. It's true that scanning/probing doesn't block, but it really has to be started from process context. I see an advantage in it as a response to initiating a rescan from Fibre Channel events. It makes the multipath stuff work usefully. D'ya mind if I put it in as an interim?