Commit 2e9e5d2
committed
selftests/mm: va_high_addr_switch: dynamically initialize testcases to enable LPA2 testing
JIRA: https://issues.redhat.com/browse/RHEL-130531
commit e4a4ba4
Author: Dev Jain <dev.jain@arm.com>
Date: Wed May 22 12:34:35 2024 +0530
selftests/mm: va_high_addr_switch: dynamically initialize testcases to enable LPA2 testing
Post FEAT_LPA2, the Aarch64 Linux kernel extends higher address support to
4K and 16K translation granules. To support testing this out, we need to
do away with static initialization of page size, while still maintaining
the nice array of testcases; this can be achieved by initializing and
populating the array as a stack variable, and filling in the page size and
hugepage size at runtime.
Link: https://lkml.kernel.org/r/20240522070435.773918-3-dev.jain@arm.com
Signed-off-by: Dev Jain <dev.jain@arm.com>
Suggested-by: Andrew Morton <akpm@linux-foundation.org>
Cc: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Shuah Khan <shuah@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Chunyu Hu <chuhu@redhat.com>1 parent 776dd24 commit 2e9e5d2
1 file changed
+232
-222
lines changed
0 commit comments