Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems

Systems using the hash MMU with a 4K page size don't support 4PB address
space, so skip the test because the bug it tests for can't be triggered.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220901020215.254097-1-mpe@ellerman.id.au

+2
+2
tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
··· 112 112 // This tests a hash MMU specific bug. 113 113 FAIL_IF(using_hash_mmu(&hash_mmu)); 114 114 SKIP_IF(!hash_mmu); 115 + // 4K kernels don't support 4PB address space 116 + SKIP_IF(sysconf(_SC_PAGESIZE) < 65536); 115 117 116 118 page_size = sysconf(_SC_PAGESIZE); 117 119