pseries: Fix 64 bit logical memory block panic
authorAnton Blanchard <anton@ozlabs.org>
Wed, 15 Jul 2020 00:08:20 +0000 (10:08 +1000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 09:02:09 +0000 (11:02 +0200)
commitc1e2991705a21d402f3ffc7c5a72a2d5fca526eb
tree4b4db30dbee0fb1ce2ab5960e0af7edd5a440b4f
parent82ac16572b3706168af4cab28c303ecac7b65aaf
pseries: Fix 64 bit logical memory block panic

commit 89c140bbaeee7a55ed0360a88f294ead2b95201b upstream.

Booting with a 4GB LMB size causes us to panic:

  qemu-system-ppc64: OS terminated: OS panic:
      Memory block size not suitable: 0x0

Fix pseries_memory_block_size() to handle 64 bit LMBs.

Cc: stable@vger.kernel.org
Signed-off-by: Anton Blanchard <anton@ozlabs.org>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200715000820.1255764-1-anton@ozlabs.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/powerpc/platforms/pseries/hotplug-memory.c