<?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 CMA area for I2C client driver in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/CMA-area-for-I2C-client-driver/m-p/1725273#M212768</link>
    <description>&lt;P&gt;I want to allocate memory for a cam driver by function dma_alloc_contiguous() which is using CMA internally.&lt;/P&gt;&lt;P&gt;I declare the cma region for my cam driver in device tree in kernel's cmdline. (cma=a=64M cma_map=mycam=a). The drivers name is "mycam". But this is field isn't set in init_name in device struct neither.&lt;/P&gt;&lt;P&gt;The problem is dma_alloc_contiguous needs struct device's field cma which is NULL when the probe function of mycam is called. Do I have to set this field on my own?&lt;BR /&gt;&lt;BR /&gt;Im using i.MX8mp Kernel 5.10.35&lt;/P&gt;</description>
    <pubDate>Tue, 19 Sep 2023 07:08:46 GMT</pubDate>
    <dc:creator>heinzhjb</dc:creator>
    <dc:date>2023-09-19T07:08:46Z</dc:date>
    <item>
      <title>CMA area for I2C client driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-area-for-I2C-client-driver/m-p/1725273#M212768</link>
      <description>&lt;P&gt;I want to allocate memory for a cam driver by function dma_alloc_contiguous() which is using CMA internally.&lt;/P&gt;&lt;P&gt;I declare the cma region for my cam driver in device tree in kernel's cmdline. (cma=a=64M cma_map=mycam=a). The drivers name is "mycam". But this is field isn't set in init_name in device struct neither.&lt;/P&gt;&lt;P&gt;The problem is dma_alloc_contiguous needs struct device's field cma which is NULL when the probe function of mycam is called. Do I have to set this field on my own?&lt;BR /&gt;&lt;BR /&gt;Im using i.MX8mp Kernel 5.10.35&lt;/P&gt;</description>
      <pubDate>Tue, 19 Sep 2023 07:08:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-area-for-I2C-client-driver/m-p/1725273#M212768</guid>
      <dc:creator>heinzhjb</dc:creator>
      <dc:date>2023-09-19T07:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: CMA area for I2C client driver</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/CMA-area-for-I2C-client-driver/m-p/1725952#M212831</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/181496"&gt;@heinzhjb&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;I hope you are doing well.&lt;/P&gt;
&lt;P&gt;One can refer to the below documents to allocate and debug contiguous memory for the driver.&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/Documentation/core-api/dma-api.rst" target="_self"&gt;/Documentation/core-api/dma-api.rst&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://github.com/nxp-imx/linux-imx/blob/lf-6.1.y/Documentation/core-api/dma-api-howto.rst" target="_self"&gt;/Documentation/core-api/dma-api-howto.rst&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/35556593/how-to-work-with-reserved-cma-memory" target="_self"&gt;How to work with reserved CMA memory?&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Dhruvit Vasavada&lt;/P&gt;</description>
      <pubDate>Wed, 20 Sep 2023 06:15:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/CMA-area-for-I2C-client-driver/m-p/1725952#M212831</guid>
      <dc:creator>Dhruvit</dc:creator>
      <dc:date>2023-09-20T06:15:52Z</dc:date>
    </item>
  </channel>
</rss>

