<?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: Bad HIFI4 Performance on iMX8ULP</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1815644#M220416</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226432"&gt;@ferringer1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support.&lt;/P&gt;
&lt;P&gt;It seems that there is an issue with the data flow it could be related to the throughput from the audio bus. &lt;BR /&gt;To confirm, are you using the i.MX8ULP EVK or a custom board?&lt;/P&gt;</description>
    <pubDate>Mon, 26 Feb 2024 14:00:50 GMT</pubDate>
    <dc:creator>brian14</dc:creator>
    <dc:date>2024-02-26T14:00:50Z</dc:date>
    <item>
      <title>Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1812007#M220178</link>
      <description>&lt;P&gt;We have the iMX8ULP eval board and we are running a demo-app there:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;On the HIFI4 core, we have instances of the LC3Plus Encoder/Decoder embedded in the provided imx_audio_framework.&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;Audio data is provided from the application domain using hardware message boxes for synchronization&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Those are our observations&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Everything works fine. Audio is encoded &amp;amp; decoded correctly&lt;/LI&gt;&lt;LI&gt;Audio data was saved as WAV file to check quality etc - everything as expected&lt;/LI&gt;&lt;LI&gt;Exchanging data with the app-domain is &lt;STRONG&gt;not&lt;/STRONG&gt; the problem. We measured the message-passing time explicity.&lt;/LI&gt;&lt;LI&gt;BUT: &lt;STRONG&gt;Performance is VERY BAD&lt;/STRONG&gt;! The HIFI4 is running at full speed, i.e. 475MHz, and it takes about 2.5ms to encode/decode one 10ms block worth of audio (16kHz, 16bit, 10ms).&amp;nbsp;&lt;/LI&gt;&lt;LI&gt;We did the same test on an RT600, which also has a HIFI4 core, and there the performance is about a &lt;STRONG&gt;factor of 10&lt;/STRONG&gt; better. One pass takes just appr. 0.27ms!&lt;/LI&gt;&lt;LI&gt;Even when we place data in the DTCM (tightly coupled memory), performance is still &lt;STRONG&gt;a factor of 3 worse&lt;/STRONG&gt;. And the TCM is way to small to host all the data of our application.&lt;/LI&gt;&lt;LI&gt;It is to be expected that accessing internal RAM is somewhere between DDR and TCM, so the performance penalty will be somewhere between a factor of 3 to 10...&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Questions:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Can you explain this vast deviation?&lt;/LI&gt;&lt;LI&gt;As both RT600 and imx8ulp have the same HIFI4 core, it cannot be the core itself.&lt;/LI&gt;&lt;LI&gt;We suspect it has to do with probably very bad DDR memory access times. Can you confirm this? If so, what can we do about it?&lt;/LI&gt;&lt;LI&gt;We also found some comments in the code, see dsp_wrapper/src/dsp_wrap.c in Line 310: There you explicitly exclude certain codecs from processing in the HIFI4 because of performance reasons - explicitly and exclusively for the imx8ulp! Why is that?&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Another related question regarding the dsp_warp.c file: For the MX8ULP, you are explicitly choosing CODEC_FSL_MP3_DEC over CODEC_MP3_DEC, same for another codec. Why are you doing that? What is the difference between those codec-types?&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Can you comment on the performance of the HIFI4 wrt. I/DTCM, DDR and Internal (Shared) Memory?&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;Markus&lt;/P&gt;</description>
      <pubDate>Thu, 22 Feb 2024 13:19:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1812007#M220178</guid>
      <dc:creator>ferringer1</dc:creator>
      <dc:date>2024-02-22T13:19:23Z</dc:date>
    </item>
    <item>
      <title>Re: Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1815644#M220416</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226432"&gt;@ferringer1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you for contacting NXP Support.&lt;/P&gt;
&lt;P&gt;It seems that there is an issue with the data flow it could be related to the throughput from the audio bus. &lt;BR /&gt;To confirm, are you using the i.MX8ULP EVK or a custom board?&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2024 14:00:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1815644#M220416</guid>
      <dc:creator>brian14</dc:creator>
      <dc:date>2024-02-26T14:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1815822#M220438</link>
      <description>We are using the i.MX8ULP EVK.&lt;BR /&gt;We are passing in 10ms worth of audio data via a shared buffer in DDR. Those 10ms worth of audio data are then LC3+ encoded and immediately decoded again, and pushed back to RAM.&lt;BR /&gt;To the best of our knowledge, the bad performance only affects the LC3+ algorithms, i.e. the actual processing within the HIFI4 core.&lt;BR /&gt;The raw round-trip time of the data, without any LC3+ encoding/decoding, has been measured separately, and doesn't seem to be the problem at all.</description>
      <pubDate>Mon, 26 Feb 2024 17:19:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1815822#M220438</guid>
      <dc:creator>ferringer1</dc:creator>
      <dc:date>2024-02-26T17:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1816680#M220486</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.nxp.com/t5/user/viewprofilepage/user-id/226432"&gt;@ferringer1&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I noticed that an NXP colleague is working on your case, if this is correct would it be ok to close this ticket and let my co-worker continue in your thread this to avoid any kind of confusion.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 15:57:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1816680#M220486</guid>
      <dc:creator>brian14</dc:creator>
      <dc:date>2024-02-27T15:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1816698#M220489</link>
      <description>&lt;P&gt;I guess so, thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2024 16:22:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1816698#M220489</guid>
      <dc:creator>ferringer1</dc:creator>
      <dc:date>2024-02-27T16:22:55Z</dc:date>
    </item>
    <item>
      <title>Re: Bad HIFI4 Performance on iMX8ULP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1820350#M220713</link>
      <description>&lt;P&gt;To post the answer from the other support case here: Long story short, DDR performance of HIFI4 is bad because it's running over a NIC. Nothing can be done about it.&lt;/P&gt;&lt;P&gt;I am wondering if this is also true for the Application Domain, as the DDR is accessed via a NIC as well.&lt;/P&gt;</description>
      <pubDate>Mon, 04 Mar 2024 08:54:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Bad-HIFI4-Performance-on-iMX8ULP/m-p/1820350#M220713</guid>
      <dc:creator>ferringer1</dc:creator>
      <dc:date>2024-03-04T08:54:23Z</dc:date>
    </item>
  </channel>
</rss>

