From owner-freebsd-usb@FreeBSD.ORG Wed Jul 18 03:30:02 2007 Return-Path: X-Original-To: freebsd-usb@hub.freebsd.org Delivered-To: freebsd-usb@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 54DE816A494 for ; Wed, 18 Jul 2007 03:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id 3416413C4A8 for ; Wed, 18 Jul 2007 03:30:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.14.1/8.14.1) with ESMTP id l6I3U2xo026024 for ; Wed, 18 Jul 2007 03:30:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.1/8.14.1/Submit) id l6I3U2xw026023; Wed, 18 Jul 2007 03:30:02 GMT (envelope-from gnats) Resent-Date: Wed, 18 Jul 2007 03:30:02 GMT Resent-Message-Id: <200707180330.l6I3U2xw026023@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-usb@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "Mikhail T." Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 7B4CC16A409 for ; Wed, 18 Jul 2007 03:23:44 +0000 (UTC) (envelope-from mi@aldan.algebra.com) Received: from aldan.algebra.com (aldan.algebra.com [216.254.65.224]) by mx1.freebsd.org (Postfix) with ESMTP id 146C013C4AC for ; Wed, 18 Jul 2007 03:23:43 +0000 (UTC) (envelope-from mi@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 l6I3NheV001098 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 17 Jul 2007 23:23:43 -0400 (EDT) (envelope-from mi@aldan.algebra.com) Received: (from mi@localhost) by aldan.algebra.com (8.14.1/8.14.1/Submit) id l6I3NgNb001097; Tue, 17 Jul 2007 23:23:42 -0400 (EDT) (envelope-from mi) Message-Id: <200707180323.l6I3NgNb001097@aldan.algebra.com> Date: Tue, 17 Jul 2007 23:23:42 -0400 (EDT) From: "Mikhail T." To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Cc: Subject: usb/114682: USB media-card reader unusable X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Jul 2007 03:30:02 -0000 >Number: 114682 >Category: usb >Synopsis: USB media-card reader unusable >Confidential: no >Severity: serious >Priority: high >Responsible: freebsd-usb >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Wed Jul 18 03:30:01 GMT 2007 >Closed-Date: >Last-Modified: >Originator: Mikhail T. >Release: FreeBSD 6.2-STABLE amd64 >Organization: Virtual Estates, Inc. >Environment: System: FreeBSD aldan.algebra.com 6.2-STABLE FreeBSD 6.2-STABLE #2: Tue Jul 17 23:00:12 EDT 2007 root@aldan.algebra.com:/meow/obj/var/src/sys/SILVER-SMP amd64 >Description: I'm using a generic multi-standard media-card reader. Its several slots are identified at boot-time as: da2 at umass-sim0 bus 0 target 0 lun 0 da2: Removable Direct Access SCSI-0 device da2: 40.000MB/s transfers da2: Attempt to query device size failed: NOT READY, Medium not present da3 at umass-sim0 bus 0 target 0 lun 1 da3: Removable Direct Access SCSI-0 device da3: 40.000MB/s transfers da3: Attempt to query device size failed: NOT READY, Medium not present da4 at umass-sim0 bus 0 target 0 lun 2 da4: Removable Direct Access SCSI-0 device da4: 40.000MB/s transfers da4: Attempt to query device size failed: NOT READY, Medium not present da5 at umass-sim0 bus 0 target 0 lun 3 da5: Removable Direct Access SCSI-0 device da5: 40.000MB/s transfers da5: Attempt to query device size failed: NOT READY, Medium not present Fair enough -- at boot time the slots are all empty. However, when I then insert a card (SD) into the proper slot and try to mount /dev/da2s1 -- or even to `fdisk da2', the command hangs for A LONG time... Pressing Ctrl-T reveals, that the hang is inside `cbwait'. During this time, a number of errors are logged on the console: umass0: BBB reset failed, TIMEOUT umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR umass0: BBB reset failed, IOERROR umass0: BBB bulk-in clear stall failed, IOERROR umass0: BBB bulk-out clear stall failed, IOERROR And the command fails eventually with "can't open device /dev/da2: Input/output error". The only way to get to the data, apparently, is to boot with the card inserted -- unacceptable in most cases :( I first observed this with the kernel from June 7, 2007. But I was using an EXTERNAL reader before then... The problem is still here with 6.2-stable from July 17th. >How-To-Repeat: >Fix: Use an EXTERNAL card-reader, and connect it with the card already inserted. This _may_ work... >Release-Note: >Audit-Trail: >Unformatted: