From owner-freebsd-usb@FreeBSD.ORG Sun Mar 14 15:12:00 2010 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BE59C106566C for ; Sun, 14 Mar 2010 15:12:00 +0000 (UTC) (envelope-from andrey.kosachenko@gmail.com) Received: from mail-fx0-f209.google.com (mail-fx0-f209.google.com [209.85.220.209]) by mx1.freebsd.org (Postfix) with ESMTP id 514848FC13 for ; Sun, 14 Mar 2010 15:11:59 +0000 (UTC) Received: by fxm1 with SMTP id 1so1931863fxm.13 for ; Sun, 14 Mar 2010 08:11:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=rZhKglEjdn6ntRyjztGKImbHen2By5AOkxjVHhk0K4Q=; b=oGt1BWrNLqzM24imxNnl1dQALvfNMYsZMcjkn5vE7OLT5Y6CzB+SHwdhLRljxee4zL vBsYolEmePlZTLL3GMmKxXwUTslsP4cxZw2Q1gLqQJep+sL9ZivgcbXykWsSOAzOxa9+ owU0JBIVWp+d+u6W0+kqWGdNpVKDjHOAs8C20= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=nJf6dzlhrFNjfPspwGHEcwcznJnuh2vkos/Xo05JHDRJNEOXphIjWV8UqiW9bepAhE Phh5hwutogn4/NyGW5AxbJKqV1GQjBKyLimg/upFf5kz/gmOC73RgVg7t8VZ/GZr7g8V 0yfDsGIHSMy1ax0AP1JpVRYw6/qBR0bclmAhA= Received: by 10.102.174.1 with SMTP id w1mr795319mue.51.1268577701736; Sun, 14 Mar 2010 07:41:41 -0700 (PDT) Received: from beastie.lan ([195.60.174.86]) by mx.google.com with ESMTPS id 23sm15205538mun.37.2010.03.14.07.41.40 (version=SSLv3 cipher=RC4-MD5); Sun, 14 Mar 2010 07:41:40 -0700 (PDT) Message-ID: <4B9CF518.1020706@gmail.com> Date: Sun, 14 Mar 2010 16:39:20 +0200 From: Andrey Kosachenko User-Agent: Mozilla/5.0 (X11; U; FreeBSD amd64; en-US; rv:1.9.1.8) Gecko/20100303 Thunderbird/3.0.3 MIME-Version: 1.0 To: freebsd-usb@freebsd.org Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Subject: [current] could not attach n900 (mass storage mode) at high speed 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: Sun, 14 Mar 2010 15:12:00 -0000 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 ... ugen3.2: at usbus3 umass0: 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: 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: 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: at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen1.1: at usbus1, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen2.1: at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen3.1: at usbus3, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen4.1: at usbus4, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen5.1: at usbus5, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen6.1: at usbus6, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen4.2: at usbus4, cfg=0 md=HOST spd=LOW (1.5Mbps) pwr=ON ugen3.2: 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: 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: 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