2010-09-14 10:39:52     Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-09-14 10:39:52     Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

Rajiv Mohan (INDIA)

Message: 93429   

 

We are facing some performance issues when Ralink wireless module is used with the inbuilt USB stack of BF527EZKIT board.

 

We were able to bring up the driver and also connect to an Access Point. But during our performance test with iperf we are not getting good performance at all. We have used the same ralink module with renasas USB host driver and have got better performance. With Renasas USB host driver we were able to achieve speeds upto 70-80Mbits/sec but using the inbuilt USB of BF527EZKIT we are getting as low as 1.5Mbits/sec and also during the test we see ping timeout happening if we run the ping command in the background

 

 

 

One difference that we have observed when running the following command cat /proc/bus/usb/devices is given below

 

For Renesas:

 

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2

B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=1d6b ProdID=0002 Rev= 2.06

S:  Manufacturer=Linux 2.6.28.10-ADI-2009R1 r8a66597_hcd

S:  Product=USB Host Controller

S:  SerialNumber=r8a66597_hcd

C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA

I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

 

T:  Bus=01 Lev=01 Prnt=01 Port=01 Cnt=01 Dev#=  2 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=148f ProdID=2770 Rev= 1.01

S:  Manufacturer=Ralink

S:  Product=802.11 n WLAN

S:  SerialNumber=1.0

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=450mA

I:* If#= 0 Alt= 0 #EPs= 7 Cls=ff(vend.) Sub=ff Prot=ff Driver=rt2870

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

For inbuilt USB:

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1

B:  Alloc=  0/800 us ( 0%), #Int=  0, #Iso=  0

D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=1d6b ProdID=0002 Rev= 2.06

S:  Manufacturer=Linux 2.6.28.10-ADI-2009R1 musb-hcd

S:  Product=MUSB HDRC host driver

S:  SerialNumber=musb_hdrc.0

C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA

I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub

E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

 

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  4 Spd=480 MxCh= 0

D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1

P:  Vendor=148f ProdID=3071 Rev= 1.01

S:  Manufacturer=Ralink

S:  Product=802.11 n WLAN

S:  SerialNumber=1.0

C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=450mA

I:* If#= 0 Alt= 0 #EPs= 7 Cls=ff(vend.) Sub=ff Prot=ff Driver=(none)

E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms

 

 

The only difference that we see is MxCh which is 2 in the case of renesas and 1 in the case of inbuilt USB.(Highlighted)

 

               Could someone please let us know if the MxCh is configurable and how we can configure this in the inbuilt USB case and if anyone has used the inbuilt USB host for any wireless devices and faces similar issues.

 

Regards,

 

Rajiv Mohan

QuoteReplyEditDelete

 

 

2010-09-15 00:55:49     Re: Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

Sonic Zhang (CHINA)

Message: 93441   

 

Which Linux on blackfin release do you use? 2009R1.1? Which bf527 rev.? 0.2? Do you enable USB DMA option? There is known hardware bugs on bf527 v0.0 and v0.1, which may disable the DMA operation.

QuoteReplyEditDelete

 

 

2010-09-17 05:19:34     Re: Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

Rajiv Mohan (INDIA)

Message: 93553   

 

Hi Sonic Zhang,

 

1) We have tried on 2009R1-RC61 and also on the latest 2010R1-BETA1 both the case we were observing the same results. (low performance)

 

2) The BF527 rev is 0.2

 

3) We have enabled USB DMA option by setting the following in make menuconfig.

 

<*> Inventra Highspeed Dual Role Controller (TI, ADI, ...) ¦ ¦

 

¦ ¦ *** Blackfin high speed USB Support *** ¦ ¦

¦ ¦ Driver Mode (USB Host) ---> ¦ ¦

¦ ¦ [ ] Disable DMA (always use PIO) (NEW) ¦ ¦             -> If it is not seleected, DMA Mode is enabled

¦ ¦ [ ] Enable debugging messages (NEW) ¦ ¦

 

4) We are using Rev 0.2

QuoteReplyEditDelete

 

 

2010-09-20 05:37:17     Re: Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

steven miao (CHINA)

Message: 93632   

 

Hi Rajiv,

 

The built-in usb otg controller of BF527 maybe be not compatible with some devices, so the performance is low.  Can you try another usb wifi module (except  ralink) to test the performance.

QuoteReplyEditDelete

 

 

2010-10-22 02:13:50     Re: Performance of wireless Ralink module with in-built USB stack of BF527EZKIT board

Rajiv Mohan (INDIA)

Message: 94832   

 

Hi,

 

Could anyone help us out in identifying a module that works with the inbuilt USB stack of BF527EZKIT board.

 

Regards,

 

Rajiv Mohan

Attachments

    Outcomes