powerpc/mm/book3s64: Use 256M as the upper limit with coherent device memory attached
authorAneesh Kumar K.V <aneesh.kumar@linux.ibm.com>
Mon, 28 Aug 2023 07:46:58 +0000 (13:16 +0530)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 28 Aug 2023 12:40:58 +0000 (22:40 +1000)
commit4c33bf147249ebbf3dded016996a8a24c5737254
tree0ca95a76d09ae0d1961a2ad1cf77f430e4cb1eea
parentf1424755db913c5971686537381588261cdfd1ee
powerpc/mm/book3s64: Use 256M as the upper limit with coherent device memory attached

Commit 4d15721177d5 ("powerpc/mm: Cleanup memory block size probing")
used 256MB as the memory block size when we have
ibm,coherent-device-memory device tree node present. Instead of
returning with 256MB memory block size, continue to check the rest of
the memory regions and make sure we can still map them using a 256MB
memory block size.

Fixes: 4d15721177d5 ("powerpc/mm: Cleanup memory block size probing")
Signed-off-by: "Aneesh Kumar K.V" <aneesh.kumar@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20230828074658.59553-2-aneesh.kumar@linux.ibm.com
arch/powerpc/mm/init_64.c