<?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: Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144367#M239733</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One approach I tried that seems to work without causing a kernel panic is to create a kernel thread from the probe() function and move the initialization code (which includes delays) into that thread.&lt;/P&gt;&lt;P&gt;Is there a better or more appropriate method for handling this?&lt;BR /&gt;&lt;BR /&gt;Reagrds,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
    <pubDate>Thu, 31 Jul 2025 08:39:46 GMT</pubDate>
    <dc:creator>adnan_dst</dc:creator>
    <dc:date>2025-07-31T08:39:46Z</dc:date>
    <item>
      <title>Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144250#M239721</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;We are using an i.MX8MP SoM with a custom Linux OS&lt;BR /&gt;&lt;STRONG&gt;Kernel version&lt;/STRONG&gt;: lf-5.15.71-2.2.2&lt;/P&gt;&lt;P&gt;We're in the process of integrating the &lt;STRONG&gt;AR1335 camera driver&lt;/STRONG&gt; (originally from the i.MX8MP Verdin platform) into our own i.MX8MP SoM setup.&lt;/P&gt;&lt;P&gt;However, when the AR1335 platform driver is loaded at boot time, the system encounters a &lt;STRONG&gt;kernel panic&lt;/STRONG&gt; immediately after the driver's probe() function completes. If we do not load the device tree overlay for this driver, the system boots without issues.&lt;/P&gt;&lt;P&gt;One key observation is that the driver contains several calls to msleep() (with delays like 500ms or 1000ms). When these calls are commented out, the system boots successfully without crashing.&lt;/P&gt;&lt;P&gt;We attempted to replace msleep() with alternatives such as mdelay(), usleep_range(), and fsleep(), but all still result in a kernel panic during boot.&lt;/P&gt;&lt;P&gt;Since we do need delays in the driver for certain hardware initialization steps, we are looking for a safe and reliable method to introduce those delays &lt;STRONG&gt;without triggering a crash&lt;/STRONG&gt; during boot.&lt;/P&gt;&lt;P&gt;What is the recommended way to handle such delays safely in a camera driver during probe?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 07:05:48 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144250#M239721</guid>
      <dc:creator>adnan_dst</dc:creator>
      <dc:date>2025-07-31T07:05:48Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144367#M239733</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;One approach I tried that seems to work without causing a kernel panic is to create a kernel thread from the probe() function and move the initialization code (which includes delays) into that thread.&lt;/P&gt;&lt;P&gt;Is there a better or more appropriate method for handling this?&lt;BR /&gt;&lt;BR /&gt;Reagrds,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
      <pubDate>Thu, 31 Jul 2025 08:39:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144367#M239733</guid>
      <dc:creator>adnan_dst</dc:creator>
      <dc:date>2025-07-31T08:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144907#M239765</link>
      <description>&lt;P&gt;do you mind sharing detailed code or patch you are talking about? it's hard to understand your issue if you didn't share any code, and do you use ISI or ISP? I'm not sure what ar1335 driver you mean,&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 06:04:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144907#M239765</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-08-01T06:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144927#M239766</link>
      <description>&lt;P&gt;Hi,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;We have applied the patch files provided by e-con Systems for the &lt;STRONG&gt;Toradex i.MX8MP Verdin module&lt;/STRONG&gt;, targeting the kernel version &lt;STRONG&gt;toradex_5.15-2.2.x-imx&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Our goal is to integrate the &lt;STRONG&gt;e-CAM131_CUiMX8 camera module&lt;/STRONG&gt; from e-con Systems into our platform.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Adnan&lt;/P&gt;</description>
      <pubDate>Fri, 01 Aug 2025 06:29:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2144927#M239766</guid>
      <dc:creator>adnan_dst</dc:creator>
      <dc:date>2025-08-01T06:29:22Z</dc:date>
    </item>
    <item>
      <title>Re: Kernel Panic on Boot Due to Delay Functions in imx8 platform Driver on i.MX8MP</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2145618#M239786</link>
      <description>&lt;P&gt;since you use the third party company SW and HW, I suggest that you can contact them for further support, their engineer should be more familiar with their own SW, and I even don't know what e-CAM131_CUiMX8 camera module is&lt;/P&gt;</description>
      <pubDate>Sat, 02 Aug 2025 01:56:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Kernel-Panic-on-Boot-Due-to-Delay-Functions-in-imx8-platform/m-p/2145618#M239786</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2025-08-02T01:56:43Z</dc:date>
    </item>
  </channel>
</rss>

