]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/8xx: Make pinning of ITLBs optional
authorChristophe Leroy <christophe.leroy@c-s.fr>
Wed, 12 Jul 2017 10:08:51 +0000 (12:08 +0200)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 15 Aug 2017 12:55:53 +0000 (22:55 +1000)
commitc861a1b98686db571cda27ffb1d8a9e6aa0527a9
tree9115e3dc598c95a3750fd9d699b5a38f873ea782
parent8f5d0ca6430fd74d53ac337f4f915c3d8fb3e628
powerpc/8xx: Make pinning of ITLBs optional

As stated in a comment in head_8xx.S, today we "Always pin the first
8 MB ITLB to prevent ITLB misses while mucking around with SRR0/SRR1
in asm".

This issue has just been cleared by the preceding patch, therefore
we can make this pinning optional (on by default) and independent
of DATA pinning.

This patch also makes pinning of IMMR independent of pinning of DATA.

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/Kconfig
arch/powerpc/kernel/head_8xx.S
arch/powerpc/mm/8xx_mmu.c