aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/include/utils.h
diff options
context:
space:
mode:
authorAlistair Popple <alistair@popple.id.au>2020-06-22 12:18:32 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2022-04-27 16:32:42 +1000
commit3527e1ab9a7990530dfb0137ddcfa64bed2915be (patch)
tree613b55d876fce924737e6ff38b3360a159f85bc5 /tools/testing/selftests/powerpc/include/utils.h
parentpowerpc/boot: Build wrapper for an appropriate CPU (diff)
downloadlinux-dev-3527e1ab9a7990530dfb0137ddcfa64bed2915be.tar.xz
linux-dev-3527e1ab9a7990530dfb0137ddcfa64bed2915be.zip
selftests/powerpc: Add matrix multiply assist (MMA) test
Adds a simple test of some basic matrix multiply assist (MMA) instructions. Signed-off-by: Alistair Popple <alistair@popple.id.au> Tested-by: Joel Stanley <joel@jms.id.au> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200622021832.15870-1-alistair@popple.id.au
Diffstat (limited to 'tools/testing/selftests/powerpc/include/utils.h')
-rw-r--r--tools/testing/selftests/powerpc/include/utils.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/include/utils.h b/tools/testing/selftests/powerpc/include/utils.h
index b7d188fc87c7..b9fa9cd709df 100644
--- a/tools/testing/selftests/powerpc/include/utils.h
+++ b/tools/testing/selftests/powerpc/include/utils.h
@@ -135,6 +135,11 @@ do { \
#define PPC_FEATURE2_ARCH_3_1 0x00040000
#endif
+/* POWER10 features */
+#ifndef PPC_FEATURE2_MMA
+#define PPC_FEATURE2_MMA 0x00020000
+#endif
+
#if defined(__powerpc64__)
#define UCONTEXT_NIA(UC) (UC)->uc_mcontext.gp_regs[PT_NIP]
#define UCONTEXT_MSR(UC) (UC)->uc_mcontext.gp_regs[PT_MSR]