<?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 kernel page sizes</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630497#M95746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to allocate kernel pages larger than 4KB in the linux kernel for the iMX6. &amp;nbsp;I tried turning on the HUKETLBFS Kconfig in our kernel but the unit does not boot now. &amp;nbsp;We want to create a DMA driver than can handle up to 320KB buffers from an FPGA but did not want to create multiple pages then transfer multiple buffers, one for each 4KB page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Jan 2017 14:47:11 GMT</pubDate>
    <dc:creator>GregT</dc:creator>
    <dc:date>2017-01-19T14:47:11Z</dc:date>
    <item>
      <title>iMX6 kernel page sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630497#M95746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to allocate kernel pages larger than 4KB in the linux kernel for the iMX6. &amp;nbsp;I tried turning on the HUKETLBFS Kconfig in our kernel but the unit does not boot now. &amp;nbsp;We want to create a DMA driver than can handle up to 320KB buffers from an FPGA but did not want to create multiple pages then transfer multiple buffers, one for each 4KB page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 14:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630497#M95746</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2017-01-19T14:47:11Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kernel page sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630498#M95747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So I tried using dma_alloc_coherent with 8MB (0x800000) and it did not fail. &amp;nbsp;Here is the printk from a kernel module I put the allocate in. &amp;nbsp;Can I assume this is 8MB of contiguous memory that the fpga device can dma 8MB of data into?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALLOCATED dma memory 0x800000 bytes, dma_handle 0x62800000, cpu_addr 0xff100000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,Greg&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 15:56:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630498#M95747</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2017-01-19T15:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kernel page sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630499#M95748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That call must provide consistent memory (&amp;nbsp;&lt;A class="link-titled" href="https://www.kernel.org/doc/Documentation/DMA-API.txt" title="https://www.kernel.org/doc/Documentation/DMA-API.txt"&gt;https://www.kernel.org/doc/Documentation/DMA-API.txt&lt;/A&gt;&amp;nbsp; ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you connecting the FGPA using PCIe?, is that is the case you could also look at&amp;nbsp;pci_alloc_consistent (&amp;nbsp;&lt;A class="link-titled" href="http://lwn.net/2001/0712/a/dma-interface.php3" title="http://lwn.net/2001/0712/a/dma-interface.php3"&gt;Kernel source: Documentation/DMA-mapping.txt&lt;/A&gt;&amp;nbsp;&amp;nbsp;). We have used this method successfully for FPGA PCIe devices ussing DMA from the FPGA to the iMX6 DDR memory.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 16:07:56 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630499#M95748</guid>
      <dc:creator>erdani80</dc:creator>
      <dc:date>2017-01-19T16:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kernel page sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630500#M95749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are going from an FPGA accross PCIe to the iMX6. &amp;nbsp;For some reason the kernel I'm using does not have pci_alloc_consistent. &amp;nbsp;Its linux 3.14.52-r0. &amp;nbsp;My bad. &amp;nbsp;I used the wrong name. It does have the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How large were the DMA buffers you transferred from the FPGA to the iMX6 DDR? &amp;nbsp;Our largest will be about 6.4MB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jan 2017 16:51:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630500#M95749</guid>
      <dc:creator>GregT</dc:creator>
      <dc:date>2017-01-19T16:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 kernel page sizes</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630501#M95750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We are just moving 1600bytes buffers from the FPGA to the imx6, we have seveal buffers sending data and we are trying to keep latency as low as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were able to allocate a 8Meg buffer then there should be no problem to transfer such amount of memory.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We tested our driver against the 3.10 and 4.1 kernel and is an almost unmodified driver we developed for a PC platform. We only had to change DMA target address in the FPGA DMA controller from 64 bits to 32 bits to get it working.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Jan 2017 07:47:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-kernel-page-sizes/m-p/630501#M95750</guid>
      <dc:creator>erdani80</dc:creator>
      <dc:date>2017-01-20T07:47:11Z</dc:date>
    </item>
  </channel>
</rss>

