]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
kselftest/arm64: Add HWCAP test for FEAT_LS64
authorYicong Yang <yangyicong@hisilicon.com>
Mon, 19 Jan 2026 02:29:28 +0000 (10:29 +0800)
committerWill Deacon <will@kernel.org>
Thu, 22 Jan 2026 13:25:33 +0000 (13:25 +0000)
commit57a96356bb6942e16283138d0a42baad29169ed8
treeaa82f2cf6728f40f1c8a3cbf0d5aeba4c0de89ab
parent2a369c4942489aeab799a7509b7cc721eecafa8a
kselftest/arm64: Add HWCAP test for FEAT_LS64

Add tests for FEAT_LS64. Issue related instructions if feature
presents, no SIGILL should be received. When such instructions
operate on Device memory or non-cacheable memory, we may received
a SIGBUS during the test (w/o FEAT_LS64WB). Just ignore it since
we only tested whether the instruction itself can be issued as
expected on platforms declaring the support of such features.

Acked-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Oliver Upton <oupton@kernel.org>
Signed-off-by: Yicong Yang <yangyicong@hisilicon.com>
Signed-off-by: Zhou Wang <wangzhou1@hisilicon.com>
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c