From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id F2DCB2737E7 for ; Tue, 29 Jul 2025 20:44:04 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753821845; cv=none; b=O8+3kmrIF0dIhOteRmpOr3NH6hPb1r+HfouAElufONwX9hQ2k0Fd3aA3CRqdpO/VCjAiUhGoykBhdyPMtwGL2sgSo4e1pCca54sOcVEHJNZi4BfXq2Y0Rd+uwsusjQBSfHUn3bJoyrhpcGYUdT9/BLyt90XEU5GAfQXnltKd1so= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1753821845; c=relaxed/simple; bh=fZy31Rc6h6y0JpXyqHzDP8yAZ7BNgTKXvTNT/kAHNvY=; h=Date:To:From:Subject:Message-Id; b=mLSscX9ONJm/ClpaOstjuCmEc/xyQWCuhpnpYXMCGHyA4REUiCe6fqbxnqZCFv+6vQ0fBKsS2EtnAvVs24VuK6BRVp/RKDhGhxqQwgokdMtGyQtqOeJP2N7qr1eEdnH20S+3CJwSS6AoLnnE0tqbK/N+LfdqQdAq7crodJ4CwXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b=Up10t12b; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.b="Up10t12b" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 83ACCC4CEEF; Tue, 29 Jul 2025 20:44:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linux-foundation.org; s=korg; t=1753821844; bh=fZy31Rc6h6y0JpXyqHzDP8yAZ7BNgTKXvTNT/kAHNvY=; h=Date:To:From:Subject:From; b=Up10t12bv5WxzQYN/Ul+yaSvFC7jIbpoDGirdtEv1+y7mB22GdsjuwqLwiWRPjMi1 XN0b9F2EXTXIkNKh6zkJo3oUqvzG5a4kSUhK8BXvluLfAZAyiPWotyv3l7hEVSn6L6 AaQ5ij/SYr5/JGRUJSkiSMivuuql6+zBEZVg/AJ0= Date: Tue, 29 Jul 2025 13:44:03 -0700 To: mm-commits@vger.kernel.org,ziy@nvidia.com,shuah@kernel.org,ryan.roberts@arm.com,ritesh.list@gmail.com,npache@redhat.com,lorenzo.stoakes@oracle.com,liam.howlett@oracle.com,dev.jain@arm.com,david@redhat.com,baolin.wang@linux.alibaba.com,baohua@kernel.org,aboorvad@linux.ibm.com,donettom@linux.ibm.com,akpm@linux-foundation.org From: Andrew Morton Subject: + selftests-mm-add-support-to-test-4pb-va-on-ppc64.patch added to mm-new branch Message-Id: <20250729204404.83ACCC4CEEF@smtp.kernel.org> Precedence: bulk X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: The patch titled Subject: selftests/mm: add support to test 4PB VA on PPC64 has been added to the -mm mm-new branch. Its filename is selftests-mm-add-support-to-test-4pb-va-on-ppc64.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/selftests-mm-add-support-to-test-4pb-va-on-ppc64.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Donet Tom Subject: selftests/mm: add support to test 4PB VA on PPC64 Date: Tue, 29 Jul 2025 11:03:58 +0530 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. Link: https://lkml.kernel.org/r/20250729053403.1071807-3-aboorvad@linux.ibm.com Co-developed-by: Aboorva Devarajan Signed-off-by: Aboorva Devarajan Signed-off-by: Donet Tom Reviewed-by: Dev Jain Acked-by: David Hildenbrand Reviewed-by: Zi Yan Cc: Baolin Wang Cc: Barry Song Cc: Liam Howlett Cc: Lorenzo Stoakes Cc: Mariano Pache Cc: "Ritesh Harjani (IBM)" Cc: Ryan Roberts Cc: Shuah Khan Signed-off-by: Andrew Morton --- tools/testing/selftests/mm/virtual_address_range.c | 11 +++++++++++ 1 file changed, 11 insertions(+) --- a/tools/testing/selftests/mm/virtual_address_range.c~selftests-mm-add-support-to-test-4pb-va-on-ppc64 +++ a/tools/testing/selftests/mm/virtual_address_range.c @@ -44,12 +44,18 @@ * On Arm64 the address space is 256TB and support for * high mappings up to 4PB virtual address space has * been added. + * + * On PowerPC64, the address space up to 128TB can be + * mapped without a hint. Addresses beyond 128TB, up to + * 4PB, can be mapped with a hint. + * */ #define NR_CHUNKS_128TB ((128 * SZ_1TB) / MAP_CHUNK_SIZE) /* Number of chunks for 128TB */ #define NR_CHUNKS_256TB (NR_CHUNKS_128TB * 2UL) #define NR_CHUNKS_384TB (NR_CHUNKS_128TB * 3UL) #define NR_CHUNKS_3840TB (NR_CHUNKS_128TB * 30UL) +#define NR_CHUNKS_3968TB (NR_CHUNKS_128TB * 31UL) #define ADDR_MARK_128TB (1UL << 47) /* First address beyond 128TB */ #define ADDR_MARK_256TB (1UL << 48) /* First address beyond 256TB */ @@ -59,6 +65,11 @@ #define HIGH_ADDR_SHIFT 49 #define NR_CHUNKS_LOW NR_CHUNKS_256TB #define NR_CHUNKS_HIGH NR_CHUNKS_3840TB +#elif defined(__PPC64__) +#define HIGH_ADDR_MARK ADDR_MARK_128TB +#define HIGH_ADDR_SHIFT 48 +#define NR_CHUNKS_LOW NR_CHUNKS_128TB +#define NR_CHUNKS_HIGH NR_CHUNKS_3968TB #else #define HIGH_ADDR_MARK ADDR_MARK_128TB #define HIGH_ADDR_SHIFT 48 _ Patches currently in -mm which might be from donettom@linux.ibm.com are mm-selftests-fix-incorrect-pointer-being-passed-to-mark_range.patch selftests-mm-add-support-to-test-4pb-va-on-ppc64.patch selftest-mm-fix-ksm_funtional_test-failures.patch mm-selftests-fix-split_huge_page_test-failure-on-systems-with-64kb-page-size.patch