]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/mm/hash: Use the correct PPP mask when updating HPTE
authorAneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Wed, 8 Jun 2016 14:25:55 +0000 (19:55 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 14 Jun 2016 03:54:51 +0000 (13:54 +1000)
commitd3cccec5691c223f161944edf2a680b9d43389f6
treece444d73a73f96b8d1332b25b12af770e3ada2f5
parentcdf186e0da1fccf91a7adbf6a2fd87d277a0a0ff
powerpc/mm/hash: Use the correct PPP mask when updating HPTE

With commit ba6d5cb3297b5 "powerpc/mm: Update _PAGE_KERNEL_RO" we now
use all the three PPP bits. The top bit is now used to have a PPP value
of 0b110 which will be mapped to kernel read only. When updating the
hpte entry use right mask such that we update the 63rd bit (top 'P' bit)
too.

Prior to ba6d5cb3297b we didn't support KERNEL_RO at all (it was ==
KERNEL_RW), so this isn't a regression as such.

Fixes: ba6d5cb3297b ("powerpc/mm: Update _PAGE_KERNEL_RO")
Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/include/asm/book3s/64/mmu-hash.h
arch/powerpc/mm/hash_native_64.c