[PATCH 0/2] Report FEAT_SVE_B16B16 to userspace

Mark Brown posted 2 patches 2 years, 4 months ago
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(-)
[PATCH 0/2] Report FEAT_SVE_B16B16 to userspace
Posted by Mark Brown 2 years, 4 months ago
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,
-- 
Mark Brown <broonie@kernel.org>
Re: [PATCH 0/2] Report FEAT_SVE_B16B16 to userspace
Posted by Catalin Marinas 2 years, 4 months ago
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

-- 
Catalin