<?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 iMX6SX Linux boot hang on PCIe with M4 loaded in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972058#M144754</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have discovered a curious issue on the iMX6SX&amp;nbsp;with the Linux 4.14 code base using PCIe&amp;nbsp;on the A9 while the M4 processor is booted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that I can build a working version of Linux 4.14.78 which will boot reliably, and allows me to use the&amp;nbsp;PCI bus over PCIe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I load and boot the M4 processor (e.g. I build and load one of the M4 processor example programs) from uboot 2018-03, and then boot the &lt;EM&gt;&lt;STRONG&gt;exact&lt;/STRONG&gt; &lt;/EM&gt;same Linux, it hangs when trying to configure the PCIe device. It freezes on a read instruction when it first tries to access the PCI configuration space. It appears to be&amp;nbsp;something to do with the Resource Domain Controller (RDC).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 26 Jun 2019 08:48:13 GMT</pubDate>
    <dc:creator>simonlocke</dc:creator>
    <dc:date>2019-06-26T08:48:13Z</dc:date>
    <item>
      <title>iMX6SX Linux boot hang on PCIe with M4 loaded</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972058#M144754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have discovered a curious issue on the iMX6SX&amp;nbsp;with the Linux 4.14 code base using PCIe&amp;nbsp;on the A9 while the M4 processor is booted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have found that I can build a working version of Linux 4.14.78 which will boot reliably, and allows me to use the&amp;nbsp;PCI bus over PCIe.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, if I load and boot the M4 processor (e.g. I build and load one of the M4 processor example programs) from uboot 2018-03, and then boot the &lt;EM&gt;&lt;STRONG&gt;exact&lt;/STRONG&gt; &lt;/EM&gt;same Linux, it hangs when trying to configure the PCIe device. It freezes on a read instruction when it first tries to access the PCI configuration space. It appears to be&amp;nbsp;something to do with the Resource Domain Controller (RDC).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 08:48:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972058#M144754</guid>
      <dc:creator>simonlocke</dc:creator>
      <dc:date>2019-06-26T08:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SX Linux boot hang on PCIe with M4 loaded</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972059#M144755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have posted this question, so that I can put the answer up, as I have in fact found the solution to my own issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The potential&amp;nbsp;RDC issue caused by booting the M4 then booting Linux&amp;nbsp;seems to be resolved by putting PCIe into uBoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We had not put PCIe into our uboot, as our uboot does not need to do anything with out PCIe device and does not have drivers for it anyway. Therefore in out &lt;EM&gt;&lt;STRONG&gt;uboot&lt;/STRONG&gt; &lt;/EM&gt;build config&amp;nbsp;we had not set:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONFIG_PCI&lt;/P&gt;&lt;P&gt;CONFIG_CMD_PCI&lt;/P&gt;&lt;P&gt;CONFIG_PCIE_IMX&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Linux on its own, this does not cause an issue. However, as soon as you boot the M4, there is something happening with the RDC that means that it blocks access to the PCIe for the A9 Linux.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The solution is to ensure you have PCIe built into your uboot image&amp;nbsp;(with the 3 above config options).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when you boot the M4 from uboot, the PCIe is not blocked, so it means that Linux boots successfully, and configures the PCIe correctly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:01:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972059#M144755</guid>
      <dc:creator>simonlocke</dc:creator>
      <dc:date>2019-06-26T09:01:33Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6SX Linux boot hang on PCIe with M4 loaded</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972060#M144756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also, I don't know how related this is&amp;nbsp;to the following issue:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.nxp.com/thread/440575"&gt;https://community.nxp.com/thread/440575&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Jun 2019 09:08:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6SX-Linux-boot-hang-on-PCIe-with-M4-loaded/m-p/972060#M144756</guid>
      <dc:creator>simonlocke</dc:creator>
      <dc:date>2019-06-26T09:08:01Z</dc:date>
    </item>
  </channel>
</rss>

