Skip to content

Commit c5b4216

Browse files
Xianting Tianpalmer-dabbelt
authored andcommitted
Documentation: kdump: describe VMCOREINFO export for RISCV64
The following interrelated definitions and ranges are needed by the kdump crash tool, which are exported by "arch/riscv/kernel/crash_core.c": VA_BITS, PAGE_OFFSET, phys_ram_base, KERNEL_LINK_ADDR, MODULES_VADDR ~ MODULES_END, VMALLOC_START ~ VMALLOC_END, VMEMMAP_START ~ VMEMMAP_END, Document these RISCV64 exports above. Reviewed-by: Bagas Sanjaya <[email protected]> Signed-off-by: Xianting Tian <[email protected]> Acked-by: Baoquan He <[email protected]> Link: https://lore.kernel.org/r/[email protected] [Palmer: wrap commit text] Signed-off-by: Palmer Dabbelt <[email protected]>
1 parent 649d6b1 commit c5b4216

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

Documentation/admin-guide/kdump/vmcoreinfo.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -595,3 +595,32 @@ X2TLB
595595
-----
596596

597597
Indicates whether the crashed kernel enabled SH extended mode.
598+
599+
RISCV64
600+
=======
601+
602+
VA_BITS
603+
-------
604+
605+
The maximum number of bits for virtual addresses. Used to compute the
606+
virtual memory ranges.
607+
608+
PAGE_OFFSET
609+
-----------
610+
611+
Indicates the virtual kernel start address of the direct-mapped RAM region.
612+
613+
phys_ram_base
614+
-------------
615+
616+
Indicates the start physical RAM address.
617+
618+
MODULES_VADDR|MODULES_END|VMALLOC_START|VMALLOC_END|VMEMMAP_START|VMEMMAP_END|KERNEL_LINK_ADDR
619+
----------------------------------------------------------------------------------------------
620+
621+
Used to get the correct ranges:
622+
623+
* MODULES_VADDR ~ MODULES_END : Kernel module space.
624+
* VMALLOC_START ~ VMALLOC_END : vmalloc() / ioremap() space.
625+
* VMEMMAP_START ~ VMEMMAP_END : vmemmap space, used for struct page array.
626+
* KERNEL_LINK_ADDR : start address of Kernel link and BPF

0 commit comments

Comments
 (0)