<?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: iMX6q pcie interface with Xilinx device in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458191#M71703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i read that post,&lt;/P&gt;&lt;P&gt;I also enabled&amp;nbsp; RC support according to the post.&lt;/P&gt;&lt;P&gt;CONFIG_IMX_PCIE=y&lt;/P&gt;&lt;P&gt; # CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set&lt;/P&gt;&lt;P&gt; CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not able to apply the patch (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch ) since i am using a devicetree based kernel and there is no arch/arm/mach-mx6/pcie.c file in my linux src&lt;/P&gt;&lt;P&gt;How do i apply the patch now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 24 Aug 2015 06:52:13 GMT</pubDate>
    <dc:creator>sumeetdube</dc:creator>
    <dc:date>2015-08-24T06:52:13Z</dc:date>
    <item>
      <title>iMX6q pcie interface with Xilinx device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458189#M71701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have a problem interfacing a Xiinx Spartan-6 FPGA to pcie port of iMX6q on our custom board.&lt;/P&gt;&lt;P&gt;We can detect the device using pci-utils command lspci but cannot read/write access to the device using mmap() (we used memtool)&lt;/P&gt;&lt;P&gt;We get the following error,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="j-rte-table"&gt;&lt;TABLE height="70" jive-data-cell="{&amp;quot;color&amp;quot;:&amp;quot;#3D3D3D&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;NaN&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;transparent&amp;quot;,&amp;quot;fontFamily&amp;quot;:&amp;quot;Helvetica Neue,Helvetica,Arial,Lucida Grande,sans-serif&amp;quot;,&amp;quot;verticalAlign&amp;quot;:&amp;quot;baseline&amp;quot;}" jive-data-header="{&amp;quot;color&amp;quot;:&amp;quot;#505050&amp;quot;,&amp;quot;backgroundColor&amp;quot;:&amp;quot;#F2F2F2&amp;quot;,&amp;quot;textAlign&amp;quot;:&amp;quot;left&amp;quot;,&amp;quot;padding&amp;quot;:&amp;quot;6&amp;quot;}" style="width: 754px; height: 71px;" width="753"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD style=""&gt;Reading 0x1 count starting at add[&amp;nbsp; 347.307257] Unhandled fault: external abort on non-linefetch (0x1018) at 0x76f3b000&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style=""&gt;address 0x01300000&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;&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;&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;&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;&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/TD&gt;&lt;TD style=""&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;P&gt;Bus error&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We think this is beacuse the memory is not defined in /proc/iomem.&lt;/P&gt;&lt;P&gt;Do we need to write a driver for the device even if it is detected .&lt;/P&gt;&lt;P&gt;And how to assign this memory region in the pcie attribute in devicetree.&lt;/P&gt;&lt;P&gt;Currently the pcie part looks like this,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pcie: pcie@0x01000000 {&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; compatible = "fsl,imx6q-pcie", "snps,dw-pcie";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; reg = &amp;lt;0x01ffc000 0x4000&amp;gt;; /* DBI */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #address-cells = &amp;lt;3&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; #size-cells = &amp;lt;2&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; device_type = "pci";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ranges = &amp;lt;0x00000800 0 0x01f00000 0x01f00000 0 0x00080000 /* configuration space */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x81000000 0 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x01f80000 0 0x00010000 /* downstream I/O */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0x82000000 0 0x01000000 0x01000000 0 0x00f00000&amp;gt;; /* non-prefetchable memory */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; num-lanes = &amp;lt;1&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; interrupts = &amp;lt;0 123 0x04&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clocks = &amp;lt;&amp;amp;clks 189&amp;gt;, &amp;lt;&amp;amp;clks 187&amp;gt;, &amp;lt;&amp;amp;clks 144&amp;gt;, &amp;lt;&amp;amp;clks 212&amp;gt;;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; clock-names = "pcie_ref_125m", "sata_ref_100m", "pcie_axi", "lvds_gate";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; status = "okay";&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; };&lt;/P&gt;&lt;P&gt;I have attached lspci verbose output , /proc/iomem output and the error.&lt;/P&gt;&lt;P&gt;We think it has something to do with the ranges filed but cannot fully understand how to change for our device.&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-336451"&gt;error.log.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-336451"&gt;iomem.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-336451"&gt;lspci_verbose.log.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-336451"&gt;lspci.log.zip&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Aug 2015 05:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458189#M71701</guid>
      <dc:creator>sumeetdube</dc:creator>
      <dc:date>2015-08-22T05:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6q pcie interface with Xilinx device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458190#M71702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sumeet&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for understanding PCIe one can look at example below&lt;/P&gt;&lt;P&gt;describing emulation the pcie ep as ram device&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/docs/DOC-95014"&gt;i.MX6Q PCIe EP/RC Validation System&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 03:56:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458190#M71702</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-08-24T03:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6q pcie interface with Xilinx device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458191#M71703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes i read that post,&lt;/P&gt;&lt;P&gt;I also enabled&amp;nbsp; RC support according to the post.&lt;/P&gt;&lt;P&gt;CONFIG_IMX_PCIE=y&lt;/P&gt;&lt;P&gt; # CONFIG_IMX_PCIE_EP_MODE_IN_EP_RC_SYS is not set&lt;/P&gt;&lt;P&gt; CONFIG_IMX_PCIE_RC_MODE_IN_EP_RC_SYS=y&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i am not able to apply the patch (0001-ENGR00268112-pcie-emaluate-the-pcie-ep-as-ram-device.patch ) since i am using a devicetree based kernel and there is no arch/arm/mach-mx6/pcie.c file in my linux src&lt;/P&gt;&lt;P&gt;How do i apply the patch now?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Aug 2015 06:52:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458191#M71703</guid>
      <dc:creator>sumeetdube</dc:creator>
      <dc:date>2015-08-24T06:52:13Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6q pcie interface with Xilinx device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458192#M71704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;one can look at attached Linux Manual included in L3.14.28-1.0.0 GA&lt;/P&gt;&lt;P&gt;Chapter 42 i.MX 6 PCI Express Root Complex Driver.&lt;/P&gt;&lt;P&gt;Also as shows Release Notes p.11 this release (with device tree)&lt;/P&gt;&lt;P&gt;supports PCIe EP/RC validation system and for pcie dts configuration one can look at&lt;/P&gt;&lt;P&gt;linux../arch/arm/boot/dts/imx6qdl.dtsi&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 25 Aug 2015 04:39:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458192#M71704</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-08-25T04:39:26Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6q pcie interface with Xilinx device</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458193#M71705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i have the similar&lt;SPAN class="op_dict3_highlight" style="color: #cc0000; font-family: arial; font-size: 13px;"&gt; &lt;/SPAN&gt;problem. i use the imx6sx-sdb board to &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;interfacing with &lt;SPAN style="color: #51626f; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Xiinx Spartan-6 FPGA。I can recognize the FPGA use lspci command .&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;root@imx6sx_all:~# lspci&lt;/P&gt;&lt;P&gt;00:00.0 PCI bridge: Synopsys, Inc. Device abcd (rev 01)&lt;/P&gt;&lt;P&gt;01:00.0 Memory controller: Xilinx Corporation Default PCIe endpoint ID (rev 26)&lt;/P&gt;&lt;P&gt;but when i use memtool cmd write data to zhe FPGA mem space ,i failed.&lt;/P&gt;&lt;P&gt;root@imx6sx_all:/unit_tests# ./memtool 08100000=12345678&lt;/P&gt;&lt;P&gt;Writing 32-bit value 0x12345678 to address 0x08100000&lt;/P&gt;&lt;P&gt;root@imx6sx_all:/unit_tests# &lt;/P&gt;&lt;P&gt;root@imx6sx_all:/unit_tests# ./memtool 08100000 1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;E&lt;/P&gt;&lt;P&gt;Reading 0x1 count starting at address 0x08100000&lt;/P&gt;&lt;P&gt;0x08100000:&amp;nbsp; FFFFFFFF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i use the 3.14.52 BSP &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jun 2016 12:28:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6q-pcie-interface-with-Xilinx-device/m-p/458193#M71705</guid>
      <dc:creator>lsg5131420</dc:creator>
      <dc:date>2016-06-23T12:28:34Z</dc:date>
    </item>
  </channel>
</rss>

