On 3/24/23 03:19, Andrew Morton wrote:
On Thu, 23 Mar 2023 16:22:38 +0530 Chaitanya S Prakash chaitanyas.prakash@arm.com wrote:
The va_128TBswitch selftest is designed and implemented for PowerPC and x86 architectures which support a 128TB switch, up to 256TB of virtual address space and hugepage sizes of 16MB and 2MB respectively. Arm64 platforms on the other hand support a 256Tb switch, up to 4PB of virtual address space and a default hugepage size of 512MB when 64k pagesize is enabled.
These architectural differences require introducing support for arm64 platforms, after which a more generic naming convention is suggested. The in code comments are amended to provide a more platform independent explanation of the working of the code and nr_hugepages are configured as required. Finally, the file running the testcase is modified in order to prevent skipping of hugetlb testcases of va_high_addr_switch.
This series has been tested on 6.3.0-rc3 kernel, both on arm64 and x86 platforms.
Would it make sense to get this series into the ARM tree, so it sees more testing on ARM
Rather, it will be better for this series to go via the mm tree instead (via linux-next first) for better coverage on all platforms, this being a common test.