remoteproc: Add remote processor coredump support
authorSarangdhar Joshi <spjoshi@codeaurora.org>
Sat, 6 Jan 2018 00:04:17 +0000 (16:04 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Mon, 12 Feb 2018 19:05:29 +0000 (11:05 -0800)
commit2666ca9197e3d352f43b02d7dfb7c6dd72e7c614
treeb9c60aed35f13ff5c2fb519bf31eec2ed5d9c644
parent2d02d158047643060b7d6e0829fcc81518ce663d
remoteproc: Add remote processor coredump support

As the remoteproc framework restarts the remote processor after a fatal
event, it's useful to be able to acquire a coredump of the remote
processor's state, for post mortem debugging.

This patch introduces a mechanism for extracting the memory contents
after the remote has stopped and before the restart sequence has begun
in the recovery path. The remoteproc framework builds the core dump in
memory and use devcoredump to expose this to user space.

Signed-off-by: Sarangdhar Joshi <spjoshi@codeaurora.org>
[bjorn: Use vmalloc instead of composing the ELF on the fly]
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/Kconfig
drivers/remoteproc/remoteproc_core.c
include/linux/remoteproc.h