<?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のトピックIMX6 PCIe Problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452951#M70453</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are facing a problem enabling PCIe support on a custom imx6 board. There's&amp;nbsp; a marvel 88W8897 chip connected to the PCIe bus on the custom board. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the following errors are displayed at boot:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: phy link never came up&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: Failed to bring link up!&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: failed to initialize host&lt;/P&gt;&lt;P&gt;imx6q-pcie: probe of 1ffc000.pcie failed with error -22&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using linux imx kernel version 3.14.28. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following are our defconfig and device tree source files&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the reason for this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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-337115"&gt;defconfig.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-337115"&gt;imx6qdl-sabreauto.dtsi.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 19:27:23 GMT</pubDate>
    <dc:creator>valentinafernan</dc:creator>
    <dc:date>2015-08-19T19:27:23Z</dc:date>
    <item>
      <title>IMX6 PCIe Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452951#M70453</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are facing a problem enabling PCIe support on a custom imx6 board. There's&amp;nbsp; a marvel 88W8897 chip connected to the PCIe bus on the custom board. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the following errors are displayed at boot:&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: phy link never came up&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: Failed to bring link up!&lt;/P&gt;&lt;P&gt;imx6q-pcie 1ffc000.pcie: failed to initialize host&lt;/P&gt;&lt;P&gt;imx6q-pcie: probe of 1ffc000.pcie failed with error -22&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are using linux imx kernel version 3.14.28. &lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following are our defconfig and device tree source files&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What could be the reason for this problem?&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&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-337115"&gt;defconfig.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-337115"&gt;imx6qdl-sabreauto.dtsi.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:27:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452951#M70453</guid>
      <dc:creator>valentinafernan</dc:creator>
      <dc:date>2015-08-19T19:27:23Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 PCIe Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452952#M70454</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Valentina&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try suggestions given on below (in particular adding longer udelay(100))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/message/546003"&gt;Re: Has anyone verified PCI driver on yocto 3.14.28-1.0.1 branch?&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also had you tried other PCIe cards? Please try to test with official Freescale BSP&lt;/P&gt;&lt;P&gt;from i.MX6Q product page :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Board Support Packages (27)&lt;/P&gt;&lt;P&gt;L3.14.28_1.0.0_iMX6QDLS_BUNDLE (REV L3.14.28_1.0.0)&lt;/P&gt;&lt;P&gt;i.MX 6Quad, i.MX 6Dual, i.MX 6DualLite, i.MX 6Solo Linux Binary Demo Files and Linux BSP Documentation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREBRD&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" title="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=RDIMX6SABREBRD&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;SABRE Board Reference Design|Freescale&lt;/A&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2015 04:06:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452952#M70454</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-08-20T04:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 PCIe Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452953#M70455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Valentina,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you ever figure out a solution for this. We too are connecting to an 88W8897. While most of the time our link works, sometimes we get PHY LINK NEVER CAME UP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Feb 2016 17:03:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452953#M70455</guid>
      <dc:creator>georgekellerman</dc:creator>
      <dc:date>2016-02-05T17:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 PCIe Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452954#M70456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi George,&lt;/P&gt;&lt;P&gt;We figured out a solution for this. If you still have PCIE problems, you can apply the following patch:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;diff -ruN a/drivers/pci/host/pci-imx6.c b/drivers/pci/host/pci-imx6.c&lt;/P&gt;&lt;P&gt;--- a/drivers/pci/host/pci-imx6.c 2016-01-25 22:42:52.237055875 -0600&lt;/P&gt;&lt;P&gt;+++ b/drivers/pci/host/pci-imx6.c 2016-02-10 20:32:56.552845334 -0600&lt;/P&gt;&lt;P&gt;@@ -342,7 +342,11 @@&lt;/P&gt;&lt;P&gt;&amp;nbsp; struct imx6_pcie *imx6_pcie = to_imx6_pcie(pp);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; if (gpio_is_valid(imx6_pcie-&amp;gt;power_on_gpio))&lt;/P&gt;&lt;P&gt;+ {&lt;/P&gt;&lt;P&gt;+ mdelay(50); //Wait 50 ms&lt;/P&gt;&lt;P&gt;&amp;nbsp; gpio_set_value(imx6_pcie-&amp;gt;power_on_gpio, 1);&lt;/P&gt;&lt;P&gt;+ mdelay(50); //Wait 50 ms&lt;/P&gt;&lt;P&gt;+ }&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; request_bus_freq(BUS_FREQ_HIGH);&lt;/P&gt;&lt;P&gt;&amp;nbsp; ret = clk_prepare_enable(imx6_pcie-&amp;gt;pcie_phy);&lt;/P&gt;&lt;P&gt;@@ -538,7 +541,7 @@&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; static int imx6_pcie_wait_for_link(struct pcie_port *pp)&lt;/P&gt;&lt;P&gt; {&lt;/P&gt;&lt;P&gt;- int count = 2000;&lt;/P&gt;&lt;P&gt;+ int count = 10000;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (!dw_pcie_link_up(pp)) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; udelay(100);&lt;/P&gt;&lt;P&gt;@@ -605,7 +608,7 @@&lt;/P&gt;&lt;P&gt;&amp;nbsp; tmp |= PORT_LOGIC_SPEED_CHANGE;&lt;/P&gt;&lt;P&gt;&amp;nbsp; writel(tmp, pp-&amp;gt;dbi_base + PCIE_LINK_WIDTH_SPEED_CONTROL);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- count = 200;&lt;/P&gt;&lt;P&gt;+ count = 1000;&lt;/P&gt;&lt;P&gt;&amp;nbsp; while (count--) {&lt;/P&gt;&lt;P&gt;&amp;nbsp; tmp = readl(pp-&amp;gt;dbi_base + PCIE_LINK_WIDTH_SPEED_CONTROL);&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Test if the speed change finished. */&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Hope it is useful for you.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Valentina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Apr 2016 21:11:38 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452954#M70456</guid>
      <dc:creator>valentinafernan</dc:creator>
      <dc:date>2016-04-04T21:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: IMX6 PCIe Problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452955#M70457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Valentina,&lt;/P&gt;&lt;P&gt;Hi, to get the phy link up and running did you also have to change the device tree entry (IRQ related entries) and configuration macros like '&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CONFIG_PCI_MSI' in .conf apart from the timing issue you've stated here ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;thanks in advance&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Anuradha&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Oct 2016 05:29:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX6-PCIe-Problem/m-p/452955#M70457</guid>
      <dc:creator>tengri</dc:creator>
      <dc:date>2016-10-10T05:29:31Z</dc:date>
    </item>
  </channel>
</rss>

