From owner-freebsd-current@FreeBSD.ORG Tue Jan 24 17:40:40 2012 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE0CD1065677 for ; Tue, 24 Jan 2012 17:40:40 +0000 (UTC) (envelope-from ken@kdm.org) Received: from nargothrond.kdm.org (nargothrond.kdm.org [70.56.43.81]) by mx1.freebsd.org (Postfix) with ESMTP id 8AE7B8FC0C for ; Tue, 24 Jan 2012 17:40:40 +0000 (UTC) Received: from nargothrond.kdm.org (localhost [127.0.0.1]) by nargothrond.kdm.org (8.14.2/8.14.2) with ESMTP id q0OHedxZ087982; Tue, 24 Jan 2012 10:40:39 -0700 (MST) (envelope-from ken@nargothrond.kdm.org) Received: (from ken@localhost) by nargothrond.kdm.org (8.14.2/8.14.2/Submit) id q0OHed2O087981; Tue, 24 Jan 2012 10:40:39 -0700 (MST) (envelope-from ken) Date: Tue, 24 Jan 2012 10:40:39 -0700 From: "Kenneth D. Merry" To: Richard Todd Message-ID: <20120124174039.GA87021@nargothrond.kdm.org> References: <20120123025238.GA17816@ichotolot.servalan.com> <20120123181605.GA52248@nargothrond.kdm.org> <20120124060356.GA4989@ichotolot.servalan.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120124060356.GA4989@ichotolot.servalan.com> User-Agent: Mutt/1.4.2i Cc: freebsd-current@freebsd.org Subject: Re: Firewire disk/tape access stopped working after recent CAM commit X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 24 Jan 2012 17:40:40 -0000 On Tue, Jan 24, 2012 at 00:03:56 -0600, Richard Todd wrote: > On Mon, Jan 23, 2012 at 11:16:05AM -0700, Kenneth D. Merry wrote: > > If you can, please try the attached patch and see if it has any impact on > > the problem. There is a bug in that commit in that we shouldn't be > > invalidating all LUNs on a target when we get a status of > > CAM_DEV_NOT_THERE. > > Just applied the patch, built new kernel, and rebooted, and all the FW > drivees are showing up now. Thanks! Great! > > It may be that we need to do a more thorough audit of how various SIM > > drivers are using the CAM_DEV_NOT_THERE status. > > So I take it the layers for the different hardware (SCSI, FW, USB, > ATA/AHCI) are handling this status differently, so that's why this bug only > showed up on the Firewire buses but not on ATA/AHCI, USB, or (on my other > machine) SCSI buses? Yes. Some drivers report a selection timeout, some report that the device isn't there, and they may be using those status values in different situations. Ken -- Kenneth Merry ken@FreeBSD.ORG