arm64/sysreg: Add hwcap for SVE EBF16
authorMark Brown <broonie@kernel.org>
Mon, 29 Aug 2022 15:48:15 +0000 (16:48 +0100)
committerCatalin Marinas <catalin.marinas@arm.com>
Tue, 6 Sep 2022 17:53:52 +0000 (18:53 +0100)
commit81ff692ad924da2233381bedff90c5c1f5c31368
tree87b4ebedbeb97cda17ed4ad288d743bab98aed0c
parentb90cb1053190353cc30f0fef0ef1f378ccc063c5
arm64/sysreg: Add hwcap for SVE EBF16

SVE has a separate identification register indicating support for BFloat16
operations. Add a hwcap identifying support for EBF16 in this register,
mirroring what we did for the non-SVE case.

While there is currently an architectural requirement for BF16 support to
be the same in SVE and non-SVE contexts there are separate identification
registers this separate hwcap helps avoid issues if that requirement were
to be relaxed in the future, we have already chosen to have a separate
capability for base BF16 support.

Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20220829154815.832347-1-broonie@kernel.org
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Documentation/arm64/elf_hwcaps.rst
arch/arm64/include/asm/hwcap.h
arch/arm64/include/uapi/asm/hwcap.h
arch/arm64/kernel/cpufeature.c
arch/arm64/kernel/cpuinfo.c