<?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: Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729449#M113439</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to solve this problem? I am having the same problem using an ADV7280M (mipi / analogue camera) with an i.MX&lt;STRONG&gt;7&lt;/STRONG&gt;D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me the NXP documentation regarding the CSI/MIPI is a complete mess for the i.MX7, and probably likewise for the i.MX8. For instance the i.MX7 document pack contains a 150 page Graphics document that only mentions the i.MX6 family, never the i.MX7, and an 87 page VPU document, when the i.MX7 doesn't contain a VPU. Very confusing !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all of the CSI / MIPI posts assume use of an i.MX6 with a h/w IPU. Of course, the i.MX7 and the newer i.MX8 don't have a h/w IPU. And most posts, just like this one, are left 'hanging' without any conclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Kernel 4.9.11 and &lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt;&amp;nbsp;attempts to set bits that are &lt;STRONG&gt;reserved&lt;/STRONG&gt; according to the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analogue video - by this I mean interlaced BT.656 - seem a very common use-case, but when using the CSI-MIPI it is completely unclear what driver is doing what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an analogue&amp;nbsp;&lt;STRONG&gt;INTERLACED&lt;/STRONG&gt;&amp;nbsp;(PAL / NTSC) camera feed, and according to Analogue Devices documentation this results in a &lt;STRONG&gt;INTERLACED&amp;nbsp;BT.656 compliant MIPI&lt;/STRONG&gt; feed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I expected that mx6s_capture.c should be configured with CCIR enabled (CSICR1 bit 10), in order to decode the embedded timing (SAV, EAV) ??&amp;nbsp; &lt;STRONG&gt;But I can't get this to work !!&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If I don't enable CCIR, I can get an image, albeit with 2 copies one on top of each other, due to interlacing. But this raises the question of how has the embedded frame/field timing been decoded from the BT.656 without CCIR being enabled ??&lt;/LI&gt;&lt;LI&gt;Is CCIR mode applicable when using the MIPI as a feed to the CSI ??&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some help from NXP is needed here !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jul 2018 09:27:03 GMT</pubDate>
    <dc:creator>dh29</dc:creator>
    <dc:date>2018-07-03T09:27:03Z</dc:date>
    <item>
      <title>Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729445#M113435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are using i.MX8M to develop i.MX8M MIPI CSI-2 video capture device.&lt;/P&gt;&lt;P&gt;In i.MX8M platform, there are two components which are related to MIPI CSI-2.&lt;/P&gt;&lt;P&gt;One is mx6s_capture (csi1_bridge) and the other is mxc-mipi-csi2_yav (mipi_csi_1).&lt;/P&gt;&lt;P&gt;Our current environment setting of MIPI CSI-2 is 1 data lane, 1 channel and 1 analog camera.&lt;/P&gt;&lt;P&gt;When we use yavta to test the function flow of V4L2, we will be stuck at __vb2_wait_for_done_vb.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;EM&gt;Our command: yavta -fUYVY -s720x480 -n4 --capture=5 /dev/video0&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;After analyzing the log, we found that mx6s_vidioc_dqbuf is not returned and mx6s_csi_irq_handler is not triggered.&lt;/P&gt;&lt;P&gt;It seems maybe DMA transfer is not complete or some other reasons.&lt;/P&gt;&lt;P&gt;Could anyone help to provide some clues or guide us how to debug the issues (e.g. check the register status, buffer content...)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Apr 2018 06:43:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729445#M113435</guid>
      <dc:creator>bensonhuang</dc:creator>
      <dc:date>2018-04-13T06:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729446#M113436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;which BSP are you using?&lt;/P&gt;&lt;P&gt;You may get more details about the mipi csi driver in Linux reference manual.&lt;/P&gt;&lt;P&gt;you can get the document of different version BSP&amp;nbsp; from here:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-software-and-development-tool-resources:IMX_SW" title="https://www.nxp.com/support/developer-resources/run-time-software/i.mx-developer-resources/i.mx-software-and-development-tool-resources:IMX_SW"&gt;i.MX Software|NXP&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. under Documentation --i.MX Software|NXP&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;DIV class="" data-location="MCA"&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;UL class=""&gt;&lt;LI class=""&gt;&lt;UL&gt;&lt;LI&gt;&lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.9.51_8MQ_GA_LINUX_DOCS&amp;amp;Parent_nodeId=1337699481071706174845&amp;amp;Parent_pageType=product" target="_blank"&gt;Linux L4.9.51 8MQuad GA Documentation&lt;/A&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Apr 2018 04:19:09 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729446#M113436</guid>
      <dc:creator>jimmychan</dc:creator>
      <dc:date>2018-04-19T04:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729447#M113437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jimmychan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We use Linux L4.9.51 for i.MX 8MQuad GA version.&lt;/P&gt;&lt;P&gt;The documents are nearly about i.MX6 series (IPU part) and don't mention i.MX8M.&lt;/P&gt;&lt;P&gt;Will NXP release new documents for i.MX8M?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Apr 2018 08:44:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729447#M113437</guid>
      <dc:creator>bensonhuang</dc:creator>
      <dc:date>2018-04-30T08:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729448#M113438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Only when I use interlace field (e.g., V4L2_FIELD_INTERLACED), mx6s_vidioc_dqbuf will not return and mx6s_csi_irq_handler will not be triggered.&lt;/P&gt;&lt;P&gt;But if I use none interlace field (e.g., V4L2_FIELD_NONE), mx6s_vidioc_dqbuf will return and&lt;/P&gt;&lt;P&gt;mx6s_csi_irq_handler will be triggered.&lt;/P&gt;&lt;P&gt;It seems mx6s_capture.c has some problem when handling interlaced video from analog camera.&lt;/P&gt;&lt;P&gt;Could someone tell us how to solve this issue?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 May 2018 01:48:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729448#M113438</guid>
      <dc:creator>bensonhuang</dc:creator>
      <dc:date>2018-05-02T01:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Stuck at __vb2_wait_for_done_vb when using yavta to do capture</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729449#M113439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did you manage to solve this problem? I am having the same problem using an ADV7280M (mipi / analogue camera) with an i.MX&lt;STRONG&gt;7&lt;/STRONG&gt;D.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems to me the NXP documentation regarding the CSI/MIPI is a complete mess for the i.MX7, and probably likewise for the i.MX8. For instance the i.MX7 document pack contains a 150 page Graphics document that only mentions the i.MX6 family, never the i.MX7, and an 87 page VPU document, when the i.MX7 doesn't contain a VPU. Very confusing !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Almost all of the CSI / MIPI posts assume use of an i.MX6 with a h/w IPU. Of course, the i.MX7 and the newer i.MX8 don't have a h/w IPU. And most posts, just like this one, are left 'hanging' without any conclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using Kernel 4.9.11 and &lt;STRONG&gt;mx6s_capture.c&lt;/STRONG&gt;&amp;nbsp;attempts to set bits that are &lt;STRONG&gt;reserved&lt;/STRONG&gt; according to the documentation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Analogue video - by this I mean interlaced BT.656 - seem a very common use-case, but when using the CSI-MIPI it is completely unclear what driver is doing what.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With an analogue&amp;nbsp;&lt;STRONG&gt;INTERLACED&lt;/STRONG&gt;&amp;nbsp;(PAL / NTSC) camera feed, and according to Analogue Devices documentation this results in a &lt;STRONG&gt;INTERLACED&amp;nbsp;BT.656 compliant MIPI&lt;/STRONG&gt; feed:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;I expected that mx6s_capture.c should be configured with CCIR enabled (CSICR1 bit 10), in order to decode the embedded timing (SAV, EAV) ??&amp;nbsp; &lt;STRONG&gt;But I can't get this to work !!&lt;/STRONG&gt;&lt;/LI&gt;&lt;LI&gt;If I don't enable CCIR, I can get an image, albeit with 2 copies one on top of each other, due to interlacing. But this raises the question of how has the embedded frame/field timing been decoded from the BT.656 without CCIR being enabled ??&lt;/LI&gt;&lt;LI&gt;Is CCIR mode applicable when using the MIPI as a feed to the CSI ??&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Some help from NXP is needed here !!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jul 2018 09:27:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Stuck-at-vb2-wait-for-done-vb-when-using-yavta-to-do-capture/m-p/729449#M113439</guid>
      <dc:creator>dh29</dc:creator>
      <dc:date>2018-07-03T09:27:03Z</dc:date>
    </item>
  </channel>
</rss>

