summaryrefslogtreecommitdiff
path: root/arch/loongarch/include/asm/processor.h
diff options
context:
space:
mode:
authorYouling Tang <tangyouling@loongson.cn>2023-02-25 10:52:56 +0300
committerHuacai Chen <chenhuacai@loongson.cn>2023-02-25 17:12:17 +0300
commit35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2 (patch)
tree31e72ace59bcdd6b6aa3b4328419ddf94fd715f9 /arch/loongarch/include/asm/processor.h
parent3f89765d6227fe4645a91e062332b6b4eb24072c (diff)
downloadlinux-35c94fab6eee72d60d9cd8d1e6e43e1f77b1dce2.tar.xz
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/include/asm/processor.h')
0 files changed, 0 insertions, 0 deletions