linux-uconsole/tools/testing/selftests/powerpc
Michael Ellerman de9ddf8140 selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable
[ Upstream commit cd4a6f3ab4 ]

The subpage_prot syscall is only functional when the system is using
the Hash MMU. Since commit 5b2b807147 ("powerpc/mm: Invalidate
subpage_prot() system call on radix platforms") it returns ENOENT when
the Radix MMU is active. Currently this just makes the test fail.

Additionally the syscall is not available if the kernel is built with
4K pages, or if CONFIG_PPC_SUBPAGE_PROT=n, in which case it returns
ENOSYS because the syscall is missing entirely.

So check explicitly for ENOENT and ENOSYS and skip if we see either of
those.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-05-30 07:49:03 +02:00
..
benchmarks powerpc/selftest: Add gettimeofday() benchmark 2015-10-01 16:52:02 +10:00
copyloops powerpc updates for 4.1 2015-04-16 13:53:32 -05:00
dscr selftests/powerpc: Add gitignore file for the new DSCR tests 2015-06-07 19:38:20 +10:00
mm selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable 2018-05-30 07:49:03 +02:00
pmu selftest/powerpc: Wrong PMC initialized in pmc56_overflow test 2017-01-26 08:23:50 +01:00
primitives selftests/powerpc: Fix build failure of load_unaligned_zeropad test 2015-10-13 15:08:37 +11:00
stringloops selftests: Add install support for the powerpc tests 2015-03-19 12:38:51 -06:00
switch_endian selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
syscalls selftests/powerpc: Add tests of unmuxed IPC calls 2015-10-15 20:32:03 +11:00
tm selftests/powerpc: Fix TM resched DSCR test with some compilers 2018-04-13 19:50:08 +02:00
vphn selftests/powerpc: Add install support to more powerpc tests 2015-06-02 16:54:49 +10:00
harness.c selftest/powerpc: Fix false failures for skipped tests 2017-12-16 10:33:51 +01:00
Makefile selftests/powerpc: Sort the list of SUB_DIRS to build 2015-10-15 20:32:03 +11:00
subunit.h selftests/powerpc: Add support for skipping tests 2014-06-11 17:03:54 +10:00
utils.h selftests/powerpc: Move get_auxv_entry() to harness.c 2015-04-11 20:49:20 +10:00