Skip to content

KGDB/KDB FIQ (NMI) debugger

Anton Vorontsov linux-arm-kernel linux-serial lkml 9 versions – In review

Get series with b4
b4 am 20120924212648.GA27605@lizard

Versions newest first · linked by author and title

  1. v9 Latest11 patches 4 repliesIn review
  2. v811 patches 4 repliesSuperseded
  3. v711 patches 14 repliesSuperseded
Earlier versions · 6
VersionPostedPatchesRepliesStatus
v612 patches3 repliesSuperseded
v514 patches11 repliesSuperseded
v412 patches2 repliesSuperseded
v311 patches8 repliesSuperseded
v28 patches0 repliesSuperseded
v16 patches4 repliesSuperseded

Patches in v9 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/11kernel/debug: Mask KGDB NMI upon entryinclude/linux/kgdb.h kernel/debug/debug_core.c+14 -30 replies
2/11kdb: Implement disable_nmi commandkernel/debug/kdb/kdb_main.c+31 -00 replies
3/11kdb: Turn KGDB_KDB=n stubs into static inlinesinclude/linux/kdb.h+16 -130 replies
4/11tty/serial/core: Introduce poll_init callbackdrivers/tty/serial/serial_core.c include/linux/serial_core.h+18 -00 replies
5/11tty/serial/amba-pl011: Implement poll_init callbackdrivers/tty/serial/amba-pl011.c+33 -110 replies
6/11tty/serial/amba-pl011: Quiesce interrupts in poll_get_chardrivers/tty/serial/amba-pl011.c+29 -00 replies
7/11tty/serial: Add kgdb_nmi driverdrivers/tty/serial/Kconfig drivers/tty/serial/Makefile drivers/tty/serial/kgdb_nmi.c +2 more+441 -00 replies
8/11ARM: Move some macros from entry-armv to entry-headerarch/arm/kernel/entry-armv.S arch/arm/kernel/entry-header.S+171 -1662 replies
9/11ARM: Add KGDB/KDB FIQ debugger generic codearch/arm/Kconfig arch/arm/include/asm/kgdb.h arch/arm/kernel/Makefile +2 more+238 -00 replies
10/11ARM: VIC: Add a couple of low-level FIQ management helpersarch/arm/common/vic.c arch/arm/include/asm/hardware/vic.h+30 -00 replies
11/11ARM: 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+33 -00 replies

Reviews trailers per patch

7 of 11 patches have a Reviewed-by or Acked-by.

PatchJason WesselAlan Cox
1/11A-b
2/11A-b
3/11A-b
4/11A-b
5/11A-b
6/11A-b
7/11A-b A-b
8/11
9/11
10/11
11/11

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v9 thread

Cover letter [PATCH v9 0/11] KGDB/KDB FIQ (NMI) debugger

Hi all,

Here comes v9...

Greg, patches 1-7 have gotten all the needed acks from Alan and Jason, so it would be awesome if you could apply them to your tty-next tree.

ARM patches still need Russell's acks, but these can wait, plus if the core support hits v3.7, it would be much easier to handle the rest (including the patches that add "kiosk mode" support for KDB).

Thanks!

In v9:

- KGDB patches got their Acked-by tags from Jason Wessel;
- A small 64 bit fixup for kgdb_nmi driver, thanks to Jason;
- Yet again rebased on the latest and greatest tty-next, just to make sure everything applies cleanly.

These patches can be found in the following repo (based on tty-next):

git://git.infradead.org/users/cbou/linux-nmi-kdb.git master

Old changelogs and 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

--

 arch/arm/Kconfig                    |  19 ++
 arch/arm/common/vic.c               |  28 ++
 arch/arm/include/asm/hardware/vic.h |   2 +
 arch/arm/include/asm/kgdb.h         |   8 +
 arch/arm/kernel/Makefile            |   1 +
 arch/arm/kernel/entry-armv.S        | 167 +-----------
 arch/arm/kernel/entry-header.S      | 170 ++++++++++++
 arch/arm/kernel/kgdb_fiq.c          | 124 +++++++++
 arch/arm/kernel/kgdb_fiq_entry.S    |  87 +++++++
 arch/arm/mach-versatile/Makefile    |   1 +
 arch/arm/mach-versatile/kgdb_fiq.c  |  31 +++
 drivers/tty/serial/Kconfig          |  19 ++
 drivers/tty/serial/Makefile         |   1 +
 drivers/tty/serial/amba-pl011.c     |  73 +++++-
 drivers/tty/serial/kgdb_nmi.c       | 402 +++++++++++++++++++++++++++++
 drivers/tty/serial/kgdboc.c         |   9 +
 drivers/tty/serial/serial_core.c    |  17 ++
 include/linux/kdb.h                 |  29 ++-
 include/linux/kgdb.h                |  13 +
 include/linux/serial_core.h         |   1 +
 kernel/debug/debug_core.c           |  14 +-
 kernel/debug/kdb/kdb_main.c         |  31 +++
 22 files changed, 1054 insertions(+), 193 deletions(-)