[PATCH] makedumpfile: s390x: Fix dump refiltering for s390x.

Mahesh J Salgaonkar mahesh at linux.vnet.ibm.com
Wed May 25 03:49:08 EDT 2011


From: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>

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.

Signed-off-by: Mahesh Salgaonkar <mahesh at linux.vnet.ibm.com>
---
 s390x.c |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/s390x.c b/s390x.c
index 128e5f0..49658d0 100644
--- a/s390x.c
+++ b/s390x.c
@@ -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;




More information about the kexec mailing list