Re: usb/161793: poor EHCI usb2 i/o performance
The following reply was made to PR usb/161793; it has been noted by GNATS. From: Hans Petter Selasky hsela...@c2i.net To: freebsd-usb@freebsd.org Cc: Chargen char...@gmail.com, freebsd-gnats-sub...@freebsd.org Subject: Re: usb/161793: poor EHCI usb2 i/o performance Date: Wed, 19 Oct 2011 07:55:50 +0200 Hello, When testing and formatting, it is important to set the block size to 65536 bytes to get the maximum performance. The default blocksize of dd is 512 bytes, and there is no read-ahead! Try again using: dd if=/dev/daX of=/dev/null bs=65536. Thank you, --HPS On Wednesday 19 October 2011 05:41:16 Chargen wrote: Number: 161793 Category: usb Synopsis: poor EHCI usb2 i/o performance Confidential: no Severity: non-critical Priority: low Responsible:freebsd-usb State: open Quarter: Keywords: Date-Required: Class: sw-bug Submitter-Id: current-users Arrival-Date: Wed Oct 19 03:50:03 UTC 2011 Closed-Date: Last-Modified: Originator: Chargen Release:10.0-CURRENT Organization: Environment: FreeBSD schwarzesonne 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Tue Oct 18 21:40:49 CEST 2011 chargen@schwarzesonne:/usr/src/sys/i386/compile/SCHWARZESONNE i386 Description: I did some OHCI/EHCI usb1/2 subsystem performance checks on CURRENT with 1 older generation 1gb USB memory stick and a newer 2GB USB memory stick. EHCI, usb2 UFS or MSDOSFS formatted gives about the same performance in FreeBSD, ~3MB/s and about 8~10 MB/s under Windows operating systems using the same hardware. schwarzesonne# usbconfig dump_info | grep 480 ugen2.1: EHCI root HUB NEC at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE schwarzesonne# dmesg | grep usbus2 usbus2: EHCI version 1.0 usbus2: NEC uPD 720100 USB 2.0 controller on ehci0 usbus2: 480Mbps High Speed USB v2.0 ugen2.1: NEC at usbus2 uhub2: NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus2 ugen2.2: Generic at usbus2 umass0: Generic Mass Storage, class 0/0, rev 2.00/1.41, addr 2 on usbus2 schwarzesonne# mount /dev/da0p2 on / (ufs, local, noatime, journaled soft-updates) devfs on /dev (devfs, local) schwarzesonne# dmesg | grep da1 da1 at umass-sim0 bus 0 scbus4 target 0 lun 0 da1: A60C0705 Flash Disk 8.07 Removable Direct Access SCSI-2 device da1: 40.000MB/s transfers da1: 999MB (2047998 512 byte sectors: 64H 32S/T 999C) schwarzesonne# time dd if=/dev/zero of=/dev/da1 count=2 2+0 records in 2+0 records out 1024 bytes transferred in 0.003543 secs (289029 bytes/sec) 0.000u 0.002s 0:00.02 0.0% 0+0k 0+2io 0pf+0w schwarzesonne# ls -alrt /dev/da1* crw-r- 1 root operator 0x55 Oct 19 03:01 /dev/da1 crw-r- 1 root operator 0x62 Oct 19 03:01 /dev/da1s1 crw-r- 1 root operator 0x72 Oct 19 03:02 /dev/da1s1a schwarzesonne# fdisk -vBI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found parameters extracted from in-core disklabel are: cylinders=999 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=999 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2045920 (998 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 998/ head 63/ sector 32 2: UNUSED 3: UNUSED 4: UNUSED fdisk: Class not found schwarzesonne# bsdlabel -w da1s1 schwarzesonne# time newfs -O 1 /dev/da1s1a /dev/da1s1a: 999.0MB (2045904 sectors) block size 32768, fragment size 4096 using 4 cylinder groups of 249.75MB, 7992 blks, 16128 inodes. super-block backups (for fsck -b #) at: 64, 511552, 1023040, 1534528 0.005u 0.015s 0:06.25 0.1% 128+15616k 6+260io 0pf+0w schwarzesonne# mkdir /mnt/usb schwarzesonne# mount -v /dev/da1s1a /mnt/usb/ /dev/da1s1a on /mnt (ufs, local, fsid 66279e4eff2fa382) schwarzesonne# time dd if=/dev/zero bs=1m count=500 /mnt/usb/500mb 500+0 records in 500+0 records out 524288000 bytes transferred in 106.844333 secs (4907027 bytes/sec) 0.007u 1.813s 1:46.85 1.6% 28+5603k 5+4006io 0pf+0w : rebooted to flush caches and track read performance schwarzesonne# reboot schwarzesonne# mount /dev/da1s1a /mnt/usb schwarzesonne# time cp /mnt/usb/500mb /root/. 0.000u 2.665s 0:44.18 6.0% 21+5364k 4007+4000io 0pf+0w :: EHCI, 2gb stick, usb2 performance, same procedure, rebooted and used :: newfs Oct 19 04:15:53 schwarzesonne kernel: da1 at umass-sim0 bus 0 scbus4 target 0 lun 0 Oct 19 04:15:53 schwarzesonne kernel: da1: CBM Flash Disk 5.00 Removable Direct Access SCSI-2 device Oct 19 04:15:53 schwarzesonne kernel: da1: 40.000MB/s transfers Oct 19 04:15:53 schwarzesonne kernel: da1: 2024MB (4145664 512 byte sectors: 255H 63S/T 258C) ugen2.2: Flash Disk CBM at
Re: usb/161798: commit references a PR
The following reply was made to PR usb/161798; it has been noted by GNATS. From: dfil...@freebsd.org (dfilter service) To: bug-follo...@freebsd.org Cc: Subject: Re: usb/161798: commit references a PR Date: Wed, 19 Oct 2011 10:09:18 + (UTC) Author: hselasky Date: Wed Oct 19 10:09:01 2011 New Revision: 226534 URL: http://svn.freebsd.org/changeset/base/226534 Log: Add new USB IDs to RUN driver. Update usb.conf. PR: usb/161798 MFC after: 3 days Modified: head/etc/devd/usb.conf head/sys/dev/usb/usbdevs head/sys/dev/usb/wlan/if_run.c Modified: head/etc/devd/usb.conf == --- head/etc/devd/usb.conf Wed Oct 19 10:08:58 2011(r226533) +++ head/etc/devd/usb.conf Wed Oct 19 10:09:01 2011(r226534) @@ -565,6 +565,14 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x04e8; + match product 0x2018; + action kldload if_run; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; + match vendor 0x04e8; match product (0x5f00|0x5f01|0x5f02|0x5f03|0x5f04); action kldload uipaq; }; @@ -741,7 +749,7 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x050d; - match product (0x8053|0x805c|0x815c|0x825a); + match product (0x8053|0x805c|0x815c|0x825a|0x825b); action kldload if_run; }; @@ -1877,7 +1885,23 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x0af0; - match product (0x5000|0x6000|0x6050|0x6100|0x6150|0x6200|0x6250|0x6300|0x6350|0x6500|0x6501|0x6600|0x6601|0x6701|0x6721|0x6741|0x6761|0x6800|0x6901); + match product (0x5000|0x6000|0x6050|0x6100|0x6150|0x6200|0x6250|0x6300|0x6350|0x6500|0x6501|0x6600|0x6601|0x6701); + action kldload u3g; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; + match vendor 0x0af0; + match product 0x6711; + action kldload uhso; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; + match vendor 0x0af0; + match product (0x6721|0x6741|0x6761|0x6800|0x6901); action kldload u3g; }; @@ -2069,7 +2093,7 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x0b95; - match product (0x1720|0x1780|0x7720|0x772a); + match product (0x1720|0x1780|0x7720|0x772a|0x772b); action kldload if_axe; }; @@ -2500,6 +2524,14 @@ nomatch 32 { nomatch 32 { match bus uhub[0-9]+; match mode host; + match vendor 0x0f3d; + match product 0x68a3; + action kldload usie; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; match vendor 0x0f4e; match product 0x0200; action kldload uipaq; @@ -2789,13 +2821,37 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x1199; - match product (0x0220|0x0224|0x0fff|0x6802|0x6803|0x6804|0x6805|0x6808|0x6809|0x6812|0x6813|0x6815|0x6816|0x6820|0x6821|0x6822|0x6832|0x6833|0x6834|0x6835|0x6838|0x6839|0x683a|0x683b|0x683c|0x683d|0x683e|0x6850|0x6851|0x6852|0x6853|0x6855|0x6856|0x6859|0x685a|0x6880|0x6890|0x6891|0x6892|0x6893|0x68a3); + match product (0x0220|0x0224|0x0fff); + action kldload u3g; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; + match vendor 0x1199; + match product 0x0fff; + action kldload usie; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; + match vendor 0x1199; + match product (0x6802|0x6803|0x6804|0x6805|0x6808|0x6809|0x6812|0x6813|0x6815|0x6816|0x6820|0x6821|0x6822|0x6832|0x6833|0x6834|0x6835|0x6838|0x6839|0x683a|0x683b|0x683c|0x683d|0x683e|0x6850|0x6851|0x6852|0x6853|0x6855|0x6856|0x6859|0x685a|0x6880|0x6890|0x6891|0x6892|0x6893|0x68a3); action kldload u3g; }; nomatch 32 { match bus uhub[0-9]+; match mode host; + match vendor 0x1199; + match product 0x68a3; + action kldload usie; +}; + +nomatch 32 { + match bus uhub[0-9]+; + match mode host; match vendor 0x11ad; match product 0x0701; action kldload uplcom; @@ -2869,7 +2925,7 @@ nomatch 32 { match bus uhub[0-9]+; match mode host; match vendor 0x12d1; - match product
Re: usb/161798: usbdevs / if_run.c modification
On Wednesday 19 October 2011 09:51:48 zahems...@freebsd.org, G�bor wrote: Number: 161798 Category: usb Synopsis: usbdevs / if_run.c modification Confidential: no Severity: non-critical Priority: low Responsible:freebsd-usb State: open Quarter: Keywords: Date-Required: Class: change-request Submitter-Id: current-users Arrival-Date: Wed Oct 19 08:00:22 UTC 2011 Closed-Date: Last-Modified: Originator: Zahemszky, Gábor Release:8.2-p3 i386 Committed with some modifications. Thanks for submitting. Will end up in 8- stable and maybe also 9-stable in a few days. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: usb/157074: [boot] [usb8] vfs_mountroot_ask is called when no usb keyboard is initialized
Old Synopsis: [boot] vfs_mountroot_ask is called when no usb keyboard is initialized New Synopsis: [boot] [usb8] vfs_mountroot_ask is called when no usb keyboard is initialized Responsible-Changed-From-To: freebsd-bugs-freebsd-usb Responsible-Changed-By: gavin Responsible-Changed-When: Wed Oct 19 16:51:35 UTC 2011 Responsible-Changed-Why: I'm not sure, but I think that this is a duplicate of usb/133989. Perhaps somebody more knowledgeable could verify that and close this? http://www.freebsd.org/cgi/query-pr.cgi?pr=157074 ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: usb/161793: poor EHCI usb2 i/o performance
On Wed Oct 19 11, Hans Petter Selasky wrote: The following reply was made to PR usb/161793; it has been noted by GNATS. From: Hans Petter Selasky hsela...@c2i.net To: freebsd-usb@freebsd.org Cc: Chargen char...@gmail.com, freebsd-gnats-sub...@freebsd.org Subject: Re: usb/161793: poor EHCI usb2 i/o performance Date: Wed, 19 Oct 2011 07:55:50 +0200 Hello, When testing and formatting, it is important to set the block size to 65536 bytes to get the maximum performance. The default blocksize of dd is 512 bytes, and there is no read-ahead! Try again using: dd if=/dev/daX of=/dev/null bs=65536. results here are: otaku% dd if=/dev/da0 of=/dev/null bs=65536 30495+1 records in 30495+1 records out 1998585344 bytes transferred in 159.388494 secs (12539082 bytes/sec) otaku% dd if=/dev/da0 of=/dev/null bs=65536 238033+1 records in 238033+1 records out 15599771136 bytes transferred in 655.616437 secs (23794051 bytes/sec) testing an old usb stick and a fairly recent one. that's with usb2 and running HEAD. the results are incredible imo. my usb controller is Intel 82801I (ICH9) USB 2.0 controller cheers. alex Thank you, --HPS On Wednesday 19 October 2011 05:41:16 Chargen wrote: Number: 161793 Category: usb Synopsis: poor EHCI usb2 i/o performance Confidential: no Severity: non-critical Priority: low Responsible:freebsd-usb State: open Quarter: Keywords: Date-Required: Class: sw-bug Submitter-Id: current-users Arrival-Date: Wed Oct 19 03:50:03 UTC 2011 Closed-Date: Last-Modified: Originator: Chargen Release:10.0-CURRENT Organization: Environment: FreeBSD schwarzesonne 10.0-CURRENT FreeBSD 10.0-CURRENT #0: Tue Oct 18 21:40:49 CEST 2011 chargen@schwarzesonne:/usr/src/sys/i386/compile/SCHWARZESONNE i386 Description: I did some OHCI/EHCI usb1/2 subsystem performance checks on CURRENT with 1 older generation 1gb USB memory stick and a newer 2GB USB memory stick. EHCI, usb2 UFS or MSDOSFS formatted gives about the same performance in FreeBSD, ~3MB/s and about 8~10 MB/s under Windows operating systems using the same hardware. schwarzesonne# usbconfig dump_info | grep 480 ugen2.1: EHCI root HUB NEC at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE schwarzesonne# dmesg | grep usbus2 usbus2: EHCI version 1.0 usbus2: NEC uPD 720100 USB 2.0 controller on ehci0 usbus2: 480Mbps High Speed USB v2.0 ugen2.1: NEC at usbus2 uhub2: NEC EHCI root HUB, class 9/0, rev 2.00/1.00, addr 1 on usbus2 ugen2.2: Generic at usbus2 umass0: Generic Mass Storage, class 0/0, rev 2.00/1.41, addr 2 on usbus2 schwarzesonne# mount /dev/da0p2 on / (ufs, local, noatime, journaled soft-updates) devfs on /dev (devfs, local) schwarzesonne# dmesg | grep da1 da1 at umass-sim0 bus 0 scbus4 target 0 lun 0 da1: A60C0705 Flash Disk 8.07 Removable Direct Access SCSI-2 device da1: 40.000MB/s transfers da1: 999MB (2047998 512 byte sectors: 64H 32S/T 999C) schwarzesonne# time dd if=/dev/zero of=/dev/da1 count=2 2+0 records in 2+0 records out 1024 bytes transferred in 0.003543 secs (289029 bytes/sec) 0.000u 0.002s 0:00.02 0.0% 0+0k 0+2io 0pf+0w schwarzesonne# ls -alrt /dev/da1* crw-r- 1 root operator 0x55 Oct 19 03:01 /dev/da1 crw-r- 1 root operator 0x62 Oct 19 03:01 /dev/da1s1 crw-r- 1 root operator 0x72 Oct 19 03:02 /dev/da1s1a schwarzesonne# fdisk -vBI /dev/da1 *** Working on device /dev/da1 *** fdisk: invalid fdisk partition table found parameters extracted from in-core disklabel are: cylinders=999 heads=64 sectors/track=32 (2048 blks/cyl) parameters to be used for BIOS calculations are: cylinders=999 heads=64 sectors/track=32 (2048 blks/cyl) Information from DOS bootblock is: 1: sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD) start 32, size 2045920 (998 Meg), flag 80 (active) beg: cyl 0/ head 1/ sector 1; end: cyl 998/ head 63/ sector 32 2: UNUSED 3: UNUSED 4: UNUSED fdisk: Class not found schwarzesonne# bsdlabel -w da1s1 schwarzesonne# time newfs -O 1 /dev/da1s1a /dev/da1s1a: 999.0MB (2045904 sectors) block size 32768, fragment size 4096 using 4 cylinder groups of 249.75MB, 7992 blks, 16128 inodes. super-block backups (for fsck -b #) at: 64, 511552, 1023040, 1534528 0.005u 0.015s 0:06.25 0.1% 128+15616k 6+260io 0pf+0w schwarzesonne# mkdir /mnt/usb schwarzesonne# mount -v /dev/da1s1a /mnt/usb/ /dev/da1s1a on /mnt (ufs, local, fsid 66279e4eff2fa382) schwarzesonne# time dd if=/dev/zero bs=1m count=500 /mnt/usb/500mb 500+0 records in 500+0 records out 524288000 bytes transferred in 106.844333 secs (4907027 bytes/sec) 0.007u 1.813s 1:46.85 1.6% 28+5603k 5+4006io 0pf+0w : rebooted to flush
Support of internal card-reader for ASUS K43SJ
Hello, all! I need some advice - it seems that the cardreader is not recognizable on FreeBSD 8.2 STABLE: uname -a FreeBSD devbox 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Oct 19 12:20:43 EEST 2011 root@devbox:/usr/obj/usr/src/sys/BOFHMOD amd64 usbconfig list ugen0.1: EHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: EHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: product 0x0024 vendor 0x8087 at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: product 0x0024 vendor 0x8087 at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3: product 0x3304 vendor 0x13d3 at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.4: ASUS USB2.0 WebCam 04G6200086K1AN17J000SGH at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.5: USB2.0-CRW Generic at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON And dumps follow: ugen0.1: EHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x idProduct = 0x bcdDevice = 0x0100 iManufacturer = 0x0001 Intel iProduct = 0x0002 EHCI root HUB iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen1.1: EHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x idProduct = 0x bcdDevice = 0x0100 iManufacturer = 0x0001 Intel iProduct = 0x0002 EHCI root HUB iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.2: product 0x0024 vendor 0x8087 at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen1.2: product 0x0024 vendor 0x8087 at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.3: product 0x3304 vendor 0x13d3 at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x00e0 bDeviceSubClass = 0x0001 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x13d3 idProduct = 0x3304 bcdDevice = 0x0001 iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.4: ASUS USB2.0 WebCam 04G6200086K1AN17J000SGH at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x058f idProduct = 0xa014 bcdDevice = 0x0003 iManufacturer = 0x0003 04G6200086K1AN17J000SGH iProduct = 0x0001 ASUS USB2.0 WebCam iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.5: USB2.0-CRW Generic at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ff bDeviceSubClass = 0x00ff bDeviceProtocol = 0x00ff bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x0139 bcdDevice = 0x3960 iManufacturer = 0x0001 Generic iProduct = 0x0002 USB2.0-CRW iSerialNumber = 0x0003 2010020139600 bNumConfigurations = 0x0001 Now, when I insert USB flash stick - it gets recognized as da%n drive, however any SD card does not appear in the system, and nothing in logs. What may be wrong there and how to fix? Many thanks in advance! -- Eugene N Dzhurinsky ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Support of internal card-reader for ASUS K43SJ
On Wednesday 19 October 2011 20:32:48 Eugene Dzhurinsky wrote: Hello, all! I need some advice - it seems that the cardreader is not recognizable on FreeBSD 8.2 STABLE: uname -a FreeBSD devbox 8.2-STABLE FreeBSD 8.2-STABLE #5: Wed Oct 19 12:20:43 EEST 2011 root@devbox:/usr/obj/usr/src/sys/BOFHMOD amd64 usbconfig list ugen0.1: EHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.1: EHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.2: product 0x0024 vendor 0x8087 at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2: product 0x0024 vendor 0x8087 at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3: product 0x3304 vendor 0x13d3 at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON ugen0.4: ASUS USB2.0 WebCam 04G6200086K1AN17J000SGH at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.5: USB2.0-CRW Generic at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON And dumps follow: === = ugen0.1: EHCI root HUB Intel at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x idProduct = 0x bcdDevice = 0x0100 iManufacturer = 0x0001 Intel iProduct = 0x0002 EHCI root HUB iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen1.1: EHCI root HUB Intel at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x idProduct = 0x bcdDevice = 0x0100 iManufacturer = 0x0001 Intel iProduct = 0x0002 EHCI root HUB iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.2: product 0x0024 vendor 0x8087 at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen1.2: product 0x0024 vendor 0x8087 at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x0009 bDeviceSubClass = 0x bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x8087 idProduct = 0x0024 bcdDevice = 0x iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.3: product 0x3304 vendor 0x13d3 at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0110 bDeviceClass = 0x00e0 bDeviceSubClass = 0x0001 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x13d3 idProduct = 0x3304 bcdDevice = 0x0001 iManufacturer = 0x no string iProduct = 0x no string iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.4: ASUS USB2.0 WebCam 04G6200086K1AN17J000SGH at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ef bDeviceSubClass = 0x0002 bDeviceProtocol = 0x0001 bMaxPacketSize0 = 0x0040 idVendor = 0x058f idProduct = 0xa014 bcdDevice = 0x0003 iManufacturer = 0x0003 04G6200086K1AN17J000SGH iProduct = 0x0001 ASUS USB2.0 WebCam iSerialNumber = 0x no string bNumConfigurations = 0x0001 ugen0.5: USB2.0-CRW Generic at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON bLength = 0x0012 bDescriptorType = 0x0001 bcdUSB = 0x0200 bDeviceClass = 0x00ff bDeviceSubClass = 0x00ff bDeviceProtocol = 0x00ff bMaxPacketSize0 = 0x0040 idVendor = 0x0bda idProduct = 0x0139 bcdDevice = 0x3960 iManufacturer = 0x0001 Generic iProduct = 0x0002 USB2.0-CRW iSerialNumber = 0x0003 2010020139600 bNumConfigurations = 0x0001 Hi, You need to dump the configuration descriptor using usbconfig. Also see the quirks available how to force the UMASS mode of a device. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Support of internal card-reader for ASUS K43SJ
On Wed, Oct 19, 2011 at 09:42:51PM +0200, Hans Petter Selasky wrote: Hi, You need to dump the configuration descriptor using usbconfig. Also see the quirks available how to force the UMASS mode of a device. Hi, with configuration descriptor you mean dump_curr_config_desc ? Also I don't really understand what are the quirks and how can/should I force something. Could you please explain? Thanks! -- Eugene N Dzhurinsky pgpPC8vZ9ruUM.pgp Description: PGP signature
Re: Support of internal card-reader for ASUS K43SJ
On Wednesday 19 October 2011 21:51:10 Eugene Dzhurinsky wrote: On Wed, Oct 19, 2011 at 09:42:51PM +0200, Hans Petter Selasky wrote: Hi, You need to dump the configuration descriptor using usbconfig. Also see the quirks available how to force the UMASS mode of a device. Hi, with configuration descriptor you mean dump_curr_config_desc ? Yes. Also I don't really understand what are the quirks and how can/should I force something. Could you please explain? usbconfig dump_quirk_names | grep MSC UQ_MSC_FORCE_WIRE_BBB UQ_MSC_FORCE_WIRE_CBI UQ_MSC_FORCE_WIRE_CBI_I UQ_MSC_FORCE_PROTO_SCSI UQ_MSC_FORCE_PROTO_ATAPI UQ_MSC_FORCE_PROTO_UFI UQ_MSC_FORCE_PROTO_RBC After applying the quirk you need to use USB config to reset the device. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org
Re: Support of internal card-reader for ASUS K43SJ
On Wed, Oct 19, 2011 at 09:52:51PM +0200, Hans Petter Selasky wrote: Also see the quirks available how to force the UMASS mode of a device. Hi, with configuration descriptor you mean dump_curr_config_desc ? Yes. ugen0.5: USB2.0-CRW Generic at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON Configuration index 0 bLength = 0x0009 bDescriptorType = 0x0002 wTotalLength = 0x0027 bNumInterfaces = 0x0001 bConfigurationValue = 0x0001 iConfiguration = 0x0004 CARD READER bmAttributes = 0x00a0 bMaxPower = 0x00fa Interface 0 bLength = 0x0009 bDescriptorType = 0x0004 bInterfaceNumber = 0x bAlternateSetting = 0x bNumEndpoints = 0x0003 bInterfaceClass = 0x00ff bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 iInterface = 0x0005 Bulk-In, Bulk-Out, Interface Endpoint 0 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0001 OUT bmAttributes = 0x0002 BULK wMaxPacketSize = 0x0200 bInterval = 0x bRefresh = 0x bSynchAddress = 0x Endpoint 1 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0082 IN bmAttributes = 0x0002 BULK wMaxPacketSize = 0x0200 bInterval = 0x bRefresh = 0x bSynchAddress = 0x Endpoint 2 bLength = 0x0007 bDescriptorType = 0x0005 bEndpointAddress = 0x0083 IN bmAttributes = 0x0003 INTERRUPT wMaxPacketSize = 0x0003 bInterval = 0x000a bRefresh = 0x bSynchAddress = 0x Also I don't really understand what are the quirks and how can/should I force something. Could you please explain? usbconfig dump_quirk_names | grep MSC UQ_MSC_FORCE_WIRE_BBB UQ_MSC_FORCE_WIRE_CBI UQ_MSC_FORCE_WIRE_CBI_I UQ_MSC_FORCE_PROTO_SCSI UQ_MSC_FORCE_PROTO_ATAPI UQ_MSC_FORCE_PROTO_UFI UQ_MSC_FORCE_PROTO_RBC After applying the quirk you need to use USB config to reset the device. I'm a bit lost, which quirk I should apply? I'm sorry, but I know very little about all this stuff :( UQ_MSC_NO_TEST_UNIT_READY UQ_MSC_NO_RS_CLEAR_UA UQ_MSC_NO_START_STOP UQ_MSC_NO_GETMAXLUN UQ_MSC_NO_INQUIRY UQ_MSC_NO_INQUIRY_EVPD UQ_MSC_NO_SYNC_CACHE UQ_MSC_SHUTTLE_INIT UQ_MSC_ALT_IFACE_1 UQ_MSC_FLOPPY_SPEED UQ_MSC_IGNORE_RESIDUE UQ_MSC_WRONG_CSWSIG UQ_MSC_RBC_PAD_TO_12 UQ_MSC_READ_CAP_OFFBY1 UQ_MSC_FORCE_SHORT_INQ UQ_MSC_FORCE_WIRE_BBB UQ_MSC_FORCE_WIRE_CBI UQ_MSC_FORCE_WIRE_CBI_I UQ_MSC_FORCE_PROTO_SCSI UQ_MSC_FORCE_PROTO_ATAPI UQ_MSC_FORCE_PROTO_UFI UQ_MSC_FORCE_PROTO_RBC UQ_MSC_EJECT_HUAWEI UQ_MSC_EJECT_SIERRA UQ_MSC_EJECT_SCSIEJECT UQ_MSC_EJECT_REZERO UQ_MSC_EJECT_ZTESTOR UQ_MSC_EJECT_CMOTECH UQ_MSC_EJECT_WAIT UQ_MSC_EJECT_SAEL_M460 UQ_MSC_EJECT_HUAWEISCSI UQ_MSC_EJECT_TCT -- Eugene N Dzhurinsky pgphshsvq6tCI.pgp Description: PGP signature
Re: Support of internal card-reader for ASUS K43SJ
On Wednesday 19 October 2011 22:01:29 Eugene Dzhurinsky wrote: bInterfaceClass = 0x00ff bInterfaceSubClass = 0x0006 bInterfaceProtocol = 0x0050 Look in sys/dev/usb/storage/umass.c what these values correspond to. 0x00ff means vendor specific. --HPS ___ freebsd-usb@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-usb To unsubscribe, send any mail to freebsd-usb-unsubscr...@freebsd.org