Skip to content

RFC ARM/KGDB: Some fixes for SMP machines

Anton Vorontsov linux-arm-kernel netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ARM: kgdb: Must poll for IPIs during busy-waitingarch/arm/kernel/kgdb.c kernel/kgdb.c+30 -10 replies
2/4ARM: kgdb: Disable preemption before re-enabling interruptsarch/arm/kernel/kgdb.c+8 -00 replies
3/4net: Implement napi_try_disable()include/linux/netdevice.h+21 -00 replies
4/4kgdb: Quiesce IO back-end before rounding up secondary CPUsdrivers/net/kgdboe.c include/linux/kgdb.h kernel/kgdb.c+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH RFC 0/4] ARM/KGDB: Some fixes for SMP machines

Hi all,

It appears that KGDB can easily hang SMP ARM machines.

Here are few fixes that I come up with.

Before the patches, doing 'b schedule' and then 1-3 'continue' or 'si' gdb commands would cause the board to lock-up completely.

After the patches, KGDB seems to be bullet proof. Well, at least with the 'b schedule' testcase, there might be other bugs which I didn't hit yet. ;-)

Notes:

1. I'm testing with I/D caches disabled. With enabled caches, ARMv6K still locks-up. I'll test ARMv7 soon, and will try to debug cache issues on ARMv6K.

2. The patches are against a heavily patched kernel, and so far I didn't rebase them onto the 'debug core' rework as found in the very latest mainline kernels. I'll rebase the patches soon, so for now this is just an RFC.

Thanks!

Signature · 3 lines
Anton Vorontsov
email: cbouatmailru at gmail.com
irc://irc.freenode.net/bd2