<?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: Where to configure CMA memory in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032108#M152377</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erlend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 1: What is the difference between setting CMA memory in the kernel menuconfig &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;and in the device tree?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kernel config option CONFIG_CMA_SIZE_MBYTES sets the default CMA size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Note some kernels (for example old) do not support device tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Additional description can be found on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://github.com/alliedvision/documentation/wiki/Changing-memory-size-reserved-for-CMA" title="https://github.com/alliedvision/documentation/wiki/Changing-memory-size-reserved-for-CMA"&gt;Changing memory size reserved for CMA · alliedvision/documentation Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 2: What will happen if I use both options?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if kernel supports device tree, setting CMA memory in the device tree will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 3: Which one should I use if my goal is to reserve enough memory for the VPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;one can use device tree settings for i.MX6 Sabre boards from nxp linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;source.codeaurora.org/external/imx/linux-imx repository&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts?h=imx_4.19.35_1.0.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts?h=imx_4.19.35_1.0.0"&gt;dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Linux&amp;nbsp; documentation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Mar 2020 07:52:25 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-03-02T07:52:25Z</dc:date>
    <item>
      <title>Where to configure CMA memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032107#M152376</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It is possible to reserve cma memory by using the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;CONFIG_CMA_SIZE_MBYTES in the kernel, as mentioned here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/483371"&gt;How does imx6qp increase cma memory&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;However, it is also possible to configure it in the device tree, as mentioned here:&amp;nbsp;&lt;A href="https://community.nxp.com/thread/523951"&gt;Custom CMA reserved memory on i.MX8MM mini&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Question 1:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;What is the difference between setting CMA memory in the kernel menuconfig and in the device tree?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Question 2:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;What will happen if I use both options?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Question 3:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Which one should I use if my goal is to reserve enough memory for the VPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Feb 2020 15:17:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032107#M152376</guid>
      <dc:creator>erlend_eriksen</dc:creator>
      <dc:date>2020-02-28T15:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: Where to configure CMA memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032108#M152377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Erlend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 1: What is the difference between setting CMA memory in the kernel menuconfig &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;and in the device tree?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Kernel config option CONFIG_CMA_SIZE_MBYTES sets the default CMA size.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Note some kernels (for example old) do not support device tree.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Additional description can be found on&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://github.com/alliedvision/documentation/wiki/Changing-memory-size-reserved-for-CMA" title="https://github.com/alliedvision/documentation/wiki/Changing-memory-size-reserved-for-CMA"&gt;Changing memory size reserved for CMA · alliedvision/documentation Wiki · GitHub&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 2: What will happen if I use both options?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;if kernel supports device tree, setting CMA memory in the device tree will be used.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&amp;gt;Question 3: Which one should I use if my goal is to reserve enough memory for the VPU?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;one can use device tree settings for i.MX6 Sabre boards from nxp linux&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;source.codeaurora.org/external/imx/linux-imx repository&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts?h=imx_4.19.35_1.0.0" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm/boot/dts?h=imx_4.19.35_1.0.0"&gt;dts\boot\arm\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Linux&amp;nbsp; documentation&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;&lt;A class="link-titled" href="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW" title="https://www.nxp.com/design/i.mx-developer-resources/i.mx-software-and-development-tools:IMX-SW"&gt;i.MX Software and Development Tools | NXP&lt;/A&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Mar 2020 07:52:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032108#M152377</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-02T07:52:25Z</dc:date>
    </item>
    <item>
      <title>Re: Where to configure CMA memory</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032109#M152378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #646464; font-size: 18.004px; "&gt;Hi,igorpadykov:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;SPAN style="background-color: #ffffff; color: #646464; font-size: 18.004px; "&gt;&amp;nbsp;I found CONFIG_CMA_SIZE_MBYTES = 0 on the board of IMX7D. I set CONFIG_CMA_SIZE_MBYTES = 256 through make menuconfig. After I set it, I found that the kernel crashed after running for 1 day. I modified it back to CONFIG_CMA_SIZE_MBYTES = 0, the kernel will not crash, but it will always print alloc_contig_range: [ac0c0, ac0d4) PFNs busy information.&lt;BR /&gt;How do I set CONFIG_CMA_SIZE_MBYTES?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Mar 2020 07:31:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Where-to-configure-CMA-memory/m-p/1032109#M152378</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-14T07:31:26Z</dc:date>
    </item>
  </channel>
</rss>

