[PATCH v4 0/2] remoteproc: elf_loader: Make rproc_elf_load_segments() more generic

From: Uwe Kleine-König

Date: Thu Nov 12 2026 - 07:09:05 EST


Hello,

Changes since v3 (available at
https://lore.kernel.org/linux-remoteproc/cover.1793879714.git.u.kleine-koenig@xxxxxxxxxxxx):

- Improve kdoc comment for new callback describing what it is supposed
to do as requested by Mathieu.

I'm currently working on another remoteproc driver that cannot use
rproc_elf_load_segments() as is because the remoteproc's va isn't mapped
into the local CPU's memory address space in a useable way. With the new
callback the amount of code that must be repeated is reduced, similar to
how the imx_dsp driver's load routine is reduced.

Best regards
Uwe

Uwe Kleine-König (2):
remoteproc: elf_loader: Create new callback for copying segments to
remote cpu
remoteproc: imx_dsp_rproc: Implement .memcpy_tova()

drivers/remoteproc/imx_dsp_rproc.c | 120 ++++++---------------
drivers/remoteproc/remoteproc_elf_loader.c | 64 ++++++-----
include/linux/remoteproc.h | 7 ++
3 files changed, 74 insertions(+), 117 deletions(-)


base-commit: 8b7179210b22f8e48a82c5ceacb9d56a9c4cfec4
--
2.56.0.rc1