<?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: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341642#M46952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested the bug fix (simply replacing all calls to &lt;EM&gt;usleep_range(x,y)&lt;/EM&gt; in &lt;STRONG&gt;flexcan.c&lt;/STRONG&gt; with &lt;EM&gt;udelay(x)&lt;/EM&gt;) and it solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Sep 2014 23:48:33 GMT</pubDate>
    <dc:creator>lsirobway</dc:creator>
    <dc:date>2014-09-11T23:48:33Z</dc:date>
    <item>
      <title>iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341631#M46941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have successfully installed the FlexCAN driver on iMX6 Dual Lite, and I can communicate with it. However, every time I send data (either from my own code or through canutils 'cangen' or 'cansend'), a kernel BUG is triggered. As the stack trace reveals, the cause is function flexcan_chip_start() in flexcan.c:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;GS920# ./scTest can0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;can0 at index 2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Wrote 16 bytes&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;root@gs920:/media/sdcard/GS920# BUG: scheduling while atomic: swapper/0/0/0x00000100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;1 lock held by swapper/0/0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; #0: (((&amp;amp;priv-&amp;gt;restart_timer))){+.-...}, at: [&amp;lt;8002fe60&amp;gt;] call_timer_fn+0x0/0xe8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Modules linked in:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.15.7 #5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Backtrace: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80011ba4&amp;gt;] (dump_backtrace) from [&amp;lt;80011d40&amp;gt;] (show_stack+0x18/0x1c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r6:00000000 r5:00000000 r4:00000000 r3:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80011d28&amp;gt;] (show_stack) from [&amp;lt;805de120&amp;gt;] (dump_stack+0x88/0xa4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805de098&amp;gt;] (dump_stack) from [&amp;lt;805db3ec&amp;gt;] (__schedule_bug+0x64/0x7c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:80867268 r4:80867268&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805db388&amp;gt;] (__schedule_bug) from [&amp;lt;805e09b0&amp;gt;] (__schedule+0x540/0x5f8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:bf7c7b00 r3:00000002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e0470&amp;gt;] (__schedule) from [&amp;lt;805e0b5c&amp;gt;] (schedule+0x38/0x88)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:8085c000 r9:00000000 r8:00000001 r7:00000000 r6:00004e20 r5:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:00002710&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e0b24&amp;gt;] (schedule) from [&amp;lt;805e03c4&amp;gt;] (schedule_hrtimeout_range_clock+0xe0/0x158)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e02e4&amp;gt;] (schedule_hrtimeout_range_clock) from [&amp;lt;805e0450&amp;gt;] (schedule_hrtimeout_range+0x14/0x18)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:808644c4 r8:bf335e00 r7:00000000 r6:c09b8000 r5:c09b8000 r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e043c&amp;gt;] (schedule_hrtimeout_range) from [&amp;lt;8002fb58&amp;gt;] (usleep_range+0x50/0x58)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002fb08&amp;gt;] (usleep_range) from [&amp;lt;803f2964&amp;gt;] (flexcan_chip_start+0x7c/0x440)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f28e8&amp;gt;] (flexcan_chip_start) from [&amp;lt;803f3994&amp;gt;] (flexcan_set_mode+0x28/0x54)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:bf335800 r9:803f1680 r8:803f1680 r7:00000100 r6:00000001 r5:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f396c&amp;gt;] (flexcan_set_mode) from [&amp;lt;803f1718&amp;gt;] (can_restart+0x98/0xd4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:8085c000 r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f1680&amp;gt;] (can_restart) from [&amp;lt;8002fed0&amp;gt;] (call_timer_fn+0x70/0xe8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:8085c000 r4:8085de00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002fe60&amp;gt;] (call_timer_fn) from [&amp;lt;80030810&amp;gt;] (run_timer_softirq+0x1b0/0x24c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:8085e0c0 r8:bf335800 r7:00000000 r6:8085de40 r5:808b3500 r4:bf335e74&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80030660&amp;gt;] (run_timer_softirq) from [&amp;lt;8002a1bc&amp;gt;] (__do_softirq+0x128/0x26c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:00000001 r9:00000100 r8:00000001 r7:8085c000 r6:8085e080 r5:8085e084&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002a094&amp;gt;] (__do_softirq) from [&amp;lt;8002a5f8&amp;gt;] (irq_exit+0xb0/0x104)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:805e82a8 r9:8085c000 r8:00000000 r7:f4000100 r6:00000000 r5:0000001d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:8085c000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002a548&amp;gt;] (irq_exit) from [&amp;lt;8000f31c&amp;gt;] (handle_IRQ+0x44/0x9c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:80858ffc r3:00000182&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8000f2d8&amp;gt;] (handle_IRQ) from [&amp;lt;80008540&amp;gt;] (gic_handle_irq+0x30/0x64)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r6:8085df20 r5:80864a98 r4:f400010c r3:000000a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80008510&amp;gt;] (gic_handle_irq) from [&amp;lt;80012864&amp;gt;] (__irq_svc+0x44/0x58)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Exception stack(0x8085df20 to 0x8085df68)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df20: 00000001 00000001 00000000 80867268 8085c000 80864588 80864538 8085c000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df40: 00000000 8085c000 805e82a8 8085df74 8085df38 8085df68 800633f0 8000f6a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df60: 200e0013 ffffffff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r7:8085df54 r6:ffffffff r5:200e0013 r4:8000f6a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8000f678&amp;gt;] (arch_cpu_idle) from [&amp;lt;8005c72c&amp;gt;] (cpu_startup_entry+0xfc/0x160)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8005c630&amp;gt;] (cpu_startup_entry) from [&amp;lt;805d81e8&amp;gt;] (rest_init+0xb0/0xd8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r7:808045f8 r3:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805d8138&amp;gt;] (rest_init) from [&amp;lt;807d3b4c&amp;gt;] (start_kernel+0x310/0x374)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:808b22c0 r4:80864638&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;807d383c&amp;gt;] (start_kernel) from [&amp;lt;10008074&amp;gt;] (0x10008074)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;flexcan 2090000.flexcan can0: writing ctrl=0x0729a055&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;BUG: scheduling while atomic: swapper/0/0/0x00000100&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;1 lock held by swapper/0/0:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; #0: (((&amp;amp;priv-&amp;gt;restart_timer))){+.-...}, at: [&amp;lt;8002fe60&amp;gt;] call_timer_fn+0x0/0xe8&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Modules linked in:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;CPU: 0 PID: 0 Comm: swapper/0 Tainted: G W 3.15.7 #5&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Backtrace: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80011ba4&amp;gt;] (dump_backtrace) from [&amp;lt;80011d40&amp;gt;] (show_stack+0x18/0x1c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r6:00000000 r5:00000000 r4:00000000 r3:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80011d28&amp;gt;] (show_stack) from [&amp;lt;805de120&amp;gt;] (dump_stack+0x88/0xa4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805de098&amp;gt;] (dump_stack) from [&amp;lt;805db3ec&amp;gt;] (__schedule_bug+0x64/0x7c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:80867268 r4:80867268&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805db388&amp;gt;] (__schedule_bug) from [&amp;lt;805e09b0&amp;gt;] (__schedule+0x540/0x5f8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:bf7c7b00 r3:00000002&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e0470&amp;gt;] (__schedule) from [&amp;lt;805e0b5c&amp;gt;] (schedule+0x38/0x88)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:8085c000 r9:00000000 r8:00000001 r7:00000000 r6:00004e20 r5:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:00002710&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e0b24&amp;gt;] (schedule) from [&amp;lt;805e03c4&amp;gt;] (schedule_hrtimeout_range_clock+0xe0/0x158)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e02e4&amp;gt;] (schedule_hrtimeout_range_clock) from [&amp;lt;805e0450&amp;gt;] (schedule_hrtimeout_range+0x14/0x18)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:808644c4 r8:bf335e00 r7:00000000 r6:c09b8000 r5:c09b8000 r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805e043c&amp;gt;] (schedule_hrtimeout_range) from [&amp;lt;8002fb58&amp;gt;] (usleep_range+0x50/0x58)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002fb08&amp;gt;] (usleep_range) from [&amp;lt;803f2c50&amp;gt;] (flexcan_chip_start+0x368/0x440)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f28e8&amp;gt;] (flexcan_chip_start) from [&amp;lt;803f3994&amp;gt;] (flexcan_set_mode+0x28/0x54)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:bf335800 r9:803f1680 r8:803f1680 r7:00000100 r6:00000001 r5:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f396c&amp;gt;] (flexcan_set_mode) from [&amp;lt;803f1718&amp;gt;] (can_restart+0x98/0xd4)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:8085c000 r4:bf335800&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;803f1680&amp;gt;] (can_restart) from [&amp;lt;8002fed0&amp;gt;] (call_timer_fn+0x70/0xe8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:8085c000 r4:8085de00&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002fe60&amp;gt;] (call_timer_fn) from [&amp;lt;80030810&amp;gt;] (run_timer_softirq+0x1b0/0x24c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:8085e0c0 r8:bf335800 r7:00000000 r6:8085de40 r5:808b3500 r4:bf335e74&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80030660&amp;gt;] (run_timer_softirq) from [&amp;lt;8002a1bc&amp;gt;] (__do_softirq+0x128/0x26c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:00000001 r9:00000100 r8:00000001 r7:8085c000 r6:8085e080 r5:8085e084&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002a094&amp;gt;] (__do_softirq) from [&amp;lt;8002a5f8&amp;gt;] (irq_exit+0xb0/0x104)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r10:805e82a8 r9:8085c000 r8:00000000 r7:f4000100 r6:00000000 r5:0000001d&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:8085c000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8002a548&amp;gt;] (irq_exit) from [&amp;lt;8000f31c&amp;gt;] (handle_IRQ+0x44/0x9c)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r4:80858ffc r3:00000182&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8000f2d8&amp;gt;] (handle_IRQ) from [&amp;lt;80008540&amp;gt;] (gic_handle_irq+0x30/0x64)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r6:8085df20 r5:80864a98 r4:f400010c r3:000000a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;80008510&amp;gt;] (gic_handle_irq) from [&amp;lt;80012864&amp;gt;] (__irq_svc+0x44/0x58)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;Exception stack(0x8085df20 to 0x8085df68)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df20: 00000001 00000001 00000000 80867268 8085c000 80864588 80864538 8085c000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df40: 00000000 8085c000 805e82a8 8085df74 8085df38 8085df68 800633f0 8000f6a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;df60: 200e0013 ffffffff&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r7:8085df54 r6:ffffffff r5:200e0013 r4:8000f6a0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8000f678&amp;gt;] (arch_cpu_idle) from [&amp;lt;8005c72c&amp;gt;] (cpu_startup_entry+0xfc/0x160)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;8005c630&amp;gt;] (cpu_startup_entry) from [&amp;lt;805d81e8&amp;gt;] (rest_init+0xb0/0xd8)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r7:808045f8 r3:00000000&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;805d8138&amp;gt;] (rest_init) from [&amp;lt;807d3b4c&amp;gt;] (start_kernel+0x310/0x374)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt; r5:808b22c0 r4:80864638&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'andale mono', times;"&gt;[&amp;lt;807d383c&amp;gt;] (start_kernel) from [&amp;lt;10008074&amp;gt;] (0x10008074)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Does anyone know of a fix for this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 00:48:17 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341631#M46941</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-05T00:48:17Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341632#M46942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have added that the kernel version is 3.15.7 and the root filesystem is Yocto 1.6.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 05 Sep 2014 00:50:41 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341632#M46942</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-05T00:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341633#M46943</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;Have you tried with kernel 3.10.17? I have not seen this issue with the &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.0_IMX6QDLS_BUNDLE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.freescale.com/webapp/Download?colCode=L3.10.17_1.0.0_IMX6QDLS_BUNDLE&amp;amp;appType=license&amp;amp;location=null&amp;amp;WT_TYPE=Board%20Support%20Packages&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=gz&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.gz&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product" title="https://www.freescale.com/webapp/Download?colCode=L3.10.17_1.0.0_IMX6QDLS_BUNDLE&amp;amp;appType=license&amp;amp;location=null&amp;amp;WT_TYPE=Board%20Support%20Packages&amp;amp;WT_VENDOR=FREESCALE&amp;amp;WT_FILE_FORMAT=gz&amp;amp;WT_ASSET=Downloads&amp;amp;fileExt=.gz&amp;amp;Parent_nodeId=1337637154535695831062&amp;amp;Parent_pageType=product"&gt;https://www.freescale.com/webapp/Download?colCode=L3.10.17_1.0.0_IMX6QDLS_BUNDLE&amp;amp;appType=license&amp;amp;location=null&amp;amp;WT_TYPE=B…&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Alejandro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 16:59:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341633#M46943</guid>
      <dc:creator>alejandrolozan1</dc:creator>
      <dc:date>2014-09-10T16:59:25Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341634#M46944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Keith, do 3.16.2 or 3.17-rc4 show the same problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It would be nice to report this to linux-can.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should also add on Cc the folks reported by:&lt;/P&gt;&lt;P&gt;./scripts/get_maintainer.pl -f drivers/net/can/flexcan.c&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Sep 2014 18:07:20 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341634#M46944</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-09-10T18:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341635#M46945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, I have only tried this kernel version 3.15.7. Are you suggesting that Freescale introduced a scheduling bug after getting the FlexCAN driver to work in 3.10.17?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have narrowed down the problem to restart timeouts after entering the BUSOFF state. My board is not yet physically connected to a CAN bus, so it goes into a BUSOFF state. Normal CAN bus operation means that after the restart timeout, the driver should automatically come out of BUSOFF state. I can vary the timeout period and, no matter how long it is, the BUG is triggered immediately the timeout occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So a short term workaround is to not let the CAN bus go into BUSOFF, but this is not a viable real world solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 03:53:31 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341635#M46945</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T03:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341636#M46946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;3.15.7 is not maintained by FSL. If you use this version you should report the bug to the can developers as I suggested previously.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 03:56:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341636#M46946</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-09-11T03:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341637#M46947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, I have reported this to the maintainers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 04:09:45 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341637#M46947</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T04:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341638#M46948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To which mailing list have you reported this issue?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 04:17:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341638#M46948</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-09-11T04:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341639#M46949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A class="jive-link-email-small" href="mailto:linux-can@vger.kernel.org"&gt;linux-can@vger.kernel.org&lt;/A&gt;&lt;SPAN&gt; and all of the email addresses returned by &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12.8000001907349px;"&gt;&lt;STRONG&gt;./scripts/get_maintainer.pl -f drivers/net/can/flexcan.c&lt;/STRONG&gt; as suggested in your post.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 06:29:24 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341639#M46949</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T06:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341640#M46950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;OK, so putting together all the answers in this thread, it seems that:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;3.10.17 might not have a problem&lt;/LI&gt;&lt;LI&gt;3.15.7 definitely has a problem, but it is not maintained by FSL&lt;/LI&gt;&lt;LI&gt;3.16.2 and 3.17-rc4 are maintained by FSL, and may or may not have a problem&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Is this a fair summary of the problem? If so, I will build all of these versions and test with each of them.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 06:35:44 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341640#M46950</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T06:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341641#M46951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have reported this bug to the FlexCAN maintainers and they replied that they have already developed a patch which will be added to mainline shortly, and then backported to stable versions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 07:43:40 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341641#M46951</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T07:43:40Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341642#M46952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tested the bug fix (simply replacing all calls to &lt;EM&gt;usleep_range(x,y)&lt;/EM&gt; in &lt;STRONG&gt;flexcan.c&lt;/STRONG&gt; with &lt;EM&gt;udelay(x)&lt;/EM&gt;) and it solves the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This thread can be closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Sep 2014 23:48:33 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341642#M46952</guid>
      <dc:creator>lsirobway</dc:creator>
      <dc:date>2014-09-11T23:48:33Z</dc:date>
    </item>
    <item>
      <title>Re: iMX6 FlexCAN generates 'BUG: scheduling while atomic' on every CAN send</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341643#M46953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Sep 2014 00:09:43 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/iMX6-FlexCAN-generates-BUG-scheduling-while-atomic-on-every-CAN/m-p/341643#M46953</guid>
      <dc:creator>fabio_estevam</dc:creator>
      <dc:date>2014-09-12T00:09:43Z</dc:date>
    </item>
  </channel>
</rss>

