<?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: Linux kernel sometimes lock for a few instants in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360958#M50804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, I redefine it to zero, but error still occur. Any suggestion about how try discover where kernel locks? I have tried enable ftrace, but I get a lot of compiler errors in Freescale drivers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Mar 2015 18:01:00 GMT</pubDate>
    <dc:creator>leonardoprates</dc:creator>
    <dc:date>2015-03-09T18:01:00Z</dc:date>
    <item>
      <title>Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360954#M50800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a custom board with IMX6Q and all works good. In this board I have an external watchdog that resets the board if your input pin doesn't toggle in less than 1.6 seconds. Sometimes just after linux starts the board reboot (not always, 1 time in each 30 boots). I have looked with a scope and when this happens the driver that toggle the pin locks for more than 1.6s and my WDT reboots the board. But this lock doesn't occur only in that device driver, I have for example a led associated with kernel heartbeat function and this led locks too at same time. If I disconnect WDT from RST line I can see that when linux boot with this issue the kernel locks for 3 or 4 seconds and remains locking in aleatory way in the time until I reboot the board, but if Linux boots without the issue this never happens. No error message occurs at boot in any situation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In resume: if board boots with problem, sometimes some drivers lock for a few seconds, without any warning or error message. After lock, kernel continue as if nothing had happened.&lt;/P&gt;&lt;P&gt;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if board boots without problem, I can't see any kind of locking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This happens only if CPU is in idle condition. If board boots wtih problem and I put some program to run I can't see lock anymore while program is running. If I stop the program, the lock starts again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My kernel is 3.10.17 from Freescale made with Yocto and the kernel preemption is enable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any help,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 12:22:59 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360954#M50800</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2015-03-05T12:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360955#M50801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can check if this related to gpu power down:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="com"&gt;gcdPOWEROFF_TIMEOUT&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://code.google.com/p/chromecast-mirrored-source/source/browse/linux-3.8/arch/arm/mach-berlin/modules/gpu3D/hal/kernel/inc/gc_hal_options.h?repo=kernel&amp;amp;r=f1bbf75f167178060459f7db5a00afe9f3af3203" title="https://code.google.com/p/chromecast-mirrored-source/source/browse/linux-3.8/arch/arm/mach-berlin/modules/gpu3D/hal/kernel/inc/gc_hal_options.h?repo=kernel&amp;amp;r=f1bbf75f167178060459f7db5a00afe9f3af3203"&gt;gc_hal_options.h - chromecast-mirrored-source - Mirror of open source software used in Chromecast devices - Google Pr…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and install latest patches with &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;L3.10.17_1.0.2_iMX6QDLS_BUNDLE&lt;/A&gt; &lt;/P&gt;&lt;P&gt;and preferably &lt;A href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab"&gt;L3.10.53_1.1.0_iMX6QDLS_Bundle&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 13:55:10 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360955#M50801</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-05T13:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360956#M50802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, I have to undefine this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2015 20:40:53 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360956#M50802</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2015-03-05T20:40:53Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360957#M50803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can give a try setting it to zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2015 00:28:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360957#M50803</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-06T00:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360958#M50804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, I redefine it to zero, but error still occur. Any suggestion about how try discover where kernel locks? I have tried enable ftrace, but I get a lot of compiler errors in Freescale drivers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Mar 2015 18:01:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360958#M50804</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2015-03-09T18:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360959#M50805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Leonardo&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest to try with &lt;A class="jive-link-external-small" data-content-finding="Community" href="http://www.freescale.com/webapp/sps/site/prod_summary.jsp?code=i.MX6Q&amp;amp;fpsp=1&amp;amp;tab=Design_Tools_Tab" target="_blank"&gt;L3.10.17_1.0.2_iMX6QDLS_BUNDLE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;it fixed many issues&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 01:12:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360959#M50805</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2015-03-10T01:12:01Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360960#M50806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 10 Mar 2015 09:57:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360960#M50806</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2015-03-10T09:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Linux kernel sometimes lock for a few instants</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360961#M50807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Igor, I use this version yet.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Apparently I solved my problem using this in a boot script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu0/cpuidle/state0/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu0/cpuidle/state1/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu1/cpuidle/state0/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu1/cpuidle/state1/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu2/cpuidle/state0/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu2/cpuidle/state1/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu3/cpuidle/state0/disable&lt;/P&gt;&lt;P&gt;echo 1 &amp;gt; /sys/devices/system/cpu/cpu3/cpuidle/state1/disable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tryed disable cpu idle in kernel menuconfig, but If I disable a lot of compile errors occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think that error occurs in others boards, but you can see only if you have an external watchdog rebooting the board, because without one, when the behavior occurs any processing or console input start board again. This cpu_idle apparently stops some drivers to run for a few instants, but no suspend signal is sent to drivers to inform that CPU will stops for a few instants and the WDT reboots the board.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Leonardo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Mar 2015 13:00:35 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Linux-kernel-sometimes-lock-for-a-few-instants/m-p/360961#M50807</guid>
      <dc:creator>leonardoprates</dc:creator>
      <dc:date>2015-03-12T13:00:35Z</dc:date>
    </item>
  </channel>
</rss>

