* Re: [PATCH v2] tools/testing/memblock: fix stale NUMA reservation tests
[not found] ` <20260415122731.1768912-1-priyanshukumarpu@gmail.com>
@ 2026-05-14 10:12 ` Mike Rapoport
0 siblings, 0 replies; only message in thread
From: Mike Rapoport @ 2026-05-14 10:12 UTC (permalink / raw)
To: priyanshukumarpu; +Cc: akpm, changyuanl, linux-mm, linux-kernel
On Wed, Apr 15, 2026 at 12:27:31PM +0000, priyanshukumarpu@gmail.com wrote:
> From: Priyanshu Kumar <priyanshukumarpu@gmail.com>
>
> memblock allocations now reserve memory with MEMBLOCK_RSRV_KERN and,
> on NUMA configurations, record the requested node on the reserved
> region. Several memblock simulator NUMA tests still expected merges
> that only worked before those reservation semantics changed, so the
> suite aborted even though the allocator behavior was correct.
>
> Update the NUMA merge expectations in the memblock_alloc_try_nid()
> and memblock_alloc_exact_nid_raw() tests to match the current reserved
> region metadata rules. For cases that should still merge, create the
> pre-existing reservation with matching nid and MEMBLOCK_RSRV_KERN
> metadata. Also strengthen the memblock_alloc_node() coverage by
> checking the newly created reserved region directly instead of
> re-reading the source memory node descriptor.
>
> Finally, drop the stale README/TODO notes that still claimed
> memblock_alloc_node() could not be tested.
>
> The memblock simulator passes again with NUMA enabled after these
> updates.
>
> Signed-off-by: Priyanshu Kumar <priyanshukumarpu@gmail.com>
> ---
> tools/testing/memblock/README | 5 +----
> tools/testing/memblock/TODO | 4 ++--
> .../memblock/tests/alloc_exact_nid_api.c | 6 +++---
> tools/testing/memblock/tests/alloc_nid_api.c | 21 +++++++++++++------
> 4 files changed, 21 insertions(+), 15 deletions(-)
I applied this while dropping the changes to alloc_node_on_correct_nid
test.
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-05-14 10:12 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <20260413091458.774770-1-priyanshukumarpu@gmail.com>
[not found] ` <20260415122731.1768912-1-priyanshukumarpu@gmail.com>
2026-05-14 10:12 ` [PATCH v2] tools/testing/memblock: fix stale NUMA reservation tests Mike Rapoport
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox