]> 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)
commitf71ea41b9f51182de58e97a73325f3b12c31d49f
tree537e53f4b3bbcc74773d057843bd3aa97d3eee89
parent8d17cb40e98bcbac9db8b18f868aea857ef26cb0
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