OSDN Git Service

pseries: Fix 64 bit logical memory block panic
authorAnton Blanchard <anton@ozlabs.org>
Wed, 15 Jul 2020 00:08:20 +0000 (10:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Thu, 16 Jul 2020 03:12:45 +0000 (13:12 +1000)
commit89c140bbaeee7a55ed0360a88f294ead2b95201b
tree1f201f5a9da8a01f2e1d2715c5dfb0d0f9117d04
parent29d9407e1037868b59d12948d42ad3ef58fc3a5a
pseries: Fix 64 bit logical memory block panic

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
arch/powerpc/platforms/pseries/hotplug-memory.c