<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: USB3 Writing Speed problem on LS1046ARDB in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656962#M2344</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121; background: white;"&gt;Do you know what types of file format do you use? We found out the Ext4 can give you a better performance. As far as improving the USB performance, you can change the values of USB_GSBUSCFG0 and USB_GSBUSCFG1 registers. It may help you on your board. What type of performance tools did you use? We use FIO. We got more than 300 MB/s on LS1043, which uses the same controller and PHY.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 May 2017 06:01:33 GMT</pubDate>
    <dc:creator>Pavel</dc:creator>
    <dc:date>2017-05-03T06:01:33Z</dc:date>
    <item>
      <title>USB3 Writing Speed problem on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656961#M2343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a LS1046 RDB card with the Linux from the SDK 2.0 1703.&lt;/P&gt;&lt;P&gt;When I test the USB3 writing speed with a dd on a raw device, the speed is way lower than the speed I can achieve on a x86_64 PC. On a PC, I have a speed of 130MB/s and on the 1046a the speed is only 40MB/s.&lt;/P&gt;&lt;P&gt;With a real lsusb, the result is:&lt;/P&gt;&lt;P&gt;lsusb -t&lt;/P&gt;&lt;P&gt;/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-hcd/1p, 5000M&lt;BR /&gt; |__ Port 1: Dev 3, If 0, Class=Mass Storage, Driver=usb-storage, 5000M&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lsusb -v&lt;/P&gt;&lt;P&gt;Bus 002 Device 003: ID 0951:1696 Kingston Technology&lt;BR /&gt;Device Descriptor:&lt;BR /&gt; bLength 18&lt;BR /&gt; bDescriptorType 1&lt;BR /&gt; bcdUSB 3.00&lt;BR /&gt; bDeviceClass 0 (Defined at Interface level)&lt;BR /&gt; bDeviceSubClass 0&lt;BR /&gt; bDeviceProtocol 0&lt;BR /&gt; bMaxPacketSize0 9&lt;BR /&gt; idVendor 0x0951 Kingston Technology&lt;BR /&gt; idProduct 0x1696&lt;BR /&gt; bcdDevice 1.10&lt;BR /&gt; iManufacturer 1 Kingston&lt;BR /&gt; iProduct 2 DTHX Predator&lt;BR /&gt; iSerial 3 20CF30E118F8EE20520E0F7F&lt;BR /&gt; bNumConfigurations 1&lt;BR /&gt; Configuration Descriptor:&lt;BR /&gt; bLength 9&lt;BR /&gt; bDescriptorType 2&lt;BR /&gt; wTotalLength 44&lt;BR /&gt; bNumInterfaces 1&lt;BR /&gt; bConfigurationValue 1&lt;BR /&gt; iConfiguration 0&lt;BR /&gt; bmAttributes 0x80&lt;BR /&gt; (Bus Powered)&lt;BR /&gt; MaxPower 224mA&lt;BR /&gt; Interface Descriptor:&lt;BR /&gt; bLength 9&lt;BR /&gt; bDescriptorType 4&lt;BR /&gt; bInterfaceNumber 0&lt;BR /&gt; bAlternateSetting 0&lt;BR /&gt; bNumEndpoints 2&lt;BR /&gt; bInterfaceClass 8 Mass Storage&lt;BR /&gt; bInterfaceSubClass 6 SCSI&lt;BR /&gt; bInterfaceProtocol 80 Bulk-Only&lt;BR /&gt; iInterface 0&lt;BR /&gt; Endpoint Descriptor:&lt;BR /&gt; bLength 7&lt;BR /&gt; bDescriptorType 5&lt;BR /&gt; bEndpointAddress 0x81 EP 1 IN&lt;BR /&gt; bmAttributes 2&lt;BR /&gt; Transfer Type Bulk&lt;BR /&gt; Synch Type None&lt;BR /&gt; Usage Type Data&lt;BR /&gt; wMaxPacketSize 0x0400 1x 1024 bytes&lt;BR /&gt; bInterval 0&lt;BR /&gt; bMaxBurst 14&lt;BR /&gt; Endpoint Descriptor:&lt;BR /&gt; bLength 7&lt;BR /&gt; bDescriptorType 5&lt;BR /&gt; bEndpointAddress 0x02 EP 2 OUT&lt;BR /&gt; bmAttributes 2&lt;BR /&gt; Transfer Type Bulk&lt;BR /&gt; Synch Type None&lt;BR /&gt; Usage Type Data&lt;BR /&gt; wMaxPacketSize 0x0400 1x 1024 bytes&lt;BR /&gt; bInterval 0&lt;BR /&gt; bMaxBurst 14&lt;BR /&gt;Binary Object Store Descriptor:&lt;BR /&gt; bLength 5&lt;BR /&gt; bDescriptorType 15&lt;BR /&gt; wTotalLength 22&lt;BR /&gt; bNumDeviceCaps 2&lt;BR /&gt; USB 2.0 Extension Device Capability:&lt;BR /&gt; bLength 7&lt;BR /&gt; bDescriptorType 16&lt;BR /&gt; bDevCapabilityType 2&lt;BR /&gt; bmAttributes 0x00000002&lt;BR /&gt; Link Power Management (LPM) Supported&lt;BR /&gt; SuperSpeed USB Device Capability:&lt;BR /&gt; bLength 10&lt;BR /&gt; bDescriptorType 16&lt;BR /&gt; bDevCapabilityType 3&lt;BR /&gt; bmAttributes 0x00&lt;BR /&gt; wSpeedsSupported 0x000e&lt;BR /&gt; Device can operate at Full Speed (12Mbps)&lt;BR /&gt; Device can operate at High Speed (480Mbps)&lt;BR /&gt; Device can operate at SuperSpeed (5Gbps)&lt;BR /&gt; bFunctionalitySupport 2&lt;BR /&gt; Lowest fully-functional device speed is High Speed (480Mbps)&lt;BR /&gt; bU1DevExitLat 10 micro seconds&lt;BR /&gt; bU2DevExitLat 2047 micro seconds&lt;BR /&gt;Device Status: 0x0000&lt;BR /&gt; (Bus Powered)&lt;/P&gt;&lt;P&gt;Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub&lt;BR /&gt;Device Descriptor:&lt;BR /&gt; bLength 18&lt;BR /&gt; bDescriptorType 1&lt;BR /&gt; bcdUSB 3.00&lt;BR /&gt; bDeviceClass 9 Hub&lt;BR /&gt; bDeviceSubClass 0 Unused&lt;BR /&gt; bDeviceProtocol 3&lt;BR /&gt; bMaxPacketSize0 9&lt;BR /&gt; idVendor 0x1d6b Linux Foundation&lt;BR /&gt; idProduct 0x0003 3.0 root hub&lt;BR /&gt; bcdDevice 4.01&lt;BR /&gt; iManufacturer 3 Linux 4.1.35-rt41 xhci-hcd&lt;BR /&gt; iProduct 2 xHCI Host Controller&lt;BR /&gt; iSerial 1 xhci-hcd.0.auto&lt;BR /&gt; bNumConfigurations 1&lt;BR /&gt; Configuration Descriptor:&lt;BR /&gt; bLength 9&lt;BR /&gt; bDescriptorType 2&lt;BR /&gt; wTotalLength 31&lt;BR /&gt; bNumInterfaces 1&lt;BR /&gt; bConfigurationValue 1&lt;BR /&gt; iConfiguration 0&lt;BR /&gt; bmAttributes 0xe0&lt;BR /&gt; Self Powered&lt;BR /&gt; Remote Wakeup&lt;BR /&gt; MaxPower 0mA&lt;BR /&gt; Interface Descriptor:&lt;BR /&gt; bLength 9&lt;BR /&gt; bDescriptorType 4&lt;BR /&gt; bInterfaceNumber 0&lt;BR /&gt; bAlternateSetting 0&lt;BR /&gt; bNumEndpoints 1&lt;BR /&gt; bInterfaceClass 9 Hub&lt;BR /&gt; bInterfaceSubClass 0 Unused&lt;BR /&gt; bInterfaceProtocol 0 Full speed (or root) hub&lt;BR /&gt; iInterface 0&lt;BR /&gt; Endpoint Descriptor:&lt;BR /&gt; bLength 7&lt;BR /&gt; bDescriptorType 5&lt;BR /&gt; bEndpointAddress 0x81 EP 1 IN&lt;BR /&gt; bmAttributes 3&lt;BR /&gt; Transfer Type Interrupt&lt;BR /&gt; Synch Type None&lt;BR /&gt; Usage Type Data&lt;BR /&gt; wMaxPacketSize 0x0004 1x 4 bytes&lt;BR /&gt; bInterval 12&lt;BR /&gt; bMaxBurst 0&lt;BR /&gt;Hub Descriptor:&lt;BR /&gt; bLength 12&lt;BR /&gt; bDescriptorType 42&lt;BR /&gt; nNbrPorts 1&lt;BR /&gt; wHubCharacteristic 0x0009&lt;BR /&gt; Per-port power switching&lt;BR /&gt; Per-port overcurrent protection&lt;BR /&gt; bPwrOn2PwrGood 10 * 2 milli seconds&lt;BR /&gt; bHubContrCurrent 0 milli Ampere&lt;BR /&gt; bHubDecLat 0.0 micro seconds&lt;BR /&gt; wHubDelay 0 nano seconds&lt;BR /&gt; DeviceRemovable 0x00&lt;BR /&gt; Hub Port Status:&lt;BR /&gt; Port 1: 0000.0203 5Gbps power U0 enable connect&lt;BR /&gt;Binary Object Store Descriptor:&lt;BR /&gt; bLength 5&lt;BR /&gt; bDescriptorType 15&lt;BR /&gt; wTotalLength 15&lt;BR /&gt; bNumDeviceCaps 1&lt;BR /&gt; SuperSpeed USB Device Capability:&lt;BR /&gt; bLength 10&lt;BR /&gt; bDescriptorType 16&lt;BR /&gt; bDevCapabilityType 3&lt;BR /&gt; bmAttributes 0x02&lt;BR /&gt; Latency Tolerance Messages (LTM) Supported&lt;BR /&gt; wSpeedsSupported 0x0008&lt;BR /&gt; Device can operate at SuperSpeed (5Gbps)&lt;BR /&gt; bFunctionalitySupport 3&lt;BR /&gt; Lowest fully-functional device speed is SuperSpeed (5Gbps)&lt;BR /&gt; bU1DevExitLat 0 micro seconds&lt;BR /&gt; bU2DevExitLat 0 micro seconds&lt;BR /&gt;Device Status: 0x0001&lt;BR /&gt; Self Powered&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And there is an other problem. When I plug an USB key, the port shuts down (5VCC LED turns off) and only a lsusb -v can turn it back on. Doesn't know where to look for.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone has an idea where to look for these problems?&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Marc&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 May 2017 15:22:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656961#M2343</guid>
      <dc:creator>marco3181</dc:creator>
      <dc:date>2017-05-02T15:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: USB3 Writing Speed problem on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656962#M2344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; color: #212121; background: white;"&gt;Do you know what types of file format do you use? We found out the Ext4 can give you a better performance. As far as improving the USB performance, you can change the values of USB_GSBUSCFG0 and USB_GSBUSCFG1 registers. It may help you on your board. What type of performance tools did you use? We use FIO. We got more than 300 MB/s on LS1043, which uses the same controller and PHY.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Pavel Chubakov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 May 2017 06:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656962#M2344</guid>
      <dc:creator>Pavel</dc:creator>
      <dc:date>2017-05-03T06:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: USB3 Writing Speed problem on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656963#M2345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I use no file format to test. I test the raw speed. I use dd to test USB key, like this:&lt;/P&gt;&lt;P&gt;time dd if=/dev/zero of=/dev/sdb oflag=direct conv=fdatasync bs=64k count=100&lt;/P&gt;&lt;P&gt;With a bs=64k, the speed is 200MB/s. With a bs=1M, it drops down to 26MB/s.&lt;/P&gt;&lt;P&gt;The same tests on a PC are always around 200MB/s. Don't know what is the difference here.&lt;/P&gt;&lt;P&gt;With Linux, it seems that LS1046A and LS1043A are not configured the same way. The dts for the two platform on the usb part is not equal and one configuration is useless for a 4.1 kernel:&lt;/P&gt;&lt;P&gt;- usb 1043a&lt;/P&gt;&lt;P&gt;usb0: usb3@2f00000 {&lt;BR /&gt; compatible = "snps,dwc3";&lt;BR /&gt; reg = &amp;lt;0x0 0x2f00000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;0 60 0x4&amp;gt;;&lt;BR /&gt; dr_mode = "host";&lt;BR /&gt; configure-gfladj;&lt;BR /&gt; snps,dis_rxdet_inp3_quirk;&lt;BR /&gt; };&lt;/P&gt;&lt;P&gt;- usb 1046a&lt;/P&gt;&lt;P&gt;usb0: usb@2f00000 {&lt;BR /&gt; compatible = "snps,dwc3";&lt;BR /&gt; reg = &amp;lt;0x0 0x2f00000 0x0 0x10000&amp;gt;;&lt;BR /&gt; interrupts = &amp;lt;GIC_SPI 60 IRQ_TYPE_LEVEL_HIGH&amp;gt;;&lt;BR /&gt; dr_mode = "host";&lt;BR /&gt; snps,quirk-frame-length-adjustment = &amp;lt;0x20&amp;gt;;&lt;BR /&gt;};&lt;/P&gt;&lt;P&gt;As I said earlier,&amp;nbsp;&lt;SPAN&gt;quirk-frame-length-adjustment is useless in the 4.1 driver dwc3. Only&amp;nbsp;configure-gfladj is used to restrict the frame length to 0x20.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I will try to look for more informations.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Marc&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 04 May 2017 12:51:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656963#M2345</guid>
      <dc:creator>marco3181</dc:creator>
      <dc:date>2017-05-04T12:51:39Z</dc:date>
    </item>
    <item>
      <title>Re: USB3 Writing Speed problem on LS1046ARDB</title>
      <link>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656964#M2346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We actually see same thing, however on ls1043a. The question is how to change these registers, in which files or with which tools?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 13.333333015441895px;"&gt;USB_GSBUSCFG0 and USB_GSBUSCFG1 registers?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #212121; background-color: #ffffff; font-size: 13.333333015441895px;"&gt;I've seen that you got 300MB/s that's with usb bursting enabled on the device under test or without usb bursting, is usb bursting at all working on ls1043a?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Jun 2017 21:40:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/USB3-Writing-Speed-problem-on-LS1046ARDB/m-p/656964#M2346</guid>
      <dc:creator>tomasc</dc:creator>
      <dc:date>2017-06-22T21:40:33Z</dc:date>
    </item>
  </channel>
</rss>

