<?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>LayerscapeのトピックLS1021A: DMA memory allocation for PCIe Device</title>
    <link>https://community.nxp.com/t5/Layerscape/LS1021A-DMA-memory-allocation-for-PCIe-Device/m-p/617083#M1825</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a Linux kernel module I'm using dma_alloc_coherent() to allocate memory for a PCI device to DMA data into the ARM DDR.&lt;/P&gt;&lt;P&gt;I have noticed that the kernel virtual address and dma_handle returned by this function are always the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean SMMU2 and MMU are using the same table or SMMU2 is disabled in Linux?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do I need to set the DMA mask to 32 " DMA_BIT_MASK(32)" &amp;nbsp;for PCIe device or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to configure the iATU inbound for the DMA to work or just the outbound Linux default configuration is enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 13 Sep 2016 15:35:36 GMT</pubDate>
    <dc:creator>Tarek</dc:creator>
    <dc:date>2016-09-13T15:35:36Z</dc:date>
    <item>
      <title>LS1021A: DMA memory allocation for PCIe Device</title>
      <link>https://community.nxp.com/t5/Layerscape/LS1021A-DMA-memory-allocation-for-PCIe-Device/m-p/617083#M1825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In a Linux kernel module I'm using dma_alloc_coherent() to allocate memory for a PCI device to DMA data into the ARM DDR.&lt;/P&gt;&lt;P&gt;I have noticed that the kernel virtual address and dma_handle returned by this function are always the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this mean SMMU2 and MMU are using the same table or SMMU2 is disabled in Linux?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do I need to set the DMA mask to 32 " DMA_BIT_MASK(32)" &amp;nbsp;for PCIe device or something else?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do I need to configure the iATU inbound for the DMA to work or just the outbound Linux default configuration is enough?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2016 15:35:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/Layerscape/LS1021A-DMA-memory-allocation-for-PCIe-Device/m-p/617083#M1825</guid>
      <dc:creator>Tarek</dc:creator>
      <dc:date>2016-09-13T15:35:36Z</dc:date>
    </item>
  </channel>
</rss>

