<?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 probe problem in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440185#M67550</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Platon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes but do you have an example of board-mx6q_sabresd.c that will contain pci initialization. It's possible we encounter a mismatch, but before, pci initialization is not clear for us in this file.&lt;/P&gt;&lt;P&gt;And in board-mx6q_sabresd.c from 3.0.35_4.1, pci is not initialized by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 05 Jun 2015 07:20:20 GMT</pubDate>
    <dc:creator>christophe</dc:creator>
    <dc:date>2015-06-05T07:20:20Z</dc:date>
    <item>
      <title>Pcie probe problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440182#M67547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Under linux 3.0.35_4.1, a imx6q-like board is connected to a fpga with a pcie link. Pcie has been configurated like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;iMX6 PCIe PCIe RC mode imx_pcie_pltfm_probe entering.&lt;/P&gt;&lt;P&gt;PCIE: imx_pcie_pltfm_probe start link up.&lt;/P&gt;&lt;P&gt;IMX PCIe port: link up.&lt;/P&gt;&lt;P&gt;PCI: bus0: Fast back to back transfers disabled&lt;/P&gt;&lt;P&gt;PCI: bus1: Fast back to back transfers disabled&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0: BAR 0: assigned [mem 0x01000000-0x010fffff 64bit pref]&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0: BAR 0: set to [mem 0x01000000-0x010fffff 64bit pref] (PCI address [0x1000000-0x10fffff])&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0: BAR 8: assigned [mem 0x01100000-0x011fffff]&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0: BAR 6: assigned [mem 0x01200000-0x0120ffff pref]&lt;/P&gt;&lt;P&gt;pci 0000:01:00.0: BAR 0: assigned [mem 0x01100000-0x011007ff]&lt;/P&gt;&lt;P&gt;pci 0000:01:00.0: BAR 0: set to [mem 0x01100000-0x011007ff] (PCI address [0x1100000-0x11007ff])&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0: PCI bridge to [bus 01-01]&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0:&amp;nbsp;&amp;nbsp; bridge window [io&amp;nbsp; disabled]&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0:&amp;nbsp;&amp;nbsp; bridge window [mem 0x01100000-0x011fffff]&lt;/P&gt;&lt;P&gt;pci 0000:00:00.0:&amp;nbsp;&amp;nbsp; bridge window [mem pref disabled]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lspci gives:&lt;/P&gt;&lt;P&gt;00:00.0 Class 0604: 16c3:abcd&lt;/P&gt;&lt;P&gt;01:00.0 Class 0580: 10ee:7011&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me correct.&lt;/P&gt;&lt;P&gt;Now, a user device is added. Driiver is well initialized but not probed. Code in board-mx6q_sabredsd.c is like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static struct platform_device pcie_fpga_data =&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .name&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = "pcie_fpga",&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .id&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; = -1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; .num_resources&amp;nbsp; = 0,&lt;/P&gt;&lt;P&gt;};&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; /* Register device */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; platform_device_register(&amp;amp;pcie_fpga_data);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this registration correct ? we've found no example to do this and maybe there's something special to do ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 08:19:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440182#M67547</guid>
      <dc:creator>christophe</dc:creator>
      <dc:date>2015-05-18T08:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: Pcie probe problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440183#M67548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could someone from Freescale gives the correct way to initialize pcie in board-mx6q_sabredsd.c ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 15:32:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440183#M67548</guid>
      <dc:creator>christophe</dc:creator>
      <dc:date>2015-05-19T15:32:01Z</dc:date>
    </item>
    <item>
      <title>Re: Pcie probe problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440184#M67549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My apologies for delayed response. Probing function is invoked by &lt;/P&gt;&lt;P&gt;pci_register_driver() when the device is available or later by the&lt;/P&gt;&lt;P&gt;PCI subsystem is the device is hot-plugged. Failure to enter the &lt;/P&gt;&lt;P&gt;probing function may indicate a mismatch in the device ID or the &lt;/P&gt;&lt;P&gt;device has already been claimed by another module. Anyway, stepping &lt;/P&gt;&lt;P&gt;through pci_register_driver() with a debugger should give some ideas.&lt;/P&gt;&lt;P&gt;More information can be found here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/Documentation/PCI/pci.txt" rel="nofollow" target="_blank"&gt;http://www.cs.fsu.edu/~baker/devices/lxr/http/source/linux/Documentation/PCI/pci.txt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As of board-mx6q_sabresd.c, tis file contains various board-level&lt;/P&gt;&lt;P&gt;initialization functions which are not directly related to PCI &lt;/P&gt;&lt;P&gt;devices probing or registering.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Have a great day,&lt;BR /&gt;Platon&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 Jun 2015 13:41:16 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440184#M67549</guid>
      <dc:creator>bpe</dc:creator>
      <dc:date>2015-06-03T13:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Pcie probe problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440185#M67550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Platon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes but do you have an example of board-mx6q_sabresd.c that will contain pci initialization. It's possible we encounter a mismatch, but before, pci initialization is not clear for us in this file.&lt;/P&gt;&lt;P&gt;And in board-mx6q_sabresd.c from 3.0.35_4.1, pci is not initialized by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Christophe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Jun 2015 07:20:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Pcie-probe-problem/m-p/440185#M67550</guid>
      <dc:creator>christophe</dc:creator>
      <dc:date>2015-06-05T07:20:20Z</dc:date>
    </item>
  </channel>
</rss>

