diff mbox series

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

Message ID 20220901020215.254097-1-mpe@ellerman.id.au (mailing list archive)
State Accepted
Headers show
Series selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems | expand

Checks

Context Check Description
snowpatch_ozlabs/github-powerpc_ppctests success Successfully ran 10 jobs.
snowpatch_ozlabs/github-powerpc_selftests success Successfully ran 10 jobs.
snowpatch_ozlabs/github-powerpc_clang success Successfully ran 6 jobs.
snowpatch_ozlabs/github-powerpc_kernel_qemu success Successfully ran 23 jobs.
snowpatch_ozlabs/github-powerpc_sparse success Successfully ran 4 jobs.

Commit Message

Michael Ellerman Sept. 1, 2022, 2:02 a.m. UTC
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>
---
 tools/testing/selftests/powerpc/mm/large_vm_gpr_corruption.c | 2 ++
 1 file changed, 2 insertions(+)

Comments

Michael Ellerman Sept. 9, 2022, 12:06 p.m. UTC | #1
On Thu, 1 Sep 2022 12:02:15 +1000, Michael Ellerman wrote:
> 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.
> 
> 

Applied to powerpc/next.

[1/1] selftests/powerpc: Skip 4PB test on 4K PAGE_SIZE systems
      https://git.kernel.org/powerpc/c/501fe299826ead2cfa2046b5c244e36de254ec6a

cheers
diff mbox series

Patch

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);