]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit - arch/powerpc/mm/book3s64/slb.c
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)
commit85376e2a17ec152e76f6a87fcb66332a68926218
tree66f42aa341719834f66ad7a563074840b944e261
parent8b92887ced2e3fce223412487f99d4ef3f07b490
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