All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC 0/3] coresight: enable debug module
@ 2017-02-13  6:11 ` Leo Yan
  0 siblings, 0 replies; 42+ messages in thread
From: Leo Yan @ 2017-02-13  6:11 UTC (permalink / raw)
  To: Mathieu Poirier, Rob Herring, Mark Rutland, Wei Xu,
	Catalin Marinas, Will Deacon, linux-arm-kernel, devicetree,
	linux-kernel, Daniel Thompson
  Cc: Leo Yan

This patch series is to enable coresight debug module. With debug
module we can check CPU state and PC value, etc. So this is helpful for
CPU lockup bugs, e.g. if one CPU has run into infinite loop with IRQ
disabled. The hang CPU cannot switch context and handle any interrupt,
so it cannot handle SMP call for stack dump, etc.

Furthermore, now ARMv8 introduces some runtime firmwares like ARM
trusted firmware BL31, so sometime CPU lockup may happen in the
firmware and cannot return back to kernel.

This initial patch series enable debug module and registers call back
notifier for PCSR register dumping when panic happens, so we can see
below dumping info for panic:

[   13.751777] Coresight debug module:
[   13.755275] CPU[0]: PSCR=0xffff000008090cbc
[   13.759469] CPU[1]: PSCR=0xffff0000088bf9e4
[   13.763662] CPU[2]: PSCR=0xffff000008090cc0
[   13.767856] CPU[3]: PSCR=0xffff000008090cb8
[   13.772049] CPU[4]: PSCR=0xffff000008090cc0
[   13.776243] CPU[5]: PSCR=0xffff000008090cbc
[   13.780436] CPU[6]: PSCR=0xffff000008090cc0
[   13.784630] CPU[7]: PSCR=0xffff000008090cbc

This patch series has been verified on 96boards Hikey.


Leo Yan (3):
  coresight: binding for coresight debug driver
  coresight: add support for debug module
  arm64: dts: register Hi6220's coresight debug module

 .../devicetree/bindings/arm/coresight.txt          |   9 +-
 .../boot/dts/hisilicon/hikey_6220_coresight.dtsi   |  73 +++++++++
 drivers/hwtracing/coresight/Kconfig                |   8 +
 drivers/hwtracing/coresight/Makefile               |   1 +
 drivers/hwtracing/coresight/coresight-debug.c      | 169 +++++++++++++++++++++
 5 files changed, 258 insertions(+), 2 deletions(-)
 create mode 100644 drivers/hwtracing/coresight/coresight-debug.c

-- 
2.7.4

^ permalink raw reply	[flat|nested] 42+ messages in thread

end of thread, other threads:[~2017-02-16 18:14 UTC | newest]

Thread overview: 42+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-02-13  6:11 [PATCH RFC 0/3] coresight: enable debug module Leo Yan
2017-02-13  6:11 ` Leo Yan
2017-02-13  6:11 ` Leo Yan
2017-02-13  6:11 ` [PATCH RFC 1/3] coresight: binding for coresight debug driver Leo Yan
2017-02-13  6:11   ` Leo Yan
2017-02-15 11:13   ` Mark Rutland
2017-02-15 11:13     ` Mark Rutland
2017-02-15 11:13     ` Mark Rutland
2017-02-15 20:08   ` Mathieu Poirier
2017-02-15 20:08     ` Mathieu Poirier
2017-02-15 20:08     ` Mathieu Poirier
2017-02-16 13:55     ` Leo Yan
2017-02-16 13:55       ` Leo Yan
2017-02-13  6:11 ` [PATCH RFC 2/3] coresight: add support for debug module Leo Yan
2017-02-13  6:11   ` Leo Yan
2017-02-15 11:43   ` Mark Rutland
2017-02-15 11:43     ` Mark Rutland
2017-02-15 11:43     ` Mark Rutland
2017-02-16 18:14     ` Mathieu Poirier
2017-02-16 18:14       ` Mathieu Poirier
2017-02-16 18:14       ` Mathieu Poirier
2017-02-15 11:44   ` Mark Rutland
2017-02-15 11:44     ` Mark Rutland
2017-02-15 11:44     ` Mark Rutland
2017-02-16 15:21     ` Leo Yan
2017-02-16 15:21       ` Leo Yan
2017-02-16 15:21       ` Leo Yan
2017-02-15 21:08   ` Mathieu Poirier
2017-02-15 21:08     ` Mathieu Poirier
2017-02-15 21:08     ` Mathieu Poirier
2017-02-16 15:26     ` Leo Yan
2017-02-16 15:26       ` Leo Yan
2017-02-16 15:26       ` Leo Yan
2017-02-13  6:11 ` [PATCH RFC 3/3] arm64: dts: register Hi6220's coresight " Leo Yan
2017-02-13  6:11   ` Leo Yan
2017-02-15 21:19   ` Mathieu Poirier
2017-02-15 21:19     ` Mathieu Poirier
2017-02-15 21:19     ` Mathieu Poirier
2017-02-13 15:58 ` [PATCH RFC 0/3] coresight: enable " Mike Leach
2017-02-13 23:37   ` Leo Yan
2017-02-13 23:37     ` Leo Yan
2017-02-13 23:37     ` Leo Yan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.