bad performance of aue device when used with nVidia nForce MCP79 USB

2011-10-19 Thread Marcus Müller
Hi all!

I need some advice how to best tackle this problem I'm having with an ADMtek 
USB To LAN Converter in conjunction with an nVidia nForce MCP79 USB chip:

--- config begin ---
root@creutzfeld:(~)# uname -a
FreeBSD creutzfeld.z.net 8.2-STABLE FreeBSD 8.2-STABLE #7 r226546: Wed Oct 19 
22:08:28 CEST 2011 root@creutzfeld:/usr/obj/usr/src/sys/CREUTZFELD  amd64
root@creutzfeld:(~)# usbconfig list
ugen0.1:  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps) 
pwr=SAVE
ugen1.1:  at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=SAVE
ugen2.1:  at usbus2, cfg=0 md=HOST spd=FULL (12Mbps) 
pwr=SAVE
ugen3.1:  at usbus3, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=SAVE
ugen3.2:  at usbus3, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=ON
ehci1:  mem 0xfae7e800-0xfae7e8ff irq 
21 at device 6.1 on pci0
--- config end ---

This ADMtek device gets roughly 10MBit downstream with the configuration above. 
When used with the same OS on a board with an Intel 82801GB/R (ICH7) USB 2.0 
controller it gets 64MBit downstream, which is the maximum I can get from my 
ISP.

I don't see anything unusual in the system messages, thus I suspect it's an 
issue with the USB implementation for the nForce chipset.

What can I do in order to find out what's the bottleneck here?


Thanks in advance,

  Marcus

___
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

2011-10-19 Thread Hans Petter Selasky
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"


Re: Support of internal card-reader for ASUS K43SJ

2011-10-19 Thread Eugene Dzhurinsky
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:  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  
bmAttributes = 0x00a0 
bMaxPower = 0x00fa 

Interface 0
  bLength = 0x0009 
  bDescriptorType = 0x0004 
  bInterfaceNumber = 0x 
  bAlternateSetting = 0x 
  bNumEndpoints = 0x0003 
  bInterfaceClass = 0x00ff 
  bInterfaceSubClass = 0x0006 
  bInterfaceProtocol = 0x0050 
  iInterface = 0x0005  

 Endpoint 0
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0001  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 1
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0082  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200 
bInterval = 0x 
bRefresh = 0x 
bSynchAddress = 0x 

 Endpoint 2
bLength = 0x0007 
bDescriptorType = 0x0005 
bEndpointAddress = 0x0083  
bmAttributes = 0x0003  
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

2011-10-19 Thread Hans Petter Selasky
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

2011-10-19 Thread Eugene Dzhurinsky
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

2011-10-19 Thread Hans Petter Selasky
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:  at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps)
> pwr=SAVE ugen1.1:  at usbus1, cfg=0 md=HOST spd=HIGH
> (480Mbps) pwr=SAVE ugen0.2:  at usbus0,
> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen1.2:  0x8087> at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=SAVE ugen0.3:
>  at usbus0, cfg=0 md=HOST spd=FULL (12Mbps)
> pwr=ON ugen0.4:  at usbus0,
> cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON ugen0.5:  at
> usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON
> 
> And dumps follow:
> 
> ===
> =
> 
> ugen0.1:  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  
>   iProduct = 0x0002  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> 
> ugen1.1:  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  
>   iProduct = 0x0002  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> 
> ugen0.2:  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  
>   iProduct = 0x  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> 
> ugen1.2:  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  
>   iProduct = 0x  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> ugen0.3:  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  
>   iProduct = 0x  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> ugen0.4:  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  
>   iSerialNumber = 0x  
>   bNumConfigurations = 0x0001
> 
> ugen0.5:  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  
>   iProduct = 0x0002  
>   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"


Support of internal card-reader for ASUS K43SJ

2011-10-19 Thread Eugene Dzhurinsky
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:  at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=SAVE
ugen1.1:  at usbus1, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=SAVE
ugen0.2:  at usbus0, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE
ugen1.2:  at usbus1, cfg=0 md=HOST spd=HIGH 
(480Mbps) pwr=SAVE
ugen0.3:  at usbus0, cfg=0 md=HOST spd=FULL 
(12Mbps) pwr=ON
ugen0.4:  at usbus0, cfg=0 md=HOST 
spd=HIGH (480Mbps) pwr=ON
ugen0.5:  at usbus0, cfg=0 md=HOST spd=HIGH (480Mbps) pwr=ON

And dumps follow:



ugen0.1:  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  
  iProduct = 0x0002  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 


ugen1.1:  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  
  iProduct = 0x0002  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 


ugen0.2:  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  
  iProduct = 0x  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 


ugen1.2:  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  
  iProduct = 0x  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 

ugen0.3:  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  
  iProduct = 0x  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 

ugen0.4:  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  
  iSerialNumber = 0x  
  bNumConfigurations = 0x0001 

ugen0.5:  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  
  iProduct = 0x0002  
  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: usb/161793: poor EHCI usb2 i/o performance

2011-10-19 Thread Alexander Best
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 
> To: freebsd-usb@freebsd.org
> Cc: Chargen ,
>  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



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:  at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps)
>  > pwr=SAVE schwarzesonne# dmesg | grep "usbus2"
>  > usbus2: EHCI version 1.0
>  > usbus2:  on ehci0
>  > usbus2: 480Mbps High Speed USB v2.0
>  > ugen2.1:  at usbus2
>  > uhub2:  on usbus2
>  > ugen2.2:  at usbus2
>  > umass0:  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:  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: 
>  > 3: 
>  > 4: 
>  > 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
>  > 
>

Re: usb/157074: [boot] [usb8] vfs_mountroot_ask is called when no usb keyboard is initialized

2011-10-19 Thread gavin
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/161798: usbdevs / if_run.c modification

2011-10-19 Thread Hans Petter Selasky
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/161798: commit references a PR

2011-10-19 Thread dfilter service
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" 
"(0x1001|0x1003|0x1004|0x1401|0x1402|0x1403|0x1404|0x1405|0x1406|0x1407|0x1408|0x1409|0x140a|0x140b|0x140c|0x140d|0x140e|0x140f|0x1410|0x1411|0x1412|0x1413|0x1414|0x1415|0x1416|0x1417|0x1418|0x1419|0x14

usb/161798: usbdevs / if_run.c modification

2011-10-19 Thread Zahemszky

>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
>Organization:
Zahemszky Ltd.
>Environment:
FreeBSD Lappantyu.Zahemszky.hu 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue 
Sep 27 18:07:27 UTC 2011 
r...@i386-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC  i386

>Description:
I bought a wlan adapter for my TV.
I tried it under FreeBSD, but it couldn't recognise it.
So I made my homework, and here is the output.

It is a "Samsung WIS09ABGN Wireless LAN Adapter".
It has Ralink chipset in it, so the if_run and runfw
drivers should work with it.

Here is the info and the usbconfig outputs:



Name: Samsung Wireless LAN Adapter WIS09ABGN (for selected 2009-2011 models of 
Samsung TVs & Blu-Ray Players)
Model: WIS09ABGN
Model Code: WIS09ABGNX/XEC

it should work - and it works! - with the if_run & runfw drivers

# usbconfig -d 2.2 dump_device_desc
ugen2.2: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON

  bLength = 0x0012
  bDescriptorType = 0x0001
  bcdUSB = 0x0200
  bDeviceClass = 0x
  bDeviceSubClass = 0x
  bDeviceProtocol = 0x
  bMaxPacketSize0 = 0x0040
  idVendor = 0x04e8
  idProduct = 0x2018
  bcdDevice = 0x0101
  iManufacturer = 0x0001  
  iProduct = 0x0002  <802.11 n WLAN>
  iSerialNumber = 0x0003  <1.0>
  bNumConfigurations = 0x0001

# usbconfig -d 2.2 dump_all_config_desc
ugen2.2: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON


 Configuration index 0

bLength = 0x0009
bDescriptorType = 0x0002
wTotalLength = 0x0035
bNumInterfaces = 0x0001
bConfigurationValue = 0x0001
iConfiguration = 0x  
bmAttributes = 0x0080
bMaxPower = 0x00e1

Interface 0
  bLength = 0x0009
  bDescriptorType = 0x0004
  bInterfaceNumber = 0x
  bAlternateSetting = 0x
  bNumEndpoints = 0x0005
  bInterfaceClass = 0x00ff
  bInterfaceSubClass = 0x00ff
  bInterfaceProtocol = 0x00ff
  iInterface = 0x0005  <1.0>

 Endpoint 0
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0081  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 1
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0001  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 2
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0002  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 3
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0003  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

 Endpoint 4
bLength = 0x0007
bDescriptorType = 0x0005
bEndpointAddress = 0x0004  
bmAttributes = 0x0002  
wMaxPacketSize = 0x0200
bInterval = 0x
bRefresh = 0x
bSynchAddress = 0x

===
This output is with the original if_run and runfw modules.
After it, I made two small changes in the src:

a) added the device info into /usr/src/sys/dev/usb/usbdevs file:

product SAMSUNG WIS09ABGN   0x2018  WIS09ABGN Wireless LAN adapter

b) and added it to the known list of HWs in the 
/usr/src/sys/dev/usb/wlan/if_run.c file:

RUN_DEV(SAMSUNG,WIS09ABGN),


unloading the original module, generating the new (with

cd /usrs/src/sys/modules/usb/run
make

commands) and loading it with:

kldload runfw
kldload ./if_run.ko

and voila, the system has a new run0 interface. After it, created the wlan0 
interface, started wpa_supplicant and dhclient, and I have a working wifi 
connection.

usbconfig -d 2.2 - with the "modified" driver

ugen2.2: <802.11 n WLAN Ralink> at usbus2, cfg=0 md=HOST spd=HIGH (480Mbps) 
pwr=ON

It is on FreeBSD 8.2-p3 i386.
>How-To-Repeat:
Buy a Samsung-TV wifi dongle, and try it under FreeBSD.
>Fix:
Put the

product SAMSUNG WIS09ABGN   0x2018  WIS09ABGN Wireless LAN adapter

line into usbdevs, and the

RUN_DEV(SAMSUNG,WIS09ABGN),

line into if_run.c. After it, it should work.

>Release-Note:
>Audit-Trail:
>Unformatted:
___
freebsd-usb@freebsd.org mailing list
http://lists.freebsd.org/mail