Skip to content

ARM: KDB FIQ debugger

John Stultz linux-arm-kernel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3ARM: Move some macros from entry-armv to entry-headerarch/arm/kernel/entry-armv.S arch/arm/kernel/entry-header.S+172 -1680 replies
2/3ARM: Add KGDB/KDB FIQ debugger generic codearch/arm/Kconfig arch/arm/include/asm/kgdb.h arch/arm/kernel/Makefile +2 more+231 -00 replies
3/3ARM: versatile: Make able to use UART ports for KGDB FIQ debuggerarch/arm/Kconfig arch/arm/mach-versatile/Makefile arch/arm/mach-versatile/kgdb_fiq.c+57 -02 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] ARM: KDB FIQ debugger

Hey all,
Just wanted to try to revive Anton's KDB FIQ patches
which have been sent out a number of times since last October and have gotten almost no response at all.

I've simply updated them to apply to Linus' current HEAD, and figured I'd send them out again to try to spur some interest.

Any feedback would be appreciated!

thanks
-john

Short description of the KDB/FIQ debugger:

The FIQ debugger is a facility that can be used to debug situations when the kernel stuck in uninterruptable sections, e.g. the kernel infinitely loops or deadlocked in an interrupt or with interrupts disabled. On some development boards there is even a special NMI button, which is very useful for debugging weird kernel hangs.

And FIQ is basically an NMI, it has a higher priority than IRQs, and upon IRQ exception FIQs are not disabled. It is still possible to disable FIQs (as well as some "NMIs" on other architectures), but via special means.

Old changelogs and a full rationale for these patches can be found here:

	v1-v5, rationale: http://lkml.org/lkml/2012/9/10/2
	v6: http://lkml.org/lkml/2012/9/10/2
	v7: http://lkml.org/lkml/2012/9/13/367
	v8: http://lkml.org/lkml/2012/9/19/525
	v9: http://lkml.org/lkml/2012/9/24/538
Cc Anton Vorontsov <[email protected]>
Cc Russell King <[email protected]>
Cc Nicolas Pitre <[email protected]>
Cc Arnd Bergmann <[email protected]>
Cc Jason Wessel <[email protected]>
Cc Andrew Morton <[email protected]>
Cc linux-arm-kernel at lists.infradead.org
Cc kernel-team at android.com

Anton Vorontsov (3):
ARM: Move some macros from entry-armv to entry-header
ARM: Add KGDB/KDB FIQ debugger generic code
ARM: versatile: Make able to use UART ports for KGDB FIQ debugger

 arch/arm/Kconfig                   |  19 +++++
 arch/arm/include/asm/kgdb.h        |   7 ++
 arch/arm/kernel/Makefile           |   1 +
 arch/arm/kernel/entry-armv.S       | 169 +-----------------------------------
 arch/arm/kernel/entry-header.S     | 171 +++++++++++++++++++++++++++++++++++++
 arch/arm/kernel/kgdb_fiq.c         | 118 +++++++++++++++++++++++++
 arch/arm/kernel/kgdb_fiq_entry.S   |  87 +++++++++++++++++++
 arch/arm/mach-versatile/Makefile   |   1 +
 arch/arm/mach-versatile/kgdb_fiq.c |  55 ++++++++++++
 9 files changed, 460 insertions(+), 168 deletions(-)
 create mode 100644 arch/arm/kernel/kgdb_fiq.c
 create mode 100644 arch/arm/kernel/kgdb_fiq_entry.S
 create mode 100644 arch/arm/mach-versatile/kgdb_fiq.c
Signature · 1 line
1.8.1.2