arm64: cpufeature: Export matrix and other features to userspace
authorSteven Price <steven.price@arm.com>
Mon, 16 Dec 2019 11:33:37 +0000 (11:33 +0000)
committerWill Deacon <will@kernel.org>
Wed, 15 Jan 2020 11:13:07 +0000 (11:13 +0000)
commitd4209d8b717311d114b5d47ba7f8249fd44e97c2
treeca1180c2cd7c364da1e92c187a0a42f6c4c7e000
parent46cf053efec6a3a5f343fead837777efe8252a46
arm64: cpufeature: Export matrix and other features to userspace

Export the features introduced as part of ARMv8.6 exposed in the
ID_AA64ISAR1_EL1 and ID_AA64ZFR0_EL1 registers. This introduces the
Matrix features (ARMv8.2-I8MM, ARMv8.2-F64MM and ARMv8.2-F32MM) along
with BFloat16 (Armv8.2-BF16), speculation invalidation (SPECRES) and
Data Gathering Hint (ARMv8.0-DGH).

Signed-off-by: Julien Grall <julien.grall@arm.com>
[Added other features in those registers]
Signed-off-by: Steven Price <steven.price@arm.com>
[will: Don't advertise SPECRES to userspace]
Signed-off-by: Will Deacon <will@kernel.org>
Documentation/arm64/cpu-feature-registers.rst
Documentation/arm64/elf_hwcaps.rst
arch/arm64/include/asm/hwcap.h
arch/arm64/include/asm/sysreg.h
arch/arm64/include/uapi/asm/hwcap.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/cpuinfo.c