<?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: mdelay causes kernel panic</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/mdelay-causes-kernel-panic/m-p/1047551#M154279</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew_k_t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems mdelay is blocking other tasks which could cause linux problems:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/Documentation/timers/timers-howto.txt" title="https://www.kernel.org/doc/Documentation/timers/timers-howto.txt"&gt;https://www.kernel.org/doc/Documentation/timers/timers-howto.txt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.energiequant.de/wordpress/articles/2008/10/02/msleep-vs-mdelay/" title="http://www.energiequant.de/wordpress/articles/2008/10/02/msleep-vs-mdelay/"&gt;msleep() vs. mdelay() – Energiequant&lt;/A&gt;&amp;nbsp;&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, 16 Jun 2020 09:21:14 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-06-16T09:21:14Z</dc:date>
    <item>
      <title>mdelay causes kernel panic</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mdelay-causes-kernel-panic/m-p/1047550#M154278</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;I'm using an i.mx6ull based custom board and is battery powered. I have an LCD device driver using i2c. I need to enable all segments during booting and wait for three seconds then disable all segments. Once all segments are turned off, I need to print some messages on the display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;For waiting three seconds I have used &lt;STRONG&gt;mdelay(3000)&lt;/STRONG&gt;. This causes kernel panic when it is powered from a battery(Battery was fully charged and there is no severe voltage drop). It works as expected when it is powered from USB. Also, if we split the mdelay(3000) to (mdelay(1000) X 3 times) or (mdelay(2000) and mdelay(1000)), no issue is found. What would be the reason for it? Any workaround for this?&lt;/LI&gt;&lt;LI&gt;Since mdelay was causing panic, I created a timer delay and initialized a tasklet for displaying a message from timer ISR. There are around 30-40 i2c transactions for displaying the message. While executing this it throws.&lt;span class="lia-inline-image-display-wrapper" image-alt="Screenshot from 2020-06-16 10-33-14.png"&gt;&lt;img src="https://community.nxp.com/t5/image/serverpage/image-id/112922iB70ED4D1B7C7A326/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2020-06-16 10-33-14.png" alt="Screenshot from 2020-06-16 10-33-14.png" /&gt;&lt;/span&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;It takes a long time to boot. Is it a clock stretching? What will be the best solution for the given requirement?&lt;/P&gt;&lt;P&gt;This is bit critical. Please reply fast.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Jun 2020 05:22:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mdelay-causes-kernel-panic/m-p/1047550#M154278</guid>
      <dc:creator>mathew_k_t</dc:creator>
      <dc:date>2020-06-16T05:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: mdelay causes kernel panic</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/mdelay-causes-kernel-panic/m-p/1047551#M154279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi mathew_k_t&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;seems mdelay is blocking other tasks which could cause linux problems:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://www.kernel.org/doc/Documentation/timers/timers-howto.txt" title="https://www.kernel.org/doc/Documentation/timers/timers-howto.txt"&gt;https://www.kernel.org/doc/Documentation/timers/timers-howto.txt&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://www.energiequant.de/wordpress/articles/2008/10/02/msleep-vs-mdelay/" title="http://www.energiequant.de/wordpress/articles/2008/10/02/msleep-vs-mdelay/"&gt;msleep() vs. mdelay() – Energiequant&lt;/A&gt;&amp;nbsp;&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, 16 Jun 2020 09:21:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/mdelay-causes-kernel-panic/m-p/1047551#M154279</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-06-16T09:21:14Z</dc:date>
    </item>
  </channel>
</rss>

