]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-client.git/commit
selftest/arm64: Fix sve2p1_sigill() to hwcap test
authorYifan Wu <wuyifan50@huawei.com>
Thu, 5 Mar 2026 01:36:37 +0000 (09:36 +0800)
committerWill Deacon <will@kernel.org>
Fri, 6 Mar 2026 11:54:26 +0000 (11:54 +0000)
commitd87c828daa7ead9763416f75cc416496969cf1dc
treefe380a2e24f4ebaf865f5a7d6e713f487f509e7a
parent97c5550b763171dbef61e6239cab372b9f9cd4a2
selftest/arm64: Fix sve2p1_sigill() to hwcap test

The FEAT_SVE2p1 is indicated by ID_AA64ZFR0_EL1.SVEver. However,
the BFADD requires the FEAT_SVE_B16B16, which is indicated by
ID_AA64ZFR0_EL1.B16B16. This could cause the test to incorrectly
fail on a CPU that supports FEAT_SVE2.1 but not FEAT_SVE_B16B16.

LD1Q Gather load quadwords which is decoded from SVE encodings and
implied by FEAT_SVE2p1.

Fixes: c5195b027d29 ("kselftest/arm64: Add SVE 2.1 to hwcap test")
Signed-off-by: Yifan Wu <wuyifan50@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c