Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 14 Mar 2010 16:39:20 +0200
From:      Andrey Kosachenko <andrey.kosachenko@gmail.com>
To:        freebsd-usb@freebsd.org
Subject:   [current] could not attach n900 (mass storage mode) at high speed
Message-ID:  <4B9CF518.1020706@gmail.com>

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

There is a laptop carrying FreeBSD (9.0-current, built from fresh sources).
Device (Nokia N900) is attached via USB interface. However the speed of 
data transfer is too low (~1.0 MB/s). I tried to attached it to Linux 
box and data was transferred at full speed (~ 25 MB/s)

Some relevant info (please, let me know if it's not sufficient):

uhci/ehci are compiled in.

# uname -a
FreeBSD beastie.lan 9.0-CURRENT FreeBSD 9.0-CURRENT #0: Sun Mar 14 
12:55:29 EET 2010 
root@beastie.lan:/usr/obj/usr/src/sys/BEASTIE-SMP-ULE-20100314  amd64

# dmesg
... <skipped>
ugen3.2: <Nokia> at usbus3
umass0: <Mass Storage> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x0001
umass0:1:0:-1: Attached to scbus1
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power 
on, reset, or bus device reset occurred)
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: NOT READY asc:3a,0 (Medium not 
present)
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0: <Nokia N900 031> Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: Attempt to query device size failed: NOT READY, Medium not present
(probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0
(probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:1): SCSI status: Check Condition
(probe0:umass-sim0:0:0:1): SCSI sense: UNIT ATTENTION asc:29,0 (Power 
on, reset, or bus device reset occurred)
(probe0:umass-sim0:0:0:1): TEST UNIT READY. CDB: 0 20 0 0 0 0
(probe0:umass-sim0:0:0:1): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:1): SCSI status: Check Condition
(probe0:umass-sim0:0:0:1): SCSI sense: NOT READY asc:3a,0 (Medium not 
present)
da1 at umass-sim0 bus 0 scbus1 target 0 lun 1
da1: <Nokia N900 031> Removable Direct Access SCSI-2 device
da1: 1.000MB/s transfers
da1: Attempt to query device size failed: NOT READY, Medium not present

# usbconfig
ugen0.1: <UHCI root HUB Intel> at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen1.1: <UHCI root HUB Intel> at usbus1, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen2.1: <EHCI root HUB Intel> at usbus2, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON
ugen3.1: <UHCI root HUB Intel> at usbus3, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen4.1: <UHCI root HUB Intel> at usbus4, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen5.1: <UHCI root HUB Intel> at usbus5, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen6.1: <EHCI root HUB Intel> at usbus6, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON
ugen4.2: <Navigator 335 Genius> at usbus4, cfg=0 md=HOST spd=LOW 
(1.5Mbps) pwr=ON
ugen3.2: <N900 (Storage Mode) Nokia> at usbus3, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON


All available USB interfaces were tried: no luck. Also looked at quirks 
mechanism, but found nothing relevant to the issue (or, I guess, didn't 
recognize). For instance, I tried to remove UQ_MSC_FLOPPY_SPEED, nothing 
changed. Though when the quirk UQ_MSC_NO_TEST_UNIT_READY was removed, 
seems storage size was detected properly, i.e:

umass0: <Mass Storage> on usbus3
umass0:  SCSI over Bulk-Only; quirks = 0x0001
umass0:1:0:-1: Attached to scbus1
(probe0:umass-sim0:0:0:0): TEST UNIT READY. CDB: 0 0 0 0 0 0
(probe0:umass-sim0:0:0:0): CAM status: SCSI Status Error
(probe0:umass-sim0:0:0:0): SCSI status: Check Condition
(probe0:umass-sim0:0:0:0): SCSI sense: UNIT ATTENTION asc:29,0 (Power 
on, reset, or bus device reset occurred)
da0 at umass-sim0 bus 0 scbus1 target 0 lun 0
da0: <Nokia N900 031> Removable Direct Access SCSI-2 device
da0: 1.000MB/s transfers
da0: 27652MB (56631296 512 byte sectors: 255H 63S/T 3525C)

but transfer speed remained the same.

Could you, please, suggest what should I look at in order to get it 
working properly.

Thanks in advance!

--
WBR,
Andrey Kosachenko



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