diff options
author | Shawn Anastasio <shawn@anastas.io> | 2020-08-21 21:55:58 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2020-08-24 07:12:54 +0300 |
commit | 24ded46f53f954b9cf246c5d4e3770c7a8aa84ce (patch) | |
tree | 4c31c6fd941982da145bc1b75def91fdb0990198 /tools | |
parent | 9b725a90a8f127802e19466d4e336e701bcea0d2 (diff) | |
download | linux-24ded46f53f954b9cf246c5d4e3770c7a8aa84ce.tar.xz |
selftests/powerpc: Update PROT_SAO test to skip ISA 3.1
Since SAO support was removed from ISA 3.1, skip the
prot_sao test if PPC_FEATURE2_ARCH_3_1 is set.
Signed-off-by: Shawn Anastasio <shawn@anastas.io>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200821185558.35561-4-shawn@anastas.io
Diffstat (limited to 'tools')
-rw-r--r-- | tools/testing/selftests/powerpc/mm/prot_sao.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/testing/selftests/powerpc/mm/prot_sao.c b/tools/testing/selftests/powerpc/mm/prot_sao.c index e2eed65b7735..e0cf8ebbf8cd 100644 --- a/tools/testing/selftests/powerpc/mm/prot_sao.c +++ b/tools/testing/selftests/powerpc/mm/prot_sao.c @@ -18,8 +18,9 @@ int test_prot_sao(void) { char *p; - /* 2.06 or later should support SAO */ - SKIP_IF(!have_hwcap(PPC_FEATURE_ARCH_2_06)); + /* SAO was introduced in 2.06 and removed in 3.1 */ + SKIP_IF(!have_hwcap(PPC_FEATURE_ARCH_2_06) || + have_hwcap2(PPC_FEATURE2_ARCH_3_1)); /* * Ensure we can ask for PROT_SAO. |