Files
android_kernel_xiaomi_sm8450/arch/powerpc/kernel
Benjamin Herrenschmidt b970b41ea6 powerpc/64/kexec: Copy image with MMU off when possible
Currently we turn the MMU off after copying the image, and we make
sure there is no overlap between the hash table and the target pages
in that case.

That doesn't work for Radix however. In that case, the page tables
are scattered and we can't really enforce that the target of the
image isn't overlapping one of them.

So instead, let's turn the MMU off before copying the image in radix
mode. Thankfully, in radix mode, even under a hypervisor, we know we
don't have the same kind of RMA limitations that hash mode has.

While at it, also turn the MMU off early when using hash in non-LPAR
mode, that way we can get rid of the collision check completely.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Acked-by: Balbir Singh <bsingharora@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-09-23 07:54:18 +10:00
..
2016-09-13 17:37:05 +10:00
2016-06-14 13:58:26 +10:00
2016-06-21 15:30:56 +10:00
2014-11-27 09:32:58 +11:00
2016-09-20 20:57:12 +10:00
2016-09-20 20:57:12 +10:00
2015-08-06 15:10:20 +10:00
2015-03-24 13:15:52 +11:00
2016-07-15 14:57:47 +10:00
2016-06-14 13:58:26 +10:00
2015-04-07 17:15:13 +10:00
2016-08-09 16:52:00 +10:00