lkml.org 
[lkml]   [2022]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH V2 0/2] remoteproc: elf: ignore PT_LOAD type segment with memsz as 0
Date
From: Peng Fan <peng.fan@nxp.com>

V2:
Add R-b/A-b tag
Drop inaccurate comment in patch 1

i.MX DSP firmware has segments with PT_LOAD and memsz/filesz as zero.
It is valid case the memsz set to zero according to elf spec:
https://refspecs.linuxbase.org/elf/elf.pdf page 40

So we could let remoteproc elf loader handle this case, then no
duplicate code in imx dsp rproc driver

Tested i.MX8MP DSP and M7 remoteproc

Peng Fan (2):
remoteproc: elf_loader: skip segment with memsz as zero
remoteproc: imx_dsp_rproc: use common rproc_elf_load_segments

drivers/remoteproc/imx_dsp_rproc.c | 95 +---------------------
drivers/remoteproc/remoteproc_elf_loader.c | 2 +-
2 files changed, 2 insertions(+), 95 deletions(-)

--
2.25.1

\
 
 \ /
  Last update: 2022-04-13 08:14    [W:0.063 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site