<?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: imx7d crash on sdma_int_handler kernel in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991000#M147109</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it custom board or i.MX7D Sabre SD board ?&lt;/P&gt;&lt;P&gt;If i.MX7D Sabre SD board please try &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DL4.9.88_2.0.0_MX6UL7D%26appType%3Dlicense%26location%3Dnull" rel="nofollow" target="_blank"&gt;Linux Binary Demo Files - i.MX 6UltraLite, i.MX 6ULL, i.MX 7Dual&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Mar 2020 11:37:50 GMT</pubDate>
    <dc:creator>igorpadykov</dc:creator>
    <dc:date>2020-03-05T11:37:50Z</dc:date>
    <item>
      <title>imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990995#M147104</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone&lt;BR /&gt;my development board is IMX7DSABRE. Linux kernel version is 4.9.88&lt;BR /&gt;During the use, our kernel crashed, and the crash information is as follows:&lt;BR /&gt;Unable to handle kernel NULL pointer dereference at virtual address 00000002&lt;BR /&gt;pgd = a9b7c000&lt;BR /&gt;[00000002] * pgd = a8da4835, * pte = 00000000, * ppte = 00000000&lt;BR /&gt;Internal error: Oops: 17 [# 1] PREEMPT SMP ARM&lt;BR /&gt;Modules linked in:&lt;BR /&gt;CPU: 0 PID: 3144 Comm: KMonitor Not tainted 4.9.88 # 205&lt;BR /&gt;Hardware name: Freescale i.MX7 Dual (Device Tree)&lt;BR /&gt;task: a84fa680 task.stack: a8cf0000&lt;BR /&gt;PC is at sdma_int_handler + 0xd8 / 0x2f8&lt;BR /&gt;LR is at _raw_spin_lock + 0x10 / 0x50&lt;BR /&gt;pc: [&amp;lt;80450e0c&amp;gt;] lr: [&amp;lt;80923160&amp;gt;] psr: 60030193&lt;BR /&gt;sp: a8cf1ec0 ip: a987d0bc fp: 00000001&lt;BR /&gt;r10: a8394010 r9: a87a5300 r8: 00000000&lt;BR /&gt;r7: 00000000 r6: a8394dd0 r5: 0000000d r4: a8394d78&lt;BR /&gt;r3: 00000000 r2: 00000000 r1: 00000000 r0: 00000001&lt;BR /&gt;Flags: nZCv IRQs off FIQs on Mode SVC_32 ISA ARM Segment none&lt;BR /&gt;Control: 10c53c7d Table: a9b7c06a DAC: 00000051&lt;BR /&gt;Process KMonitor (pid: 3144, stack limit = 0xa8cf0210)&lt;BR /&gt;Stack: (0xa8cf1ec0 to 0xa8cf2000)&lt;BR /&gt;1ec0: 00000001 a8394dd0 7eaed7e0 00002000 00000000 00000000 a8cf0000 a8353740&lt;BR /&gt;1ee0: a814e800 00000000 a8cf1f2c 00000040 a814e800 810903b8 00feb1f8 8017136c&lt;BR /&gt;1f00: a8cf1f4c 80923480 a814e800 a814e800 8100a880 00000000 00000001 a8cf1fb0&lt;BR /&gt;1f20: a8008000 80171418 00000000 00000000 00feb1f8 a814e800 a814e860 8017148c&lt;BR /&gt;1f40: a814e800 a814e860 8100a880 80174804 80174734 80f5bd80 00000000 00000040&lt;BR /&gt;1f60: 00000000 8017065c 00000130 80170b64 8101c000 810033f4 c080200c a8cf1fb0&lt;BR /&gt;1f80: c0802000 c0803000 7eaeccd8 801014c4 7eaecd74 76ce0678 60030010 ffffffff&lt;BR /&gt;1fa0: 10c53c7d 10c53c7d 7eaecce8 8010c0f0 7eaecd74 00000000 00000000 00000000&lt;BR /&gt;1fc0: 00feb440 7eaecd74 00feb448 7eaeccf8 7eaeccb0 7eaecce8 7eaeccd8 00feb1f8&lt;BR /&gt;1fe0: 00000000 7eaecc90 7eaecc64 76ce0678 600 30010 ffffffff 00000000 00000000&lt;BR /&gt;[&amp;lt;80450e0c&amp;gt;] (sdma_int_handler) from [&amp;lt;8017136c&amp;gt;] (__handle_irq_event_percpu + 0x88 / 0x118)&lt;BR /&gt;[&amp;lt;8017136c&amp;gt;] (__handle_irq_event_percpu) from [&amp;lt;80171418&amp;gt;] (handle_irq_event_percpu + 0x1c / 0x58)&lt;BR /&gt;[&amp;lt;80171418&amp;gt;] (handle_irq_event_percpu) from [&amp;lt;8017148c&amp;gt;] (handle_irq_event + 0x38 / 0x5c)&lt;BR /&gt;[&amp;lt;8017148c&amp;gt;] (handle_irq_event) from [&amp;lt;80174804&amp;gt;] (handle_fasteoi_irq + 0xd0 / 0x1a8)&lt;BR /&gt;[&amp;lt;80174804&amp;gt;] (handle_fasteoi_irq) from [&amp;lt;8017065c&amp;gt;] (generic_handle_irq + 0x24 / 0x34)&lt;BR /&gt;[&amp;lt;8017065c&amp;gt;] (generic_handle_irq) from [&amp;lt;80170b64&amp;gt;] (__handle_domain_irq + 0x7c / 0xec)&lt;BR /&gt;[&amp;lt;80170b64&amp;gt;] (__handle_domain_irq) from [&amp;lt;801014c4&amp;gt;] (gic_handle_irq + 0x48 / 0x8c)&lt;BR /&gt;[&amp;lt;801014c4&amp;gt;] (gic_handle_irq) from [&amp;lt;8010c0f0&amp;gt;] (__irq_usr + 0x50 / 0x80)&lt;BR /&gt;Exception stack (0xa8cf1fb0 to 0xa8cf1ff8)&lt;BR /&gt;1fa0: 7eaecd74 00000000 00000000 00000000&lt;BR /&gt;1fc0: 00feb440 7eaecd74 00feb448 7eaeccf8 7eaeccb0 7eaecce8 7eaeccd8 00feb1f8&lt;BR /&gt;1fe0: 00000000 7eaecc90 7eaecc64 76ce0678 600 30010 ffffffff&lt;BR /&gt;Code: e5992044 e5993050 e0822082 e0833102 (e5d32002)&lt;BR /&gt;--- [end trace e60c122438210011] ---&lt;BR /&gt;Kernel panic-not syncing: Fatal exception in interrupt&lt;BR /&gt;CPU1: stopping&lt;BR /&gt;CPU: 1 PID: 0 Comm: swapper / 1 Tainted: G D 4.9.88 # 205&lt;BR /&gt;Hardware name: Freescale i.MX7 Dual (Device Tree)&lt;BR /&gt;[&amp;lt;8010eb84&amp;gt;] (unwind_backtrace) from [&amp;lt;8010b328&amp;gt;] (show_stack + 0x10 / 0x14)&lt;BR /&gt;[&amp;lt;8010b328&amp;gt;] (show_stack) from [&amp;lt;803c00c8&amp;gt;] (dump_stack + 0x88 / 0x9c)&lt;BR /&gt;[&amp;lt;803c00c8&amp;gt;] (dump_stack) from [&amp;lt;8010d9cc&amp;gt;] (handle_IPI + 0x198 / 0x1ac)&lt;BR /&gt;[&amp;lt;8010d9cc&amp;gt;] (handle_IPI) from [&amp;lt;80101504&amp;gt;] (gic_handle_irq + 0x88 / 0x8c)&lt;BR /&gt;[&amp;lt;80101504&amp;gt;] (gic_handle_irq) from [&amp;lt;8010bd0c&amp;gt;] (__irq_svc + 0x6c / 0xa8)&lt;BR /&gt;Exception stack (0xa80adf58 to 0xa80adfa0)&lt;BR /&gt;df40: 00000001 80c22038&lt;BR /&gt;df60: 00000001 000000f5 00000000 ab730e70 1ada9825 00008ef5 1ada3506 00008ef5&lt;BR /&gt;df80: 80f5ce68 81003144 00000016 a80adfa8 801675f4 806926ac 20000013 ffffffff&lt;BR /&gt;[&amp;lt;8010bd0c&amp;gt;] (__irq_svc) from [&amp;lt;806926ac&amp;gt;] (cpuidle_enter_state + 0x11c / 0x264)&lt;BR /&gt;[&amp;lt;806926ac&amp;gt;] (cpuidle_enter_state) from [&amp;lt;8016781c&amp;gt;] (cpu_startup_entry + 0x148 / 0x21c)&lt;BR /&gt;[&amp;lt;8016781c&amp;gt;] (cpu_startup_entry) from [&amp;lt;801015ac&amp;gt;] (__enable_mmu + 0x0 / 0x14)&lt;BR /&gt;--- [end Kernel panic-not syncing: Fatal exception in interrupt&lt;/P&gt;&lt;P&gt;Are there friends who have the same problem as me.&lt;BR /&gt;Looking forward to your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 07:29:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990995#M147104</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-05T07:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990996#M147105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi 其东 刘&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reason may be wrong image, please try&lt;/P&gt;&lt;P&gt;&lt;A class="" href="https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_MX6UL7D&amp;amp;appType=license&amp;amp;location=null"&gt;Linux Binary Demo Files - i.MX 6UltraLite, i.MX 6ULL, i.MX 7Dual&lt;/A&gt;&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>Thu, 05 Mar 2020 09:00:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990996#M147105</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-05T09:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990997#M147106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; I downloaded the source code of Linux4.9.88 through yocto. The image generated by compiling the source code.&lt;BR /&gt;Then our chip specific model is: MCIMX7D7DVM10SD. The manual explains that its frequency is 1Ghz, but I get 1.2GHz through the command cat / sys / devices / system / cpu / cpu0 / cpufreq / cpuinfo_cur_freq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:09:47 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990997#M147106</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-05T09:09:47Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990998#M147107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;please check &lt;A href="https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_LINUX_DOCS"&gt;Linux 4.9.88_2.0.0 BSP &amp;amp; Multimedia Codecs Documentation&lt;/A&gt;&lt;/P&gt;&lt;P&gt;and generate image for imx7dsabresd, as described in Yocto Guide&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards&lt;BR /&gt;igor&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:26:03 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990998#M147107</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-05T10:26:03Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990999#M147108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have downloaded the source code through yocto. And compile and burn according to the manual. Later, during a long run, an sdma_int_handler error occurred. I want to know what is causing this error and how to resolve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 10:29:37 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/990999#M147108</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-05T10:29:37Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991000#M147109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is it custom board or i.MX7D Sabre SD board ?&lt;/P&gt;&lt;P&gt;If i.MX7D Sabre SD board please try &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DL4.9.88_2.0.0_MX6UL7D%26appType%3Dlicense%26location%3Dnull" rel="nofollow" target="_blank"&gt;Linux Binary Demo Files - i.MX 6UltraLite, i.MX 6ULL, i.MX 7Dual&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:37:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991000#M147109</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-05T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991001#M147110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: underline; font-size: 14px;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Both the custom board and the i.MX7D Saber SD board have sdma_int_handler issues. I can't use the image you gave me directly because we need to add and modify some features.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 11:45:19 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991001#M147110</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-05T11:45:19Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991002#M147111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;had you tried&amp;nbsp; i.MX7D Sabre SD board with&amp;nbsp; &lt;A class="" data-content-finding="Community" href="https://community.nxp.com/external-link.jspa?url=https%3A%2F%2Fwww.nxp.com%2Fwebapp%2FDownload%3FcolCode%3DL4.9.88_2.0.0_MX6UL7D%26appType%3Dlicense%26location%3Dnull" rel="nofollow" target="_blank"&gt;Linux Binary Demo Files - i.MX 6UltraLite, i.MX 6ULL, i.MX&amp;nbsp;&amp;nbsp; &lt;/A&gt; ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Mar 2020 12:39:49 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991002#M147111</guid>
      <dc:creator>igorpadykov</dc:creator>
      <dc:date>2020-03-05T12:39:49Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991003#M147112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&amp;nbsp;&lt;A _jive_internal="true" class="" data-avatarid="1034" data-externalid="" data-online="false" data-presence="null" data-userid="206296" data-username="igorpadykov" href="https://community.nxp.com/people/igorpadykov" style="color: inherit; background-color: #ffffff; border: 0px; font-weight: bold; text-decoration: none; font-size: 14px;"&gt;igorpadykov&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I didn't try this you mentioned. I just want to know what caused the sdma_int_handler error and how to resolve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 01:07:51 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991003#M147112</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-03-06T01:07:51Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991004#M147113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I also facing same issue in imx6 custom board with same kernel version 4.9.88.is the issue was resolved? If not please tell me how to debug these kind of issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;K.durgaprasad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 19 Apr 2020 11:12:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991004#M147113</guid>
      <dc:creator>dp_yanam</dc:creator>
      <dc:date>2020-04-19T11:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991005#M147114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello&lt;BR /&gt;We have not completely solved this problem at present. After investigation, we preliminarily judged that the problem may be related to the audio driver. At present, we are only doubtful and unsure. We can keep the information shared and see how to solve this problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Apr 2020 08:27:55 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991005#M147114</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-04-20T08:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991006#M147115</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case, i using dummy codec driver contains only ssi clock configurations for interfacing imx6 with 24 bit ADC. the issue may be related sdma driver(imx-sdma.c). If you have any information on debugging these kind of issues please let me know. I too can try debug same kind of issue &amp;amp; let you know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;K. durgaprasad.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Apr 2020 11:37:32 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991006#M147115</guid>
      <dc:creator>dp_yanam</dc:creator>
      <dc:date>2020-04-22T11:37:32Z</dc:date>
    </item>
    <item>
      <title>Re: imx7d crash on sdma_int_handler kernel</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991007#M147116</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello there&lt;BR /&gt;About the problem of sdma_int_handler I seem to find the problem.&lt;BR /&gt;You try the following：&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;unsigned long stattemp=0;&lt;BR /&gt;struct sdma_engine *sdmatemp = NULL;&lt;BR /&gt;static irqreturn_t sdma_int_handler(int irq, void *dev_id)&lt;BR /&gt;{&lt;BR /&gt; struct sdma_engine *sdma = dev_id;&lt;BR /&gt; unsigned long stat;&lt;BR /&gt; sdmatemp = sdma;&lt;BR /&gt; stat = readl_relaxed(sdma-&amp;gt;regs + SDMA_H_INTR);&lt;BR /&gt; writel_relaxed(stat, sdma-&amp;gt;regs + SDMA_H_INTR);&lt;BR /&gt; /* channel 0 is special and not handled here, see run_channel0() */&lt;BR /&gt; stat &amp;amp;= ~1;&lt;BR /&gt; stattemp = stat;&lt;/P&gt;&lt;P&gt;while (stat) {&lt;BR /&gt; int channel = fls(stat) - 1;&lt;BR /&gt; struct sdma_channel *sdmac = &amp;amp;sdma-&amp;gt;channel[channel];&lt;BR /&gt; struct sdma_desc *desc;&lt;/P&gt;&lt;P&gt;spin_lock(&amp;amp;sdmac-&amp;gt;vc.lock);&lt;BR /&gt; desc = sdmac-&amp;gt;desc;&lt;BR /&gt; if (desc) {&lt;BR /&gt; if (sdmac-&amp;gt;flags &amp;amp; IMX_DMA_SG_LOOP) {&lt;BR /&gt; if (sdmac-&amp;gt;peripheral_type != IMX_DMATYPE_HDMI)&lt;BR /&gt; sdma_update_channel_loop(sdmac);&lt;BR /&gt; else&lt;BR /&gt; vchan_cyclic_callback(&amp;amp;desc-&amp;gt;vd);&lt;BR /&gt; } else {&lt;BR /&gt; mxc_sdma_handle_channel_normal(sdmac);&lt;BR /&gt; vchan_cookie_complete(&amp;amp;desc-&amp;gt;vd);&lt;BR /&gt; if (!list_empty(&amp;amp;sdmac-&amp;gt;pending))&lt;BR /&gt; list_del(&amp;amp;desc-&amp;gt;node);&lt;BR /&gt; sdma_start_desc(sdmac);&lt;BR /&gt; }&lt;BR /&gt; }&lt;BR /&gt; __clear_bit(channel, &amp;amp;stat); &lt;BR /&gt; stattemp = stat;&lt;BR /&gt; spin_unlock(&amp;amp;sdmac-&amp;gt;vc.lock);&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;return IRQ_HANDLED;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void sdma_update_channel_loop(struct sdma_channel *sdmac)&lt;BR /&gt;{&lt;BR /&gt; struct sdma_buffer_descriptor *bd;&lt;BR /&gt; struct sdma_desc *desc = sdmac-&amp;gt;desc;&lt;BR /&gt; int error = 0;&lt;BR /&gt; enum dma_status old_status = sdmac-&amp;gt;status;&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * loop mode. Iterate over descriptors, re-setup them and&lt;BR /&gt; * call callback function.&lt;BR /&gt; */&lt;BR /&gt; while (desc) {&lt;BR /&gt; bd = &amp;amp;desc-&amp;gt;bd[desc-&amp;gt;buf_tail];&lt;/P&gt;&lt;P&gt;if (bd-&amp;gt;mode.status &amp;amp; BD_DONE)&lt;BR /&gt; break;&lt;/P&gt;&lt;P&gt;if (bd-&amp;gt;mode.status &amp;amp; BD_RROR) {&lt;BR /&gt; bd-&amp;gt;mode.status &amp;amp;= ~BD_RROR;&lt;BR /&gt; sdmac-&amp;gt;status = DMA_ERROR;&lt;BR /&gt; error = -EIO;&lt;BR /&gt; }&lt;/P&gt;&lt;P&gt;/*&lt;BR /&gt; * We use bd-&amp;gt;mode.count to calculate the residue, since contains&lt;BR /&gt; * the number of bytes present in the current buffer descriptor.&lt;BR /&gt; */&lt;/P&gt;&lt;P&gt;sdmac-&amp;gt;chn_real_count = bd-&amp;gt;mode.count;&lt;BR /&gt; bd-&amp;gt;mode.status |= BD_DONE;&lt;BR /&gt; bd-&amp;gt;mode.count = sdmac-&amp;gt;period_len;&lt;BR /&gt; desc-&amp;gt;buf_ptail = desc-&amp;gt;buf_tail;&lt;BR /&gt; desc-&amp;gt;buf_tail = (desc-&amp;gt;buf_tail + 1) % desc-&amp;gt;num_bd;&lt;/P&gt;&lt;P&gt;if (error)&lt;BR /&gt; sdmac-&amp;gt;status = old_status;&lt;BR /&gt; /*&lt;BR /&gt; * The callback is called from the interrupt context in order&lt;BR /&gt; * to reduce latency and to avoid the risk of altering the&lt;BR /&gt; * SDMA transaction status by the time the client tasklet is&lt;BR /&gt; * executed.&lt;BR /&gt; */&lt;BR /&gt; spin_unlock(&amp;amp;sdmac-&amp;gt;vc.lock);&lt;BR /&gt; printk("%s %s %d\n", __FILE__, __func__, __LINE__);&lt;BR /&gt; dmaengine_desc_get_callback_invoke(&amp;amp;desc-&amp;gt;vd.tx, NULL);&lt;BR /&gt; printk("%s %s %d\n", __FILE__, __func__, __LINE__);&lt;BR /&gt; spin_lock(&amp;amp;sdmac-&amp;gt;vc.lock);&lt;BR /&gt; desc = sdmac-&amp;gt;desc;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;static void sdma_desc_free(struct virt_dma_desc *vd)&lt;BR /&gt;{&lt;BR /&gt;// dump_stack();&lt;/P&gt;&lt;P&gt;int channel = fls(stattemp) - 1;&lt;BR /&gt; struct sdma_channel *sdmac = &amp;amp;sdmatemp-&amp;gt;channel[channel];&lt;BR /&gt; printk("%s %s %d\n", __FILE__, __func__, __LINE__);&lt;BR /&gt; struct sdma_desc *desc = container_of(vd, struct sdma_desc, vd);&lt;BR /&gt; if (desc) {&lt;BR /&gt; printk("%s %s %d\n", __FILE__, __func__, __LINE__);&lt;BR /&gt; sdma_free_bd(desc);&lt;BR /&gt; printk("%s %s %d\n", __FILE__, __func__, __LINE__);&lt;BR /&gt; udelay(1000);&lt;BR /&gt; kfree(desc);&lt;BR /&gt; sdmac-&amp;gt;desc = NULL;&lt;BR /&gt; }&lt;BR /&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2020 03:19:46 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/imx7d-crash-on-sdma-int-handler-kernel/m-p/991007#M147116</guid>
      <dc:creator>864535720</dc:creator>
      <dc:date>2020-05-13T03:19:46Z</dc:date>
    </item>
  </channel>
</rss>

