<?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のトピックRe: GStreamer dmabufheaps problem</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961586#M228903</link>
    <description>&lt;P&gt;I made some investigations and found out that there were two devices renamed.&lt;/P&gt;&lt;P&gt;/dev/dma_heap/linux,cma is called now /dev/dma_heap/reserved&lt;/P&gt;&lt;P&gt;/dev/dma_heap/linux,cma-uncached is called now /dev/dma_heap/reserved-uncached&lt;/P&gt;&lt;P&gt;I made two symbolic links to this new devices with the old names and now the gstreamer works well.&lt;/P&gt;&lt;P&gt;Why are the devices renamed? And how can I change this?&lt;/P&gt;</description>
    <pubDate>Wed, 25 Sep 2024 09:05:11 GMT</pubDate>
    <dc:creator>MicMoba</dc:creator>
    <dc:date>2024-09-25T09:05:11Z</dc:date>
    <item>
      <title>GStreamer dmabufheaps problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961398#M228890</link>
      <description>&lt;P&gt;After switching to Kernel 6.6 I am not able to get GStreamer running.&lt;/P&gt;&lt;P&gt;I suppose that there is problem with the dma.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;imx8mp:~$ GST_DEBUG=*dma*:5 gst-launch-1.0 videotestsrc ! autovideosink
Setting pipeline to PAUSED ...
Pipeline is PREROLLING ...
0:00:00.072033375   889 0xffff88000b70 WARN       dmabufheapsmemory gstdmabufheaps.c:98:gst_dmabufheaps_allocator_mem_init: Could not open dmabufheaps driver
0:00:00.072123500   889 0xffff88000b70 WARN       dmabufheapsmemory gstdmabufheaps.c:119:gst_dmabufheaps_allocator_obtain: No allocator named dmabufheapsmem found

(gst-launch-1.0:889): GStreamer-CRITICAL **: 06:27:14.679: gst_buffer_pool_config_set_allocator: assertion 'allocator != NULL || params != NULL' failed
0:00:00.077851750   889 0xffff88000b70 WARN       dmabufheapsmemory gstdmabufheaps.c:119:gst_dmabufheaps_allocator_obtain: No allocator named dmabufheapsmem found

(gst-launch-1.0:889): GStreamer-CRITICAL **: 06:27:14.684: gst_buffer_pool_config_set_allocator: assertion 'allocator != NULL || params != NULL' failed

(gst-launch-1.0:889): GStreamer-CRITICAL **: 06:27:14.685: gst_object_unref: assertion 'object != NULL' failed
0:00:00.078302375   889 0xffff88000b70 DEBUG              wl_dmabuf gstwllinuxdmabuf.c:141:gst_wl_linux_dmabuf_construct_wl_buffer:&amp;lt;GstWlDisplay@0xaaaaec76ec60&amp;gt; Creating wl_buffer from DMABuf of size 307200 (320 x 240), DRM fourcc AR24

(gst-launch-1.0:889): GStreamer-Allocators-CRITICAL **: 06:27:14.685: gst_dmabuf_memory_get_fd: assertion 'gst_is_dmabuf_memory (mem)' failed
error marshalling arguments for add: dup failed: Bad file descriptor
Error marshalling request: Bad file descriptor
0:00:01.078829000   889 0xffff88000b70 ERROR              wl_dmabuf gstwllinuxdmabuf.c:217:gst_wl_linux_dmabuf_construct_wl_buffer:&amp;lt;allocatorsysmem0&amp;gt; zwp_linux_buffer_params_v1 time out
0:00:01.078882000   889 0xffff88000b70 ERROR              wl_dmabuf gstwllinuxdmabuf.c:225:gst_wl_linux_dmabuf_construct_wl_buffer:&amp;lt;allocatorsysmem0&amp;gt; can't create linux-dmabuf buffer
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
Redistribute latency...
New clock: GstSystemClock
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:02.173458875
Setting pipeline to NULL ...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;I use the wayland display server, weston (v 12.0.4) as compositor and gstreamer v1.24.0&lt;/P&gt;&lt;P&gt;Is there a missmatch of versions between VPU, GPU, DMA, ...? How can I check this? In the output abov is a warning "Could not open dmabufheaps driver". What driver is meant? Who provides this driver?&lt;/P&gt;&lt;P&gt;Actually I use the meta-imx layer for the graphics and multimedia stuff. Maybe it's a rights issue.&lt;BR /&gt;I miss myself a idea to investigate this problem. So I will be thankfull to get any suggestions.&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 06:51:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961398#M228890</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2024-09-25T06:51:45Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer dmabufheaps problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961586#M228903</link>
      <description>&lt;P&gt;I made some investigations and found out that there were two devices renamed.&lt;/P&gt;&lt;P&gt;/dev/dma_heap/linux,cma is called now /dev/dma_heap/reserved&lt;/P&gt;&lt;P&gt;/dev/dma_heap/linux,cma-uncached is called now /dev/dma_heap/reserved-uncached&lt;/P&gt;&lt;P&gt;I made two symbolic links to this new devices with the old names and now the gstreamer works well.&lt;/P&gt;&lt;P&gt;Why are the devices renamed? And how can I change this?&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 09:05:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961586#M228903</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2024-09-25T09:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer dmabufheaps problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961819#M228914</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;which BSP are you using? which target board? since you don't need to change the dma or cma memories and its not changing between bsps.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 13:52:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1961819#M228914</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-09-25T13:52:00Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer dmabufheaps problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1962261#M228936</link>
      <description>&lt;P&gt;I found the reason for the renaming. If the kernel config CONFIG_CMA_SIZE_MBYTES is below the&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;given size of linux,cma item in the devicetree the new kernel rename the device to "reserved".&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;In my case the kernel config was:&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;CONFIG_CMA_SIZE_MBYTES=320&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;The devicetree (imx8mp.dtsi):&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;resmem: reserved-memory {
   #address-cells = &amp;lt;2&amp;gt;;
   #size-cells = &amp;lt;2&amp;gt;;
   ranges;

   ocram: ocram@900000 {
      no-map;
      reg = &amp;lt;0 0x900000 0 0x70000&amp;gt;;
   };

/*
*    Memory reserved for optee usage. Please do not use.
*    This will be automaticky added to dtb if OP-TEE is installed.
*    optee@56000000 {
*       reg = &amp;lt;0 0x56000000 0 0x2000000&amp;gt;;
*       no-map;
*    };
*/
   /* global autoconfigured region for contiguous allocations */
   linux,cma {
      compatible = "shared-dma-pool";
      reusable;
      size = &amp;lt;0 0x3C000000&amp;gt;;
      alloc-ranges = &amp;lt;0 0x40000000 0 0xC0000000&amp;gt;;
      linux,cma-default;
   };
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0x3C000000 is 960MiB. So it was over the 320MiB from the kernel configuration. After I changed the size to 0x14000000 the device names in /dev/dma_heap were as expect with linux,cma and linux,cma-uncached.&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 04:57:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1962261#M228936</guid>
      <dc:creator>MicMoba</dc:creator>
      <dc:date>2024-09-26T04:57:52Z</dc:date>
    </item>
    <item>
      <title>Re: GStreamer dmabufheaps problem</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1962678#M228959</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;ok you reduced the cma address and it works for you.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 12:29:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/GStreamer-dmabufheaps-problem/m-p/1962678#M228959</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2024-09-26T12:29:33Z</dc:date>
    </item>
  </channel>
</rss>

