aboutsummaryrefslogtreecommitdiff
path: root/arch/loongarch/kernel/Makefile
diff options
context:
space:
mode:
authorGravatar Youling Tang <tangyouling@loongson.cn> 2023-02-25 15:52:56 +0800
committerGravatar Huacai Chen <chenhuacai@loongson.cn> 2023-02-25 22:12:17 +0800
commit35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2 (patch)
tree31e72ace59bcdd6b6aa3b4328419ddf94fd715f9 /arch/loongarch/kernel/Makefile
parentLoongArch: kdump: Add single kernel image implementation (diff)
downloadlinux-35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2.tar.gz
linux-35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2.tar.bz2
linux-35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2.zip
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>
Diffstat (limited to 'arch/loongarch/kernel/Makefile')
0 files changed, 0 insertions, 0 deletions