]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/hash: Add some SLB debugging tests
authorNicholas Piggin <npiggin@gmail.com>
Tue, 2 Oct 2018 14:27:59 +0000 (00:27 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 14 Oct 2018 07:04:09 +0000 (18:04 +1100)
commit3a2932425c1094fda68cbd35cd44dc5212eff57a
tree4b72c1e73035e40274e5c79f3b81766af4831462
parent3c2fdfcecae1fdce6530332f65b85b2b3b99c6eb
powerpc/64s/hash: Add some SLB debugging tests

This adds CONFIG_DEBUG_VM checks to ensure:
  - The kernel stack is in the SLB after it's flushed and bolted.
  - We don't insert an SLB for an address that is aleady in the SLB.
  - The kernel SLB miss handler does not take an SLB miss.

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