[PATCH 0/8] ARM: Expose Armv8 AArch32 features via hwcap

Amit Daniel Kachhap amit.kachhap at arm.com
Tue Oct 25 22:49:53 PDT 2022


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(+)

-- 
2.17.1




More information about the linux-arm-kernel mailing list