<?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: CMA Size in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899751#M135789</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it can be ignored, I have described the exact scenario when it happens. Assuming that CMA kernel option is not ignored, is it safe to use ?&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, 21 May 2019 11:40:21 GMT</pubDate>
    <dc:creator>oferausterlitz</dc:creator>
    <dc:date>2019-05-21T11:40:21Z</dc:date>
    <item>
      <title>CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899747#M135785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;At the moment Linux CMA size is hard-coded on all i.MX8 and i.MX8M platforms in SoC DTSI file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i.MX8MM: &lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mm.dtsi?h=imx_4.14.98_2.0.0_ga#n82" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mm.dtsi?h=imx_4.14.98_2.0.0_ga#n82"&gt;fsl-imx8mm.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.MX8M: &lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mq.dtsi?h=imx_4.14.98_2.0.0_ga#n82" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8mq.dtsi?h=imx_4.14.98_2.0.0_ga#n82"&gt;fsl-imx8mq.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;i.MX8QM: &lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8qm.dtsi?h=imx_4.14.98_2.0.0_ga#n127" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8qm.dtsi?h=imx_4.14.98_2.0.0_ga#n127"&gt;fsl-imx8qm.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i.MX8QXP: &lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8dx.dtsi?h=imx_4.14.98_2.0.0_ga#n153" title="https://source.codeaurora.org/external/imx/linux-imx/tree/arch/arm64/boot/dts/freescale/fsl-imx8dx.dtsi?h=imx_4.14.98_2.0.0_ga#n153"&gt;fsl-imx8dx.dtsi\freescale\dts\boot\arm64\arch - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works for NXP evaluation platforms, but may result in kernel crashes on custom boards with smaller amount of RAM.&lt;/P&gt;&lt;P&gt;For example, our i.MX8M board with 1GB of RAM crashes since by default 960MB area is allocated by CMA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not clear why CMA size, which is board specific, is being fixed in SoC DTSI file inherited by all boards.&lt;/P&gt;&lt;P&gt;Is there any benefit in defining CMA parameters in DTS instead of passing CMA size as kernel command line parameter based on the actual DRAM size ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Felix.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 07:14:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899747#M135785</guid>
      <dc:creator>oferausterlitz</dc:creator>
      <dc:date>2019-05-20T07:14:52Z</dc:date>
    </item>
    <item>
      <title>Re: CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899748#M135786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CMA (physically-continuous memory) can be used to make sure that buffers can be used plain with DMA or some other device.&lt;BR /&gt;You can specify "CMA=" option among of kernel parameters in u-boot to set any CMA size you wish.&lt;BR /&gt;And you can disable it at all for all memory to be available usual way.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 08:30:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899748#M135786</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2019-05-20T08:30:19Z</dc:date>
    </item>
    <item>
      <title>Re: CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899749#M135787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for a prompt reply. When "linux,cma-default" property exists in DTS node, kernel ignores cma= command line parameter. You can see that here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/base/dma-contiguous.c?h=imx_4.14.98_2.0.0_ga#n270" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/base/dma-contiguous.c?h=imx_4.14.98_2.0.0_ga#n270"&gt;dma-contiguous.c\base\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/base/dma-contiguous.c?h=imx_4.14.98_2.0.0_ga#n134" title="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/base/dma-contiguous.c?h=imx_4.14.98_2.0.0_ga#n134"&gt;dma-contiguous.c\base\drivers - linux-imx - i.MX Linux kernel&lt;/A&gt;&lt;/P&gt;&lt;P&gt;So you can either have "linux,cma-default" DTS node or pass CMA size via kernel command line, but not both.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without big enough CMA area video playback and camera streaming are not going to work, so completely disabling CMA is not an option for us. The only difference I can see between DTS and command line CMA configurartion, is that in DTS you can set memory range used by CMA and in command line you cannot. My question is: is it safe to configure CMA via command line for all use cases on i.MX8 and i.MX8M platforms ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 May 2019 08:51:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899749#M135787</guid>
      <dc:creator>oferausterlitz</dc:creator>
      <dc:date>2019-05-20T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899750#M135788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was told that one need to use DTS. CMA option of kernel command line may be ignored.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 May 2019 08:20:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899750#M135788</guid>
      <dc:creator>b36401</dc:creator>
      <dc:date>2019-05-21T08:20:28Z</dc:date>
    </item>
    <item>
      <title>Re: CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899751#M135789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it can be ignored, I have described the exact scenario when it happens. Assuming that CMA kernel option is not ignored, is it safe to use ?&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, 21 May 2019 11:40:21 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899751#M135789</guid>
      <dc:creator>oferausterlitz</dc:creator>
      <dc:date>2019-05-21T11:40:21Z</dc:date>
    </item>
    <item>
      <title>Re: CMA Size</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899752#M135790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Victor,&lt;/P&gt;&lt;P&gt;My questions were not answered, please remove "Assume answered" indicator.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 May 2019 07:26:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-Size/m-p/899752#M135790</guid>
      <dc:creator>oferausterlitz</dc:creator>
      <dc:date>2019-05-26T07:26:53Z</dc:date>
    </item>
  </channel>
</rss>

