<?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: i.MX6 kernel panic on 921600kbps uart comminication in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606891#M91441</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I met similar problem as you.&lt;/P&gt;&lt;P&gt;I open/close the uart frequently, then sometime the kernel will crash, same kernel panic message as you post above,&lt;/P&gt;&lt;P&gt;And how do you update your serial driver,which version are you using;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fix the problem in my 3.0.35 kernel, but don't know how to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 Mar 2017 03:13:23 GMT</pubDate>
    <dc:creator>conteczxy</dc:creator>
    <dc:date>2017-03-30T03:13:23Z</dc:date>
    <item>
      <title>i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606888#M91438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Information about our device&lt;/P&gt;&lt;P&gt;yocto version: 1.7&lt;/P&gt;&lt;P&gt;kernel version: 3.10.17&lt;/P&gt;&lt;P&gt;serial driver version: 3.10.17&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The application that manages the uart on our device has an open-&amp;gt;close cycle on changing serial port settings or during retry error processes.&lt;/P&gt;&lt;P&gt;During our test we flood the serial port with data and during the [close] process, a kernel panic error occurs and the serial driver no longer functions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample kernel panic message below:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;Unhandled fault: imprecise external abort (0x1406) at 0x76f89000&lt;BR /&gt;Internal error: : 1406 [#1] PREEMPT SMP ARM&lt;BR /&gt;Modules linked in: aerial_sdio(O)&lt;BR /&gt;CPU: 0 PID: 1104 Comm: ft-test Tainted: G O 3.10.17yocto-for-pad+g33597e3 #93&lt;BR /&gt;task: ac72e940 ti: ad2fe000 task.ti: ad2fe000&lt;BR /&gt;PC is at _raw_spin_unlock_irqrestore+0x30/0x58&lt;BR /&gt;LR is at &lt;STRONG&gt;uart_close&lt;/STRONG&gt;+0x1b4/0x1c4&lt;BR /&gt;pc : [&amp;lt;805d2f74&amp;gt;] lr : [&amp;lt;80314b60&amp;gt;] psr: 40030013&lt;BR /&gt;sp : ad2ffe68 ip : ad2ffe78 fp : ad2ffe74&lt;BR /&gt;r10: 00000001 r9 : 00000000 r8 : ac697528&lt;BR /&gt;r7 : ac44de10 r6 : a0030013 r5 : ac7c1600 r4 : ac3510c4&lt;BR /&gt;r3 : 00005c0f r2 : 00000002 r1 : a0030013 r0 : ac44de10&lt;BR /&gt;Flags: nZcv IRQs on FIQs on Mode SVC_32 ISA ARM Segment user&lt;BR /&gt;Control: 10c53c7d Table: 3d18004a DAC: 00000015&lt;BR /&gt;Process ft-test (pid: 1104, stack limit = 0xad2fe238)&lt;BR /&gt;Stack: (0xad2ffe68 to 0xad300000)&lt;BR /&gt;fe60: ad2ffe9c ad2ffe78 80314b60 805d2f50 ac7c1600 00000000&lt;BR /&gt;fe80: ad160480 ac587010 ac697528 00000000 ad2fff14 ad2ffea0 802f92d0 803149b8&lt;BR /&gt;fea0: ad2ffebc ad2ffeb0 800bf280 800f8708 ad2fff34 ad2ffec0 800de79c 800bf26c&lt;BR /&gt;fec0: acfa5a40 00000000 ad2b2478 00000001 ad160488 ac697528 800f17c4 00000000&lt;BR /&gt;fee0: 00000000 00000000 ac72e940 ad160480 00000000 aa3347f8 ac587010 ac697528&lt;BR /&gt;ff00: ac697528 00000008 ad2fff54 ad2fff18 800f85e4 802f91d8 00000000 00000000&lt;BR /&gt;ff20: ad2fe000 ad160488 ad2fff54 ac72ec20 00000000 80900d70 ac72e940 8000e9e4&lt;BR /&gt;ff40: ad2fe000 00000000 ad2fff64 ad2fff58 800f8864 800f8554 ad2fff8c ad2fff68&lt;BR /&gt;ff60: 80049b48 800f8858 ad2fff94 299d299d ad2fe010 8000e9e4 ad2fffb0 ad2fe000&lt;BR /&gt;ff80: ad2fffac ad2fff90 800123ac 80049a94 000152e8 00000000 0000a7f4 00000006&lt;BR /&gt;ffa0: 00000000 ad2fffb0 8000e800 80012310 00000000 00000000 00000000 00000001&lt;BR /&gt;ffc0: 000152e8 00000000 0000a7f4 00000006 00000000 00000000 76f3c000 00000000&lt;BR /&gt;ffe0: 00000000 7eea4c4c 0000b754 763fd2ec 400a0010 00000003 3ff7e821 3ff7ec21&lt;BR /&gt;[&amp;lt;805d2f74&amp;gt;] (_raw_spin_unlock_irqrestore+0x30/0x58) from [&amp;lt;80314b60&amp;gt;] (uart_close+0x1b4/0x1c4)&lt;BR /&gt;[&amp;lt;80314b60&amp;gt;] (&lt;STRONG&gt;uart_close&lt;/STRONG&gt;+0x1b4/0x1c4) from [&amp;lt;802f92d0&amp;gt;] (tty_release+0x104/0x590)&lt;BR /&gt;[&amp;lt;802f92d0&amp;gt;] (tty_release+0x104/0x590) from [&amp;lt;800f85e4&amp;gt;] (__fput+0x9c/0x250)&lt;BR /&gt;[&amp;lt;800f85e4&amp;gt;] (__fput+0x9c/0x250) from [&amp;lt;800f8864&amp;gt;] (____fput+0x18/0x1c)&lt;BR /&gt;[&amp;lt;800f8864&amp;gt;] (____fput+0x18/0x1c) from [&amp;lt;80049b48&amp;gt;] (task_work_run+0xc0/0xfc)&lt;BR /&gt;[&amp;lt;80049b48&amp;gt;] (task_work_run+0xc0/0xfc) from [&amp;lt;800123ac&amp;gt;] (do_work_pending+0xa8/0xb4)&lt;BR /&gt;[&amp;lt;800123ac&amp;gt;] (do_work_pending+0xa8/0xb4) from [&amp;lt;8000e800&amp;gt;] (work_pending+0xc/0x20)&lt;BR /&gt;Code: e1c030b0 f57ff04f e320f004 e121f001 (e3a00001)&lt;BR /&gt;---[ end trace 6b3720b3c1a690ba ]---&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have tried looking for patches to the serial driver that might fix this, but still unable to find a proper solution.&lt;/P&gt;&lt;P&gt;Also,&amp;nbsp;tried putting a [wait_for_completion] inside the [imx_shutdown] function, waiting for IRQs to finish.&lt;/P&gt;&lt;P&gt;This prevented the serial driver, but the problem still occurs when the flooding test continues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise, thank you&lt;/P&gt;&lt;P&gt;Yuri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Dec 2016 06:06:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606888#M91438</guid>
      <dc:creator>yurirellosa</dc:creator>
      <dc:date>2016-12-14T06:06:40Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606889#M91439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yuri&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;solution could be use uart flow control. Also recommended to try&lt;/P&gt;&lt;P&gt;latest L4.1.15 nxp kernels as since L3.10.17 uart driver greatly improved.&lt;/P&gt;&lt;P&gt;BSPs &amp;nbsp; link :&lt;BR /&gt;&lt;A class="jive-link-external-small" href="https://community.nxp.com/external-link.jspa?url=http%3A%2F%2Fwww.nxp.com%2Fproducts%2Fmicrocontrollers-and-processors%2Farm-processors%2Fi.mx-applications-processors%2Fi.mx-6-processors%2Fi.mx6qp%2Fi.mx-6-series-software-and-development-tool-resources%3AIMX6_SW" rel="nofollow" target="_blank"&gt;http://www.nxp.com/products/microcontrollers-and-processors/arm-processors/i.mx-applications-processors/i.mx-6-processors/i.mx6qp/i.mx-6-series-software-and-development-tool-resources:IMX6_SW&lt;/A&gt;&lt;BR /&gt;================================================================&lt;BR /&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>Wed, 14 Dec 2016 08:57:36 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606889#M91439</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2016-12-14T08:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606890#M91440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Igor&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regarding flow control, the module attached to the uart port does not use flow control,&lt;/P&gt;&lt;P&gt;so it is not possible to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we cannot upgrade the whole kernel, we have only tried upgrading the imx uart driver&amp;nbsp;&lt;/P&gt;&lt;P&gt;to the latest driver, the situation fared much better compared than it used.&lt;/P&gt;&lt;P&gt;Crashing within 5 secs now occurs around after 5 mins.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it perhaps, that this problem would not be remedied unless the kernel is upgraded?&lt;/P&gt;&lt;P&gt;I also wonder if the i.MX&amp;nbsp;is tested under such stress on these baudrates(921kbps)&lt;/P&gt;&lt;P&gt;Any additional advice would be much appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 16 Dec 2016 00:34:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606890#M91440</guid>
      <dc:creator>yurirellosa</dc:creator>
      <dc:date>2016-12-16T00:34:22Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606891#M91441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I met similar problem as you.&lt;/P&gt;&lt;P&gt;I open/close the uart frequently, then sometime the kernel will crash, same kernel panic message as you post above,&lt;/P&gt;&lt;P&gt;And how do you update your serial driver,which version are you using;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to fix the problem in my 3.0.35 kernel, but don't know how to.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 03:13:23 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606891#M91441</guid>
      <dc:creator>conteczxy</dc:creator>
      <dc:date>2017-03-30T03:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606892#M91442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As we cannot upgrade the whole kernel, &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;we have only tried upgrading the imx uart driver&amp;nbsp;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;to the latest driver&lt;/STRONG&gt;&lt;/SPAN&gt;, the situation fared much better compared than it used.&lt;/P&gt;&lt;P&gt;Crashing within 5 secs now occurs around after 5 mins.&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;which version have you tried?&lt;/P&gt;&lt;P&gt;Could you share the latest imx uart driver?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 03:34:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606892#M91442</guid>
      <dc:creator>conteczxy</dc:creator>
      <dc:date>2017-03-30T03:34:34Z</dc:date>
    </item>
    <item>
      <title>Re: i.MX6 kernel panic on 921600kbps uart comminication</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606893#M91443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Xiyuan Zhou&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We used Freescale's Linux 4.1.15 &amp;nbsp;version of the kernel.&lt;/P&gt;&lt;P&gt;Follow the git from link below:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/?h=imx_4.1.15_1.0.0_ga"&gt;linux-2.6-imx.git - Freescale i.MX Linux Tree&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What we did was replace the following files&lt;/P&gt;&lt;P&gt;・/drivers/tty/serial/imx.c&lt;/P&gt;&lt;P&gt;(&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/imx.c?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/imx.c?h=imx_4.1.15_1.0.0_ga"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/imx.c?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;・/drivers/tty/serial/serial_core.c&lt;/P&gt;&lt;P&gt;(&lt;A class="link-titled" href="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/serial_core.c?h=imx_4.1.15_1.0.0_ga" title="http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/serial_core.c?h=imx_4.1.15_1.0.0_ga"&gt;http://git.freescale.com/git/cgit.cgi/imx/linux-2.6-imx.git/plain/drivers/tty/serial/serial_core.c?h=imx_4.1.15_1.0.0_ga&lt;/A&gt;&amp;nbsp;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There will probably quite some errors because of version differences, but we mostly just needed to work on these two files.&lt;/P&gt;&lt;P&gt;Be aware that this does NOT&amp;nbsp;really solve the problem, just makes it more "stable".&lt;/P&gt;&lt;P&gt;What we did was reduce the amount of open-&amp;gt;close calls on the serial driver in the application layer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Mar 2017 04:03:39 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/i-MX6-kernel-panic-on-921600kbps-uart-comminication/m-p/606893#M91443</guid>
      <dc:creator>yurirellosa</dc:creator>
      <dc:date>2017-03-30T04:03:39Z</dc:date>
    </item>
  </channel>
</rss>

