remoteproc: zynqmp: Add coredump support
authorLeonard Crestez <cdleonard@gmail.com>
Sat, 16 Mar 2024 18:16:42 +0000 (20:16 +0200)
committerMathieu Poirier <mathieu.poirier@linaro.org>
Mon, 8 Apr 2024 16:33:03 +0000 (10:33 -0600)
commitfec2601f2003b9e9820ab5057607df7fff61cfaf
tree5a8632e9d0141054e22c13a53452e91896a45e97
parent331f91d86f71d0bb89a44217cc0b2a22810bbd42
remoteproc: zynqmp: Add coredump support

Supporting remoteproc coredump requires the platform-specific driver to
register coredump segments to be dumped. Do this by calling
rproc_coredump_add_segment for every carveout.

Also call rproc_coredump_set_elf_info when then rproc is created. If the
ELFCLASS parameter is not provided then coredump fails with an error.
Other drivers seem to pass EM_NONE for the machine argument but for me
this shows a warning in gdb. Pass EM_ARM because this is an ARM R5.

Signed-off-by: Leonard Crestez <cdleonard@gmail.com>
Link: https://lore.kernel.org/r/d4556268-8274-4089-949f-3b97d67793c7@gmail.com
Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
drivers/remoteproc/xlnx_r5_remoteproc.c