linux_dsm_epyc7002/arch/powerpc/include/asm/book3s
Aneesh Kumar K.V 5dc1ef858c powerpc/mm: Use big endian Linux page tables for book3s 64
Traditionally Power server machines have used the Hashed Page Table MMU
mode. In this mode Linux manages its own tree of nested page tables,
aka. "the Linux page tables", which are not used by the hardware
directly, and software loads translations into the hash page table for
use by the hardware.

Power ISA 3.0 defines a new MMU mode, known as Radix Tree Translation,
where the hardware can directly operate on the Linux page tables.
However the hardware requires that the page tables be in big endian
format.

To accommodate this, switch the pgtable types to __be64 and add
appropriate endian conversions.

Because we will be supporting a single kernel binary that boots using
either radix or hash mode, we always store the Linux page tables big
endian, even in hash mode where they are not actually used by the
hardware.

Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
[mpe: Fix sparse errors, flesh out change log]
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2016-05-01 18:32:18 +10:00
..
32 powerpc/mm: Drop PTE_ATOMIC_UPDATES from pmd_hugepage_update() 2016-05-01 18:32:15 +10:00
64 powerpc/mm: Use big endian Linux page tables for book3s 64 2016-05-01 18:32:18 +10:00
pgtable.h powerpc/mm: Move PTE bits from generic functions to hash64 functions. 2015-12-14 15:19:08 +11:00