LS1043 CPU crash to kdb when booting the kernel,please take the info below as reference:
[ 19.050171] Hardware name: LS1043A RDB Board (DT)
[ 19.054865] Call trace:
[ 19.057309] [<ffff000010086ec8>] dump_backtrace+0x0/0x1a8
[ 19.062701] [<ffff000010087084>] show_stack+0x14/0x20
[ 19.067744] [<ffff0000102a5e8c>] dump_stack+0x94/0xb8
[ 19.072789] [<ffff000010129d34>] panic+0x184/0x23c
[ 19.077573] [<ffff00001009c47c>] do_exit+0x8fc/0x920
[ 19.082529] [<ffff00001009c508>] do_group_exit+0x38/0xa0
[ 19.087832] [<ffff0000100a64a4>] get_signal+0x1f4/0x488
[ 19.093048] [<ffff000010086200>] do_signal+0xb8/0x500
[ 19.098090] [<ffff000010086820>] do_notify_resume+0x38/0x80
[ 19.103654] [<ffff000010082a1c>] work_pending+0x10/0x14
[ 19.108870] CPU2: stopping
[ 19.111569] CPU: 2 PID: 0 Comm: swapper/2 Tainted: P O 4.4.65 #1
[ 19.118694] Hardware name: LS1043A RDB Board (DT)
[ 19.123386] Call trace:
[ 19.125825] [<ffff000010086ec8>] dump_backtrace+0x0/0x1a8
[ 19.131215] [<ffff000010087084>] show_stack+0x14/0x20
[ 19.136257] [<ffff0000102a5e8c>] dump_stack+0x94/0xb8
[ 19.141299] [<ffff00001008b690>] handle_IPI+0x198/0x1a8
[ 19.146515] [<ffff000010081478>] gic_handle_irq+0x98/0xc0
[ 19.151903] Exception stack(0xffff800077f8cdb0 to 0xffff800077f8cee0)
[ 19.158335] cda0: ffff80005019fe30 0001000000000000
[ 19.166155] cdc0: ffff80005019ff60 ffff000010084740 0000000060000145 0000000000000000
[ 19.173975] cde0: 44209e0004200000 0012000000000000 0600040000008008 04011c0000304002
[ 19.181795] ce00: 6a00080000a00000 0004004800000080 7e4a0001a8081240 3e0801a2055971e0
[ 19.189616] ce20: 0000000002002300 0000248108d04400 004b4101004e0400 081104a200114000
[ 19.197436] ce40: 0048202800000a00 0200003002000000 02006329001c0100 1242128008000080
[ 19.205256] ce60: 2000815000000830 1006840208000010 2042014600000000 1002000200000000
[ 19.213076] ce80: 1400000000000800 00028230000004a1 0052200008000002 0010000180004c02
[ 19.220896] cea0: 0018000a00000000 0289000500008470 0008023800660000 125c016400002062
[ 19.228716] cec0: 4210006500000240 0218800200010061 0008020000000000 4018000000000404
[ 19.236536] [<ffff0000100825f4>] el1_irq+0xb4/0x140
[ 19.241405] [<ffff000010084740>] arch_cpu_idle+0x10/0x18
[ 19.246709] [<ffff0000100ce75c>] cpu_startup_entry+0x104/0x170
[ 19.252532] [<ffff00001008b140>] secondary_start_kernel+0x140/0x180
[ 19.258789] [<000000008050b03c>] 0x8050b03c
[ 19.262961] CPU0: stopping
[ 19.265663] CPU: 0 PID: 0 Comm: swapper/0 Tainted: P O 4.4.65 #1
[ 19.272787] Hardware name: LS1043A RDB Board (DT)
[ 19.277479] Call trace:
[ 19.279919] [<ffff000010086ec8>] dump_backtrace+0x0/0x1a8
[ 19.285309] [<ffff000010087084>] show_stack+0x14/0x20
[ 19.290351] [<ffff0000102a5e8c>] dump_stack+0x94/0xb8
[ 19.295393] [<ffff00001008b690>] handle_IPI+0x198/0x1a8
[ 19.300609] [<ffff000010081478>] gic_handle_irq+0x98/0xc0
[ 19.305997] Exception stack(0xffff800077f4cdb0 to 0xffff800077f4cee0)
[ 19.312428] cda0: ffff00001092fdf0 0001000000000000
[ 19.320248] cdc0: ffff00001092ff20 ffff000010084740 0000000060000145 0000000000000000
[ 19.328068] cde0: 0000000000000c60 0000000000000000 000000000000000f 0000000000000000
[ 19.335888] ce00: 0000000000000003 0000000000000000 3e5cbebb6cf9b25f 7e10f3ff0d3fa7d3
[ 19.343709] ce20: 047c6fb0341e1587 026f67b114f794d5 0a7f6e891ade07d6 12c97fe6100116e7
[ 19.351529] ce40: 1bbac728a61f96df 009f6db91c3fbf8d 13edefbba4ef96cb 836a608f009f07ce
[ 19.359349] ce60: b096075304ff4e76 a416856e0055ae7f 8006098f02031f77 201c03f100e61f27
[ 19.367169] ce80: 700b017900060c1d 000082b010674237 041e805b40076ee7 405a27730117cfa7
[ 19.374989] cea0: 721c3377c04182c0 0298037d000328f3 5a1a13f54027a647 009f07760007d072
[ 19.382809] cec0: 727e7f7f026783c6 321e877b02178bf3 531e831700040647 521c915f00100677
[ 19.390628] [<ffff0000100825f4>] el1_irq+0xb4/0x140
[ 19.395498] [<ffff000010084740>] arch_cpu_idle+0x10/0x18
[ 19.400801] [<ffff0000100ce75c>] cpu_startup_entry+0x104/0x170
[ 19.406627] [<ffff000010502a98>] rest_init+0x70/0x78
[ 19.411586] [<ffff000010700af4>] start_kernel+0x3cc/0x3e0
[ 19.416976] [<ffff000010700208>] __primary_switched+0x7c/0x8c
[ 19.422711] CPU1: stopping
[ 19.425411] CPU: 1 PID: 0 Comm: swapper/1 Tainted: P O 4.4.65 #1
[ 19.432536] Hardware name: LS1043A RDB Board (DT)
[ 19.437228] Call trace:
[ 19.439668] [<ffff000010086ec8>] dump_backtrace+0x0/0x1a8
[ 19.445058] [<ffff000010087084>] show_stack+0x14/0x20
[ 19.450100] [<ffff0000102a5e8c>] dump_stack+0x94/0xb8
[ 19.455142] [<ffff00001008b690>] handle_IPI+0x198/0x1a8
[ 19.460358] [<ffff000010081478>] gic_handle_irq+0x98/0xc0
[ 19.465746] Exception stack(0xffff800077f6cdb0 to 0xffff800077f6cee0)
[ 19.472177] cda0: ffff80005018fe30 0001000000000000
[ 19.479998] cdc0: ffff80005018ff60 ffff000010084740 0000000060000145 0000000000000000
[ 19.487818] cde0: 7efbdffde4fd4ddf 086dffeb66678fdf 0e3ebfed661fb7cf 0c2f9ff37fffef8f
[ 19.495639] ce00: 7ecedf386fbf8307 124ebfe87df8f3ee 764abf07eceeb24f 760eff7e453fefd7
[ 19.503459] ce20: 70636ff8149e158f 00280fb914f306f7 0aff6fe92a9e46d7 26d37fe6003f32cf
[ 19.511279] ce40: 09ffafab261f96df 0a4b7db91439bfbf 536fffbb261f8f8a 5fef758f263e0fdf
[ 19.519100] ce60: 2004975111c77e7f ac16877f0255ee77 141e53bf00030f77 6806023008661f27
[ 19.526921] ce80: 101801710221899c 3010837000278e37 cd5edbdb4867ae27 d01b4b5b0003c5a7
[ 19.534741] cea0: e20e13f700a7f675 029a037d0040a0f3 525e3bf70067a205 129f17771107ea5b
[ 19.542561] cec0: 787e37f74d7783c2 321e3f7302178ff2 535e0777120aa667 127e355700100677
[ 19.550381] [<ffff0000100825f4>] el1_irq+0xb4/0x140
[ 19.555250] [<ffff000010084740>] arch_cpu_idle+0x10/0x18
[ 19.560553] [<ffff0000100ce75c>] cpu_startup_entry+0x104/0x170
[ 19.566376] [<ffff00001008b140>] secondary_start_kernel+0x140/0x180
[ 19.572633] [<000000008050b03c>] 0x8050b03c
PANIC: Attempted to kill init! exitcode=0x0000ff00
Entering kdb (current=0xffff80005130b880, pid 779) on processor 3 due to Keyboard Entry
[3]kdb>
[3]kdb>
[3]kdb>
Could you please help on this ?
Hi sir,
I close this case
For the kernel 4.x,we should remove static key word for the module init function.
Thx