]> git.karo-electronics.de Git - karo-tx-linux.git/commit
powerpc/kexec: Speedup kexec hash PTE tear down
authorMichael Neuling <mikey@neuling.org>
Mon, 10 May 2010 20:28:26 +0000 (20:28 +0000)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:58 +0000 (12:46 -0400)
commitc416d7d1835035f3a32493e6269782aec5b10490
treeac2867eb6deb8e69cf66aaa3d3b1eed9675c1ab5
parentf30fad797f0b1eb8d1979e2fee7892fb01fca0f9
powerpc/kexec: Speedup kexec hash PTE tear down

commit d504bed676caad29a3dba3d3727298c560628f5c upstream.

Currently for kexec the PTE tear down on 1TB segment systems normally
requires 3 hcalls for each PTE removal. On a machine with 32GB of
memory it can take around a minute to remove all the PTEs.

This optimises the path so that we only remove PTEs that are valid.
It also uses the read 4 PTEs at once HCALL.  For the common case where
a PTEs is invalid in a 1TB segment, this turns the 3 HCALLs per PTE
down to 1 HCALL per 4 PTEs.

This gives an > 10x speedup in kexec times on PHYP, taking a 32GB
machine from around 1 minute down to a few seconds.

Signed-off-by: Michael Neuling <mikey@neuling.org>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
arch/powerpc/platforms/pseries/lpar.c