<?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: slow memcpy in i.MX Graphics</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/slow-memcpy/m-p/2061369#M772</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use this code to use DMA instead of MMAP&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/emfend/dmabuf-v4l2-demo" target="_blank"&gt;https://github.com/emfend/dmabuf-v4l2-demo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also verified that this patch is applied&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/torvalds/linux/commit/de27891f675ed1e46e8821d2e05e036e5f97586b" target="_blank"&gt;https://github.com/torvalds/linux/commit/de27891f675ed1e46e8821d2e05e036e5f97586b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works, memcpy time is less than 1 ms&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 13 Mar 2025 14:16:27 GMT</pubDate>
    <dc:creator>OlivierG</dc:creator>
    <dc:date>2025-03-13T14:16:27Z</dc:date>
    <item>
      <title>slow memcpy</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/slow-memcpy/m-p/2059409#M769</link>
      <description>&lt;P&gt;HI&lt;/P&gt;&lt;P&gt;i tried this code&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/173737/1/v4lcap.c" target="_blank"&gt;https://community.nxp.com/pwmxy87654/attachments/pwmxy87654/imx-processors/173737/1/v4lcap.c&lt;/A&gt;&lt;/P&gt;&lt;P&gt;unfortunately the call to memcpy from&lt;BR /&gt;buffers[buf.index].start[0]&lt;BR /&gt;is very slow about 10 ms with an image size 640*480&lt;/P&gt;&lt;P&gt;i thing it is due to the VB2_MEMORY_MMAP mode&lt;/P&gt;&lt;P&gt;i tried with V4L2_MEMORY_DMABUF but ioctl failed&lt;/P&gt;&lt;P&gt;Is the slow memcpy due to the memory mode ?&lt;BR /&gt;Is there a working exemple with V4L2_MEMORY_DMABUF and V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Greeting&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;</description>
      <pubDate>Tue, 11 Mar 2025 09:56:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/slow-memcpy/m-p/2059409#M769</guid>
      <dc:creator>OlivierG</dc:creator>
      <dc:date>2025-03-11T09:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: slow memcpy</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/slow-memcpy/m-p/2061369#M772</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;i use this code to use DMA instead of MMAP&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/emfend/dmabuf-v4l2-demo" target="_blank"&gt;https://github.com/emfend/dmabuf-v4l2-demo&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I also verified that this patch is applied&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/torvalds/linux/commit/de27891f675ed1e46e8821d2e05e036e5f97586b" target="_blank"&gt;https://github.com/torvalds/linux/commit/de27891f675ed1e46e8821d2e05e036e5f97586b&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It works, memcpy time is less than 1 ms&lt;/P&gt;&lt;P&gt;Olivier&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Mar 2025 14:16:27 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/slow-memcpy/m-p/2061369#M772</guid>
      <dc:creator>OlivierG</dc:creator>
      <dc:date>2025-03-13T14:16:27Z</dc:date>
    </item>
  </channel>
</rss>

