powerpc/ptdump: Display size of BATs
authorChristophe Leroy <christophe.leroy@csgroup.eu>
Tue, 19 May 2020 05:48:52 +0000 (05:48 +0000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 26 May 2020 12:22:18 +0000 (22:22 +1000)
commit6b30830e2003d9d77696084ebe2fc19dbe7d6f70
treeb8def5f7a86dfebb18cfcc0bf24ed4da67217e1a
parent3af4786eb429b2df76cbd7ce3bae21467ac3e4fb
powerpc/ptdump: Display size of BATs

Display the size of areas mapped with BATs.

For that, the size display for pages is refactorised.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/acf764eee231f0358e66ca9e819f052804055acc.1589866984.git.christophe.leroy@csgroup.eu
arch/powerpc/mm/ptdump/bats.c
arch/powerpc/mm/ptdump/ptdump.c
arch/powerpc/mm/ptdump/ptdump.h