remoteproc: coredump: Add minidump functionality
authorSiddharth Gupta <sidgup@codeaurora.org>
Thu, 19 Nov 2020 21:05:33 +0000 (13:05 -0800)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Thu, 10 Dec 2020 19:14:37 +0000 (13:14 -0600)
commitabc72b646066075acf9121a2a68aad39f550813d
tree7e20d04b04348c96aa36ee8d0eb7b5e40eccc33a
parentadf60a870e9130c7883ec2ab798484e05f24db39
remoteproc: coredump: Add minidump functionality

This change adds a new kind of core dump mechanism which instead of dumping
entire program segments of the firmware, dumps sections of the remoteproc
memory which are sufficient to allow debugging the firmware. This function
thus uses section headers instead of program headers during creation of the
core dump elf.

Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Co-developed-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Rishabh Bhatnagar <rishabhb@codeaurora.org>
Signed-off-by: Siddharth Gupta <sidgup@codeaurora.org>
Link: https://lore.kernel.org/r/1605819935-10726-3-git-send-email-sidgup@codeaurora.org
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
drivers/remoteproc/remoteproc_coredump.c
drivers/remoteproc/remoteproc_elf_helpers.h
include/linux/remoteproc.h