<?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: Using qDMA to access PCIe memory in Layerscape</title>
    <link>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/721845#M3002</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue for the behaviour was the PCIe device in use. I switched over to a different device, a FPGA based PCIe board that allows block reading via PCIe memory bars. Now everything works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 13 Apr 2018 06:38:11 GMT</pubDate>
    <dc:creator>mathiasköhrer</dc:creator>
    <dc:date>2018-04-13T06:38:11Z</dc:date>
    <item>
      <title>Using qDMA to access PCIe memory</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/721844#M3001</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;on an NXP LS1046A (board LS1046ARDB) I want to use the qDMA to access (read only) the memory of a PCIe device (offered as memory bar) using qDMA.&lt;/P&gt;&lt;P&gt;OS: Linux kernel 4.14.16&lt;/P&gt;&lt;P&gt;For doing this I have written a tiny kernel module that does roughly the following steps:&lt;/P&gt;&lt;PRE&gt;&lt;P&gt;dma_alloc_coherent(....); // To be used as the destination memory
physaddr = 0x50400c0000; // This is the memory of the PCIe memory bar as seen by lspci&lt;/P&gt;&lt;P&gt;dma_map_resource(dev, physaddr, size, DMA_FROM_DEVICE, 0);
dev-&amp;gt;device_prep_dma_memcpy(chan, dst, src, size, 0);&lt;/P&gt;&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;This works fine for sizes up to 15 (!!) byte. E.g. 4 or 8 byte copies are fine.&lt;/P&gt;&lt;P&gt;However when I want to use a size of 16 byte or larger there will be a DMA transaction error. &lt;BR /&gt;The qDMA register DEDR shows 0x20000000 (Read transaction error).&lt;/P&gt;&lt;P&gt;I tried a different type of PCIe device. Here the effect is similar, however I am only able to copy up to 7 (!!) byte. &lt;BR /&gt;Using a size &amp;gt;= 8 the same error occurs.&lt;/P&gt;&lt;P&gt;Is there any idea on what the issue could be?&lt;/P&gt;&lt;P&gt;Any help is highly welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mathias&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Apr 2018 08:31:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/721844#M3001</guid>
      <dc:creator>mathiasköhrer</dc:creator>
      <dc:date>2018-04-11T08:31:39Z</dc:date>
    </item>
    <item>
      <title>Re: Using qDMA to access PCIe memory</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/721845#M3002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The issue for the behaviour was the PCIe device in use. I switched over to a different device, a FPGA based PCIe board that allows block reading via PCIe memory bars. Now everything works as expected.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 06:38:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/721845#M3002</guid>
      <dc:creator>mathiasköhrer</dc:creator>
      <dc:date>2018-04-13T06:38:11Z</dc:date>
    </item>
    <item>
      <title>Re: Using qDMA to access PCIe memory</title>
      <link>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/1187148#M7056</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;I also have an&amp;nbsp; requirement to use the qDMA to access&amp;nbsp; the memory of a PCIe device on&amp;nbsp; LS1046. can you please share the steps that you have followed? Do you have any sample application ??&lt;/P&gt;</description>
      <pubDate>Mon, 23 Nov 2020 05:08:57 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/Using-qDMA-to-access-PCIe-memory/m-p/1187148#M7056</guid>
      <dc:creator>diljithka</dc:creator>
      <dc:date>2020-11-23T05:08:57Z</dc:date>
    </item>
  </channel>
</rss>

