Skip to contentSkip to conversation

makedumpfile: s390x: Fix dump refiltering for s390x.

PATCH In review Mahesh J Salgaonkar 2 participants 2 messages May 25, 2011 – May 30, 2011

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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
index 128e5f0..49658d0 100644
@@ -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

#1 lore raw

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 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
index 128e5f0..49658d0 100644
@@ -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