From owner-freebsd-current Thu Dec 19 9:26:29 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id AFC2B37B401 for ; Thu, 19 Dec 2002 09:26:27 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2498143EB2 for ; Thu, 19 Dec 2002 09:26:26 -0800 (PST) (envelope-from ticso@cicely8.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) by srv1.cosmo-project.de (8.12.5/8.12.5) with ESMTP id gBJHQFqd092081 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Thu, 19 Dec 2002 18:26:16 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.1.10]) by cicely5.cicely.de (8.12.6/8.12.6) with ESMTP id gBJHQEfQ098624 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO); Thu, 19 Dec 2002 18:26:14 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (localhost [127.0.0.1]) by cicely8.cicely.de (8.12.6/8.12.6) with ESMTP id gBJHQDgV048756; Thu, 19 Dec 2002 18:26:13 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: (from ticso@localhost) by cicely8.cicely.de (8.12.6/8.12.6/Submit) id gBJHQDUG048755; Thu, 19 Dec 2002 18:26:13 +0100 (CET) Date: Thu, 19 Dec 2002 18:26:12 +0100 From: Bernd Walter To: Matthew Dillon Cc: Bernd Walter , Frode Nordahl , freebsd-current@FreeBSD.ORG Subject: Re: UMASS USB bug? (getting the Sony disk-on-key device working). Message-ID: <20021219172612.GI29286@cicely8.cicely.de> Reply-To: ticso@cicely.de References: <200212191032.gBJAWNj0039522@apollo.backplane.com> <1040296107.2012.23.camel@ws24.ns5.powertech.no> <20021219153805.GG29286@cicely8.cicely.de> <200212191706.gBJH6Jfk041140@apollo.backplane.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200212191706.gBJH6Jfk041140@apollo.backplane.com> X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 User-Agent: Mutt/1.5.1i Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, Dec 19, 2002 at 09:06:19AM -0800, Matthew Dillon wrote: > > : > :On Thu, Dec 19, 2002 at 12:08:27PM +0100, Frode Nordahl wrote: > :> Hey, Matt > :> > :> While you're at it, could you have a look at PR kern/46176 ? =) > :> > :> At least would you tell me if you have the same problem with your > :> device(s) > : > :The umass cam interaction is questionable. > :I've seen lots of problems caused by this. > :As I have problems with my device caused by this too I already placed it on > :my todo list. > > The panic described in 46176 has happened to me on -current. On > -stable I have managed (very easily) to get the CAM layer vs UMASS > layer into a confused state where the CAM layer thinks it is still > attached but the UMASS layer thinks it has detached / cleaned everything > out. In both cases it appears that memory is being freed by one side > which is still being used by the other side but I haven't tracked down > the exact cause. The umass driver uses a single sim for all umass devices. There are a lot of workarounds and bugs introduced because of this. Also there is a small static limit (IIRC 3) in the number of instances supported. You could see a difference in behavour, if you have another umass device connected. I wouldn't be surprised if this problem belongs here too. My guess would be because umass disconnects the sim on the last instance but tells cam to rescan the pseudo bus. My intention is to rewrite the parts of umass to use multiple sims so LUNs and many instances actually work and hopefully a lot of other problems like this can be solved too. BTW: I've seen such disconnect/reconnect problems with -stable too, but without a panic. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message