From owner-freebsd-mobile@FreeBSD.ORG Mon Mar 28 13:28:51 2005 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8F1E216A4DD; Mon, 28 Mar 2005 13:28:51 +0000 (GMT) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04A9F43D1D; Mon, 28 Mar 2005 13:28:51 +0000 (GMT) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [10.1.1.7]) (authenticated bits=0)j2SDScsf094169 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Mon, 28 Mar 2005 15:28:40 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id j2SDS3VK087679 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Mon, 28 Mar 2005 15:28:03 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.11/8.12.11) with ESMTP id j2SDS2Mk027421; Mon, 28 Mar 2005 15:28:02 +0200 (CEST) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.11/8.12.11/Submit) id j2SDS2e1027420; Mon, 28 Mar 2005 15:28:02 +0200 (CEST) (envelope-from ticso) Date: Mon, 28 Mar 2005 15:28:02 +0200 From: Bernd Walter To: Vladimir Grebenschikov Message-ID: <20050328132801.GD14532@cicely12.cicely.de> References: <30956.1112011996@critter.freebsd.dk> <1112014711.1022.37.camel@localhost> <20050328130451.GB14532@cicely12.cicely.de> <1112015844.1022.44.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1112015844.1022.44.camel@localhost> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=no version=2.64 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on cicely12.cicely.de cc: "current@freebsd.org" cc: "Matthew N. Dodd" cc: freebsd-mobile@freebsd.org cc: Poul-Henning Kamp cc: Julian Elischer cc: ticso@cicely.de Subject: Re: Reattach/redetect allways connected umass device - is it possible ? X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: ticso@cicely.de List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Mar 2005 13:28:51 -0000 On Mon, Mar 28, 2005 at 05:17:24PM +0400, Vladimir Grebenschikov wrote: > ? ??, 28/03/2005 ? 15:04 +0200, Bernd Walter ?????: > > On Mon, Mar 28, 2005 at 04:58:31PM +0400, Vladimir Grebenschikov wrote: > > > ? ??, 28/03/2005 ? 14:13 +0200, Poul-Henning Kamp ?????: > > > > In message <20050328114633.GZ14532@cicely12.cicely.de>, Bernd Walter writes: > > > > > > > > >> camcontrol detach da0; camcontrol rescan all > > > > >> helps, but, it should be much better if it will be issued automatically. > > > > > > > > > >Yes - GEOM seems to ignore media change signals from drives. > > > > >I've added PHK to the recipient list - maybe he has an idea about this > > > > >problem. > > > > > > > > No, GEOM doesn't ignore any such thing, because as far as I know > > > > GEOM doesn't get any such thing to ignore in the first place. > > > > > > So, let's imagine following situation: > > > > > > We get SCSI BUS with removable da device. > > > device detected as da0 and not mounted. > > > Device disconnected from SCSI bus. > > > And finally, another device with different geometry connected with same > > > SCIS ID. > > > > This ist not a *media* exchange - this is a *device* and in > > this case even a scbus exchange. > > Ok, so my case is media exchange, not device exchange. No - it is a device exchange. GEOM only has problems with media exchange. A new device is no problem for GEOM. Your problem is very likely not GEOM related. > How it is supposed to work in this case ? You get a new device and all layers are freshly setup. That is get's the same device numers as the old is unrelated, it's still a new device after all. You should see why your disconnect doesn't work. Do you run recent RELENG_5 or -current code? Disconnect the device and "ps -axl | grep usb" - you will see the usb threads - each host controller has one of them. Normaly idle usb threads should wait in usbevt and usbtask should wait in usbtsk - see what it is in your case. -- B.Walter BWCT http://www.bwct.de bernd@bwct.de info@bwct.de