From owner-freebsd-stable@FreeBSD.ORG Sat Dec 22 05:11:33 2007 Return-Path: Delivered-To: stable@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id CF08916A419; Sat, 22 Dec 2007 05:11:33 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 4E1D313C45B; Sat, 22 Dec 2007 05:11:33 +0000 (UTC) (envelope-from mi+kde@aldan.algebra.com) Received: from aldan.algebra.com (localhost [127.0.0.1]) by aldan.algebra.com (8.14.1/8.14.1) with ESMTP id lBM4fiJ4064588 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Fri, 21 Dec 2007 23:41:44 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) Received: from localhost (localhost [[UNIX: localhost]]) by aldan.algebra.com (8.14.1/8.14.1/Submit) id lBM4fiT1064587; Fri, 21 Dec 2007 23:41:44 -0500 (EST) (envelope-from mi+kde@aldan.algebra.com) From: Mikhail Teterin To: stable@FreeBSD.org Date: Fri, 21 Dec 2007 23:41:43 -0500 User-Agent: KMail/1.9.7 X-Face: %UW#n0|w>ydeGt/b@1-.UFP=K^~-:0f#O:D7whJ5G_<5143Bb3kOIs9XpX+"V+~$adGP:J|SLieM31VIhqXeLBli" Cc: freebsd-usb@FreeBSD.org Subject: usb/umass, devfs: this sucks X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 22 Dec 2007 05:11:33 -0000 Another attempt to use USB-storage with FreeBSD, another moment of hair-pulling frustration. I attach the card-reader with the media card already inserted (detection of card-insertion has not worked in a long time, if ever). The "disk" appears: umass1: Genesys USB Reader, rev 2.00/91.38, addr 3 da6 at umass-sim1 bus 1 target 0 lun 0 da6: Removable Direct Access SCSI-0 device da6: 40.000MB/s transfers da6: 1938MB (3970048 512 byte sectors: 255H 63S/T 247C) (da6:umass-sim1:1:0:0): AutoSense Failed But the "slices" (/dev/da6s1, etc.) don't appear: http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/76461 In the past, trying to mount, or otherwise read the da6 would result in the slices appearing -- an awful wart, when it works. So I try it, but it does not work: root@aldan:/home/mi (116) mount -tmsdosfs /dev/da6 /mnt ... hang ... Pressing Ctrl-T: load: 0.58 cmd: mount_msdosfs 64452 [GEOM topology] 0.00u 0.00s 0% 804k ... load: 0.47 cmd: mount_msdosfs 64452 [GEOM topology] 0.00u 0.00s 0% 804k It still hangs, and now other things hang too. top, for example, hangs on start-up: mi@aldan:~ (1084) top ... hang ... Pressing Ctrl-T: load: 0.57 cmd: top 64480 [devfs] 0.00u 0.00s 0% 1652k load: 0.57 cmd: top 64480 [devfs] 0.00u 0.00s 0% 1652k load: 0.57 cmd: top 64480 [devfs] 0.00u 0.00s 0% 1652k load: 0.57 cmd: top 64480 [devfs] 0.00u 0.00s 0% 1652k No new window can be opened either -- presumably due to devfs hanging. I suspect, that anything attempting to use even the /dev/null is hanging now. So, not only the USB itself is broken, our wonderful devfs is rather creaky too -- nothing should be in an uninterruptible state like this for more than a millisecond. 25 minutes later the mount finally gave up: umass1: BBB reset failed, TIMEOUT umass1: BBB bulk-in clear stall failed, TIMEOUT umass1: BBB bulk-out clear stall failed, TIMEOUT mount_msdosfs: /dev/da6: Input/output error Things are back to "normal" again, but the media card is still inaccessible. I'll try to work with it using mtools -- I had some success in the pass accessing the FAT-filesystem on the media cards using mcopy, mdir, etc. I'm using 6.3-PRERELEASE as of Dec 6th, but a search for umass-related bugs http://www.freebsd.org/cgi/query-pr-summary.cgi?text=umass reveals plenty of really old problems, which don't even have a single follow-up from FreeBSD-developers. Like: http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/95037 http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/95173 http://www.freebsd.org/cgi/query-pr.cgi?pr=usb/107848 Looks like USB is unmaintained and getting worse. Are we really shipping this as "the most recent stable release"? -mi