<div dir="ltr"><div><div><div>Hi,<br></div>I was trying to port Linux-3.12 for MPC8641 based custom designed board for evaluation purpose. I have been facing a kernel bug at mpic initialization. Is somebody have faced this kind of bugs or can give me any pointer for further steps how to solve kernel bugs will be really helpful. here is the snapshot for the bug that may be helpful to address the bug.<br>
Using MPC86xx HPCN machine description<br>Total memory = 512MB; using 1024kB for hash table (at cff00000)<br>Linux version 3.12.0 (ashish@ashish-VirtualBox) (gcc version 4.7.2 (GCC) ) #2 We<br>d Dec 25 16:04:36 IST 2013<br>
Found initrd at 0xde975000:0xdfec428a<br>bootconsole [udbg0] enabled<br>setup_arch: bootmem<br>mpc86xx_hpcn_setup_arch()<br>MPC86xx HPCN board from Freescale Semiconductor<br>arch: exit<br>Zone ranges:<br> DMA [mem 0x00000000-0x1fffffff]<br>
Normal empty<br> HighMem empty<br>Movable zone start for each node<br>Early memory node ranges<br> node 0: [mem 0x00000000-0x1fffffff]<br>Built 1 zonelists in Zone order, mobility grouping on. Total pages: 130048<br>
Kernel command line: root=/dev/ram0 rw rootfs console=ttyS0,115200<br>PID hash table entries: 2048 (order: 1, 8192 bytes)<br>Dentry cache hash table entries: 65536 (order: 6, 262144 bytes)<br>Inode-cache hash table entries: 32768 (order: 5, 131072 bytes)<br>
Sorting __ex_table...<br>Memory: 424980K/524288K available (4172K kernel code, 208K rwdata, 1304K rodata,<br> 196K init, 149K bss, 99308K reserved, 0K highmem)<br>Kernel virtual memory layout:<br> * 0xfffcf000..0xfffff000 : fixmap<br>
* 0xff800000..0xffc00000 : highmem PTEs<br> * 0xff7fe000..0xff800000 : early ioremap<br> * 0xe1000000..0xff7fe000 : vmalloc & ioremap<br>SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1<br>NR_IRQS:512 nr_irqs:512 16<br>
------------[ cut here ]------------<br>kernel BUG at arch/powerpc/platforms/86xx/pic.c:42!<br>Oops: Exception in kernel mode, sig: 5 [#1]<br>MPC86xx HPCN<br>Modules linked in:<br>CPU: 0 PID: 0 Comm: swapper Not tainted 3.12.0 #2<br>
task: c05903e0 ti: c05b4000 task.ti: c05b4000<br>NIP: c0567438 LR: c0567430 CTR: c0567400<br>REGS: c05b5ee0 TRAP: 0700 Not tainted (3.12.0)<br>MSR: 00021032 <ME,IR,DR,RI> CR: 24000042 XER: 20000000<br><br>GPR00: c0567430 c05b5f90 c05903e0 00000000 c04e4ff8 c051e588 0000008f 00000002<br>
GPR08: c042789c 00000001 0000006f 00000000 22000048 bebffffd 11a7b4e5 200c8000<br>GPR16: ffbeffff ffffffff 00000000 00000024 00000000 1fec56f8 1fec59a7 00000000<br>GPR24: 00000000 1fff97e8 40000000 1ffcc6a0 c0bff080 c05c2490 c05c2628 c0585b60<br>
NIP [c0567438] mpc86xx_init_irq+0x38/0x108<br>LR [c0567430] mpc86xx_init_irq+0x30/0x108<br>Call Trace:<br>[c05b5f90] [c0567430] mpc86xx_init_irq+0x30/0x108 (unreliable)<br>[c05b5fb0] [c0562784] init_IRQ+0x24/0x38<br>[c05b5fc0] [c055fde4] start_kernel+0x1bc/0x2ec<br>
[c05b5ff0] [00003444] 0x3444<br>Instruction dump:<br>3d00c04f 38800000 38a01002 38c00000 38e00100 39088f8c 38600000 90010024<br>bfa10014 4bffec35 7c690034 5529d97e <0f090000> 3fa0c04f 4bfff391 38600000<br>---[ end trace 31fd0ba7d8756001 ]---<br>
<br>Kernel panic - not syncing: Attempted to kill the idle task!<br>Rebooting in 180 seconds..<br><br><br></div>Thanks & Regards<br></div>Ashish Khetan<br></div>