powerpc/mm: dump block address translation on book3s/32
authorChristophe Leroy <christophe.leroy@c-s.fr>
Mon, 3 Dec 2018 17:40:25 +0000 (17:40 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 4 Dec 2018 08:46:49 +0000 (19:46 +1100)
commit7c91efce1608325634494b25ff6491320208e457
tree66ab4478666bb188b9836133c79da325a7b4439c
parent0261a508c9fcb33e60f09cac42032f85c31e2039
powerpc/mm: dump block address translation on book3s/32

This patch adds a debugfs file to dump block address translation:

~# cat /sys/kernel/debug/powerpc/block_address_translation
---[ Instruction Block Address Translations ]---
0:         -
1:         -
2: 0xc0000000-0xcfffffff 0x00000000 Kernel EXEC coherent
3: 0xd0000000-0xdfffffff 0x10000000 Kernel EXEC coherent
4:         -
5:         -
6:         -
7:         -

---[ Data Block Address Translations ]---
0:         -
1:         -
2: 0xc0000000-0xcfffffff 0x00000000 Kernel RW coherent
3: 0xd0000000-0xdfffffff 0x10000000 Kernel RW coherent
4:         -
5:         -
6:         -
7:         -

Signed-off-by: Christophe Leroy <christophe.leroy@c-s.fr>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/32/mmu-hash.h
arch/powerpc/mm/Makefile
arch/powerpc/mm/dump_bats.c [new file with mode: 0644]