]> www.infradead.org Git - users/jedix/linux-maple.git/commit
selftests/mm: change NR_CHUNKS_HIGH for aarch64
authorChaitanya S Prakash <chaitanyas.prakash@arm.com>
Thu, 23 Mar 2023 06:01:20 +0000 (11:31 +0530)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:40 +0000 (16:02 -0700)
commit07f3a286d14b3f0183231b3f3c9b3968695c455b
tree6f794657a9514a2d32443fc71ce7184ca16d9e03
parent9a408b90bd87b4e03b14b3d54bd2c8c6092fbe14
selftests/mm: change NR_CHUNKS_HIGH for aarch64

Although there is a provision for 52 bit VA on arm64 platform, it remains
unutilised and higher addresses are not allocated.  In order to
accommodate 4PB [2^52] virtual address space where supported,
NR_CHUNKS_HIGH is changed accordingly.

Array holding addresses is changed from static allocation to dynamic
allocation to accommodate its voluminous nature which otherwise might
overflow the stack.

Link: https://lkml.kernel.org/r/20230323060121.1175830-3-chaitanyas.prakash@arm.com
Signed-off-by: Chaitanya S Prakash <chaitanyas.prakash@arm.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/virtual_address_range.c