Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

powerpc/fadump: print start of preserved area

Print preserved area start address in fadump_region_show() function.

Signed-off-by: Hari Bathini <hbathini@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220406093839.206608-4-hbathini@linux.ibm.com

authored by

Hari Bathini and committed by
Michael Ellerman
a3ceb588 9cf3b3a3

+6 -6
+3 -3
arch/powerpc/platforms/powernv/opal-fadump.c
··· 587 587 be64_to_cpu(fdm_ptr->rgn[i].size), dumped_bytes); 588 588 } 589 589 590 - /* Dump is active. Show reserved area start address. */ 590 + /* Dump is active. Show preserved area start address. */ 591 591 if (fadump_conf->dump_active) { 592 - seq_printf(m, "\nMemory above %#016lx is reserved for saving crash dump\n", 593 - fadump_conf->reserve_dump_area_start); 592 + seq_printf(m, "\nMemory above %#016llx is reserved for saving crash dump\n", 593 + fadump_conf->boot_mem_top); 594 594 } 595 595 } 596 596
+3 -3
arch/powerpc/platforms/pseries/rtas-fadump.c
··· 468 468 be64_to_cpu(fdm_ptr->rmr_region.source_len), 469 469 be64_to_cpu(fdm_ptr->rmr_region.bytes_dumped)); 470 470 471 - /* Dump is active. Show reserved area start address. */ 471 + /* Dump is active. Show preserved area start address. */ 472 472 if (fdm_active) { 473 - seq_printf(m, "\nMemory above %#016lx is reserved for saving crash dump\n", 474 - fadump_conf->reserve_dump_area_start); 473 + seq_printf(m, "\nMemory above %#016llx is reserved for saving crash dump\n", 474 + fadump_conf->boot_mem_top); 475 475 } 476 476 } 477 477