On Fri, Jun 09, 2023 at 11:38:50AM +0530, Aneesh Kumar K.V wrote:
Parse the device tree in early init to find the memory block size to be
used by the kernel. Consolidate the memory block size device tree parsing
to one helper and use that on both powernv and pseries. We still want to
use machine-specific callback because on all machine types other than
powernv and pseries we continue to return MIN_MEMORY_BLOCK_SIZE.

pseries_memory_block_size used to look for the second memory
block (memory@x) to determine the memory_block_size value. This patch
changed that to look at all memory blocks and make sure we can map them all
correctly using the computed memory block size value.

Reviewed-by: Reza Arbab <ar...@linux.ibm.com>

--
Reza Arbab

Reply via email to