<?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: [IMX8MP] How to resolve VCEncStrmEncode: ERROR HW bus access error in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029816#M233086</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I agree with you this must not happens, I will send a request to developers in order to upgrade the driver for VPU.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
    <pubDate>Fri, 17 Jan 2025 13:56:08 GMT</pubDate>
    <dc:creator>Bio_TICFSL</dc:creator>
    <dc:date>2025-01-17T13:56:08Z</dc:date>
    <item>
      <title>[IMX8MP] How to resolve VCEncStrmEncode: ERROR HW bus access error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2028587#M233034</link>
      <description>&lt;P&gt;Hi Community&lt;BR /&gt;&lt;BR /&gt;I am trying to make an app that performs asynchronous encoding/decoding over multiple threads, using &lt;A href="https://github.com/nxp-imx/imx-vpuwrap/blob/MM_04.08.03_2312_L6.6.y/vpu_wrapper.h" target="_self"&gt;VPU wrapper&lt;/A&gt;. Each thread has an infinite loop and within that loop the following is performed:&lt;/P&gt;&lt;P&gt;1. Create VPU encoder/decoder instance via VPU_EncOpen/VPU_DecOpen&lt;BR /&gt;2. Perform actual encoding/decoding&lt;BR /&gt;3. Close VPU&amp;nbsp;encoder/decoder instance via VPU_EncClose/VPU_DecClose&lt;BR /&gt;&lt;BR /&gt;The app seems to run fine at first, but after few hours (at least 2 hours) VPU_EncEncodeFrame from above #2 returns -1,&lt;BR /&gt;and VPU log shows "VCEncStrmEncode: ERROR HW bus access error".&lt;BR /&gt;&lt;BR /&gt;It is safe to assume that this error is due to multiple VPU instances running, but isn't this a supported feature of IMX8MP's VPU? Meaning, the app does not need to handle anything regarding multiple VPU instances running (e.g. checking if VPU is busy) since this would be taken care of by the VPU wrapper, supposedly.&lt;BR /&gt;&lt;BR /&gt;Since there is no VPU manual specifically for IMX8MP, I'm attaching below&amp;nbsp;IMX6's manual. I assume Multi-Instances feature is also supported in IMX8MP.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="b_m_0-1736986880413.png" style="width: 400px;"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/319763iE813E2C8E7A8D924/image-size/medium?v=v2&amp;amp;px=400" role="button" title="b_m_0-1736986880413.png" alt="b_m_0-1736986880413.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 00:29:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2028587#M233034</guid>
      <dc:creator>b_m</dc:creator>
      <dc:date>2025-01-16T00:29:34Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP] How to resolve VCEncStrmEncode: ERROR HW bus access error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029078#M233059</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Multiple instances are supported but in this apparently the vpu is full checking the stream encodes, try to give more latency the vpu just can process one image at the time, so give it more time to complete the action.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Thu, 16 Jan 2025 14:09:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029078#M233059</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-01-16T14:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP] How to resolve VCEncStrmEncode: ERROR HW bus access error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029391#M233068</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/34846"&gt;@Bio_TICFSL&lt;/a&gt;&amp;nbsp;, thanks for replying.&lt;BR /&gt;&lt;BR /&gt;Are you suggesting to add intentional delays (e.g. doing&amp;nbsp;std::this_thread::sleep_for(X)); after every encoding/decoding? This doesn't sound optimal especially for real-time systems.&lt;BR /&gt;&lt;SPAN&gt;&lt;BR /&gt;It would have been helpful if VPU wrapper has an API to check VPU status (like the&amp;nbsp;vpu_IsBusy() from i.MX 6 VPU API) so I could encode/decode only when VPU is actually free.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 02:12:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029391#M233068</guid>
      <dc:creator>b_m</dc:creator>
      <dc:date>2025-01-17T02:12:20Z</dc:date>
    </item>
    <item>
      <title>Re: [IMX8MP] How to resolve VCEncStrmEncode: ERROR HW bus access error</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029816#M233086</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I agree with you this must not happens, I will send a request to developers in order to upgrade the driver for VPU.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jan 2025 13:56:08 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/IMX8MP-How-to-resolve-VCEncStrmEncode-ERROR-HW-bus-access-error/m-p/2029816#M233086</guid>
      <dc:creator>Bio_TICFSL</dc:creator>
      <dc:date>2025-01-17T13:56:08Z</dc:date>
    </item>
  </channel>
</rss>

