[PATCH v2 1/2] powerpc/mm: Cleanup memory block size probing

Reza Arbab arbab at linux.ibm.com
Wed Jun 14 05:53:16 AEST 2023

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 at 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 <arbab at linux.ibm.com>

Reza Arbab

More information about the Linuxppc-dev mailing list