makedumpfile: s390x: Fix dump refiltering for s390x.
Subsystems (2)
PATCH 1/1 makedumpfile: s390x: Fix dump refiltering for s390x.
From: Mahesh Salgaonkar <[email protected]>
On s390x, dump refiltering fails in get_machdep_info_s390x() function while reading vmlist kernel symbol data. It fails in vaddr_to_paddr_s390x() function while resolving vmlist kernel symbol address. Since the vmlist kernel symbol address is not a vmalloc address, the function returns failure.
Fix the vaddr_to_paddr_s390x() function to translate non-vmalloc'ed address into physical adddress.
--- s390x.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)
s390x.c +1 -3
@@ -269,9 +269,7 @@ vaddr_to_paddr_s390x(unsigned long vaddr) paddr =vtop_s390x (vaddr); }else { -ERRMSG ("Can't convert a virtual address(%lx) to " \ -"physical address.\n" , vaddr); -return NOT_PADDR ; + paddr = vaddr -KVBASE ; }return paddr;
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
Hi Mahesh,
Thank you for the patch.
I will take it into a next makedumpfile.
Thanks
tachibana
Quoted 32 lines · Mahesh J Salgaonkar
From: Mahesh Salgaonkar <[email protected]>
On s390x, dump refiltering fails in
get_machdep_info_s390x()function while reading vmlist kernel symbol data. It fails invaddr_to_paddr_s390x()function while resolving vmlist kernel symbol address. Since the vmlist kernel symbol address is not a vmalloc address, the function returns failure.Fix the
vaddr_to_paddr_s390x()function to translate non-vmalloc'ed address into physical adddress.Signed-off-by Mahesh Salgaonkar <[email protected]>--- s390x.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-)s390x.c +1
-3@@ -269,9 +269,7 @@ vaddr_to_paddr_s390x(unsigned long vaddr) paddr =vtop_s390x (vaddr); }else { -ERRMSG ("Can't convert a virtual address(%lx) to " \ -"physical address.\n" , vaddr); -return NOT_PADDR ; + paddr = vaddr -KVBASE ; }return paddr;
Quoted 4 lines
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec
_______________________________________________
kexec mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/kexec