From 1613295638da11339c878e70ee6d8fadd4fd64ae Mon Sep 17 00:00:00 2001 From: Jeya R Date: Mon, 4 Jan 2021 15:47:28 +0530 Subject: [PATCH] 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 Signed-off-by: Jeya R --- drivers/char/adsprpc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/char/adsprpc.c b/drivers/char/adsprpc.c index 8a1d42678260..370c9a5ba958 100644 --- a/drivers/char/adsprpc.c +++ b/drivers/char/adsprpc.c @@ -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,