Skip to content

Commit ec613a5

Browse files
iamjpnmpe
authored andcommitted
powerpc/64s: Remove TM from Power10 features
ISA v3.1 removes transactional memory and hence it should not be present in cpu_features or cpu_user_features2. Remove CPU_FTR_TM_COMP from CPU_FTRS_POWER10. Remove PPC_FEATURE2_HTM_COMP and PPC_FEATURE2_HTM_NOSC_COMP from COMMON_USER2_POWER10. Fixes: a3ea40d ("powerpc: Add POWER10 architected mode") Signed-off-by: Jordan Niethe <jniethe5@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20200827035529.900-1-jniethe5@gmail.com
1 parent d1781f2 commit ec613a5

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

arch/powerpc/include/asm/cputable.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -477,7 +477,7 @@ static inline void cpu_feature_keys_init(void) { }
477477
CPU_FTR_STCX_CHECKS_ADDRESS | CPU_FTR_POPCNTB | CPU_FTR_POPCNTD | \
478478
CPU_FTR_CFAR | CPU_FTR_HVMODE | CPU_FTR_VMX_COPY | \
479479
CPU_FTR_DBELL | CPU_FTR_HAS_PPR | CPU_FTR_ARCH_207S | \
480-
CPU_FTR_TM_COMP | CPU_FTR_ARCH_300 | CPU_FTR_ARCH_31 | \
480+
CPU_FTR_ARCH_300 | CPU_FTR_ARCH_31 | \
481481
CPU_FTR_DAWR | CPU_FTR_DAWR1)
482482
#define CPU_FTRS_CELL (CPU_FTR_LWSYNC | \
483483
CPU_FTR_PPCAS_ARCH_V2 | CPU_FTR_CTRL | \

arch/powerpc/kernel/cputable.c

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,16 @@ extern void __restore_cpu_e6500(void);
121121
PPC_FEATURE2_DARN | \
122122
PPC_FEATURE2_SCV)
123123
#define COMMON_USER_POWER10 COMMON_USER_POWER9
124-
#define COMMON_USER2_POWER10 (COMMON_USER2_POWER9 | \
125-
PPC_FEATURE2_ARCH_3_1 | \
126-
PPC_FEATURE2_MMA)
124+
#define COMMON_USER2_POWER10 (PPC_FEATURE2_ARCH_3_1 | \
125+
PPC_FEATURE2_MMA | \
126+
PPC_FEATURE2_ARCH_3_00 | \
127+
PPC_FEATURE2_HAS_IEEE128 | \
128+
PPC_FEATURE2_DARN | \
129+
PPC_FEATURE2_SCV | \
130+
PPC_FEATURE2_ARCH_2_07 | \
131+
PPC_FEATURE2_DSCR | \
132+
PPC_FEATURE2_ISEL | PPC_FEATURE2_TAR | \
133+
PPC_FEATURE2_VEC_CRYPTO)
127134

128135
#ifdef CONFIG_PPC_BOOK3E_64
129136
#define COMMON_USER_BOOKE (COMMON_USER_PPC64 | PPC_FEATURE_BOOKE)

0 commit comments

Comments
 (0)