ARM: Expose Armv8 AArch32 features via hwcap
Subsystems (2)
cover ARM: Expose Armv8 AArch32 features via hwcap
Hi All,
This series advertise availability of Armv8 features present in AArch32 state. These features are mostly Advanced SIMD(fphp, asimdhp, dp, fhm, bf16, i8mm) and few others(sb ssbs). These features are already exposed to user in arm64 kernel. A similar series advertising the features in arm64 kernel in compat mode will be sent separately.
Some other remaining features(SPECRES, ETS, nTLBPA, CSV3, LSMAOC) are not advertised in arm64 kernel so left here also.
The entire series is divided feature wise as present in Armv8 manual. The details of these features can be found in Armv8 architecture reference manual available from
https://developer.arm.com/documentation/ddi0487/gb/?lang=en
All the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters.
The series is based on Linux 6.1-rc1.
Thanks,
Amit Daniel
Amit Daniel Kachhap (8):
ARM: Define Armv8 registers in AArch32 state
ARM: vfp: Add hwcap FPHP and ASIMDHP for FEAT_FP16
ARM: vfp: Add hwcap for FEAT_DotProd
ARM: vfp: Add hwcap for FEAT_FHM
ARM: vfp: Add hwcap for FEAT_AA32BF16
ARM: vfp: Add hwcap for FEAT_AA32I8MM
ARM: Add hwcap for Speculation Barrier(SB)
ARM: Add hwcap for Speculative Store Bypassing Safe
arch/arm/include/asm/cputype.h | 4 ++++ arch/arm/include/asm/vfp.h | 6 ++++++ arch/arm/include/uapi/asm/hwcap.h | 8 ++++++++ arch/arm/kernel/setup.c | 22 +++++++++++++++++++++ arch/arm/vfp/vfpmodule.c | 32 +++++++++++++++++++++++++++++++ 5 files changed, 72 insertions(+)
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 1/8 ARM: Define Armv8 registers in AArch32 state
AArch32 Instruction Set Attribute Register 6 (ID_ISAR6_EL1) and AArch32 Processor Feature Register 2 (ID_PFR2_EL1) identifies some new features for the Armv8 architecture. This registers will be utilized to add hwcaps for those cpu features.
These registers are marked as reserved for Armv7 and should be a RAZ.
--- arch/arm/include/asm/cputype.h | 4 ++++ 1 file changed, 4 insertions(+)
arch/arm/include/asm/cputype.h +4 -0
@@ -25,6 +25,8 @@#define CPUID_EXT_ISAR3 0x6c#define CPUID_EXT_ISAR4 0x70#define CPUID_EXT_ISAR5 0x74 +#define CPUID_EXT_ISAR6 0x7c +#define CPUID_EXT_PFR2 0x90#else #define CPUID_EXT_PFR0 "c1, 0"#define CPUID_EXT_PFR1 "c1, 1"
@@ -40,6 +42,8 @@#define CPUID_EXT_ISAR3 "c2, 3"#define CPUID_EXT_ISAR4 "c2, 4"#define CPUID_EXT_ISAR5 "c2, 5" +#define CPUID_EXT_ISAR6 "c2, 7" +#define CPUID_EXT_PFR2 "c3, 4"#endif #define MPIDR_SMP_BITMASK (0x3 << 30)
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 2/8 ARM: vfp: Add hwcap FPHP and ASIMDHP for FEAT_FP16
In reply to Amit Daniel KachhapFloating point half-precision (FPHP) and Advanced SIMD half-precision (ASIMDHP) are VFP features (FEAT_FP16) represented by MVFR1 identification register. These capabilities can optionally exist with VFPv3 and mandatory with VFPv4. Both these new features exist for Armv8 architecture in AArch32 state.
These hwcaps may be useful for the userspace to add conditional check before trying to use FEAT_FP16 feature specific instructions.
--- arch/arm/include/asm/vfp.h | 6 ++++++ arch/arm/include/uapi/asm/hwcap.h | 2 ++ arch/arm/kernel/setup.c | 2 ++ arch/arm/vfp/vfpmodule.c | 4 ++++ 4 files changed, 14 insertions(+)
arch/arm/include/asm/vfp.h +6 -0
@@ -87,6 +87,12 @@#define MVFR0_DP_BIT (8)#define MVFR0_DP_MASK (0xf << MVFR0_DP_BIT) +/* MVFR1 bits */ +#define MVFR1_ASIMDHP_BIT (20) +#define MVFR1_ASIMDHP_MASK (0xf << MVFR1_ASIMDHP_BIT) +#define MVFR1_FPHP_BIT (24) +#define MVFR1_FPHP_MASK (0xf << MVFR1_FPHP_BIT) +/* Bit patterns for decoding the packaged operation descriptors */ #define VFPOPDESC_LENGTH_BIT (9)#define VFPOPDESC_LENGTH_MASK (0x07 << VFPOPDESC_LENGTH_BIT)
arch/arm/include/uapi/asm/hwcap.h +2 -0
@@ -28,6 +28,8 @@#define HWCAP_IDIV (HWCAP_IDIVA | HWCAP_IDIVT)#define HWCAP_LPAE (1 << 20)#define HWCAP_EVTSTRM (1 << 21) +#define HWCAP_FPHP (1 << 22) +#define HWCAP_ASIMDHP (1 << 23)/* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2
arch/arm/kernel/setup.c +2 -0
@@ -1249,6 +1249,8 @@ static const char *hwcap_str[] = {"vfpd32" ,"lpae" ,"evtstrm" , +"fphp" , +"asimdhp" , NULL };
arch/arm/vfp/vfpmodule.c +4 -0
@@ -831,6 +831,10 @@ static int __init vfp_init(void)if ((fmrx (MVFR1 ) &0xf0000000 ) ==0x10000000 ) elf_hwcap |= HWCAP_VFPv4; +if (((fmrx (MVFR1 ) &MVFR1_ASIMDHP_MASK ) >>MVFR1_ASIMDHP_BIT ) ==0x2 ) + elf_hwcap |=HWCAP_ASIMDHP ; +if (((fmrx (MVFR1 ) &MVFR1_FPHP_MASK ) >>MVFR1_FPHP_BIT ) ==0x3 ) + elf_hwcap |=HWCAP_FPHP ; }/* Extract the architecture version on pre-cpuid scheme */ }else {
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 3/8 ARM: vfp: Add hwcap for FEAT_DotProd
In reply to Amit Daniel KachhapAdvanced Dot product is a feature present in AArch32 state for Armv8 and is represented by ISAR6 identification register.
This feature denotes the presence of UDOT and SDOT instructions and hence adding a hwcap will enable the userspace to check it before trying to use those instructions.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 1 + arch/arm/vfp/vfpmodule.c | 10 ++++++++++ 3 files changed, 12 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -30,6 +30,7 @@#define HWCAP_EVTSTRM (1 << 21)#define HWCAP_FPHP (1 << 22)#define HWCAP_ASIMDHP (1 << 23) +#define HWCAP_ASIMDDP (1 << 24)/* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2
arch/arm/kernel/setup.c +1 -0
@@ -1251,6 +1251,7 @@ static const char *hwcap_str[] = {"evtstrm" ,"fphp" ,"asimdhp" , +"asimddp" , NULL };
arch/arm/vfp/vfpmodule.c +10 -0
@@ -774,6 +774,7 @@ static int __init vfp_init(void) {unsigned int vfpsid;unsigned int cpu_arch =cpu_architecture (); +unsigned int isar6;/* * Enable the access to the VFP on all online CPUs so the
@@ -836,6 +837,15 @@ static int __init vfp_init(void)if (((fmrx (MVFR1 ) &MVFR1_FPHP_MASK ) >>MVFR1_FPHP_BIT ) ==0x3 ) elf_hwcap |=HWCAP_FPHP ; } + +/* +* Check for the presence of Advanced SIMD Dot Product +* instructions. +*/ + isar6 =read_cpuid_ext (CPUID_EXT_ISAR6 ); +if (cpuid_feature_extract_field (isar6,4 ) ==0x1 ) + elf_hwcap |=HWCAP_ASIMDDP ; +/* Extract the architecture version on pre-cpuid scheme */ }else {if (vfpsid &FPSID_NODOUBLE ) {
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 4/8 ARM: vfp: Add hwcap for FEAT_FHM
In reply to Amit Daniel KachhapFloating-point half-precision multiplication (FHM) is a feature present in AArch32 state for Armv8 and is represented by ISAR6.FHM identification register.
This feature denotes the presence of VFMAL and VMFSL instructions and hence adding a hwcap will enable the userspace to check it before trying to use those instructions.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 1 + arch/arm/vfp/vfpmodule.c | 6 ++++++ 3 files changed, 8 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -31,6 +31,7 @@#define HWCAP_FPHP (1 << 22)#define HWCAP_ASIMDHP (1 << 23)#define HWCAP_ASIMDDP (1 << 24) +#define HWCAP_ASIMDFHM (1 << 25)/* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2
arch/arm/kernel/setup.c +1 -0
@@ -1252,6 +1252,7 @@ static const char *hwcap_str[] = {"fphp" ,"asimdhp" ,"asimddp" , +"asimdfhm" , NULL };
arch/arm/vfp/vfpmodule.c +6 -0
@@ -845,6 +845,12 @@ static int __init vfp_init(void) isar6 =read_cpuid_ext (CPUID_EXT_ISAR6 );if (cpuid_feature_extract_field (isar6,4 ) ==0x1 ) elf_hwcap |=HWCAP_ASIMDDP ; +/* +* Check for the presence of Advanced SIMD Floating point +* half-precision multiplication instructions. +*/ +if (cpuid_feature_extract_field (isar6,8 ) ==0x1 ) + elf_hwcap |=HWCAP_ASIMDFHM ;/* Extract the architecture version on pre-cpuid scheme */ }else {
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 5/8 ARM: vfp: Add hwcap for FEAT_AA32BF16
In reply to Amit Daniel KachhapAdvanced SIMD BFloat16 (FEAT_AA32BF16) is a feature present in AArch32 state for Armv8 and is represented by ISAR6.BF16 identification register.
This feature denotes the presence of VCVT, VCVTB, VCVTT, VDOT, VFMAB, VFMAT and VMMLA instructions and hence adding a hwcap will enable the userspace to check it before trying to use those instructions.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 1 + arch/arm/vfp/vfpmodule.c | 6 ++++++ 3 files changed, 8 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -32,6 +32,7 @@#define HWCAP_ASIMDHP (1 << 23)#define HWCAP_ASIMDDP (1 << 24)#define HWCAP_ASIMDFHM (1 << 25) +#define HWCAP_ASIMDBF16 (1 << 26)/* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2
arch/arm/kernel/setup.c +1 -0
@@ -1253,6 +1253,7 @@ static const char *hwcap_str[] = {"asimdhp" ,"asimddp" ,"asimdfhm" , +"asimdbf16" , NULL };
arch/arm/vfp/vfpmodule.c +6 -0
@@ -851,6 +851,12 @@ static int __init vfp_init(void)*/ if (cpuid_feature_extract_field (isar6,8 ) ==0x1 ) elf_hwcap |=HWCAP_ASIMDFHM ; +/* +* Check for the presence of Advanced SIMD Bfloat16 +* floating point instructions. +*/ +if (cpuid_feature_extract_field (isar6,20 ) ==0x1 ) + elf_hwcap |=HWCAP_ASIMDBF16 ;/* Extract the architecture version on pre-cpuid scheme */ }else {
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 6/8 ARM: vfp: Add hwcap for FEAT_AA32I8MM
In reply to Amit Daniel KachhapInt8 matrix multiplication (FEAT_AA32I8MM) is a feature present in AArch32 state for Armv8 and is represented by ISAR6.I8MM identification register.
This feature denotes the presence of VSMMLA, VSUDOT, VUMMLA, VUSMMLA and VUSDOT instructions and hence adding a hwcap will enable the userspace to check it before trying to use those instructions.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 1 + arch/arm/vfp/vfpmodule.c | 6 ++++++ 3 files changed, 8 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -33,6 +33,7 @@#define HWCAP_ASIMDDP (1 << 24)#define HWCAP_ASIMDFHM (1 << 25)#define HWCAP_ASIMDBF16 (1 << 26) +#define HWCAP_I8MM (1 << 27)/* * HWCAP2 flags - for elf_hwcap2 (in kernel) and AT_HWCAP2
arch/arm/kernel/setup.c +1 -0
@@ -1254,6 +1254,7 @@ static const char *hwcap_str[] = {"asimddp" ,"asimdfhm" ,"asimdbf16" , +"i8mm" , NULL };
arch/arm/vfp/vfpmodule.c +6 -0
@@ -857,6 +857,12 @@ static int __init vfp_init(void)*/ if (cpuid_feature_extract_field (isar6,20 ) ==0x1 ) elf_hwcap |=HWCAP_ASIMDBF16 ; +/* +* Check for the presence of Advanced SIMD and floating point +* Int8 matrix multiplication instructions instructions. +*/ +if (cpuid_feature_extract_field (isar6,24 ) ==0x1 ) + elf_hwcap |=HWCAP_I8MM ;/* Extract the architecture version on pre-cpuid scheme */ }else {
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 7/8 ARM: Add hwcap for Speculation Barrier(SB)
In reply to Amit Daniel KachhapSpeculation Barrier(FEAT_SB) is a feature present in AArch32 state for Armv8 and is represented by ISAR6.SB identification register.
This feature denotes the presence of SB instruction and hence adding a hwcap will enable the userspace to check it before trying to use this instruction.
This commit adds the ID feature bit detection, and uses elf_hwcap2 accordingly.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 8 ++++++++ 2 files changed, 9 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -43,5 +43,6 @@#define HWCAP2_SHA1 (1 << 2)#define HWCAP2_SHA2 (1 << 3)#define HWCAP2_CRC32 (1 << 4) +#define HWCAP2_SB (1 << 5)#endif /* _UAPI__ASMARM_HWCAP_H */
arch/arm/kernel/setup.c +8 -0
@@ -450,6 +450,7 @@ static void __init cpuid_init_hwcaps(void) {int block;u32 isar5; +u32 isar6;if (cpu_architecture () < CPU_ARCH_ARMv7)return ;
@@ -485,6 +486,12 @@ static void __init cpuid_init_hwcaps(void) block =cpuid_feature_extract_field (isar5,16 );if (block >=1 ) elf_hwcap2 |=HWCAP2_CRC32 ; + +/* Check for Speculation barrier instruction */ + isar6 =read_cpuid_ext (CPUID_EXT_ISAR6 ); + block =cpuid_feature_extract_field (isar6,12 ); +if (block >=1 ) + elf_hwcap2 |=HWCAP2_SB ; }static void __init elf_hwcap_fixup (void )
@@ -1264,6 +1271,7 @@ static const char *hwcap2_str[] = {"sha1" ,"sha2" ,"crc32" , +"sb" , NULL };
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 7/8] ARM: Add hwcap for Speculation Barrier(SB)
Quoted 11 lines · Amit Daniel Kachhap
Speculation
Barrier(FEAT_SB)is a feature present in AArch32 state for Armv8 and is represented by ISAR6.SB identification register.This feature denotes the presence of SB instruction and hence adding a hwcap will enable the userspace to check it before trying to use this instruction.
This commit adds the ID feature bit detection, and uses
elf_hwcap2accordingly.Signed-off-by Amit Daniel Kachhap <[email protected]>
The patch is fine, the following is a question.
I see that the aarch64 kernel is using this instruction in the kernel for speculation barriers, and after this the aarch32 userspace can use it too.
Does it make sense to ask the question whether this could be compiled into and used by a aarch32 kernel, provided it is configured for a core known to support it? (This is assuming that the compiler also knows about it.)
I'm asking because speculation barriers is something we have a lot of due to the constant security problems so it might be something handy to have in the toolbox.
It might be just adding too much complexity... I know.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 7/8] ARM: Add hwcap for Speculation Barrier(SB)
Quoted 17 lines · Linus Walleij
Quoted 11 lines · Amit Daniel Kachhap
Speculation
Barrier(FEAT_SB)is a feature present in AArch32 state for Armv8 and is represented by ISAR6.SB identification register.This feature denotes the presence of SB instruction and hence adding a hwcap will enable the userspace to check it before trying to use this instruction.
This commit adds the ID feature bit detection, and uses
elf_hwcap2accordingly.Signed-off-by Amit Daniel Kachhap <[email protected]>The patch is fine, the following is a question.
Quoted 8 lines
I see that the aarch64 kernel is using this instruction in the kernel for speculation barriers, and after this the aarch32 userspace can use it too.
Does it make sense to ask the question whether this could be compiled into and used by a aarch32 kernel, provided it is configured for a core known to support it? (This is assuming that the compiler also knows about it.)
I think you have a valid point to use sb in the kernel also. Besides the compiler support, aarch32 kernel might need feature based dynamic instruction patching framework like aarch64. So as you said it is too much to do here.
Thanks,
Amit Daniel
Quoted 9 lines
I'm asking because speculation barriers is something we have a lot of due to the constant security problems so it might be something handy to have in the toolbox.
It might be just adding too much complexity... I know.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Re: [PATCH 7/8] ARM: Add hwcap for Speculation Barrier(SB)
In reply to Linus WalleijQuoted 26 lines · Linus Walleij
Quoted 11 lines · Amit Daniel Kachhap
Speculation
Barrier(FEAT_SB)is a feature present in AArch32 state for Armv8 and is represented by ISAR6.SB identification register.This feature denotes the presence of SB instruction and hence adding a hwcap will enable the userspace to check it before trying to use this instruction.
This commit adds the ID feature bit detection, and uses
elf_hwcap2accordingly.Signed-off-by Amit Daniel Kachhap <[email protected]>The patch is fine, the following is a question.
I see that the aarch64 kernel is using this instruction in the kernel for speculation barriers, and after this the aarch32 userspace can use it too.
Does it make sense to ask the question whether this could be compiled into and used by a aarch32 kernel, provided it is configured for a core known to support it? (This is assuming that the compiler also knows about it.)
Quoted 5 lines
I'm asking because speculation barriers is something we have a lot of due to the constant security problems so it might be something handy to have in the toolbox.
It might be just adding too much complexity... I know.
Certainly none of Arm's CPUs new enough to implement FEAT_SB still support AArch32 at EL1.
Robin.
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
PATCH 8/8 ARM: Add hwcap for Speculative Store Bypassing Safe
In reply to Amit Daniel KachhapSpeculative Store Bypassing Safe(FEAT_SSBS) is a feature present in AArch32 state for Armv8 and is represented by ID_PFR2_EL1.SSBS identification register.
This feature denotes the presence of PSTATE.ssbs bit and hence adding a hwcap will enable the userspace to check it before trying to set/unset this PSTATE.
This commit adds the ID feature bit detection, and uses elf_hwcap2 accordingly.
--- arch/arm/include/uapi/asm/hwcap.h | 1 + arch/arm/kernel/setup.c | 8 ++++++++ 2 files changed, 9 insertions(+)
arch/arm/include/uapi/asm/hwcap.h +1 -0
@@ -44,5 +44,6 @@#define HWCAP2_SHA2 (1 << 3)#define HWCAP2_CRC32 (1 << 4)#define HWCAP2_SB (1 << 5) +#define HWCAP2_SSBS (1 << 6)#endif /* _UAPI__ASMARM_HWCAP_H */
arch/arm/kernel/setup.c +8 -0
@@ -451,6 +451,7 @@ static void __init cpuid_init_hwcaps(void)int block;u32 isar5;u32 isar6; +u32 pfr2;if (cpu_architecture () < CPU_ARCH_ARMv7)return ;
@@ -492,6 +493,12 @@ static void __init cpuid_init_hwcaps(void) block =cpuid_feature_extract_field (isar6,12 );if (block >=1 ) elf_hwcap2 |=HWCAP2_SB ; + +/* Check for Speculative Store Bypassing control */ + pfr2 =read_cpuid_ext (CPUID_EXT_PFR2 ); + block =cpuid_feature_extract_field (pfr2,4 ); +if (block >=1 ) + elf_hwcap2 |=HWCAP2_SSBS ; }static void __init elf_hwcap_fixup (void )
@@ -1272,6 +1279,7 @@ static const char *hwcap2_str[] = {"sha2" ,"crc32" ,"sb" , +"ssbs" , NULL };
Signature · 7 lines
2.17.1 _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 9 lines · Amit Daniel Kachhap
This series advertise availability of Armv8 features present in AArch32 state. These features are mostly Advanced
SIMD(fphp, asimdhp, dp, fhm, bf16, i8mm)and few others(sb ssbs). These features are already exposed to user in arm64 kernel. A similar series advertising the features in arm64 kernel in compat mode will be sent separately.Some other remaining
features(SPECRES, ETS, nTLBPA, CSV3, LSMAOC)are not advertised in arm64 kernel so left here also.
Quoted 7 lines
The entire series is divided feature wise as present in Armv8 manual. The details of these features can be found in Armv8 architecture reference manual available from
https://developer.arm.com/documentation/ddi0487/gb/?lang=enAll the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters.
These all make sense and the patches are fairly trivial, so:
I was just looking at Marcins feature matrix of some systems found in the wild to see which systems will benefit from this and it includes Apple M1 and other interesting stuff:
https://marcin.juszkiewicz.com.pl/download/tables/arm-socs.html
Can you please put these patches into Russell's patch tracker?
I might add some comment to some patch just for discussion but the patches are fine.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 21 lines · Linus Walleij
Quoted 9 lines · Amit Daniel Kachhap
This series advertise availability of Armv8 features present in AArch32 state. These features are mostly Advanced
SIMD(fphp, asimdhp, dp, fhm, bf16, i8mm)and few others(sb ssbs). These features are already exposed to user in arm64 kernel. A similar series advertising the features in arm64 kernel in compat mode will be sent separately.Some other remaining
features(SPECRES, ETS, nTLBPA, CSV3, LSMAOC)are not advertised in arm64 kernel so left here also.Quoted 7 lines
The entire series is divided feature wise as present in Armv8 manual. The details of these features can be found in Armv8 architecture reference manual available from
https://developer.arm.com/documentation/ddi0487/gb/?lang=enAll the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters.
These all make sense and the patches are fairly trivial, so:
Quoted 8 lines
Reviewed-by Linus Walleij <[email protected]>I was just looking at Marcins feature matrix of some systems found in the wild to see which systems will benefit from this and it includes Apple M1 and other interesting stuff:
https://marcin.juszkiewicz.com.pl/download/tables/arm-socs.htmlCan you please put these patches into Russell's patch tracker?
Thanks for the feedback. I submitted them to Russell's patch tracker with your Reviewed-by.
Amit
Quoted 6 lines
I might add some comment to some patch just for discussion but the patches are fine.
Yours,
Linus Walleij
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Russell King (Oracle)
maintainerQuoted 16 lines · Amit Daniel Kachhap
Hi All,
This series advertise availability of Armv8 features present in AArch32 state. These features are mostly Advanced
SIMD(fphp, asimdhp, dp, fhm, bf16, i8mm)and few others(sb ssbs). These features are already exposed to user in arm64 kernel. A similar series advertising the features in arm64 kernel in compat mode will be sent separately.Some other remaining
features(SPECRES, ETS, nTLBPA, CSV3, LSMAOC)are not advertised in arm64 kernel so left here also.The entire series is divided feature wise as present in Armv8 manual. The details of these features can be found in Armv8 architecture reference manual available from
https://developer.arm.com/documentation/ddi0487/gb/?lang=en
Quoted 4 lines
All the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters.
The series is based on Linux 6.1-rc1.
Hi Amit,
Please could you list which CPUs support running aarch32 _and_ support these features?
Thanks!
Signature · 7 lines
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTP is here! 40Mbps down 10Mbps up. Decent connectivity at last! _______________________________________________ linux-arm-kernel mailing list [email protected] http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Quoted 20 lines · Russell King (Oracle)
Quoted 19 lines · Amit Daniel Kachhap
Hi All,
This series advertise availability of Armv8 features present in AArch32 state. These features are mostly Advanced
SIMD(fphp, asimdhp, dp, fhm, bf16, i8mm)and few others(sb ssbs). These features are already exposed to user in arm64 kernel. A similar series advertising the features in arm64 kernel in compat mode will be sent separately.Some other remaining
features(SPECRES, ETS, nTLBPA, CSV3, LSMAOC)are not advertised in arm64 kernel so left here also.The entire series is divided feature wise as present in Armv8
manual. The details of these features can be found in Armv8
architecture reference manual available from https://developer.arm.com/documentation/ddi0487/gb/?lang=enAll the changes have been tested on Arm FVP Base Revc model after adding necessary model parameters.
Quoted 8 lines
Quoted 1 line
The series is based on Linux 6.1-rc1.
Hi Amit,
Please could you list which CPUs support running aarch32 _and_ support these features?
Thanks!
Hi Russell,
Below are some of the cpus representing these AArch32 features. This list is not exhaustive enough and can be found in the respective processor manual.
Features-
fp16(fphp+asimdhp):
Architectures - v8.2(optional)
AArch32 Processor - Cortex A75 and A55 at all el, A710 and Neoverse N2 at el0 only
dp:
Architectures - v8.2(optional), v8.4(mandatory)
AArch32 Processor - Cortex A75 and A55 at all el, A710 and Neoverse N2 at el0 only
fhm:
Architectures - v8.2(optional), v8.4(mandatory)
AArch32 Processor - Cortex A710 and Neoverse N2 at el0 only
aa32bf16:
Architectures - v8.2(optional)
AArch32 Processor - Cortex A710 and Neoverse N2 at el0 only
aa32i8mm:
Architectures - v8.2(optional), v8.4(mandatory)
AArch32 Processor - Cortex A710 and Neoverse N2 at el0 only
sb:
Architectures - v8.0(optional),v8.5(Mandatory)
AArch32 Processor - Cortex A710 and Neoverse N2 at el0 only
ssbs:
Architectures - v8.0(Optional), v8.5(Mandatory)
AArch32 Processor - Cortex A76, A710 and Neoverse N2 at el0 only
Thanks,
Amit
Quoted 1 line
_______________________________________________
linux-arm-kernel mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel