From owner-freebsd-arm@FreeBSD.ORG Tue Aug 7 14:45:35 2007 Return-Path: Delivered-To: freebsd-arm@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id DA18F16A417 for ; Tue, 7 Aug 2007 14:45:35 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from mx.bulinfo.net (mx.bulinfo.net [193.194.156.1]) by mx1.freebsd.org (Postfix) with ESMTP id 7E21313C467 for ; Tue, 7 Aug 2007 14:45:35 +0000 (UTC) (envelope-from krassi@bulinfo.net) Received: from localhost (localhost [127.0.0.1]) by mx.bulinfo.net (Postfix) with ESMTP id 6C8941E395; Tue, 7 Aug 2007 17:45:33 +0300 (EEST) Received: from mx.bulinfo.net ([127.0.0.1]) by localhost (mx.bulinfo.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 05967-10; Tue, 7 Aug 2007 17:45:32 +0300 (EEST) Received: from [192.168.2.188] (pythia.bulinfo.net [212.72.195.5]) by mx.bulinfo.net (Postfix) with ESMTP id 769091E38F; Tue, 7 Aug 2007 17:45:32 +0300 (EEST) Message-ID: <46B8858B.3050401@bulinfo.net> Date: Tue, 07 Aug 2007 17:45:31 +0300 From: Krassimir Slavchev User-Agent: Thunderbird 2.0.0.5 (X11/20070724) MIME-Version: 1.0 To: "M. Warner Losh" References: <46B85F61.1050008@bulinfo.net> <20070807130429.GB41893@cicely12.cicely.de> <46B87129.1060800@bulinfo.net> <20070807.081427.84362992.imp@bsdimp.com> In-Reply-To: <20070807.081427.84362992.imp@bsdimp.com> X-Enigmail-Version: 0.95.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at mx.bulinfo.net Cc: freebsd-arm@freebsd.org, ticso@cicely.de Subject: Re: Kernel panic on usb disconnect? X-BeenThere: freebsd-arm@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting FreeBSD to the StrongARM Processor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 Aug 2007 14:45:35 -0000 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 M. Warner Losh wrote: > In message: <46B87129.1060800@bulinfo.net> > Krassimir Slavchev writes: > : -----BEGIN PGP SIGNED MESSAGE----- > : Hash: SHA1 > : > : Bernd Walter wrote: > : > On Tue, Aug 07, 2007 at 03:02:41PM +0300, Krassimir Slavchev wrote: > : >> -----BEGIN PGP SIGNED MESSAGE----- > : >> Hash: SHA1 > : >> > : >> This is on at91rm9200 with latest -current > : >> > : >> On connect: > : >> > : >> umass0: on uhub0 > : >> umass0: SCSI over Bulk-Only; quirks = 0x0000 > : >> umass0:0:0:-1: Attached to scbus0 > : >> Expensive timeout(9) function: 0xc00357f0(0xc07e6c00) 0.002746582 s > : >> > : >> On disconnect: > : >> > : >> umass0: BBB reset failed, IOERROR > : >> umass0: at uhub0 port 1 (addr 2) disconnected > : > > : > This problem is not arm specific. > : > You have to unmount umass devices befor you can disconnect them. > : > > : > : Yes, I know, the device is not mounted. Unfortunately I can't reproduce > : this on i386. > > I've pulled usb tumbdrives on arm a few times and haven't seen this. > How do you recreate it? > > Warner > This happens only with one of my memory sticks. I am not sure what is wrong with it. It works under 6.2: umass0: Corsair Flash Voyager, rev 2.00/11.00, addr 2 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 40.000MB/s transfers da0: 967MB (1981440 512 byte sectors: 64H 32S/T 967C) umass0: at uhub3 port 2 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached Also, when the kernel boots the usb devices are not detected: uhub0: 2 ports with 2 removable, self powered usbd_get_config_desc: confidx=0, bad desc len=9 type=32 uhub_explore: usb_new_device failed, error=INVAL uhub0: device problem (INVAL), disabling port 1 I am not sure whether this is a hardware problem of my board or something wrong with the bootloader (may be something remains uninitialized). With another memory stick: umass0: on uhub0 umass0: SCSI over Bulk-Only; quirks = 0x0000 umass0:0:0:-1: Attached to scbus0 da0 at umass-sim0 bus 0 target 0 lun 0 da0: Removable Direct Access SCSI-0 device da0: 1.000MB/s transfers da0: 952MB (1950720 512 byte sectors: 64H 32S/T 952C) umass0: at uhub0 port 1 (addr 2) disconnected (da0:umass-sim0:0:0:0): lost device (da0:umass-sim0:0:0:0): removing device entry umass0: detached Now I can read the raw device but can't mount anything: mount -t msdosfs /dev/da0s1 /mnt/ mount_msdosfs: /dev/da0s1: : Operation not supported by device 'fsck -t msdosfs /dev/da0s1' always reports errors. It looks like communication error. Any ideas? -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGuIWLxJBWvpalMpkRAunQAJ0eNoUtv6j3UE/bYDA0s3fa2nEBnACgsS04 3km0HcIZFVAtjrMkWL5YyV0= =RCEb -----END PGP SIGNATURE-----