mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 01:24:47 +01:00
kselftest/arm64: Add SVE 2.1 to hwcap test
Add coverage for FEAT_SVE2p1. Signed-off-by: Mark Brown <broonie@kernel.org> Reviewed-by: Catalin Marinas <catalin.marinas@arm.com> Link: https://lore.kernel.org/r/20221017152520.1039165-7-broonie@kernel.org Signed-off-by: Will Deacon <will@kernel.org>
This commit is contained in:
parent
d12aada8df
commit
c5195b027d
1 changed files with 13 additions and 0 deletions
|
|
@ -62,6 +62,12 @@ static void sve2_sigill(void)
|
|||
asm volatile(".inst 0x4408A000" : : : "z0");
|
||||
}
|
||||
|
||||
static void sve2p1_sigill(void)
|
||||
{
|
||||
/* BFADD Z0.H, Z0.H, Z0.H */
|
||||
asm volatile(".inst 0x65000000" : : : "z0");
|
||||
}
|
||||
|
||||
static void sveaes_sigill(void)
|
||||
{
|
||||
/* AESD z0.b, z0.b, z0.b */
|
||||
|
|
@ -167,6 +173,13 @@ static const struct hwcap_data {
|
|||
.cpuinfo = "sve2",
|
||||
.sigill_fn = sve2_sigill,
|
||||
},
|
||||
{
|
||||
.name = "SVE 2.1",
|
||||
.at_hwcap = AT_HWCAP2,
|
||||
.hwcap_bit = HWCAP2_SVE2P1,
|
||||
.cpuinfo = "sve2p1",
|
||||
.sigill_fn = sve2p1_sigill,
|
||||
},
|
||||
{
|
||||
.name = "SVE AES",
|
||||
.at_hwcap = AT_HWCAP2,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue