P5040 with hypervisor KDB/KGDB

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

P5040 with hypervisor KDB/KGDB

530 Views
nhilderm
Contributor II

I am trying to use KDB on P5040 with hypervisor running.

I enabled in .config:

CONFIG_HAVE_ARCH_KGDB=y

CONFIG_KGDB=y

CONFIG_KGDB_SERIAL_CONSOLE=y

CONFIG_KGDB_TESTS=y

# CONFIG_KGDB_TESTS_ON_BOOT is not set

CONFIG_KGDB_KDB=y

CONFIG_KDB_KEYBOARD=y

Configuring KGDB:

(none)> echo ttyS0 > /sys/module/kgdboc/parameters/kgdboc

[62964.415935] kgdb: Registered I/O driver kgdboc.

Launching kgdb causes an exception.

How do I get kgdb to work in this setup?

(none)> echo g > /proc/sysrq-trigger

[62970.878158] SysRq : DEBUG

[62970.878252] Unable to handle kernel paging request for instruction fetch

[62970.878264] Faulting instruction address: 0x00000000

[62970.878279] KGDB: re-enter exception: ALL breakpoints killed

[62970.878290] Oops: Kernel access of bad area, sig: 11 [#1]

[62970.878300] SMP NR_CPUS=4 ciena-ome6500

[62970.878308] Modules linked in: vdp(O) linx_eth_cm(O) linx(O) oobroute(O) bcm_88950_uio_cdev(O) plx(O) esio(PO) topsync(PO) vd(O) ucd9224drv(O) i2c_bCpld(O) lll2_utils(O) talon(O) oaf(O) bcmApollo2(O) pciTplUtil(O) uio omeKdsBct(O) shmlklm(PO) bcpld(O) hsiFlare(O) safeIo(O) tun driver_common(PO) driver_helper(O) ucd9090drv(O) [last unloaded: driver_helper]

[62970.878389] NIP: 00000000 LR: c03884c4 CTR: 00000000

[62970.878399] REGS: d59b3a40 TRAP: 0400   Tainted: P           O  (3.4.36)

[62970.878410] MSR: 10021002 <CE,ME>  CR: 84442488  XER: 00000000

[62970.878428] TASK = d5a4b800[3717] 'sh' THREAD: d59b2000 CPU: 1

[62970.878438] GPR00: 00000000 d59b3af0 d5a4b800 c0aa8278 00000001 0000000a c0a2642c 00000000

[62970.878460] GPR08: 00008000 c0993fac c0aa87a0 00000000 84442422 100dc154 c09d0000 00000020

[62970.878482] GPR16: 00000000 0000002c 0000002d 00000000 0000002d 10021002 00000001 00000000

[62970.878504] GPR24: c09d0000 c0a20000 c0980000 c09d0000 c09d0000 c09d0000 0000000a c0aa8278

[62970.878529] NIP [00000000]   (null)

[62970.878545] LR [c03884c4] serial8250_put_poll_char+0x34/0x150

[62970.878555] Call Trace:

[62970.878564] [d59b3af0] [c09d0000] __log_buf+0x4e40/0x40000 (unreliable)

[62970.878583] [d59b3b10] [c0380904] uart_poll_put_char+0x54/0x70

[62970.878598] [d59b3b20] [c038b758] kgdboc_put_char+0x48/0x60

[62970.878617] [d59b3b30] [c00a5c88] vkdb_printf+0x268/0x6d0

[62970.878629] [d59b3bd0] [c00a614c] kdb_printf+0x5c/0x70

[62970.878641] [d59b3c10] [c00aaf30] kdb_local.isra.6+0x90/0x6c0

[62970.878654] [d59b3c80] [c00ab630] kdb_main_loop+0xd0/0x1f0

[62970.878667] [d59b3cb0] [c00ae8c8] kdb_stub+0x228/0x480

[62970.878679] [d59b3cf0] [c00a2b70] kgdb_cpu_enter+0x2e0/0x6a0

[62970.878692] [d59b3d50] [c00a3320] kgdb_handle_exception+0xa0/0xc0

[62970.878709] [d59b3d90] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62970.878726] [d59b3da0] [c06d5344] program_check_exception+0x234/0x260

[62970.878739] [d59b3db0] [c00109e4] ret_from_except_full+0x0/0x4c

[62970.878760] --- Exception: 700 at sysrq_handle_dbg+0x64/0xb0

[62970.878761]     LR = __handle_sysrq+0x164/0x1e0

[62970.878778] [d59b3e70] [00000001] 0x1 (unreliable)

[62970.878791] [d59b3e80] [c036f464] __handle_sysrq+0x164/0x1e0

[62970.878804] [d59b3eb0] [c036f548] write_sysrq_trigger+0x68/0x80

[62970.878821] [d59b3ed0] [c019cc9c] proc_reg_write+0x8c/0xd0

[62970.878838] [d59b3ef0] [c013aa44] vfs_write+0xb4/0x1e0

[62970.878850] [d59b3f10] [c013ae48] sys_write+0x58/0xa0

[62970.878862] [d59b3f40] [c00103ec] ret_from_syscall+0x0/0x3c

[62970.878875] --- Exception: c01 at 0xfec22ac

[62970.878876]     LR = 0xfe63218

[62970.878888] Instruction dump:

[62970.878896] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX

[62970.878916] XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX XXXXXXXX

[62970.878945] Call Trace:

[62970.878955] [d59b3810] [c0009124] show_stack+0x104/0x1c0 (unreliable)

[62970.878972] [d59b3860] [c06dd140] dump_stack+0x24/0x34

[62970.878985] [d59b3870] [c00a3254] kgdb_reenter_check.isra.6+0x144/0x170

[62970.878998] [d59b3890] [c00a32d4] kgdb_handle_exception+0x54/0xc0

[62970.879012] [d59b38d0] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62970.879025] [d59b38e0] [c06d5344] program_check_exception+0x234/0x260

[62970.879038] [d59b38f0] [c00109e4] ret_from_except_full+0x0/0x4c

[62970.879053] --- Exception: 700 at do_unblank_screen+0x50/0xb0

[62970.879055]     LR = do_unblank_screen+0x34/0xb0

[62970.879073] [d59b39c0] [c037d210] unblank_screen+0x20/0x30

[62970.879087] [d59b39d0] [c0328764] bust_spinlocks+0x34/0x70

[62970.879100] [d59b39e0] [c06d4f44] oops_end.isra.6+0x34/0x140

[62970.879114] [d59b3a00] [c000c62c] die+0xcc/0x120

[62970.879126] [d59b3a20] [c0016be0] bad_page_fault+0xb0/0x120

[62970.879136] [d59b3a30] [c001089c] handle_page_fault+0x7c/0x80

[62970.879144] --- Exception: 400 at   (null)

[62970.879145]     LR = serial8250_put_poll_char+0x34/0x150

[62970.879153] [d59b3af0] [c09d0000] __log_buf+0x4e40/0x40000 (unreliable)

[62970.879162] [d59b3b10] [c0380904] uart_poll_put_char+0x54/0x70

[62970.879169] [d59b3b20] [c038b758] kgdboc_put_char+0x48/0x60

[62970.879177] [d59b3b30] [c00a5c88] vkdb_printf+0x268/0x6d0

[62970.879184] [d59b3bd0] [c00a614c] kdb_printf+0x5c/0x70

[62970.879191] [d59b3c10] [c00aaf30] kdb_local.isra.6+0x90/0x6c0

[62970.879198] [d59b3c80] [c00ab630] kdb_main_loop+0xd0/0x1f0

[62970.879205] [d59b3cb0] [c00ae8c8] kdb_stub+0x228/0x480

[62970.879213] [d59b3cf0] [c00a2b70] kgdb_cpu_enter+0x2e0/0x6a0

[62970.879220] [d59b3d50] [c00a3320] kgdb_handle_exception+0xa0/0xc0

[62970.879228] [d59b3d90] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62970.879236] [d59b3da0] [c06d5344] program_check_exception+0x234/0x260

[62970.879243] [d59b3db0] [c00109e4] ret_from_except_full+0x0/0x4c

[62970.879253] --- Exception: 700 at sysrq_handle_dbg+0x64/0xb0

[62970.879254]     LR = __handle_sysrq+0x164/0x1e0

[62970.879262] [d59b3e70] [00000001] 0x1 (unreliable)

[62970.879270] [d59b3e80] [c036f464] __handle_sysrq+0x164/0x1e0

[62970.879277] [d59b3eb0] [c036f548] write_sysrq_trigger+0x68/0x80

[62970.879285] [d59b3ed0] [c019cc9c] proc_reg_write+0x8c/0xd0

[62970.879293] [d59b3ef0] [c013aa44] vfs_write+0xb4/0x1e0

[62970.879300] [d59b3f10] [c013ae48] sys_write+0x58/0xa0

[62970.879307] [d59b3f40] [c00103ec] ret_from_syscall+0x0/0x3c

[62970.879314] --- Exception: c01 at 0xfec22ac

[62970.879316]     LR = 0xfe63218

[62970.879322] Kernel panic - not syncing: Recursive entry to debugger

[62970.879327] Call Trace:

[62970.879331] [d59b37b0] [c0009124] show_stack+0x104/0x1c0 (unreliable)

[62970.879340] [d59b3800] [c06dd140] dump_stack+0x24/0x34

[62970.879347] [d59b3810] [c06dd924] panic+0xe8/0x238

[62970.879354] [d59b3870] [c00a3260] kgdb_reenter_check.isra.6+0x150/0x170

[62970.879362] [d59b3890] [c00a32d4] kgdb_handle_exception+0x54/0xc0

[62970.879370] [d59b38d0] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62970.879378] [d59b38e0] [c06d5344] program_check_exception+0x234/0x260

[62970.879385] [d59b38f0] [c00109e4] ret_from_except_full+0x0/0x4c

[62970.879394] --- Exception: 700 at do_unblank_screen+0x50/0xb0

[62970.879396]     LR = do_unblank_screen+0x34/0xb0

[62970.879405] [d59b39c0] [c037d210] unblank_screen+0x20/0x30

[62970.879412] [d59b39d0] [c0328764] bust_spinlocks+0x34/0x70

[62970.879419] [d59b39e0] [c06d4f44] oops_end.isra.6+0x34/0x140

[62970.879427] [d59b3a00] [c000c62c] die+0xcc/0x120

[62970.879433] [d59b3a20] [c0016be0] bad_page_fault+0xb0/0x120

[62970.879440] [d59b3a30] [c001089c] handle_page_fault+0x7c/0x80

[62970.879448] --- Exception: 400 at   (null)

[62970.879449]     LR = serial8250_put_poll_char+0x34/0x150

[62970.879457] [d59b3af0] [c09d0000] __log_buf+0x4e40/0x40000 (unreliable)

[62970.879466] [d59b3b10] [c0380904] uart_poll_put_char+0x54/0x70

[62970.879474] [d59b3b20] [c038b758] kgdboc_put_char+0x48/0x60

[62970.879482] [d59b3b30] [c00a5c88] vkdb_printf+0x268/0x6d0

[62970.879489] [d59b3bd0] [c00a614c] kdb_printf+0x5c/0x70

[62970.879496] [d59b3c10] [c00aaf30] kdb_local.isra.6+0x90/0x6c0

[62970.879503] [d59b3c80] [c00ab630] kdb_main_loop+0xd0/0x1f0

[62970.879510] [d59b3cb0] [c00ae8c8] kdb_stub+0x228/0x480

[62970.879517] [d59b3cf0] [c00a2b70] kgdb_cpu_enter+0x2e0/0x6a0

[62970.879525] [d59b3d50] [c00a3320] kgdb_handle_exception+0xa0/0xc0

[62970.879532] [d59b3d90] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62970.879540] [d59b3da0] [c06d5344] program_check_exception+0x234/0x260

[62970.879548] [d59b3db0] [c00109e4] ret_from_except_full+0x0/0x4c

[62970.879557] --- Exception: 700 at sysrq_handle_dbg+0x64/0xb0

[62970.879559]     LR = __handle_sysrq+0x164/0x1e0

[62970.879566] [d59b3e70] [00000001] 0x1 (unreliable)

[62970.879574] [d59b3e80] [c036f464] __handle_sysrq+0x164/0x1e0

[62970.879582] [d59b3eb0] [c036f548] write_sysrq_trigger+0x68/0x80

[62970.886185] [d59b3ed0] [c019cc9c] proc_reg_write+0x8c/0xd0

[62970.902866] [d59b3ef0] [c013aa44] vfs_write+0xb4/0x1e0

[62970.915377] [d59b3f10] [c013ae48] sys_write+0x58/0xa0

[62970.932057] [d59b3f40] [c00103ec] ret_from_syscall+0x0/0x3c

[62970.948739] --- Exception: c01 at 0xfec22ac

[62970.948740]     LR = 0xfe63218

[62970.969693] pramoops: kmsg dumped to pram

[62970.982101] Unable to handle kernel paging request for instruction fetch

[62971.002949] Faulting instruction address: 0x00000000

[62971.015467] Call Trace:

[62971.023803] [d59b34d0] [c0009124] show_stack+0x104/0x1c0 (unreliable)

[62971.044654] [d59b3520] [c06dd140] dump_stack+0x24/0x34

[62971.061334] [d59b3530] [c00a3254] kgdb_reenter_check.isra.6+0x144/0x170

[62971.078016] [d59b3550] [c00a32d4] kgdb_handle_exception+0x54/0xc0

[62971.098867] [d59b3590] [c00113e0] kgdb_debugger+0xc0/0xe0

[62971.115547] [d59b35a0] [c06d4edc] oops_begin+0x11c/0x150

[62971.128059] [d59b35b0] [c000c590] die+0x30/0x120

[62971.144739] [d59b35d0] [c0016be0] bad_page_fault+0xb0/0x120

[62971.161420] [d59b35e0] [c001089c] handle_page_fault+0x7c/0x80

[62971.178102] --- Exception: 400 at   (null)

[62971.178103]     LR = serial8250_put_poll_char+0x34/0x150

[62971.207292] [d59b36a0] [c09d0000] __log_buf+0x4e40/0x40000 (unreliable)

[62971.223975] [d59b36c0] [c0380904] uart_poll_put_char+0x54/0x70

[62971.240656] [d59b36d0] [c038b758] kgdboc_put_char+0x48/0x60

[62971.257337] [d59b36e0] [c00a5c88] vkdb_printf+0x268/0x6d0

[62971.274018] [d59b3780] [c00a614c] kdb_printf+0x5c/0x70

[62971.290699] [d59b37c0] [c00a1fb8] kgdb_panic_event+0x38/0x80

[62971.307380] [d59b37d0] [c06d87cc] notifier_call_chain+0x7c/0xe0

[62971.324061] [d59b3800] [c06d8888] atomic_notifier_call_chain+0x28/0x40

[62971.344912] [d59b3810] [c06dd94c] panic+0x110/0x238

[62971.361591] [d59b3870] [c00a3260] kgdb_reenter_check.isra.6+0x150/0x170

[62971.378274] [d59b3890] [c00a32d4] kgdb_handle_exception+0x54/0xc0

[62971.399124] [d59b38d0] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62971.415806] [d59b38e0] [c06d5344] program_check_exception+0x234/0x260

[62971.436656] [d59b38f0] [c00109e4] ret_from_except_full+0x0/0x4c

[62971.453339] --- Exception: 700 at do_unblank_screen+0x50/0xb0

[62971.453341]     LR = do_unblank_screen+0x34/0xb0

[62971.482529] [d59b39c0] [c037d210] unblank_screen+0x20/0x30

[62971.499210] [d59b39d0] [c0328764] bust_spinlocks+0x34/0x70

[62971.515891] [d59b39e0] [c06d4f44] oops_end.isra.6+0x34/0x140

[62971.532573] [d59b3a00] [c000c62c] die+0xcc/0x120

[62971.549252] [d59b3a20] [c0016be0] bad_page_fault+0xb0/0x120

[62971.565934] [d59b3a30] [c001089c] handle_page_fault+0x7c/0x80

[62971.582615] --- Exception: 400 at   (null)

[62971.582616]     LR = serial8250_put_poll_char+0x34/0x150

[62971.611805] [d59b3af0] [c09d0000] __log_buf+0x4e40/0x40000 (unreliable)

[62971.628488] [d59b3b10] [c0380904] uart_poll_put_char+0x54/0x70

[62971.645169] [d59b3b20] [c038b758] kgdboc_put_char+0x48/0x60

[62971.661850] [d59b3b30] [c00a5c88] vkdb_printf+0x268/0x6d0

[62971.678531] [d59b3bd0] [c00a614c] kdb_printf+0x5c/0x70

[62971.695211] [d59b3c10] [c00aaf30] kdb_local.isra.6+0x90/0x6c0

[62971.711892] [d59b3c80] [c00ab630] kdb_main_loop+0xd0/0x1f0

[62971.728574] [d59b3cb0] [c00ae8c8] kdb_stub+0x228/0x480

[62971.745254] [d59b3cf0] [c00a2b70] kgdb_cpu_enter+0x2e0/0x6a0

[62971.761936] [d59b3d50] [c00a3320] kgdb_handle_exception+0xa0/0xc0

[62971.778617] [d59b3d90] [c0011674] kgdb_handle_breakpoint+0x54/0xb0

[62971.799467] [d59b3da0] [c06d5344] program_check_exception+0x234/0x260

[62971.816148] [d59b3db0] [c00109e4] ret_from_except_full+0x0/0x4c

[62971.837000] --- Exception: 700 at sysrq_handle_dbg+0x64/0xb0

[62971.837002]     LR = __handle_sysrq+0x164/0x1e0

[62971.866190] [d59b3e70] [00000001] 0x1 (unreliable)

[62971.878703] [d59b3e80] [c036f464] __handle_sysrq+0x164/0x1e0

[62971.895384] [d59b3eb0] [c036f548] write_sysrq_trigger+0x68/0x80

[62971.916233] [d59b3ed0] [c019cc9c] proc_reg_write+0x8c/0xd0

[62971.932914] [d59b3ef0] [c013aa44] vfs_write+0xb4/0x1e0

[62971.945426] [d59b3f10] [c013ae48] sys_write+0x58/0xa0

[62971.962106] [d59b3f40] [c00103ec] ret_from_syscall+0x0/0x3c

[62971.978788] --- Exception: c01 at 0xfec22ac

[62971.978789]     LR = 0xfe63218

0 Kudos
0 Replies