[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1486966298-16767-1-git-send-email-leo.yan@linaro.org>
Date: Mon, 13 Feb 2017 14:11:35 +0800
From: Leo Yan <leo.yan@...aro.org>
To: Mathieu Poirier <mathieu.poirier@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Mark Rutland <mark.rutland@....com>,
Wei Xu <xuwei5@...ilicon.com>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will.deacon@....com>,
linux-arm-kernel@...ts.infradead.org, devicetree@...r.kernel.org,
linux-kernel@...r.kernel.org,
Daniel Thompson <daniel.thompson@...aro.org>
Cc: Leo Yan <leo.yan@...aro.org>
Subject: [PATCH RFC 0/3] coresight: enable debug module
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
Powered by blists - more mailing lists