<?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: PCIe locks CPU on IMX6Q+ in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-locks-CPU-on-IMX6Q/m-p/711526#M110630</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at solutions provided on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388572"&gt;IMX6Q: Linux boot halts at PCIe config space read&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pcie works fine on latest nxp official releases described on&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%2Fproducts%2Fsoftware-and-tools%2Fsoftware-development-tools%2Fi.mx-software-and-tools%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&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>Mon, 25 Sep 2017 07:48:15 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-09-25T07:48:15Z</dc:date>
    <item>
      <title>PCIe locks CPU on IMX6Q+</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-locks-CPU-on-IMX6Q/m-p/711525#M110629</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 2 identical pcds. &amp;nbsp;The boards are identical except one has a IMX6Q and the other a IMX6Q+ processor. Using the same SD card to boot both machines (therefore the code is identical) one processor load PCIe and it works and will print out the pci -v information. &amp;nbsp;The other board does not completely boot and hangs when it tries to find the physical link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;The code in question is as follows:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;/* wait for the physical link to start */&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;static int pcie_wait_link_up(imx6x_dev_t *pdev, int wait_ms)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;{&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;uint32_t val;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;int count;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;// Fix for POR 0000270 : PCI driver hangs when re-started after being slayed&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;// We need to allow time for the link to settle before reading the DB_R1 register&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;// otherwise the system will hang.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;delay(100);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;count = wait_ms;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;#ifdef PCI_DEBUG&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;printf( "pcie_wait_link_up %d addr=0x%X\n", count, pdev-&amp;gt;pci_dbi_base + DB_R1 );&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;#endif&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;do&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;{&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;val = in32(pdev-&amp;gt;pci_dbi_base + DB_R1) &amp;amp; (0x1 &amp;lt;&amp;lt; (36 - 32)); // link is debug bit 36 debug 1 start in bit 32&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;delay(1);&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;count--;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;} while ( !val &amp;amp;&amp;amp; ((count &amp;gt; 0) || (wait_ms == 0)) );&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;if (!val)&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;return -1;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;return 0;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR style="color: #333333; font-size: 10.8px;" /&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;}&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;It never returns from the in32 as I have put a debug statement following it that never happens. This kills every other process on the unit also.&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #eeede9; font-size: 10.8px;"&gt;Please let me know what you would like to help resolve this issue. We need to get this solved as soon as possible. Thanks so much.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2017 12:34:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PCIe-locks-CPU-on-IMX6Q/m-p/711525#M110629</guid>
      <dc:creator>stoner</dc:creator>
      <dc:date>2017-09-22T12:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: PCIe locks CPU on IMX6Q+</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/PCIe-locks-CPU-on-IMX6Q/m-p/711526#M110630</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Steve&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please look at solutions provided on&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/thread/388572"&gt;IMX6Q: Linux boot halts at PCIe config space read&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pcie works fine on latest nxp official releases described on&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%2Fproducts%2Fsoftware-and-tools%2Fsoftware-development-tools%2Fi.mx-software-and-tools%2Fi.mx-6series-i.mx-7series-software-and-development-tool-resources%3AIMX_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW&lt;/A&gt;&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>Mon, 25 Sep 2017 07:48:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/PCIe-locks-CPU-on-IMX6Q/m-p/711526#M110630</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-09-25T07:48:15Z</dc:date>
    </item>
  </channel>
</rss>

