From owner-freebsd-scsi Wed Apr 10 12:31:49 2002 Delivered-To: freebsd-scsi@freebsd.org Received: from van-laarhoven.org (ap-z-5ab8.adsl.wanadoo.nl [212.129.218.184]) by hub.freebsd.org (Postfix) with SMTP id A1B8437B420 for ; Wed, 10 Apr 2002 12:31:13 -0700 (PDT) Received: (qmail 28764 invoked from network); 10 Apr 2002 19:31:12 -0000 Received: from heather.van-laarhoven.org (10.66.0.2) by uitsmijter.van-laarhoven.org with SMTP; 10 Apr 2002 19:31:12 -0000 Date: Wed, 10 Apr 2002 21:31:12 +0200 (CEST) From: Nick Hibma To: Tomas Pluskal Cc: "freebsd-scsi@freebsd.org" , "freebsd-hardware@freebsd.org" Subject: Re: umass0: BBB reset failed, TIMEOUT In-Reply-To: <20020405104357.K305-100000@s096-n062.tele2.cz> Message-ID: <20020410212511.K27956-100000@heather.van-laarhoven.org> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-scsi@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org For the record: The problem is the fact that the device gets confused when a command is sent to it on the control pipe while at the same time it is working on a BBB command that came in on the bulk pipe earlier. This happens during attach. The solution is to postpone the inquiry command that CAM sends until attach has finished completely (including sending the attach event to userland (it requests string descriptors from the device after umass_attach has finished)). The change I committed earlier today doesn't work as CAM does XPT actions synchroneously. I expected them to be asynchroneous, especially when a SCSI_BUSY error is returned. Nevertheless that change is a correct one as we do not want anything to happen until we are completely finished with initialising the device. Tomas is testing changes I proposed at the moment. Nick On Fri, 5 Apr 2002, Tomas Pluskal wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > > Hello, > > I am trying to connect a nikon 775 camera via USB. When I plug it in > BEFORE I boot the kernel, it works ok (it detects da0 and I can mount it). > When I plug it when system is already up, it doesn't work. It detects > umass0 (umass0: NIKON NIKON DSC E775, rev 1.10/1.00, addr 2), but it > doesn't attach it to da0 and in dmesg I see: > umass0: BBB reset failed, TIMEOUT > umass0: BBB bulk-in clear stall failed, IOERROR > umass0: BBB bulk-out clear stall failed, IOERROR > about 10 times... > > I have all drivers compiled in kernel (no modules), > > I've been searching throught lists, but I found only similar problem > reports (with different USB devices), but no solution. Is there any ? > > Thanks > > Tomas Pluskal > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (FreeBSD) > Comment: For info see http://www.gnupg.org > > iD8DBQE8rWWkqlO9Q2aZisoRAr1tAJ9DyAw2eaYP+7390ALLSZpW062DEACfTIwf > GLZu0RxwOFE5KcELlKlLelg= > =3hJh > -----END PGP SIGNATURE----- > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hardware" in the body of the message > -- n_hibma@van-laarhoven.org http://www.van-laarhoven.org/ n_hibma@FreeBSD.org http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-scsi" in the body of the message