Thread (2 messages) flat view 2 messages, 2 authors, 2018-03-05

Re: [v2] selftests/powerpc: Skip the subpage_prot tests if the syscall is unavailable

From: Michael Ellerman <hidden>
Date: 2018-03-05 12:36:15

On Fri, 2018-03-02 at 02:01:08 UTC, Michael Ellerman wrote:
The subpage_prot syscall is only functional when the system is using
the Hash MMU. Since commit 5b2b80714796 ("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>
Applied to powerpc fixes.

https://git.kernel.org/powerpc/c/cd4a6f3ab4d80cb919d15897eb3cbc

cheers
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help