<?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>i.MX ProcessorsのトピックRe: iMX6 / XIO2213BZAY / Drive Connection</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575931#M88005</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, is anyone available here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Nov 2016 17:38:00 GMT</pubDate>
    <dc:creator>jalden</dc:creator>
    <dc:date>2016-11-10T17:38:00Z</dc:date>
    <item>
      <title>iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575928#M88002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;I am currently trying to find a solution to the below setup&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;&lt;STRONG&gt;Setup:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;The setup consists of a connection from iMX6 to a XIOO2213BZAY chip via PCI then connected to removable memory modules via firewire&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;&lt;STRONG&gt;Reference:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;I have been using the nitrogen6x to model the behavior.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;&lt;STRONG&gt;Kernel Version:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;I have tested a variety of versions. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;3.10.17, 3.10.53, &lt;SPAN style="font-weight: normal;"&gt;3.14.&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;52&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;, &amp;amp; 4.&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;1.&lt;/SPAN&gt;&lt;SPAN style="font-weight: normal;"&gt;15&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;&lt;STRONG&gt;Behavior:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;The expected behavior is that the drives would connect every time. Right now the behavior changes depending on the Linux kernel version. We have had the best luck with 3.10.17 which works intermittently. Some boards will not connect the PCI at all, some boards are intermittent, and some connect every time. It is about a 25% failure rate. When applying the other Linux Kernels, the PCI connects 100% of the time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&lt;SPAN style="font-family: Carlito,sans-serif;"&gt;Linux Kernel 3.10.53, 3.14.52 &amp;amp; 4.1.15 were able to connect the PCI component; however, the failed loading firewire_sbp2 driver. This occurs 100% of the time with these kernels. &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px; margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;&lt;STRONG&gt;Attached:&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0in; font-weight: normal; line-height: 100%;"&gt;dmesg logs for failed and successful drive connections.&amp;nbsp; At the end of the captures, I include the results for lsmod &amp;amp; lspci.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336746"&gt;rmm_not_connect.cap.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Original Attachment has been moved to: &lt;A _jive_internal="true" href="https://community.nxp.com/docs/DOC-336746"&gt;rmm_connect.cap.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 31 Aug 2016 01:13:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575928#M88002</guid>
      <dc:creator>jalden</dc:creator>
      <dc:date>2016-08-31T01:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575929#M88003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCIe phy settings are defined in IOMUXC_GPR8 register, one&lt;/P&gt;&lt;P&gt;also can look at AN4784 PCIe Certification Guide for i.MX 6Dual/6Quad&lt;/P&gt;&lt;P&gt;and i.MX 6Solo/6DualLite&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.nxp.com/files/32bit/doc/app_note/AN4784.pdf" title="http://www.nxp.com/files/32bit/doc/app_note/AN4784.pdf"&gt;http://www.nxp.com/files/32bit/doc/app_note/AN4784.pdf&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so if some kernel fails, one can check these settings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&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, 31 Aug 2016 06:57:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575929#M88003</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-08-31T06:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575930#M88004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;Hello Igor,&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;I have dug deeper into the issue I am having with the firewire drives. &amp;nbsp;It appears that I am getting funny readings&amp;nbsp;from DMA. &amp;nbsp;I modified the driver to do a repeat read, continuously, if a failure occurs. &amp;nbsp;I have also included a variety of command like 'smp_mb()', 'sync', "echo 3 &amp;gt; /proc/sys/vm/drop_cache" &amp;nbsp;that in some cases would help establish a connection. &amp;nbsp;Once a connection was established I was able to connect to the drives just fine. &amp;nbsp;The failure seems to be coming from a&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;sbp2_login attempt. &amp;nbsp;'orb-&amp;gt;response' is used as the buffer passed into&amp;nbsp;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;dma_map_single which seems to have mixed up results. &amp;nbsp;Half of the array is always&amp;nbsp;consistent&amp;nbsp;element 0 &amp;amp; 1; meanwhile, element 2 &amp;amp; 3 return as 0x00's in some cases. &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Do you have any ideas what would cause incomplete reading from DMA?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;I have also attached the dmesg if needed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Any help is&amp;nbsp;appreciated,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;Jason&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;********************************* &amp;nbsp;Successful Run ************************************&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;sbp2_login: size of response: 16&lt;BR /&gt;sbp2_send_management_orb: dma_map_single: DMA_FROM_DEVICE&lt;BR /&gt;sbp2_send_management_orb: dev id: 0xD219E868&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response_bus: 0x223752B8 ;function: 0x0&lt;BR /&gt;sbp2_send_management_orb: lu-&amp;gt;tgt-&amp;gt;management_agent_address = 0xFFFFF0030000&lt;BR /&gt;sbp2_send_management_orb: dma_map_single: DMA_TO_DEVICE&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;base.request_bus: 0x22375298&lt;BR /&gt;sbp2_send_orb 0x22375298&lt;BR /&gt;complete_transaction 0x22375298&lt;BR /&gt;sbp2_status_write: spin_lock_irqsave&lt;BR /&gt;sbp2_status_write: sync&lt;BR /&gt;sbp2_status_write: spin_unlock_irqrestore&lt;BR /&gt;complete_managment_orb 0x223752B8&lt;BR /&gt;sbp2_send_management_orb:wait_for_completion_timeout: 2997 , orb-&amp;gt;done = 0 ; timeout = 196611&lt;BR /&gt;sbp2_cancel_orbs: &lt;BR /&gt;sbp2_send_management_orb: dma_unmap_single: DMA_TO_DEVICE&lt;BR /&gt;sbp2_send_management_orb: dma_unmap_single: DMA_FROM_DEVICE&lt;BR /&gt;sbp2_send_management_orb: memcpy size = 16&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[0] = 0x1000&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[1] = 0xFFFFC0FF&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[2] = 0x10F0&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[3] = 0x3000000&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="border: 0px; font-weight: inherit;"&gt;********************************* &amp;nbsp;Failed Run ************************************&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;sbp2_login: size of response: 16&lt;BR /&gt;sbp2_send_management_orb: dma_map_single: DMA_FROM_DEVICE&lt;BR /&gt;sbp2_send_management_orb: dev id: 0xD219E868&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response_bus: 0x225FFFB8 ;function: 0x0&lt;BR /&gt;sbp2_send_management_orb: lu-&amp;gt;tgt-&amp;gt;management_agent_address = 0xFFFFF0030000&lt;BR /&gt;sbp2_send_management_orb: dma_map_single: DMA_TO_DEVICE&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;base.request_bus: 0x225FFF98&lt;BR /&gt;sbp2_send_orb 0x225FFF98&lt;BR /&gt;complete_transaction 0x225FFF98&lt;BR /&gt;sbp2_status_write: spin_lock_irqsave&lt;BR /&gt;sbp2_status_write: sync&lt;BR /&gt;sbp2_status_write: spin_unlock_irqrestore&lt;BR /&gt;complete_managment_orb 0x225FFFB8&lt;BR /&gt;sbp2_send_management_orb:wait_for_completion_timeout: 2997 , orb-&amp;gt;done = 0 ; timeout = 196611&lt;BR /&gt;sbp2_cancel_orbs: &lt;BR /&gt;sbp2_send_management_orb: dma_unmap_single: DMA_TO_DEVICE&lt;BR /&gt;sbp2_send_management_orb: dma_unmap_single: DMA_FROM_DEVICE&lt;BR /&gt;sbp2_send_management_orb: memcpy size = 16&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[0] = 0x1000&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[1] = 0xFFFFC0FF&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[2] = 0x0&lt;BR /&gt;sbp2_send_management_orb: orb-&amp;gt;response[3] = 0x0&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Oct 2016 16:55:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575930#M88004</guid>
      <dc:creator>jalden</dc:creator>
      <dc:date>2016-10-31T16:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575931#M88005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, is anyone available here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2016 17:38:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575931#M88005</guid>
      <dc:creator>jalden</dc:creator>
      <dc:date>2016-11-10T17:38:00Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575932#M88006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this device is not supported in NXP BSPs, standard support way may be&lt;/P&gt;&lt;P&gt;NXP Professional Services:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fsupport%2Fnxp-professional-services%3APROFESSIONAL-SERVICE" rel="nofollow" target="_blank"&gt;http://www.nxp.com/support/nxp-professional-services:PROFESSIONAL-SERVICE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2016 00:22:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575932#M88006</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-11-11T00:22:42Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575933#M88007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your response Igor, I do know the device is not supported; however, I believe PCI and DMA are supported. &amp;nbsp;The logging reveals failure on the part of a DMA read. &amp;nbsp;Additionally, firewire driver works as expected&amp;nbsp;as long as the DMA read is successful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there anything I can do to ensure a successful read from DMA?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 20:47:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575933#M88007</guid>
      <dc:creator>jalden</dc:creator>
      <dc:date>2016-11-14T20:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575934#M88008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Jason&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PCIe is supported, but i.MX6 DMA with PCIe not supported in&lt;/P&gt;&lt;P&gt;NXP BSPs. One can add such support himself using patches on&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://community.freescale.com/docs/DOC-95014" title="https://community.freescale.com/docs/DOC-95014"&gt;https://community.freescale.com/docs/DOC-95014&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 23:23:54 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575934#M88008</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-11-14T23:23:54Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 / XIO2213BZAY / Drive Connection</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575935#M88009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Igor, I will give it a shot&lt;/P&gt;&lt;P&gt;Jason&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2016 23:41:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-XIO2213BZAY-Drive-Connection/m-p/575935#M88009</guid>
      <dc:creator>jalden</dc:creator>
      <dc:date>2016-11-14T23:41:51Z</dc:date>
    </item>
  </channel>
</rss>

