kselftest/arm64: add lse and lse2 features to hwcap test
authorZeng Heng <zengheng4@huawei.com>
Tue, 8 Aug 2023 13:40:36 +0000 (21:40 +0800)
committerWill Deacon <will@kernel.org>
Fri, 11 Aug 2023 11:24:16 +0000 (12:24 +0100)
commit82e7882b141c177b1b09ae66e1b2ae791a9a3918
treee001daa34f408bdbb645c5de3baa41a8845cc6bb
parentfd49cf088867f8fad7515b5424d301ca5d147070
kselftest/arm64: add lse and lse2 features to hwcap test

Add the LSE and various features check in the set of hwcap tests.

As stated in the ARM manual, the LSE2 feature allows for atomic access
to unaligned memory. Therefore, for processors that only have the LSE
feature, we register .sigbus_fn to test their ability to perform
unaligned access.

Signed-off-by: Zeng Heng <zengheng4@huawei.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230808134036.668954-6-zengheng4@huawei.com
Signed-off-by: Will Deacon <will@kernel.org>
tools/testing/selftests/arm64/abi/hwcap.c