powerpc/64s/hash: Fix stab_rr off by one initialization
authorNicholas Piggin <npiggin@gmail.com>
Fri, 14 Sep 2018 15:30:45 +0000 (01:30 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Sep 2018 11:59:41 +0000 (21:59 +1000)
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>
arch/powerpc/mm/slb.c

index e941189d9bd6386f087550507f69aba65c3b64cc..07ece013856b5ae8b281116a8fecef046aa1065c 100644 (file)
@@ -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;