<?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: Linux KGSL driver deadlock within ioctl() routine on i.mx53</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439062#M67395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moving to Yocto and updating Qt to 5.4.1 solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Jul 2015 12:55:55 GMT</pubDate>
    <dc:creator>alexeinomazov</dc:creator>
    <dc:date>2015-07-21T12:55:55Z</dc:date>
    <item>
      <title>[SOLVED] Linux KGSL driver deadlock within ioctl() routine on i.mx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439059#M67392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Hello,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;I am using i.mx 53 board with linux kernel 2.6.35&lt;/SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="color: #51626f; font-weight: inherit; font-size: 11.0pt; font-family: 'Arial','sans-serif'; font-style: inherit;"&gt;I use Qt 5.3.2 over Linux X11.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;I experience severe system failure when executing very simple Qt application.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="color: #51626f; font-size: 11.0pt; font-family: 'Arial','sans-serif'; font-style: inherit;"&gt;&lt;STRONG&gt;User space:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="color: #51626f; font-weight: inherit; font-size: 11.0pt; font-family: 'Arial','sans-serif'; font-style: inherit;"&gt;Qt / QML application of texts and images (contains alpha blending) i get whole system stuck including serial and ethernet SSH services.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;/P&gt;&lt;P style="background-color: white;"&gt;&lt;SPAN style="color: #51626f; font-size: 11.0pt; font-family: 'Arial','sans-serif'; font-style: inherit;"&gt;&lt;STRONG&gt;Kernel level scenario within ioctl():&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 1.&amp;nbsp; i&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;octl(): case IOCTL_KGSL_CMDSTREAM_WAITTIMESTAMP executed with failure return status -1,&amp;nbsp; while hanging for 20 sec.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Stucks for 20 sec within&amp;nbsp; kgsl_cmdstream_waittimestamp()&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt; on "status = device-&amp;gt;ftbl.device_waittimestamp(device, timestamp, timeout)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 18.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; While timeout = -1. Then, returns with status = -1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; text-indent: 18.0pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&lt;SPAN style="font-family: Arial, sans-serif; color: #51626f;"&gt;2.&amp;nbsp; i&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;octl(): case IOCTL_KGSL_CMDSTREAM_ISSUEIBCMDS executed successfully. &lt;/SPAN&gt;&lt;SPAN style="background-color: transparent; color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 14px; line-height: 1.5;"&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3.&amp;nbsp; &lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Ioctl()::IOCTL_KGSL_CMDSTREAM_READTIMESTAMP execution causes deadlock.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Deadlock&lt;/SPAN&gt; &lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;within kgsl_cmdstream_readtimestamp(): hangs on GSL_API_MUTEX_LOCK() execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="color: #51626f; font-size: 11.0pt; font-family: 'Arial','sans-serif';"&gt;&lt;STRONG&gt;System Consequences:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;1. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Serial and Ethernet SSH services becomes unavailable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;2. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Qt application becomes CPU consuming zombie.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;3. &lt;/SPAN&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;[events/0]&amp;nbsp; process becomes high CPU consuming. Actually it become such at beginning of 20 sec period of &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Ioctl()::IOCTL_KGSL_CMDSTREAM_WAITTIMESTAMP execution.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;I would be glad to receive explanation of the BUG both on user and kernel space and how to avoid it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial','sans-serif'; color: #51626f;"&gt;Thanks a lot for any help.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jun 2015 14:33:42 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439059#M67392</guid>
      <dc:creator>alexeinomazov</dc:creator>
      <dc:date>2015-06-08T14:33:42Z</dc:date>
    </item>
    <item>
      <title>Re: Linux KGSL driver deadlock within ioctl() routine on i.mx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439060#M67393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alexei&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to post this to meta-fsl-arm mailing list, so that someone familiar with&lt;/P&gt;&lt;P&gt;similar problems could try to assist you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="https://lists.yoctoproject.org/listinfo/meta-freescale" rel="nofollow" target="_blank"&gt;https://lists.yoctoproject.org/listinfo/meta-freescale&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;igor&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;P&gt;Note: If this post answers your question, please click the Correct Answer button. Thank you!&lt;/P&gt;&lt;P&gt;-----------------------------------------------------------------------------------------------------------------------&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 00:15:02 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439060#M67393</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-06-11T00:15:02Z</dc:date>
    </item>
    <item>
      <title>Re: Linux KGSL driver deadlock within ioctl() routine on i.mx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439061#M67394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Igor,&lt;/P&gt;&lt;P&gt;Many thanks for your reply.&lt;/P&gt;&lt;P&gt;Unfortunately, i am using LTIB and not Yocto.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be greatful if you could give me some direction to find out root cause of the problem in user space, within Qt application.&lt;/P&gt;&lt;P&gt;Specifically, i would like to understand Ioctl()::IOCTL_KGSL_CMDSTREAM_WAITTIMESTAMP call function and why application could call for it. &lt;/P&gt;&lt;P&gt;It seems there is no call for Ioctl()::IOCTL_KGSL_CMDSTREAM_WAITTIMESTAMP within properly working application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14.545454025268555px; font-family: Arial, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #51626f; font-size: 14.545454025268555px; font-family: Arial, sans-serif;"&gt;Alexei.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:33:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439061#M67394</guid>
      <dc:creator>alexeinomazov</dc:creator>
      <dc:date>2015-06-11T15:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Linux KGSL driver deadlock within ioctl() routine on i.mx53</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439062#M67395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Moving to Yocto and updating Qt to 5.4.1 solves the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2015 12:55:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/SOLVED-Linux-KGSL-driver-deadlock-within-ioctl-routine-on-i-mx53/m-p/439062#M67395</guid>
      <dc:creator>alexeinomazov</dc:creator>
      <dc:date>2015-07-21T12:55:55Z</dc:date>
    </item>
  </channel>
</rss>

