Re: [PATCH v2 2/7] selftests/mm: Add support to test 4PB VA on PPC64

From: Dev Jain
Date: Thu Jul 03 2025 - 04:06:24 EST



On 03/07/25 11:36 am, Aboorva Devarajan wrote:
From: Donet Tom <donettom@xxxxxxxxxxxxx>

PowerPC64 supports a 4PB virtual address space, but this test was
previously limited to 512TB. This patch extends the coverage up to
the full 4PB VA range on PowerPC64.

Memory from 0 to 128TB is allocated without an address hint, while
allocations from 128TB to 4PB use a hint address.

Signed-off-by: Donet Tom <donettom@xxxxxxxxxxxxx>
Signed-off-by: Aboorva Devarajan <aboorvad@xxxxxxxxxxxxx>
---

Would have saved us a lot of time if we had figured out that
the problem wasn't the gap logic but the large VA space support,
anyhow digging down that rabbit hole gave me some knowledge
on VMA allocation stuff : )

Reviewed-by: Dev Jain <dev.jain@xxxxxxx>