diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2018-09-14 17:30:45 +0200 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2018-09-19 13:59:41 +0200 |
commit | 09b4438db13fa83b6219aee5993711a2aa2a0c64 (patch) | |
tree | e6b646b051a8f57a6ecefcdb9cb80b0f2fcd13ab /arch/powerpc/mm/slb.c | |
parent | powernv/pseries: consolidate code for mce early handling. (diff) | |
download | linux-09b4438db13fa83b6219aee5993711a2aa2a0c64.tar.xz linux-09b4438db13fa83b6219aee5993711a2aa2a0c64.zip |
powerpc/64s/hash: Fix stab_rr off by one initialization
This causes SLB alloation to start 1 beyond the start of the SLB.
There is no real problem because after it wraps it stats behaving
properly, it's just surprisig to see when looking at SLB traces.
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'arch/powerpc/mm/slb.c')
-rw-r--r-- | arch/powerpc/mm/slb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/slb.c b/arch/powerpc/mm/slb.c index e941189d9bd6..07ece013856b 100644 --- a/arch/powerpc/mm/slb.c +++ b/arch/powerpc/mm/slb.c @@ -425,7 +425,7 @@ void slb_initialize(void) #endif } - get_paca()->stab_rr = SLB_NUM_BOLTED; + get_paca()->stab_rr = SLB_NUM_BOLTED - 1; lflags = SLB_VSID_KERNEL | linear_llp; vflags = SLB_VSID_KERNEL | vmalloc_llp; |