Re: [PATCH v6 5/7] ACPI/NUMA: Return memblk modification state from numa_fill_memblks()

From: Alison Schofield
Date: Tue Apr 30 2024 - 11:49:19 EST


On Tue, Apr 30, 2024 at 11:21:58AM +0200, Robert Richter wrote:
> When registering a memory range a possibly overlapping memory block
> will be extended instead of creating a new one. If both ranges exactly
> overlap, the blocks remain unchanged and are just reused. The
> information if a memblock was extended is useful for diagnostics.
>
> Change return code of numa_fill_memblks() to also report if memblocks
> have been modified.


Reviewed-by: Alison Schofield <alison.schofield@xxxxxxxxx>


>
> Link: https://lore.kernel.org/all/ZiqnbD0CB9WUL1zu@aschofie-mobl2/T/#u
> Cc: Alison Schofield <alison.schofield@xxxxxxxxx>
> Signed-off-by: Robert Richter <rrichter@xxxxxxx>
> ---
> arch/x86/mm/numa.c | 33 ++++++++++++++++++---------------
> drivers/acpi/numa/srat.c | 5 +++--
> 2 files changed, 21 insertions(+), 17 deletions(-)

snip