<?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: Video reentrancy issue in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707047#M109866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;70% is not small, one can try to decrease fps/resolution to verify that&lt;/P&gt;&lt;P&gt;this is not buses bandwidth issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 10:34:42 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2017-10-19T10:34:42Z</dc:date>
    <item>
      <title>Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707042#M109861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use among other video inputs/outputs GStreamer to play back video files. Most of the time it works fine and the video plays perfectly along with all the other video inputs/outputs. However at random intervals of time, the system would stop working. The GStreamer video (VideoX) is overlayed (hardware) with a Qt application (FramebufferY). Both are 1280x720. However, just before the system stops working, the Qt application output gets wildly stretched. At this point we start getting the&amp;nbsp;following printouts&lt;/P&gt;&lt;P&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x08800000&lt;BR /&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000&lt;/P&gt;&lt;P&gt;and after a small amount of time the system stops working completely (video) an we get the following&lt;/P&gt;&lt;P&gt;mxc_sdc_fb fb.24: timeout when waiting for flip irq&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interestingly when we start a playback with a new Gstreamer stream(different file) before the system gets to the "flip irq" error, the wild stretch of the Qt application sometimes gets fixed and the the system continues to work without any further errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When all stopped working, stopping and starting the involved processes (programs) will get the system to run again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen threads that state it is a performance issue. In our case it can hardly be the issue, as the CPU is at 40% usage when all the video parts in the system is running (Recording, playback, streaming, overlay, GUIs etc)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After some digging it seems like when calling mxcfb_set_par func() we sometimes get this problem. We could not see any change in the variables settings, and this leads us to conclude that there might be a reantrancy issue where some critical section is not protected as it should.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can somebody help out to find this issue...? Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Oct 2017 06:58:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707042#M109861</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-16T06:58:36Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707043#M109862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;imx-ipuv3 imx-ipuv3.0: IPU Warning - IPU_INT_STAT_10 = 0x00100000. &lt;BR /&gt;This means a synchronous display error interrupt, as a result of an error during &lt;BR /&gt;access to a synchronous display. one solution to this issue is reducing the use &lt;BR /&gt;case be reducing the display resolution, the needed framerate, frame buffer bits &lt;BR /&gt;per pixel or any other measure that helps to reduce the memory bandwidth utilization.&lt;/P&gt;&lt;P&gt;Also one can try to change IOMUXC_GPR6,7 with IPU QoS priorities.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;BR /&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;BR /&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Oct 2017 07:26:26 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707043#M109862</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-17T07:26:26Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707044#M109863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the looks of it, I would agree with you - We get an oversized video output that the IPU should not be able to handle. This however is only a result of a deeper cause. We play back the same file time and again, but at random intervals we get this error. The fact that it works most of the time, already tells me that the system can handle the use case. The random errors is the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When we do get this error, looking at the framebuffer that gets over-sized (by using fbset) gives the correct settings. which leads me to think that due to some reantrancy the IPU gets the wrong settings even though the fbset settings is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 07:56:30 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707044#M109863</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-18T07:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707045#M109864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one can try to add dmfc=3 in kernel boot parameters and increase IPU QoS priorities in IOMUXC_GPR6,7.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Oct 2017 08:25:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707045#M109864</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-18T08:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707046#M109865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Setting the dmfc=3, we get video problems (rolling black and white lines through the picture) when all the programs run.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;setting the IPU QoS to 0x007f007f did not help we still have the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ran the DDR profiling tool "/unit_tests/mmdc2 SUM" and it show 44% without playback and 70% with playback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:55:04 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707046#M109865</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-19T09:55:04Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707047#M109866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;70% is not small, one can try to decrease fps/resolution to verify that&lt;/P&gt;&lt;P&gt;this is not buses bandwidth issue.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:34:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707047#M109866</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-19T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707048#M109867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I changed the timing settings of the vid/fb both (fbset) so that the framerate is lower than 3fps. We still get the&amp;nbsp;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;IPU_INT_STAT_10 = 0x00100000 error.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; background-color: #ffffff;"&gt;I want to stress yet again. We don't get this all the time. After a random number of times playing the same files we would get this error. As soon as this happens&amp;nbsp; we see the output stretched wildly out of proportion. I can understand getting this error due to the stretch of the picture, but I don't understand how does this stretch happen. So what I am trying to say is that - perhaps we should be looking into how the system gets WRONG settings so as to stretch the output that causes the errors...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 12:19:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707048#M109867</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-19T12:19:15Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707049#M109868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;what bsp used in the case,&amp;nbsp; can issue be reproduced on nxp&lt;/DIV&gt;&lt;DIV class=""&gt;reference board with bsps described on&lt;/DIV&gt;&lt;DIV class=""&gt;&lt;A class="link-titled" href="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW" title="http://www.nxp.com/products/software-and-tools/software-development-tools/i.mx-software-and-tools/i.mx-6series-i.mx-7series-software-and-development-tool-resources:IMX_SW"&gt;i.MX 6 / i.MX 7 Series Software and Development Tool|NXP&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;P style="min- padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 00:10:15 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707049#M109868</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-20T00:10:15Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707050#M109869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Our board is similar to SabreSD, but has many changes. We started out using SabreSD BSP but by now is very different. We use the&amp;nbsp;3.14.52 kernel from Freescale. We have not tried to reproduce the issue on the devboards, since we use a camera input (720p 25fps), LCD output (LVDS with fb GUI overlay @ 720x480), HDMI output (720p), parallel output (with fb GUI overlay @ 720p). The playback is done on the parallel output where our issue comes into play....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only development kit we have at the moment is a wandboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I started to change the framerate output I noticed that sometimes it works, sometimes not, and sometimes I allways get the "mxc_sdc_fb fb.24: timeout when waiting for flip irq" error - depending on the settings. I changed the settings to an output of 25fps by adding right margin pixels and now I don't get the flip error. The system does not hang, but I still randomly get the&lt;/P&gt;&lt;P&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 = 0x08800000&lt;BR /&gt;imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_10 = 0x00100000&lt;/P&gt;&lt;P&gt;errors. I also still see the picture blown out of proportion big when we get these errors. When I try another playback after we get these errors, the error generally disappears and the output returns to its normal size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 22 Oct 2017 06:27:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707050#M109869</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-22T06:27:14Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707051#M109870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is what I found so far.&lt;/P&gt;&lt;P&gt;I have a 800x480 output with video and overlay, and a 1280x720 output with video and overlay. I display two different GUI's to the overlays and a gstreamer fakesrc to the 800x480 video/fb. I wrote a small script to play a very short (3 seconds) video 300 times through gstreamer to the 1280x720 video/fb. We also get these same errors in this case at random intervals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the meantime I am going to test it also on the wandboard....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 10:41:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707051#M109870</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-10-29T10:41:32Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707052#M109871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Reuel&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in general similar errors may happen if uboot logo enabled (so bypass_reset is true &lt;BR /&gt;and the IPU will not be fully initialized), please check uboot logo link:&lt;BR /&gt;&lt;A class="jive-link-wiki-small" data-containerid="2004" data-containertype="14" data-objectid="98109" data-objecttype="102" href="https://community.nxp.com/docs/DOC-98109"&gt;https://community.nxp.com/docs/DOC-98109&lt;/A&gt;&lt;BR /&gt;Or play with various gpu memory settings, check sect.9.2 GPU memory attached &lt;BR /&gt;i.MX6 Graphics User's Guide, check that implemented clock switching procedure &lt;BR /&gt;described in EB821 LDB Clock Switch Procedure.&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fdocs%2Fen%2Fengineering-bulletin%2FEB821.pdf" rel="nofollow" target="_blank"&gt;https://www.nxp.com/docs/en/engineering-bulletin/EB821.pdf&lt;/A&gt;&lt;BR /&gt;Another test may be use different IPUs and different clock sources to two displays.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 29 Oct 2017 22:47:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707052#M109871</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2017-10-29T22:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: Video reentrancy issue</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707053#M109872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the pointers. Some interesting points. I started out with changing clock sources. Running the same tests I found that changing the LVDS clock source from&amp;nbsp;IMX6QDL_CLK_PLL2_PFD2_396M to&amp;nbsp;IMX6QDL_CLK_PLL2_PFD0_352M in the dts fixes the issue. I ran 900 repetitions and now problems.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Nov 2017 08:24:52 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Video-reentrancy-issue/m-p/707053#M109872</guid>
      <dc:creator>reuelhaavrahami</dc:creator>
      <dc:date>2017-11-01T08:24:52Z</dc:date>
    </item>
  </channel>
</rss>

