]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems
authorMichael Ellerman <mpe@ellerman.id.au>
Thu, 1 Sep 2022 02:02:15 +0000 (12:02 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 4 Sep 2022 12:39:59 +0000 (22:39 +1000)
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
tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c

index 927bfae99ed90b8b8c8936ab65eb20348ce6202c..7da515f1da723c2d9f82357edf0892ceb66d7cb1 100644 (file)
@@ -112,6 +112,8 @@ static int test(void)
        // This tests a hash MMU specific bug.
        FAIL_IF(using_hash_mmu(&hash_mmu));
        SKIP_IF(!hash_mmu);
+       // 4K kernels don't support 4PB address space
+       SKIP_IF(sysconf(_SC_PAGESIZE) < 65536);
 
        page_size = sysconf(_SC_PAGESIZE);