]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/hash: remove the vmalloc segment from the bolted SLB
authorNicholas Piggin <npiggin@gmail.com>
Fri, 14 Sep 2018 15:30:48 +0000 (01:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Sep 2018 11:59:41 +0000 (21:59 +1000)
commit4ce147f543ab18902e3941f7c2842ed887f13f03
tree66f42aa341719834f66ad7a563074840b944e261
parent03356ea8a6f10da86ec72b7d9e626374b24ae4b6
powerpc/64s/hash: remove the vmalloc segment from the bolted SLB

Remove the vmalloc segment from bolted SLBEs. This is not required to
be bolted, and seems like it was added to help pre-load the SLB on
context switch. However there are now other segments like the vmemmap
segment and non-zero node memory that often take misses after a context
switch, so it is better to solve this in a more general way.

A subsequent change will track free SLB entries and uses those rather
than round-robin overwrite valid entries, which makes it far less
likely for kernel SLBEs to be evicted after they are installed.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/mm/slb.c