]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
powerpc/fadump: print start of preserved area
authorHari Bathini <hbathini@linux.ibm.com>
Wed, 6 Apr 2022 09:38:39 +0000 (15:08 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 Apr 2022 12:38:19 +0000 (22:38 +1000)
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
arch/powerpc/platforms/powernv/opal-fadump.c
arch/powerpc/platforms/pseries/rtas-fadump.c

index 9d74d3950a523ecf95e3ef3382c7f6bd5785581c..5e147f32e93238483a90ea45e40af6a2948c4d38 100644 (file)
@@ -587,10 +587,10 @@ static void opal_fadump_region_show(struct fw_dump *fadump_conf,
                           be64_to_cpu(fdm_ptr->rgn[i].size), dumped_bytes);
        }
 
-       /* Dump is active. Show reserved area start address. */
+       /* Dump is active. Show preserved area start address. */
        if (fadump_conf->dump_active) {
-               seq_printf(m, "\nMemory above %#016lx is reserved for saving crash dump\n",
-                          fadump_conf->reserve_dump_area_start);
+               seq_printf(m, "\nMemory above %#016llx is reserved for saving crash dump\n",
+                          fadump_conf->boot_mem_top);
        }
 }
 
index bc8d1ce20f8f82e08e7be8587c079df33a2486c3..5fb26a18c39839101db4b78f19d5556e6dba86be 100644 (file)
@@ -468,10 +468,10 @@ static void rtas_fadump_region_show(struct fw_dump *fadump_conf,
                   be64_to_cpu(fdm_ptr->rmr_region.source_len),
                   be64_to_cpu(fdm_ptr->rmr_region.bytes_dumped));
 
-       /* Dump is active. Show reserved area start address. */
+       /* Dump is active. Show preserved area start address. */
        if (fdm_active) {
-               seq_printf(m, "\nMemory above %#016lx is reserved for saving crash dump\n",
-                          fadump_conf->reserve_dump_area_start);
+               seq_printf(m, "\nMemory above %#016llx is reserved for saving crash dump\n",
+                          fadump_conf->boot_mem_top);
        }
 }