powerpc/mm: Add a parameter to disable 1TB segs
authorOliver O'Halloran <oohall@gmail.com>
Tue, 5 Jul 2016 01:43:21 +0000 (11:43 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 5 Jul 2016 13:58:54 +0000 (23:58 +1000)
commitfaf7882962e78a4c8ebb846f4520c858ee184dca
tree968e11ff8ad806d4b2e4105c181460033e295df9
parent799010244685334b34e674d354a1a71a3a6b6148
powerpc/mm: Add a parameter to disable 1TB segs

This patch adds the kernel command line parameter "no_tb_segs" which
forces the kernel to use 256MB rather than 1TB segments. Forcing the use
of 256MB segments makes it considerably easier to test code that depends
on an SLB miss occurring.

Suggested-by: Michael Neuling <mikey@neuling.org>
Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Documentation/kernel-parameters.txt
arch/powerpc/mm/hash_utils_64.c