工具与软件:
您好!
在使用 AM6442的定制电路板上、我遇到内核严重错误的情况。 它始终与"异步错误中断"相关。
内核严重错误的日志示例:
日志1:
[ 1199.521390] SError Interrupt on CPU0, code 0x00000000bf000002 -- SError [ 1199.521419] CPU: 0 PID: 12 Comm: ktimers/0 Not tainted 6.1.80-rt26 #1 [ 1199.521430] Hardware name: --- [ 1199.521436] pstate: 000000c5 (nzcv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1199.521445] pc : 0xffff8000080ac250 [ 1199.521452] lr : 0xffff8000080ac450 [ 1199.521455] sp : ffff0000000d3c60 [ 1199.521458] x29: ffff0000000d3c60 x28: 0000000000000020 x27: ffff0000000d3d28 [ 1199.521474] x26: ffff00001bf7ca10 x25: 00000001000db9c1 x24: 0000000000000000 [ 1199.521484] x23: dead000000000122 x22: ffff00001bf7ca00 x21: ffff00001bf7ca50 [ 1199.521495] x20: 00000001400db9c0 x19: ffff800008b68000 x18: 0000000000000000 [ 1199.521506] x17: 0000000000000000 x16: 0000000000000000 x15: 000000000000016d [ 1199.521515] x14: 00000000b123f581 x13: 0000000000000000 x12: 0000000000000000 [ 1199.521525] x11: ffff00001bf7ca98 x10: 0000000000000001 x9 : 00000000000000a7 [ 1199.521535] x8 : 0000100000000000 x7 : ffff0000000d3d30 x6 : ffff00001bf7ca50 [ 1199.521545] x5 : ffff0000000d3d30 x4 : 0000000000000002 x3 : 0000100000000000 [ 1199.521555] x2 : 00000000000000c0 x1 : 00000001000db9c1 x0 : ffff00001bf7ca00 [ 1199.521570] Kernel panic - not syncing: Asynchronous SError Interrupt [ 1199.521575] CPU: 0 PID: 12 Comm: ktimers/0 Not tainted 6.1.80-rt26 #1 [ 1199.521583] Hardware name: --- [ 1199.521587] Call trace: [ 1199.521592] 0xffff800008018154 [ 1199.521595] 0xffff8000080181a4 [ 1199.521598] 0xffff80000881731c [ 1199.521601] 0xffff800008817348 [ 1199.521604] 0xffff800008809160 [ 1199.521607] 0xffff80000803647c [ 1199.521610] 0xffff800008019228 [ 1199.521613] 0xffff800008019300 [ 1199.521616] 0xffff800008818f5c [ 1199.521618] 0xffff80000801133c [ 1199.521621] 0xffff8000080ac250 [ 1199.521624] 0xffff8000080ac450 [ 1199.521627] 0xffff8000080accb8 [ 1199.521630] 0xffff800008010104 [ 1199.521633] 0xffff80000803b720 [ 1199.521636] 0xffff80000805dad8 [ 1199.521639] 0xffff800008057c04 [ 1199.521642] 0xffff800008014cb0 [ 1199.707695] SMP: stopping secondary CPUs [ 1199.707706] Kernel Offset: disabled [ 1199.707709] CPU features: 0x00000,00800004,0000400b [ 1199.707715] Memory Limit: none
日志2:
[ 1371.051212] SError Interrupt on CPU0, code 0x00000000bf000002 -- SError [ 1371.051242] CPU: 0 PID: 32 Comm: kcompactd0 Not tainted 6.1.80-rt26 #1 [ 1371.051253] Hardware name: --- [ 1371.051259] pstate: 200000c5 (nzCv daIF -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 1371.051269] pc : 0xffff800008825d18 [ 1371.051275] lr : 0xffff8000080acef4 [ 1371.051278] sp : ffff0000002e7d00 [ 1371.051281] x29: ffff0000002e7d00 x28: 0000000000000000 x27: ffff800008c44c00 [ 1371.051296] x26: ffff00001bf7ca00 x25: 0000000000000000 x24: ffff800008b68000 [ 1371.051307] x23: 00000000ffffffff x22: 00000001001059bc x21: ffff00001bf7ca00 [ 1371.051317] x20: ffff00001bf7ca00 x19: ffff0000002e7da0 x18: 0000000000000000 [ 1371.051328] x17: 0000000000000000 x16: 0000000000000000 x15: 0000000000000132 [ 1371.051338] x14: 0000000000000009 x13: 0000000000000000 x12: 0000000000000000 [ 1371.051348] x11: 0000000000000002 x10: 00000000000008f0 x9 : ffff0000002e7cf0 [ 1371.051358] x8 : 0100000000000000 x7 : 0000000000000001 x6 : ffff00001bf7ca50 [ 1371.051367] x5 : 0000000000000001 x4 : 000000001e000000 x3 : 00000001001059c0 [ 1371.051377] x2 : 0000000000000000 x1 : 0000000000000000 x0 : ffff00001bf7ca00 [ 1371.051391] Kernel panic - not syncing: Asynchronous SError Interrupt [ 1371.051397] CPU: 0 PID: 32 Comm: kcompactd0 Not tainted 6.1.80-rt26 #1 [ 1371.051403] Hardware name: --- [ 1371.051408] Call trace: [ 1371.051412] 0xffff800008018154 [ 1371.051416] 0xffff8000080181a4 [ 1371.051418] 0xffff80000881731c [ 1371.051421] 0xffff800008817348 [ 1371.051424] 0xffff800008809160 [ 1371.051427] 0xffff80000803647c [ 1371.051430] 0xffff800008019228 [ 1371.051433] 0xffff800008019300 [ 1371.051436] 0xffff800008818f5c [ 1371.051439] 0xffff80000801133c [ 1371.051442] 0xffff800008825d18 [ 1371.051444] 0xffff800008824fc8 [ 1371.051447] 0xffff80000810a1b4 [ 1371.051450] 0xffff800008057c04 [ 1371.051453] 0xffff800008014cb0 [ 1371.228305] SMP: stopping secondary CPUs [ 1371.228317] Kernel Offset: disabled [ 1371.228320] CPU features: 0x00000,00800004,0000400b [ 1371.228328] Memory Limit: none
日志3:
[ 3962.368990] SError Interrupt on CPU1, code 0x00000000bf000002 -- SError [ 3962.369024] CPU: 1 PID: 145 Comm: systemd-journal Not tainted 6.1.80-rt26 #1 [ 3962.369034] Hardware name: --- [ 3962.369040] pstate: 20000005 (nzCv daif -PAN -UAO -TCO -DIT -SSBS BTYPE=--) [ 3962.369050] pc : 0xffff8000087e0f60 [ 3962.369055] lr : 0xffff8000083277d0 [ 3962.369057] sp : ffff000001a07960 [ 3962.369060] x29: ffff000001a07960 x28: 0001000000000000 x27: 0000000000000000 [ 3962.369076] x26: ffff000001a07d20 x25: ffff000001a07d10 x24: ffff000001a07d20 [ 3962.369087] x23: 00000000000007d8 x22: ffff000001a07dd8 x21: ffff00000194e000 [ 3962.369097] x20: 00000000000007d8 x19: 0000000000000000 x18: 0000000000000000 [ 3962.369107] x17: 0000000000000000 x16: 0000000000000000 x15: ffff00000194e000 [ 3962.369116] x14: 20656c62616c6961 x13: 7661206f6e203a5d x12: 322072656375646f [ 3962.369127] x11: 72505b205d013838 x10: 355b017265767265 x9 : 732d3335612d636d [ 3962.369137] x8 : 34303a323230320a x7 : 6174616420425355 x6 : 0000000022d819df [ 3962.369147] x5 : 0000000022d81fe7 x4 : 0000000000000000 x3 : 00000000000007d8 [ 3962.369157] x2 : 0000000000000598 x1 : ffff00000194e210 x0 : 0000000022d8180f [ 3962.369171] Kernel panic - not syncing: Asynchronous SError Interrupt [ 3962.369176] CPU: 1 PID: 145 Comm: systemd-journal Not tainted 6.1.80-rt26 #1 [ 3962.369183] Hardware name: --- [ 3962.369187] Call trace: [ 3962.369192] 0xffff800008018154 [ 3962.369195] 0xffff8000080181a4 [ 3962.369198] 0xffff80000881731c [ 3962.369201] 0xffff800008817348 [ 3962.369204] 0xffff800008809160 [ 3962.369207] 0xffff80000803647c [ 3962.369210] 0xffff800008019228 [ 3962.369213] 0xffff800008019300 [ 3962.369216] 0xffff800008818f5c [ 3962.369219] 0xffff80000801133c [ 3962.369222] 0xffff8000087e0f60 [ 3962.369226] 0xffff8000086aad50 [ 3962.369229] 0xffff8000086aabec [ 3962.369232] 0xffff8000086aad2c [ 3962.369234] 0xffff8000087b8098 [ 3962.369238] 0xffff8000087bc2f0 [ 3962.369241] 0xffff8000087bca58 [ 3962.369244] 0xffff8000086950d4 [ 3962.369246] 0xffff800008697d78 [ 3962.369250] 0xffff800008698490 [ 3962.369253] 0xffff800008698500 [ 3962.369255] 0xffff80000801dcac [ 3962.369258] 0xffff80000801dda0 [ 3962.369261] 0xffff800008817b70 [ 3962.369264] 0xffff800008819024 [ 3962.369267] 0xffff800008011488
如何调试它并确定内核的哪个部分导致了问题?
谢谢!
Stephane
PS:此系统使用 ti 内核 09.02.00.009-RT 运行