]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:14 +0000 (11:56 +0200)
commit5a33625b5cbaee945cc4adbf68d4b2e7083c509e
tree7d2d49237ea274311609800b215d6dbe75693c6b
parentc054568279ef13b73dc3ad25c89f7e0018be2a24
powerpc/powernv: Increase memory block size to 1GB on radix

commit 53ecde0b9126ff140abe3aefd7f0ec64d6fa36b0 upstream.

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: 4b5d62ca17a1 ("powerpc/mm: add radix__remove_section_mapping()")
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/powernv/setup.c