mbox series

[0/2] Report FEAT_SVE_B16B16 to userspace

Message ID 20230915-arm64-zfr-b16b16-el0-v1-0-f9aba807bdb5@kernel.org
Headers show
Series Report FEAT_SVE_B16B16 to userspace | expand

Message

Mark Brown Sept. 15, 2023, 12:18 p.m. UTC
SVE 2.1 introduced a new feature FEAT_SVE_B16B16 which adds instructions
supporting the BFloat16 floating point format. Report this to userspace
through the ID registers and hwcap.

Signed-off-by: Mark Brown <broonie@kernel.org>
---
Mark Brown (2):
      arm64/sve: Report FEAT_SVE_B16B16 to userspace
      kselftest/arm64: Verify HWCAP2_SVE_B16B16

 Documentation/arch/arm64/cpu-feature-registers.rst |  2 ++
 Documentation/arch/arm64/elf_hwcaps.rst            |  3 +++
 arch/arm64/include/asm/hwcap.h                     |  1 +
 arch/arm64/include/uapi/asm/hwcap.h                |  1 +
 arch/arm64/kernel/cpufeature.c                     |  3 +++
 arch/arm64/kernel/cpuinfo.c                        |  1 +
 arch/arm64/tools/sysreg                            |  6 +++++-
 tools/testing/selftests/arm64/abi/hwcap.c          | 13 +++++++++++++
 8 files changed, 29 insertions(+), 1 deletion(-)
---
base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d
change-id: 20230913-arm64-zfr-b16b16-el0-0811fc70f147

Best regards,

Comments

Catalin Marinas Sept. 29, 2023, 5:18 p.m. UTC | #1
On Fri, 15 Sep 2023 13:18:05 +0100, Mark Brown wrote:
> SVE 2.1 introduced a new feature FEAT_SVE_B16B16 which adds instructions
> supporting the BFloat16 floating point format. Report this to userspace
> through the ID registers and hwcap.
> 
> 

Applied to arm64 (for-next/feat_sve_b16b16), thanks!

[1/2] arm64/sve: Report FEAT_SVE_B16B16 to userspace
      https://git.kernel.org/arm64/c/5d5b4e8c2d9e
[2/2] kselftest/arm64: Verify HWCAP2_SVE_B16B16
      https://git.kernel.org/arm64/c/3accaef1f61e