Files
Guodong Xu 5bfaf4fa3d riscv: cpufeature: Fix Zk bundled extension missing Zknh
[ Upstream commit 8632180daf ]

The Zk extension is a bundle consisting of Zkn, Zkr, and Zkt. The Zkn
extension itself is a bundle consisting of Zbkb, Zbkc, Zbkx, Zknd, Zkne,
and Zknh.

The current implementation of riscv_zk_bundled_exts manually listed
the dependencies but missed RISCV_ISA_EXT_ZKNH.

Fix this by introducing a RISCV_ISA_EXT_ZKN macro that lists the Zkn
components and using it in both riscv_zk_bundled_exts and
riscv_zkn_bundled_exts.

This adds the missing Zknh extension to Zk and reduces code duplication.

Fixes: 0d8295ed97 ("riscv: add ISA extension parsing for scalar crypto")
Link: https://patch.msgid.link/20231114141256.126749-4-cleger@rivosinc.com/
Signed-off-by: Guodong Xu <guodong@riscstar.com>
Reviewed-by: Clément Léger <cleger@rivosinc.com>
Link: https://patch.msgid.link/20251223-zk-missing-zknh-v1-1-b627c990ee1a@riscstar.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2026-01-17 16:35:25 +01:00
..
2025-01-18 12:33:39 -08:00
2025-05-21 16:46:37 +02:00
2023-03-23 08:47:00 -07:00
2025-06-26 16:06:40 +02:00
2024-11-07 14:25:15 -08:00
2022-05-19 19:30:30 +02:00
2024-09-03 07:57:55 -07:00
2025-02-14 13:06:44 -08:00
2025-04-01 07:03:03 +00:00
2021-01-07 19:00:50 -08:00
2025-03-18 12:59:03 +00:00
2025-06-05 14:03:08 -07:00
2025-09-16 16:28:02 -06:00