aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2022-09-01 12:02:15 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-09-04 22:39:59 +1000
commit501fe299826ead2cfa2046b5c244e36de254ec6a (patch)
tree7496874e8b670dadf0dee2b3c656be735a83b54f /tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
parentpowerpc/configs: Properly enable PAPR_SCM in pseries_defconfig (diff)
downloadlinux-dev-501fe299826ead2cfa2046b5c244e36de254ec6a.tar.xz
linux-dev-501fe299826ead2cfa2046b5c244e36de254ec6a.zip
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
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c b/tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
index 927bfae99ed9..7da515f1da72 100644
--- a/tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
+++ b/tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c
@@ -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);