powerpc/mm/64: Document the sizes of/sizes mapped by Pxx_INDEX_SIZE
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 14 Mar 2019 12:54:53 +0000 (23:54 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 20 Apr 2019 12:02:11 +0000 (22:02 +1000)
commiteea86aa4171d4960f0fcdc99dab358c224d53ffe
tree38e0d193c517da93546adf865cb3a16f9593488e
parent6c84f8c5cbfb4bf728f88296bc035c4a401c3423
powerpc/mm/64: Document the sizes of/sizes mapped by Pxx_INDEX_SIZE

Add comments describing the size in bytes of the various levels of the
page table tree, and the size of the virtual address space mapped by
each level, to make it clear what the sizes are without having to also
look up other definitions.

The code that calculates the sizes actually uses sizeof(pgd_t) etc.,
so in theory these comments could skew vs the code, but the size of
pgd_t etc. is unlikely to change very often.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash-4k.h
arch/powerpc/include/asm/book3s/64/hash-64k.h
arch/powerpc/include/asm/book3s/64/radix-4k.h
arch/powerpc/include/asm/book3s/64/radix-64k.h