powerpc/mm/hash: Compute the segment size correctly for ISA 3.0
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Thu, 19 May 2016 07:54:30 +0000 (13:24 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Wed, 8 Jun 2016 04:36:22 +0000 (14:36 +1000)
commit3b6d1eb7ea65f4aa64115cf9ba02c190e5c9f6de
treeea983092d82099c94831e991c45b502e60843028
parent9690c15742688e9cb5ee4aa0b08e458551ceea13
powerpc/mm/hash: Compute the segment size correctly for ISA 3.0

PowerISA 3.0 encodes the segment size in the second half of hash page
table entry. Update hpte_decode() accordingly.

Fixes: 50de596de8be ("powerpc/mm/hash: Add support for Power9 Hash")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/hash_native_64.c