adsprpc: Pass virtual address during ram dump collection

If virtual address is not passed during ramdump collection,
the CMA region gets remapped during ioremap call. By passing
the virtual address in the do_ramdump_elf call, the CMA
doesn't get remapped.

Change-Id: Ice98e7947b977c5edffcbf9f3c5b0d3c6a34ef52
Acked-by: Vishnu Karthik D <vikarthi@qti.qualcomm.com>
Signed-off-by: Jeya R <jeyr@codeaurora.org>
This commit is contained in:
Jeya R 2021-01-04 15:47:28 +05:30
commit 1613295638

View file

@ -4364,6 +4364,8 @@ static int fastrpc_mmap_remove_ssr(struct fastrpc_file *fl)
if (ramdump_segments_rh) {
ramdump_segments_rh->address =
match->phys;
ramdump_segments_rh->v_address =
(void __iomem *)match->va;
ramdump_segments_rh->size = match->size;
ret = do_elf_ramdump(
me->ramdump_handle,