]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/powernv: Increase memory block size to 1GB on radix
authorAnton Blanchard <anton@samba.org>
Thu, 7 Sep 2017 05:05:51 +0000 (15:05 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 6 Oct 2017 04:50:45 +0000 (15:50 +1100)
commit597577335c3a69363a0390f775529c7c5dcb908a
treeab26139c678e18ccd591ac651e1456868ac5cb18
parent7b9e151aee84c23a18e35733a5190bf15b60faf3
powerpc/powernv: Increase memory block size to 1GB on radix

Memory hot unplug on PowerNV radix hosts is broken. Our memory block
size is 256MB but since we map the linear region with very large
pages, each pte we tear down maps 1GB.

A hot unplug of one 256MB memory block results in 768MB of memory
getting unintentionally unmapped. At this point we are likely to oops.

Fix this by increasing our memory block size to 1GB on PowerNV radix
hosts.

Fixes: 5afd8d638148 ("powerpc/mm: add radix__remove_section_mapping()")
Cc: stable@vger.kernel.org # v4.11+
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/platforms/powernv/setup.c