Skip to content

Commit 14e270f

Browse files
Anshuman Khandualwilldeacon
authored andcommitted
arm64/cpufeature: Add remaining feature bits in ID_AA64PFR1 register
Enable the following features bits in ID_AA64PFR1 register as per ARM DDI 0487F.a specification. Cc: Catalin Marinas <[email protected]> Cc: Will Deacon <[email protected]> Cc: Mark Rutland <[email protected]> Cc: Suzuki K Poulose <[email protected]> Cc: [email protected] Cc: [email protected] Suggested-by: Will Deacon <[email protected]> Signed-off-by: Anshuman Khandual <[email protected]> Reviewed-by: Suzuki K Poulose <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
1 parent 011e5f5 commit 14e270f

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

arch/arm64/include/asm/sysreg.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -670,7 +670,11 @@
670670
#define ID_AA64PFR0_EL0_32BIT_64BIT 0x2
671671

672672
/* id_aa64pfr1 */
673+
#define ID_AA64PFR1_MPAMFRAC_SHIFT 16
674+
#define ID_AA64PFR1_RASFRAC_SHIFT 12
675+
#define ID_AA64PFR1_MTE_SHIFT 8
673676
#define ID_AA64PFR1_SSBS_SHIFT 4
677+
#define ID_AA64PFR1_BT_SHIFT 0
674678

675679
#define ID_AA64PFR1_SSBS_PSTATE_NI 0
676680
#define ID_AA64PFR1_SSBS_PSTATE_ONLY 1

arch/arm64/kernel/cpufeature.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,8 @@ static const struct arm64_ftr_bits ftr_id_aa64pfr0[] = {
238238
};
239239

240240
static const struct arm64_ftr_bits ftr_id_aa64pfr1[] = {
241+
ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64PFR1_MPAMFRAC_SHIFT, 4, 0),
242+
ARM64_FTR_BITS(FTR_HIDDEN, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64PFR1_RASFRAC_SHIFT, 4, 0),
241243
ARM64_FTR_BITS(FTR_VISIBLE, FTR_STRICT, FTR_LOWER_SAFE, ID_AA64PFR1_SSBS_SHIFT, 4, ID_AA64PFR1_SSBS_PSTATE_NI),
242244
ARM64_FTR_END,
243245
};

0 commit comments

Comments
 (0)