powerpc/64s: move the hash fault handling logic to C
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:15 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:08 +0000 (00:02 +1100)
commita4922f5442e7e6ce85da304e224d940edec2f1fb
treee66d67c74cd372f72142ddf7c148504ebd5470ef
parent36f0114140eef53e931592b65bdf8bb61ffac1f8
powerpc/64s: move the hash fault handling logic to C

The fault handling still has some complex logic particularly around
hash table handling, in asm. Implement most of this in C.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-6-npiggin@gmail.com
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/kernel/exceptions-64s.S
arch/powerpc/mm/book3s64/hash_utils.c