linux/arch/loongarch
Youling Tang 35c94fab6e LoongArch: kdump: Add crashkernel=YM handling
When the kernel crashkernel parameter is specified with just a size,
we are supposed to allocate a region from RAM to store the crashkernel,
"crashkernel=512M" would be recommended for kdump.

Fix this by lifting similar code from x86, importing it to LoongArch
with LoongArch specific parameters added. We allocate the crashkernel
region from the first 4GB of physical memory (because SWIOTLB should be
allocated below 4GB). However, LoongArch currently does not implement
crashkernel_low and crashkernel_high the same as x86.

When X is not specified, crash_base defaults to 0 (crashkernel=YM@XM).

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
Signed-off-by: Huacai Chen <chenhuacai@loongson.cn>
2023-02-25 22:12:17 +08:00
..
boot loongarch: efi: enable generic EFI compressed boot 2022-09-20 09:50:31 +02:00
configs LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00
include LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00
kernel LoongArch: kdump: Add crashkernel=YM handling 2023-02-25 22:12:17 +08:00
lib LoongArch: Use alternative to optimize libraries 2022-12-14 08:36:11 +08:00
mm LoongArch: Add la_abs macro implementation 2023-02-25 22:12:16 +08:00
net LoongArch: BPF: Add BPF exception tables 2022-12-14 08:36:11 +08:00
pci LoongArch: Add FDT booting support from efi system table 2022-12-14 08:41:53 +08:00
power LoongArch: Add JUMP_VIRT_ADDR macro implementation to avoid using la.abs 2023-02-25 22:12:16 +08:00
vdso LoongArch: Fix build warnings in VDSO 2022-08-25 19:34:59 +08:00
Kbuild LoongArch: Add BPF JIT support 2022-10-12 16:36:20 +08:00
Kconfig LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00
Kconfig.debug LoongArch: Add prologue unwinder support 2022-08-12 13:10:11 +08:00
Makefile LoongArch: kdump: Add single kernel image implementation 2023-02-25 22:12:17 +08:00