Re: UDC performance on PXA270

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



I did some more tests on my PXA270 UDC using the Mass_Storage_Class.
I found out very interesting, but also disappointing figures:


1) Mount my Flash File System as the Mass Storage:
9,328,493 bytes File is copied to PC in 10 Seconds -> 930 KB/s
NOTE: I think this is the MAX reachable speed on the UDC... but i have to
test with RAMDISK someday...

2) Mount a USB Stick as the Mass Storage (so i can test with bigger files):
120 MB in several files copied in 245 Seconds -> 454 KB/s
NOTE: Ij think this has something to do with the PXA USB Host driver's
performance... But anyhow much more than what you get with Serial_Class.

3) Mount a SD Card as the Mass Storage:
49,329,224 bytes File is copied in 170 Seconds -> 290 KB/s
NOTE: this is also a little bit disappointing preformance for a SD Card
driver (my PC can read at 1.2MB/s from the same SD Card)

4) Mount a CF Disk as the Mass Storage:
18MB byte in several files are copied in 29 seconds -> 631 KB/s
NOTE: CF Timings are set almost to max... driver should be enhanced to
dynamcally set timings to the best.

I think there is much optimization potential in every driver provided by
Intel (or is it Microsoft?). There is no reason why you should not get the
transfer speed appropriate to each interface. The HW is good, but the SW is
really badly written and buggy.

We should start a better driver campain... :) Or enhance the drivers by our
own.


Germano Kern

Toradex
www.toradex.com



"Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
news:uuGryD9eFHA.3932@xxxxxxxxxxxxxxxxxxxxxxx
> yes, have looked too at the double fifos but did
> not give it a try. Still trying to understand if I need
> to dig deep.
>
>
> Anyone with PXA and working USB client. What is the normal
> speed for the UDC on XScale? Do I need to play if my
> drivers or it has no use on earth?
>
>
> "mobilevil" <mobilevil@xxxxxxxxxx> wrote in message
> news:%23yz$Tr8eFHA.2520@xxxxxxxxxxxxxxxxxxxxxxx
> > maybe it has something to do with double buffer and multi end point
> > usage??
> > i don't use double buffer. i tried once but the behavier of end point
> > status register is not as I expected.
> > and we couldn't do much in multi end point, as i(and you?) don't really
> > want to write a special host driver, right?
> >
> > "Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
> > news:uLsgyF7eFHA.2244@xxxxxxxxxxxxxxxxxxxxxxx
> >> Yeah, finally I got an old reader with USB 1.0,
> >> it shows aprox the same speed as Yours.
> >> Note mass storage is not one-direction transfer
> >> on a single endpoint, I think real throughput
> >> is more than 900KB.
> >>
> >> Well, this tells me it has something to do with
> >> PXAs UDC. Don't really know where to start, I've
> >> already optimized what was possible.
> >> I get an interrupt for the bulk endpoint and
> >> read data from the fifo. Nothing else, don't pass
> >> it to app or something like this. Only clear
> >> fifo on each interrupt, don't really sure it can
> >> be faster...
> >>
> >>
> >> "mobilevil" <mobilevil@xxxxxxxxxx> wrote in message
> >> news:u9mik56eFHA.2692@xxxxxxxxxxxxxxxxxxxxxxx
> >>> my usb 1.1 usb drive took 16 sec to transfer 13.xM. that is almost
> >>> 900kB/sec
> >>> i unpluged it before reading it, so it is not cache.
> >>> "Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
> >>> news:%23cX8DYyeFHA.2244@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>
> >>>>>>well my card reader do more then 250kb/sec
> >>>>>>
> >>>>
> >>>> I've made some tests with reader, printer etc and all devices
> >>>> seems to be speedy enough. Of course becuase they are all
> >>>> USB 2.0 :)
> >>>>
> >>>> Are You sure Your cardrider is USB1.1 or less? I'm looking for
> >>>> any old device in the office with USB 1.1 or less and I'm out
> >>>> of luck. Could You please confirm Your cardreader is v1.1
> >>>> or 1.0? Ideal will be to compare with v1.1 since PXA
> >>>> aims to be USB 1.1 compliant. What is the speed
> >>>> with Your card reader? Is it something around
> >>>> 1MB?
> >>>>
> >>>> "mobilevil" <mobilevil@xxxxxxxxxx> wrote in message
> >>>> news:ehAPuPweFHA.2420@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>> well my card reader do more then 250kb/sec, i guess it is a xscale
> >>>>> problem.
> >>>>> btw, i get 270kB/sec
> >>>>>
> >>>>> "Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
> >>>>> news:OjbuInveFHA.1680@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>> Still not clear what causes the problem :(
> >>>>>>
> >>>>>> I've just checked this way:
> >>>>>>
> >>>>>> Created my own simple client driver on the device side. Only
control
> >>>>>> enpoint
> >>>>>> and one bulk endpoint.
> >>>>>> Created a simple driver for the host side which does nothing except
> >>>>>> that
> >>>>>> cycles a single URB sending data to bulk endpoint via
underlaying
> >>>>>> USB
> >>>>>> bus driver.
> >>>>>>
> >>>>>> Well, still the same 250KB/s !!! Anyone please, is it possible to
> >>>>>> reach
> >>>>>> better speed on XP? Am I playing for nothing?
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>>> "K. S. Huang" <ksh_AT_bsquare_DOT_com> wrote in message
> >>>>>> news:eDGOTIGeFHA.1448@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>> Because the USB transaction is issued every 1ms, so I guess there
> >>>>>>> might be some redundent packet that due to some USB time frame is
> >>>>>>> *not* fully utilization.
> >>>>>>> One may tried to monitor every packet size to see if there are
some
> >>>>>>> short packet when perform RNDIS trasferation.
> >>>>>>>
> >>>>>>> "mobilevil" <kccheng@xxxxxxxxxxxxxxxxxxxxxx>
> >>>>>>> ¼¶¼g©ó¶l¥ó·s»D:e5oUbr$dFHA.4040@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>>>i don't have hardware analyzer too, but my software analyzer
didn't
> >>>>>>>>show anything wrong.
> >>>>>>>> i didn't messure but my boot loader rndis is running in similar
> >>>>>>>> speed as the windows driver. my bootloader code is not running
> >>>>>>>> interrupt, no DMA, dirty and hacky. if the performance is similar
> >>>>>>>> then ce's rndis client then i guess it is hardware or host driver
> >>>>>>>> problem.
> >>>>>>>> plus the 200mhz and 400mhz don't show performance difference, i
bet
> >>>>>>>> it is host problem.
> >>>>>>>> of course I'll have to do some real messure on ce5.0's rndis
client
> >>>>>>>> before making conclusion.
> >>>>>>>> "Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
> >>>>>>>> news:%23d86xp%23dFHA.3712@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>>>> Really strange though! 12MBit -> 250 KB.
> >>>>>>>>> Do You have an idea how to know for sure
> >>>>>>>>> it is host or device causing the problem?
> >>>>>>>>> I dont have usb analyzer here ... :(
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>> "mobilevil" <mobilevil@xxxxxxxxxx> wrote in message
> >>>>>>>>> news:ukVwTi%23dFHA.1404@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>>>>> my rndis is also running ar around 250. i can see it go to 300
> >>>>>>>>>> from time to time...
> >>>>>>>>>> and it's a host pc limitation i think, no matter i run my board
> >>>>>>>>>> at 200 or 400mhz, it just don't affect usb speed.
> >>>>>>>>>> the same board same hardware run at 150k in another pc with
> >>>>>>>>>> similar config. strange enough
> >>>>>>>>>>
> >>>>>>>>>> "Voidcoder" <voidcoder@xxxxxxxxx> wrote in message
> >>>>>>>>>> news:%23pDaxS9dFHA.3328@xxxxxxxxxxxxxxxxxxxxxxx
> >>>>>>>>>>> Hi. Could someone please share his experience
> >>>>>>>>>>> with PXA USB client controller + windows xp sp2
> >>>>>>>>>>> host?
> >>>>>>>>>>>
> >>>>>>>>>>> I'm not able to reach more than 250KB/s on RNDIS. Other
> >>>>>>>>>>> USB function drivers seem to be even slower (eg. USB Serial).
> >>>>>>>>>>> So what is the highest speed everyone ever seen on
> >>>>>>>>>>> Wince 5.0 on XScale and Windows XP on the
> >>>>>>>>>>> host side?
> >>>>>>>>>>>
> >>>>>>>>>>> It seems to be a strange speed limit of 250KB/s ...
> >>>>>>>>>>> Do not understand is it windows xp jokes or
> >>>>>>>>>>> PXA270 USB function driver on device, or RNDIS
> >>>>>>>>>>> driver itself.
> >>>>>>>>>>>
> >>>>>>>>>>> Please shed some light on the problem.
> >>>>>>>>>>>
> >>>>>>>>>>> Thanks.
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>>
> >>>>>>>>>
> >>>>>>>>>
> >>>>>>>>
> >>>>>>>>
> >>>>>>>
> >>>>>>>
> >>>>>>
> >>>>>>
> >>>>>
> >>>>>
> >>>>
> >>>>
> >>>
> >>>
> >>
> >>
> >
> >
>
>


.



Relevant Pages

  • usb pendrive strangness
    ... On a stock debian sarge, fresh install, I can enter these two lines into ... I can then mount as user or root both devices. ... tells me I will see this error with usb mas storage ... host/usb-uhci.c: v1.275:USB Universal Host Controller Interface driver ...
    (Debian-User)
  • Re: UDC performance on PXA270
    ... The standard USB function driver for PXA27x shipped with ce ... >> 1) Mount my Flash File System as the Mass Storage: ...
    (microsoft.public.windowsce.platbuilder)
  • HAL FSTAB-SYNC KONQUEROR
    ... In FC5 HAL does not call fstab-sync to alter it any longer. ... driver and USB ... device used to be added like that and now I can not mount either of devices. ...
    (Fedora)
  • USB stability opinions?
    ... It would seem that a system with USB installed can get Windows-like ... Partitions will be seen, but won't mount. ... Stop the USB driver and reload and the above problems will probably be ... This isn't a request for a problem fix since I am not sure what ...
    (comp.os.linux.hardware)
  • Re: Cannot mount cdrom? Pls help
    ... checking for saved MCA error records ... CPU 1 SAL log contains MCA error record ... > EFI Time Services Driver v0.4 ... I also cannot mount /media/cdrom. ...
    (linux.redhat.misc)