aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/include/asm/hvcall.h
diff options
context:
space:
mode:
authorGravatar Anton Blanchard <anton@samba.org> 2016-10-01 20:41:56 +1000
committerGravatar Michael Ellerman <mpe@ellerman.id.au> 2016-11-14 11:11:51 +1100
commit5246adec59458b5d325b8e1462ea9ef3ead7f6ae (patch)
treeefb962662f83e50bb5eab32a249f8938e57f5974 /arch/powerpc/include/asm/hvcall.h
parenti2c_powermac: shut up lockdep warning (diff)
downloadlinux-5246adec59458b5d325b8e1462ea9ef3ead7f6ae.tar.gz
linux-5246adec59458b5d325b8e1462ea9ef3ead7f6ae.tar.bz2
linux-5246adec59458b5d325b8e1462ea9ef3ead7f6ae.zip
powerpc/pseries: Use H_CLEAR_HPT to clear MMU hash table during kexec
An hcall was recently added that does exactly what we need during kexec - it clears the entire MMU hash table, ignoring any VRMA mappings. Try it and fall back to the old method if we get a failure. On a POWER8 box with 5TB of memory, this reduces the time it takes to kexec a new kernel from from 4 minutes to 1 minute. Signed-off-by: Anton Blanchard <anton@samba.org> Tested-by: Mahesh Salgaonkar <mahesh@linux.vnet.ibm.com> [mpe: Split into separate functions and tweak function naming] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/include/asm/hvcall.h')
-rw-r--r--arch/powerpc/include/asm/hvcall.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/powerpc/include/asm/hvcall.h b/arch/powerpc/include/asm/hvcall.h
index 708edebcf147..489748ed21b4 100644
--- a/arch/powerpc/include/asm/hvcall.h
+++ b/arch/powerpc/include/asm/hvcall.h
@@ -275,7 +275,8 @@
#define H_COP 0x304
#define H_GET_MPP_X 0x314
#define H_SET_MODE 0x31C
-#define MAX_HCALL_OPCODE H_SET_MODE
+#define H_CLEAR_HPT 0x358
+#define MAX_HCALL_OPCODE H_CLEAR_HPT
/* H_VIOCTL functions */
#define H_GET_VIOA_DUMP_SIZE 0x01