summaryrefslogtreecommitdiffstats
path: root/tools/testing
diff options
context:
space:
mode:
authorMichael Ellerman <mpe@ellerman.id.au>2020-08-19 11:57:25 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2020-09-08 22:24:08 +1000
commit4871a10b7b5f6b0632bff229884dad1cb1e8dc37 (patch)
tree050b3dad4e54640536fe2c61a533eae20789578b /tools/testing
parent3a31518a242dcb262b008d3bb5d4b1cf50cf4026 (diff)
downloadlinux-4871a10b7b5f6b0632bff229884dad1cb1e8dc37.tar.gz
linux-4871a10b7b5f6b0632bff229884dad1cb1e8dc37.tar.bz2
linux-4871a10b7b5f6b0632bff229884dad1cb1e8dc37.zip
selftests/powerpc: Skip L3 bank test on older CPUs
This is a test of specific piece of logic in isa207-common.c, which is only used on Power8 or later. So skip it on older CPUs. Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200819015727.1977134-7-mpe@ellerman.id.au
Diffstat (limited to 'tools/testing')
-rw-r--r--tools/testing/selftests/powerpc/pmu/l3_bank_test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/pmu/l3_bank_test.c b/tools/testing/selftests/powerpc/pmu/l3_bank_test.c
index a96d512a18c4..a5dfa9bf3b9f 100644
--- a/tools/testing/selftests/powerpc/pmu/l3_bank_test.c
+++ b/tools/testing/selftests/powerpc/pmu/l3_bank_test.c
@@ -20,6 +20,9 @@ static int l3_bank_test(void)
char *p;
int i;
+ // The L3 bank logic is only used on Power8 or later
+ SKIP_IF(!have_hwcap2(PPC_FEATURE2_ARCH_2_07));
+
p = malloc(MALLOC_SIZE);
FAIL_IF(!p);