]> 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>
Tue, 28 Mar 2023 23:25:16 +0000 (16:25 -0700)
commita1dd68391cda54fde32eec766e6af8b426fbc2bf
treecf5306af59a47aef3ada318a9350f27afa7a007a
parent5bfce85f97e7f7984359afdfec1c9d1a4a0a8e96
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