Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Mar 2008 17:28:04 GMT
From:      "Matt D. Harris" <mdh@solitox.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/122119: umass device causes creation of daX but not daXsX entries; CAM error
Message-ID:  <200803261728.m2QHS4hH004713@www.freebsd.org>
Resent-Message-ID: <200803261730.m2QHU0o9011092@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         122119
>Category:       misc
>Synopsis:       umass device causes creation of daX but not daXsX entries; CAM error
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 26 17:30:00 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Matt D. Harris
>Release:        7.0-STABLE
>Organization:
Solitox Networks
>Environment:
FreeBSD vesper.int.sykotik.org 7.0-STABLE FreeBSD 7.0-STABLE #0: Sat Mar 22 00:59:20 EDT 2008     root@vesper.int.sykotik.org:/usr/src/sys/i386/compile/VESPER  i386

>Description:
I believe this problem appears similar to, but not the same as those described in usb/95037 and kern/114667 which are both open PR's.  Those PR's are both on 6.1 however, and this occurs on 7.0-STABLE.  This umass device worked as expected with FreeBSD 6.2 (which is why I do not believe the two above referenced PR's are the same problem), however upon moving to 7.0, it no longer works.  When plugged in, daX is created, however the mountable slice (daXs1) is not.  Under FreeBSD 6.2, daXs1 was created and was mountable/behaved normally.  The USB device in question is a Motorola SLVR L7c phone with a 1gig MicroSD card installed.  The MicroSD card is what is presented by the phone to the host system as a umass device, and is formatted msdosfs by the phone.  The phone is visible and mounts just fine on my wife's Linux workstation, as well.  Other umass devices work fine for me under FreeBSD 7.0 including a Seagate USB external hard drive and some random cheapo flash storage device
 s.  


Errors from dmesg:

umass1: <Qualcomm, Incorporated USB MMC Storage, class 0/0, rev 1.10/0.00, addr 2> on uhub3
da1 at umass-sim1 bus 1 target 0 lun 0
da1: <Qualcomm MMC Storage 2.31> Removable Direct Access SCSI-2 device
da1: 1.000MB/s transfers
da1: 947MB (1939457 512 byte sectors: 64H 32S/T 947C)
(da1:umass-sim1:1:0:0): READ(10). CDB: 28 0 0 1d 98 0 0 0 1 0
(da1:umass-sim1:1:0:0): CAM Status: SCSI Status Error
(da1:umass-sim1:1:0:0): SCSI Status: Check Condition
(da1:umass-sim1:1:0:0): NOT READY asc:3a,0
(da1:umass-sim1:1:0:0): Medium not present field replaceable unit: 20
(da1:umass-sim1:1:0:0): Unretryable error
(da1:umass-sim1:1:0:0): Invalidating pack
(da1:umass-sim1:1:0:0): SYNCHRONIZE CACHE. CDB: 35 0 0 0 0 0 0 0 0 0
(da1:umass-sim1:1:0:0): NOT READY asc:3a,0
(da1:umass-sim1:1:0:0): Medium not present field replaceable unit: 20
umass1: at uhub3 port 2 (addr 2) disconnected

(da1:umass-sim1:1:0:0): lost device
(da1:umass-sim1:1:0:0): removing device entry
umass1: detached


(root@vesper) [/usr/ports]: usbdevs -v
<snipped unrelated output>
Controller /dev/usb5:
addr 1: high speed, self powered, config 1, EHCI root hub(0x0000), AcerLabs(0x0000), rev 1.00
 port 1 powered
 port 2 powered
 port 3 powered
 port 4 powered
 port 5 powered
 port 6 addr 2: high speed, self powered, config 1, product 0x0201(0x0201), vendor 0x050d(0x050d), rev 0.00
  port 4 addr 3: full speed, power 100 mA, config 1, USB MMC Storage(0x1000), Qualcomm, Incorporated(0x05c6), rev 0.00


(root@vesper) [/usr/ports]: camcontrol devlist -v
scbus0 on umass-sim0 bus 0:
<Qualcomm MMC Storage 2.31>        at scbus0 target 0 lun 0 (pass0,da0)
scbus1 on sbp0 bus 0:
<  >                               at scbus1 target -1 lun -1 ()
scbus2 on ata0 bus 0:
<SONY DVD-ROM DDU1615 GYS4>        at scbus2 target 0 lun 0 (cd0,pass1)
<  >                               at scbus2 target -1 lun -1 ()
scbus3 on ata1 bus 0:
<SONY DVD RW DW-G120A MYR5>        at scbus3 target 0 lun 0 (cd1,pass2)
<  >                               at scbus3 target -1 lun -1 ()
scbus4 on ata2 bus 0:
<  >                               at scbus4 target -1 lun -1 ()
scbus5 on ata3 bus 0:
<  >                               at scbus5 target -1 lun -1 ()
scbus6 on ata4 bus 0:
<  >                               at scbus6 target -1 lun -1 ()
scbus7 on ata5 bus 0:
<  >                               at scbus7 target -1 lun -1 ()
scbus-1 on xpt0 bus 0:
<  >                               at scbus-1 target -1 lun -1 (xpt0)


(root@vesper) [/usr/ports]: devinfo -v
<snipped unrelated output>
                    umass0 pnpinfo vendor=0x05c6 product=0x1000 devclass=0x00 devsubclass=0x00 release=0x0000 sernum="000000000002" intclass=0x08 intsubclass=0x06 at port=3 interface=0


The other referenced PR's don't contain the "field replaceable unit" output line in their information.  Whether this is unique to my issue or unique/new beyond 6.1, I am unsure.  

>How-To-Repeat:
The errors posted above appear upon connection of the phone via USB to the host system.  

>Fix:


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200803261728.m2QHS4hH004713>