]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/fadump: Do not use hugepages when fadump is active
authorHari Bathini <hbathini@linux.vnet.ibm.com>
Tue, 10 Apr 2018 13:41:31 +0000 (19:11 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 3 May 2018 13:09:25 +0000 (23:09 +1000)
commit5f3c20fd4ffc70d761121a4ec283e2f028fa9d77
tree4181bb1f936224650a0c38e501cbbfdb56f23050
parent1926789bed8d593cad4f1e80a1645e7b8b6fe7ef
powerpc/fadump: Do not use hugepages when fadump is active

FADump capture kernel boots in restricted memory environment preserving
the context of previous kernel to save vmcore. Supporting hugepages in
such environment makes things unnecessarily complicated, as hugepages
need memory set aside for them. This means most of the capture kernel's
memory is used in supporting hugepages. In most cases, this results in
out-of-memory issues while booting FADump capture kernel. But hugepages
are not of much use in capture kernel whose only job is to save vmcore.
So, disabling hugepages support, when fadump is active, is a reliable
solution for the out of memory issues. Introducing a flag variable to
disable HugeTLB support when fadump is active.

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
Reviewed-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/page.h
arch/powerpc/kernel/fadump.c
arch/powerpc/mm/hash_utils_64.c
arch/powerpc/mm/hugetlbpage.c