]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/book3s-64: Move HPTE-related bits in PTE to upper end
authorPaul Mackerras <paulus@samba.org>
Mon, 22 Feb 2016 02:41:17 +0000 (13:41 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 29 Feb 2016 09:34:39 +0000 (20:34 +1100)
commit04eee05360c8175758b4ec58b28cc0cb2c9ba170
tree537e53f4b3bbcc74773d057843bd3aa97d3eee89
parenta04a27af5ea4a749d5a7a94124a9888035325bfd
powerpc/mm/book3s-64: Move HPTE-related bits in PTE to upper end

This moves the _PAGE_HASHPTE, _PAGE_F_GIX and _PAGE_F_SECOND fields in
the Linux PTE on 64-bit Book 3S systems to the most significant byte.
Of the 5 bits, one is a software-use bit and the other four are
reserved bit positions in the PowerISA v3.0 radix PTE format.
Using these bits is OK because these bits are all to do with tracking
the HPTE(s) associated with the Linux PTE, and therefore won't be
needed in radix mode.  This frees up bit positions in the lower two
bytes.

Signed-off-by: Paul Mackerras <paulus@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/hash.h
arch/powerpc/mm/hugetlbpage-hash64.c