LS1046a slow write on USB3

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LS1046a slow write on USB3

979 Views
marco3181
Contributor III

Hi,

I already asked something like that a long time ago, but I prefer ask a fresh question than digging an old one.

I have a linux based on Yocto with a 4.13.5 kernel on a LS1046a rdb card. An USB3 key with a F2FS or Ext4 FS is slow as hell on this card. Writing on it is maxed at 20MB/s, but reading speed is around 220MB/s. I use a script with dd to test the writing speed (see the attached files).

I tried different registers to improve the results :

- SCFG_SNPCNFGCR at 0x15701A4 with or without snooping activated. With snooping, the result is the same on writing but the reading is falling around 100MB/s. So no snooping.

- GSBUSCFG0 at 0x2F0C100, I put the recommended value of 0x2222000F, no enhancement.

- GSBUSCFG1 at 0x2F0C104, I put the recommended value of 0x00000F00, no enhancement.

I don't know what to do. I need a gigabit writing speed for my USB3 stick and I can't go faster than an USB2 stick with this card. I know that my USB stick can do this speed (Kingston Technology DT Ultimate GT), on a PC I can go up to 145MB/s.

Is there somebody with a ls1046a rdb and a working USB3 gigabit speed? What can I configure to speed the USB3 port with a Linux system?

Thank you for your help.

Marc

Labels (1)
Tags (3)
0 Kudos
3 Replies

813 Views
Pavel
NXP Employee
NXP Employee

Look at the following page about real USB3 performance:

https://www.everythingusb.com/speed.html

 

Look at the following page of NXP about ASK for the LS1043a. This tool can be used for changing USB driver to provide high-speed:

https://www.nxp.com/support/developer-resources/software-development-tools/qoriq-developer-resources...


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

813 Views
Pavel
NXP Employee
NXP Employee

Look at the following pages about USB Flash Write speed:

http://www.flashbay.com/support/faq/usb-flash-drive-read-write-speed

 

and

 

http://usbspeed.nirsoft.net/

 

and

 

http://usb.userbenchmark.com/

 

Note: SDK USB driver is not optimized for speed.


Have a great day,
Pavel Chubakov

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

813 Views
marco3181
Contributor III

Hi Pavel,

Thank you for your time but I think I wasn't clear in my problem. I'm not native english, so maybe I was lost in translation.

I know that USB key can be less speedy than expected. But my key was tested on a Dell PC on an USB3 port. The result is way higher than the one on the ls1046a. Moreover, you told me in an other thread that ls1043a is going faster with the USB3. ls1043a and ls1046a use the same USB3 port, so normaly I would have the same speed on ls1046a.

The ls1046a USB3 port seems to be able to go quicker because if I use an Hub between the ls1046a port and the USB key, writing speed goes up to 80MB/s. So the Hub is doing something the port is not doing.

And I was thinking that the base SDK delivered with the evaluation card was a bit optimized. When I first posted a thread on this problem, I was with the kernel 4.1 NXP SDK.

In short, does that mean that there is place for enhancement (and if so, what can I do to attain it) or do you mean that this processor can't go at USB3 speed? If the later, then I have to change all the cards we will build because we need at least gigabit storage on USB3 stick.

C U.

Marc

0 Kudos