Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 1a99a305 authored by Vikram Mulukutla's avatar Vikram Mulukutla Committed by Gerrit - the friendly Code Review server
Browse files

soc: qcom: peripheral-loader: Don't use virt addresses in do_elf_ramdump



Relocatable PIL ensures that there is no kernel mapping
present for PIL images, in order to prevent accesses to
those regions whilst they are owned by the subsystem.
Therefore don't attempt to pass in a non-existent mapping
to the ramdump API.

Also ensure that the segment structures are allocated
with kcalloc instead of kmalloc_array in order to ensure
zeroing out of other fields in the segment structures.

A future improvement would be to pass in the device pointer
used to do the dma_remap by peripheral-loader (while actually
loading the image) to the ramdump API to actually allow the
latter to do the remap on its own.

Change-Id: I182ed375b8588f775df7135e1d6699bc53ffccb7
Signed-off-by: default avatarVikram Mulukutla <markivx@codeaurora.org>
parent bdd3d68e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment