]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary
authorNicholas Piggin <npiggin@gmail.com>
Thu, 9 Nov 2017 17:27:38 +0000 (04:27 +1100)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 13 Nov 2017 12:35:06 +0000 (23:35 +1100)
commita586b3922adb2f38dc0486474dcc4a8a8f4d0643
treef8d5512981cebf04772e1a15030e3bae3599ee7e
parentfa1f13444136d40bd5e7ca375685c064ee844add
powerpc/64s/hash: Allow MAP_FIXED allocations to cross 128TB boundary

While mapping hints with a length that cross 128TB are disallowed,
MAP_FIXED allocations that cross 128TB are allowed. These are failing
on hash (on radix they succeed). Add an additional case for fixed
mappings to expand the addr_limit when crossing 128TB.

Fixes: 13c0cf9060ea ("powerpc/mm: Enable mappings above 128TB")
Cc: stable@vger.kernel.org # v4.12+
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Aneesh Kumar K.V <aneesh.kumar@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/mm/slice.c