<?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: V4L2 driver about dqueue buffer</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1184890#M165052</link>
    <description>&lt;P&gt;what bsp version do you use? try to use the latset version, it seems that latest version fixed this issue already&lt;/P&gt;</description>
    <pubDate>Wed, 18 Nov 2020 04:25:28 GMT</pubDate>
    <dc:creator>joanxie</dc:creator>
    <dc:date>2020-11-18T04:25:28Z</dc:date>
    <item>
      <title>V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1180689#M164723</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;On i.MX8 the V4L2 driver dqueue used&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;static&lt;/STRONG&gt; &lt;STRONG&gt;int&lt;/STRONG&gt; &lt;A href="http://10.50.82.4:8080/A6x/s?refs=__vb2_wait_for_done_vb&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;__vb2_wait_for_done_vb&lt;/A&gt;(&lt;STRONG&gt;struct&lt;/STRONG&gt; &lt;A href="http://10.50.82.4:8080/A6x/s?defs=vb2_queue&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;vb2_queue&lt;/A&gt; *q, &lt;STRONG&gt;int&lt;/STRONG&gt; &lt;A href="http://10.50.82.4:8080/A6x/s?refs=nonblocking&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;nonblocking&lt;/A&gt;)&lt;/PRE&gt;&lt;P&gt;and if application used blocking mode,data not fill in dqueue buffer it will blocking&lt;/P&gt;&lt;PRE&gt;		&lt;A href="http://10.50.82.4:8080/A6x/s?defs=ret&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;ret&lt;/A&gt; = &lt;A href="http://10.50.82.4:8080/A6x/s?defs=wait_event_interruptible&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;wait_event_interruptible&lt;/A&gt;(q-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=done_wq&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;done_wq&lt;/A&gt;,
				!&lt;A href="http://10.50.82.4:8080/A6x/s?defs=list_empty&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;list_empty&lt;/A&gt;(&amp;amp;q-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=done_list&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;done_list&lt;/A&gt;) || !q-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=streaming&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;streaming&lt;/A&gt; ||
				q-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=error&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;error&lt;/A&gt;);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But On i.MX6 the V4L2 driver is&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;STRONG&gt;static&lt;/STRONG&gt; &lt;STRONG&gt;int&lt;/STRONG&gt; &lt;A href="http://10.50.82.4:8080/A6x/s?refs=mxc_v4l_dqueue&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;mxc_v4l_dqueue&lt;/A&gt;(&lt;A href="http://10.50.82.4:8080/A6x/s?defs=cam_data&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;cam_data&lt;/A&gt; *&lt;A href="http://10.50.82.4:8080/A6x/s?refs=cam&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;cam&lt;/A&gt;, &lt;STRONG&gt;struct&lt;/STRONG&gt; &lt;A href="http://10.50.82.4:8080/A6x/s?defs=v4l2_buffer&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;v4l2_buffer&lt;/A&gt; *&lt;A href="http://10.50.82.4:8080/A6x/s?refs=buf&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;buf&lt;/A&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;It blocking mode has system timeout,when time out it will return,application will not blocking&lt;/P&gt;&lt;PRE&gt;	&lt;STRONG&gt;if&lt;/STRONG&gt; (!&lt;A href="http://10.50.82.4:8080/A6x/s?defs=wait_event_interruptible_timeout&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;wait_event_interruptible_timeout&lt;/A&gt;(&lt;A href="http://10.50.82.4:8080/A6x/s?defs=cam&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;cam&lt;/A&gt;-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=enc_queue&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;enc_queue&lt;/A&gt;,
					      &lt;A href="http://10.50.82.4:8080/A6x/s?defs=cam&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;cam&lt;/A&gt;-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=enc_counter&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;enc_counter&lt;/A&gt; != 0,
					      &lt;SPAN class="n"&gt;10&lt;/SPAN&gt; * &lt;A href="http://10.50.82.4:8080/A6x/s?defs=HZ&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;HZ&lt;/A&gt;)) {
		&lt;A href="http://10.50.82.4:8080/A6x/s?defs=pr_err&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;pr_err&lt;/A&gt;(&lt;SPAN class="s"&gt;"ERROR: v4l2 capture: mxc_v4l_dqueue timeout "&lt;/SPAN&gt;
			&lt;SPAN class="s"&gt;"enc_counter %x\n"&lt;/SPAN&gt;,
		       &lt;A href="http://10.50.82.4:8080/A6x/s?defs=cam&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;cam&lt;/A&gt;-&amp;gt;&lt;A href="http://10.50.82.4:8080/A6x/s?defs=enc_counter&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;enc_counter&lt;/A&gt;);
		&lt;STRONG&gt;return&lt;/STRONG&gt; -&lt;A href="http://10.50.82.4:8080/A6x/s?defs=ETIME&amp;amp;project=build-onepiece" target="_blank" rel="noopener"&gt;ETIME&lt;/A&gt;;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to ask does i.MX8 V4L2 dqueue driver can use &amp;nbsp;func wait_event_interruptible_timeout?&lt;/P&gt;&lt;P&gt;add timeout in blocking mode make application not block.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If can pls give patch to modify.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Tue, 10 Nov 2020 09:50:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1180689#M164723</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2020-11-10T09:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1181963#M164808</link>
      <description>&lt;P&gt;Is anyone can help？&lt;/P&gt;</description>
      <pubDate>Thu, 12 Nov 2020 03:54:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1181963#M164808</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2020-11-12T03:54:40Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1184890#M165052</link>
      <description>&lt;P&gt;what bsp version do you use? try to use the latset version, it seems that latest version fixed this issue already&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 04:25:28 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1184890#M165052</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-11-18T04:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1184942#M165074</link>
      <description>&lt;P&gt;I used&amp;nbsp;imx-yocto-L4.14.98_2.3.0&lt;/P&gt;&lt;P&gt;which version fixed it?pls give the opensource link&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Wed, 18 Nov 2020 05:47:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1184942#M165074</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2020-11-18T05:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1185828#M165186</link>
      <description>&lt;P&gt;I mean 5.4.47_2.2.0&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 08:00:18 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1185828#M165186</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-11-19T08:00:18Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1185847#M165188</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I found in&amp;nbsp;&lt;SPAN&gt;&amp;nbsp;5.4.47_2.2.0 also used&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN class="n"&gt;wait_event_interruptible&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;May I modify in my BSP like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;/* ret = wait_event_interruptible(q-&amp;gt;done_wq,&lt;BR /&gt;!list_empty(&amp;amp;q-&amp;gt;done_list) || !q-&amp;gt;streaming ||&lt;BR /&gt;q-&amp;gt;error); */&lt;BR /&gt;ret = wait_event_interruptible_timeout(q-&amp;gt;done_wq,&lt;BR /&gt;!list_empty(&amp;amp;q-&amp;gt;done_list) || !q-&amp;gt;streaming ||&lt;BR /&gt;q-&amp;gt;error, 5 * HZ);&lt;BR /&gt;/*&lt;BR /&gt;* We need to reevaluate both conditions again after reacquiring&lt;BR /&gt;* the locks or return an error if one occurred.&lt;BR /&gt;*/&lt;BR /&gt;call_void_qop(q, wait_finish, q);&lt;BR /&gt;if (!ret) {&lt;BR /&gt;dprintk(1, "sleep was interrupted\n");&lt;BR /&gt;return -ETIME;&lt;BR /&gt;}&lt;BR /&gt;/* if (ret) {&lt;BR /&gt;dprintk(1, "sleep was interrupted\n");&lt;BR /&gt;return ret;&lt;BR /&gt;} */&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any side effect?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 19 Nov 2020 08:16:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1185847#M165188</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2020-11-19T08:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1189528#M165567</link>
      <description>&lt;P&gt;pls send the file link to me&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 07:49:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1189528#M165567</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2020-11-26T07:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1189553#M165568</link>
      <description>&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/common/videobuf2/videobuf2-core.c?h=imx_5.4.47_2.2.0" target="_blank"&gt;https://source.codeaurora.org/external/imx/linux-imx/tree/drivers/media/common/videobuf2/videobuf2-core.c?h=imx_5.4.47_2.2.0&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Nov 2020 08:17:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1189553#M165568</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2020-11-26T08:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1223977#M168731</link>
      <description>&lt;P&gt;have you tested your code? do you mean if you didn't add these code, you found the code would stuck and without any return? as I known, you will get warning if the timeout exists&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 09:59:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1223977#M168731</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-02-01T09:59:00Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1223996#M168734</link>
      <description>&lt;P&gt;If the code is &amp;nbsp;wait_event_interruptible there will&amp;nbsp;&lt;SPAN&gt;stuck and without any return,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if the code is&amp;nbsp;wait_event_interruptible_timeout when timeout there will&amp;nbsp;return&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 01 Feb 2021 10:18:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1223996#M168734</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2021-02-01T10:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1251898#M171439</link>
      <description>&lt;P&gt;I don't think that adding these code can fix the root issue, how could I reproduce this on nxp board? as I known the latest bsp fix warn: wait_event_interruptible_timeout issue, but I don't know what root issue you have&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Mar 2021 07:19:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1251898#M171439</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-03-25T07:19:11Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1252469#M171513</link>
      <description>&lt;P&gt;you can used unit test image capture demo app on NXP mek board test,when you start capture camera image then pull out the camera,at this time no image data thansfer,the capture app will hung can not stop normally&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 01:13:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1252469#M171513</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2021-03-26T01:13:14Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1252470#M171514</link>
      <description>&lt;P&gt;on i.MX8QM or i.MX8QXP mek board&lt;/P&gt;</description>
      <pubDate>Fri, 26 Mar 2021 01:15:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1252470#M171514</guid>
      <dc:creator>xu_ji1</dc:creator>
      <dc:date>2021-03-26T01:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: V4L2 driver about dqueue buffer</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1271058#M173486</link>
      <description>&lt;P&gt;I checked the source code, wait_event_interruptible will return the value, and tell the queue, it will wait until get signal and condition to true, and the function will check the return value and wait it, and wait_event_interruptible_timeout is has time limitation,it seems the driver here wants to sleep until wake_up, if you change from wait_event_interruptible to wait_event_interruptible_timeout, maybe will broke the process, I'm not sure of this and don't find any one do this&lt;/P&gt;
&lt;P&gt;&lt;A href="https://source.codeaurora.org/external/imx/linux-imx/tree/include/linux/wait.h?h=imx_5.4.47_2.2.0&amp;quot;" target="_blank"&gt;"https://source.codeaurora.org/external/imx/linux-imx/tree/include/linux/wait.h?h=imx_5.4.47_2.2.0"&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 01 May 2021 07:23:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/V4L2-driver-about-dqueue-buffer/m-p/1271058#M173486</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2021-05-01T07:23:49Z</dc:date>
    </item>
  </channel>
</rss>

