]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/hash: Use POWER6 SLBIA IH=1 variant in switch_slb
authorNicholas Piggin <npiggin@gmail.com>
Fri, 14 Sep 2018 15:30:49 +0000 (01:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Sep 2018 11:59:41 +0000 (21:59 +1000)
commit916cf60dc3e875264095358294302c5fbacb86b0
tree6ad0d69f47e7b6ac24dc98579a7e91cb12c8ac18
parent4ce147f543ab18902e3941f7c2842ed887f13f03
powerpc/64s/hash: Use POWER6 SLBIA IH=1 variant in switch_slb

The SLBIA IH=1 hint will remove all non-zero SLBEs, but only
invalidate ERAT entries associated with a class value of 1, for
processors that support the hint (e.g., POWER6 and newer), which
Linux assigns to user addresses.

This prevents kernel ERAT entries from being invalidated when
context switchig (if the thread faulted in more than 8 user SLBEs).

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slb.c