Skip to content

Commit ee988c1

Browse files
apopplempe
authored andcommitted
powerpc: Add new HWCAP bits
POWER10 introduces two new architectural features - ISAv3.1 and matrix multiply assist (MMA) instructions. Userspace detects the presence of these features via two HWCAP bits introduced in this patch. These bits have been agreed to by the compiler and binutils team. According to ISAv3.1 MMA is an optional feature and software that makes use of it should first check for availability via this HWCAP bit and use alternate code paths if unavailable. Signed-off-by: Alistair Popple <[email protected]> Tested-by: Michael Neuling <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent c887ef5 commit ee988c1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/powerpc/include/uapi/asm/cputable.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@
5050
#define PPC_FEATURE2_DARN 0x00200000 /* darn random number insn */
5151
#define PPC_FEATURE2_SCV 0x00100000 /* scv syscall */
5252
#define PPC_FEATURE2_HTM_NO_SUSPEND 0x00080000 /* TM w/out suspended state */
53+
#define PPC_FEATURE2_ARCH_3_1 0x00040000 /* ISA 3.1 */
54+
#define PPC_FEATURE2_MMA 0x00020000 /* Matrix Multiply Assist */
5355

5456
/*
5557
* IMPORTANT!

0 commit comments

Comments
 (0)