<?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>P-SeriesのトピックRe: kernel BUG at arch/powerpc/kernel/smp.c:370  Oops: Exception in kernel mode, sig: 5 [#1]</title>
    <link>https://community.nxp.com/t5/P-Series/kernel-BUG-at-arch-powerpc-kernel-smp-c-370-Oops-Exception-in/m-p/836740#M4564</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="326417" data-username="henry801211@hotmail.com" href="https://community.nxp.com/people/henry801211@hotmail.com"&gt;Lin Hsin Han&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks there is problem with Kernel configuration file which you are using to build Linux Kernel uImage.&lt;/P&gt;&lt;P&gt;Please build Linux Kernel based on the default Kernel configuration file, please refer to the section "2.2.4 Configure and rebuild Kernel" in the document documents/sdk_documentation/pdf/sdk-user-manual.pdf provided in the ISO QorIQ-SDK-V1.2-SOURCE-20120614-yocto.iso.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Sep 2018 14:02:00 GMT</pubDate>
    <dc:creator>yipingwang</dc:creator>
    <dc:date>2018-09-19T14:02:00Z</dc:date>
    <item>
      <title>kernel BUG at arch/powerpc/kernel/smp.c:370  Oops: Exception in kernel mode, sig: 5 [#1]</title>
      <link>https://community.nxp.com/t5/P-Series/kernel-BUG-at-arch-powerpc-kernel-smp-c-370-Oops-Exception-in/m-p/836739#M4563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;Dear all,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;While loading the compiled QorIQ-SDK-V1.2-20120614-yocto linux kernel module on p1021 (2C, 900M) based board running linux kernel uImage, rootfs fsl-image and device tree dtb, I got below exception.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;I have tried to trace the bug in smp.c file.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;The bug is on "BUG_ON( smp_processor_id() != boot_cpuid )"&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #ff0000;"&gt;And I printk the value of&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;smp_processor_id() and boot_cpuid.&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #000000;"&gt;&lt;SPAN style="background-color: #ffffff; color: #ff0000;"&gt;smp_processor_id() = 0, boot_cpuid = -1&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;=&amp;gt; bootm 1000000 2000000 c00000&lt;BR /&gt;WARNING: adjusting available memory to 30000000&lt;BR /&gt;## Booting kernel from Legacy Image at 01000000 ...&lt;BR /&gt; Image Name: Linux-3.0.34-rt55-02404-g1a39570&lt;BR /&gt; Image Type: PowerPC Linux Kernel Image (gzip compressed)&lt;BR /&gt; Data Size: 3615574 Bytes = 3.4 MB&lt;BR /&gt; Load Address: 00000000&lt;BR /&gt; Entry Point: 00000000&lt;BR /&gt; Verifying Checksum ... OK&lt;BR /&gt;## Loading init Ramdisk from Legacy Image at 02000000 ...&lt;BR /&gt; Image Name: fsl-image-minimal-p1021rdb-20180&lt;BR /&gt; Image Type: PowerPC Linux RAMDisk Image (gzip compressed)&lt;BR /&gt; Data Size: 4170707 Bytes = 4 MB&lt;BR /&gt; Load Address: 00000000&lt;BR /&gt; Entry Point: 00000000&lt;BR /&gt; Verifying Checksum ... OK&lt;BR /&gt;## Flattened Device Tree blob at 00c00000&lt;BR /&gt; Booting using the fdt blob at 0xc00000&lt;BR /&gt; Uncompressing Kernel Image ... OK&lt;BR /&gt; Loading Ramdisk to 2fc05000, end 2ffff3d3 ... OK&lt;BR /&gt;Using P1021 RDB-PC machine description&lt;BR /&gt;Memory CAM mapping: 256/256/256 Mb, residual: 256Mb&lt;BR /&gt;Linux version 3.0.34-rt55-02404-g1a39570 (diag@diag) (gcc version 4.6.2 (GCC) ) #1 SMP Tue Sep 18 05:30:38 CST 2018&lt;BR /&gt;Found initrd at 0xefc05000:0xeffff3d3&lt;BR /&gt;CPU maps initialized for 1 thread per core&lt;BR /&gt;bootconsole [udbg0] enabled&lt;BR /&gt;setup_arch: bootmem&lt;BR /&gt;mpc85xx_rdb_setup_arch()&lt;BR /&gt;Found FSL PCI host bridge at 0x00000000ffe09000. Firmware bus number: 0-&amp;gt;255&lt;BR /&gt;PCI host bridge /pcie@ffe09000 ranges:&lt;BR /&gt; MEM 0x00000000a0000000..0x00000000bfffffff -&amp;gt; 0x00000000a0000000&lt;BR /&gt; IO 0x00000000ffc10000..0x00000000ffc1ffff -&amp;gt; 0x0000000000000000&lt;BR /&gt;/pcie@ffe09000: PCICSRBAR @ 0xfff00000&lt;BR /&gt;Found FSL PCI host bridge at 0x00000000ffe0a000. Firmware bus number: 0-&amp;gt;255&lt;BR /&gt;PCI host bridge /pcie@ffe0a000 ranges:&lt;BR /&gt; MEM 0x0000000080000000..0x000000009fffffff -&amp;gt; 0x0000000080000000&lt;BR /&gt; IO 0x00000000ffc00000..0x00000000ffc0ffff -&amp;gt; 0x0000000000000000&lt;BR /&gt;/pcie@ffe0a000: PCICSRBAR @ 0xfff00000&lt;BR /&gt;MPC85xx RDB board from Freescale Semiconductor&lt;BR /&gt;arch: exit&lt;BR /&gt;Zone PFN ranges:&lt;BR /&gt; DMA 0x00000000 -&amp;gt; 0x00030000&lt;BR /&gt; Normal empty&lt;BR /&gt; HighMem 0x00030000 -&amp;gt; 0x00040000&lt;BR /&gt;Movable zone start PFN for each node&lt;BR /&gt;early_node_map[1] active PFN ranges&lt;BR /&gt; 0: 0x00000000 -&amp;gt; 0x00040000&lt;BR /&gt;MMU: Allocated 894575148 bytes of context maps for -1052737408 contexts&lt;BR /&gt;PERCPU: Embedded 7 pages/cpu @c140b000 s4704 r8192 d15776 u32768&lt;BR /&gt;------------[ cut here ]------------&lt;BR /&gt;kernel BUG at arch/powerpc/kernel/smp.c:370!&lt;BR /&gt;Oops: Exception in kernel mode, sig: 5 [#1]&lt;BR /&gt;SMP NR_CPUS=8 P1021 RDB-PC&lt;BR /&gt;Modules linked in:&lt;BR /&gt;NIP: c04eaa64 LR: c069359c CTR: 00000000&lt;BR /&gt;REGS: c070bf10 TRAP: 0700 Not tainted (3.0.34-rt55-02404-g1a39570)&lt;BR /&gt;MSR: 00021000 &amp;lt;ME,CE&amp;gt; CR: 20242128 XER: 20000000&lt;BR /&gt;TASK = c06d93c0[0] 'swapper' THREAD: c070a000 CPU: 0&lt;BR /&gt;GPR00: 00000001 c070bfc0 c06d93c0 00000008 00000008 00000008 00000000 00000000&lt;BR /&gt;GPR08: ffffffff ffffffff 00000000 c070a000 40242128 006ca004 3ff73800 00000000&lt;BR /&gt;GPR16: c0000a00 00000014 3fffffff 00c00000 00000015 00000000 c070a000 00000000&lt;BR /&gt;GPR24: 00000000 00000000 000016e0 00000000 c1408100 c0711500 c07126f8 c06c2bd4&lt;BR /&gt;NIP [c04eaa64] smp_prepare_boot_cpu+0x20/0x40&lt;BR /&gt;LR [c069359c] start_kernel+0x10c/0x2fc&lt;BR /&gt;Call Trace:&lt;BR /&gt;[c070bfc0] [c0693598] start_kernel+0x108/0x2fc (unreliable)&lt;BR /&gt;[c070bff0] [c00003f8] skpinv+0x2e4/0x320&lt;BR /&gt;Instruction dump:&lt;BR /&gt;540a053e 380affff 7c0b492e 4e800020 542b0024 3d20c071 800b0008 81298da4&lt;BR /&gt;7d200278 7c000034 5400d97e 68000001 &amp;lt;0f000000&amp;gt; 3d60c071 80020008 5529103a&lt;BR /&gt;---[ end trace 31fd0ba7d8756001 ]---&lt;BR /&gt;Kernel panic - not syncing: Attempted to kill the idle task!&lt;BR /&gt;Call Trace:&lt;BR /&gt;[c070bd00] [c00082c0] show_stack+0x4c/0x174 (unreliable)&lt;BR /&gt;[c070bd40] [c04e1b70] panic+0xa8/0x1dc&lt;BR /&gt;[c070bda0] [c005014c] do_exit+0x6a4/0x6c4&lt;BR /&gt;[c070bdf0] [c000af68] die+0xe0/0x1cc&lt;BR /&gt;[c070be10] [c000b150] _exception+0xa4/0x120&lt;BR /&gt;[c070bf00] [c000f754] ret_from_except_full+0x0/0x4c&lt;BR /&gt;--- Exception: 700 at smp_prepare_boot_cpu+0x20/0x40&lt;BR /&gt; LR = start_kernel+0x10c/0x2fc&lt;BR /&gt;[c070bfc0] [c0693598] start_kernel+0x108/0x2fc (unreliable)&lt;BR /&gt;[c070bff0] [c00003f8] skpinv+0x2e4/0x320&lt;BR /&gt;Rebooting in 180 seconds..&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;Can someone guide me how to resolve this issue? What could be going wrong here?&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;Thanks for your help,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;Best Regards,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="color: #51626f; background-color: #ffffff; border: 0px;"&gt;&lt;SPAN style="color: #808080;"&gt;Henry&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2018 13:00:12 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/kernel-BUG-at-arch-powerpc-kernel-smp-c-370-Oops-Exception-in/m-p/836739#M4563</guid>
      <dc:creator>henry801211</dc:creator>
      <dc:date>2018-09-18T13:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: kernel BUG at arch/powerpc/kernel/smp.c:370  Oops: Exception in kernel mode, sig: 5 [#1]</title>
      <link>https://community.nxp.com/t5/P-Series/kernel-BUG-at-arch-powerpc-kernel-smp-c-370-Oops-Exception-in/m-p/836740#M4564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello &lt;A _jive_internal="true" data-content-finding="Community" data-userid="326417" data-username="henry801211@hotmail.com" href="https://community.nxp.com/people/henry801211@hotmail.com"&gt;Lin Hsin Han&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks there is problem with Kernel configuration file which you are using to build Linux Kernel uImage.&lt;/P&gt;&lt;P&gt;Please build Linux Kernel based on the default Kernel configuration file, please refer to the section "2.2.4 Configure and rebuild Kernel" in the document documents/sdk_documentation/pdf/sdk-user-manual.pdf provided in the ISO QorIQ-SDK-V1.2-SOURCE-20120614-yocto.iso.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yiping&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2018 14:02:00 GMT</pubDate>
      <guid>https://community.nxp.com/t5/P-Series/kernel-BUG-at-arch-powerpc-kernel-smp-c-370-Oops-Exception-in/m-p/836740#M4564</guid>
      <dc:creator>yipingwang</dc:creator>
      <dc:date>2018-09-19T14:02:00Z</dc:date>
    </item>
  </channel>
</rss>

