drivers/crypto/hisilicon/sec2

HiSilicon SEC2 crypto accelerator

An on-chip cryptographic accelerator built into HiSilicon's Kunpeng ARM64 server processors, exposed as a PCI device that offloads symmetric ciphers and hashing for high-throughput workloads. It targets modern data-center and cloud servers from Huawei rather than desktop or embedded use.

keep conf=0.83 deploy=medium replacement=none subsystem=crypto category=crypto
83%

recommendation

It should stay because the hardware ships in current Huawei Kunpeng servers and the driver is under active upstream maintenance, with feature additions and fixes landing in 2026 and inclusion in stable releases. There is no in-kernel replacement that would offload crypto on this silicon, so removing it would force affected systems back to software-only crypto.

repository signals

5 files
5,034 source lines
98 commits, 5y
+3,200 / −1,247 lines added / removed, 5y
18 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 98 total · active in 34/61 months
2021 2022 2023 2024 2025 2026 2021-04: 2 commits · +39 −13 2021-05: 8 commits · +695 −87 2021-06: 7 commits · +520 −93 2021-07: 0 commits · +0 −0 2021-08: 6 commits · +96 −47 2021-09: 0 commits · +0 −0 2021-10: 0 commits · +0 −0 2021-11: 1 commit · +1 −1 2021-12: 0 commits · +0 −0 2022-01: 5 commits · +23 −10 2022-02: 3 commits · +58 −17 2022-03: 3 commits · +14 −9 2022-04: 2 commits · +107 −1 2022-05: 2 commits · +2 −4 2022-06: 2 commits · +9 −30 2022-07: 2 commits · +15 −14 2022-08: 0 commits · +0 −0 2022-09: 7 commits · +450 −202 2022-10: 0 commits · +0 −0 2022-11: 3 commits · +5 −8 2022-12: 0 commits · +0 −0 2023-01: 1 commit · +4 −6 2023-02: 0 commits · +0 −0 2023-03: 1 commit · +0 −1 2023-04: 0 commits · +0 −0 2023-05: 0 commits · +0 −0 2023-06: 0 commits · +0 −0 2023-07: 0 commits · +0 −0 2023-08: 0 commits · +0 −0 2023-09: 3 commits · +44 −17 2023-10: 0 commits · +0 −0 2023-11: 1 commit · +1 −29 2023-12: 3 commits · +67 −47 2024-01: 5 commits · +18 −22 2024-02: 0 commits · +0 −0 2024-03: 0 commits · +0 −0 2024-04: 5 commits · +19 −17 2024-05: 0 commits · +0 −0 2024-06: 0 commits · +0 −0 2024-07: 0 commits · +0 −0 2024-08: 1 commit · +7 −9 2024-09: 1 commit · +1 −1 2024-10: 2 commits · +114 −26 2024-11: 1 commit · +12 −0 2024-12: 2 commits · +78 −101 2025-01: 1 commit · +0 −1 2025-02: 3 commits · +50 −82 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 1 commit · +13 −8 2025-07: 1 commit · +457 −180 2025-08: 4 commits · +91 −47 2025-09: 2 commits · +73 −28 2025-10: 0 commits · +0 −0 2025-11: 0 commits · +0 −0 2025-12: 4 commits · +108 −79 2026-01: 0 commits · +0 −0 2026-02: 3 commits · +9 −10 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    March 13, 2026 patch adds device-load query functionality to the HiSilicon crypto driver set, indicating ongoing feature work around SEC2-class hardware.

  2. lore.kernel.org

    March 30, 2026 patch fixes a format-string issue in code touching drivers/crypto/hisilicon/sec2/sec_main.c, showing current upstream maintenance.

  3. lore.kernel.org

    SEC2-related code was included in a 2026 stable release, which is evidence of maintained, deployed hardware rather than abandoned code.

  4. cateee.net

    LKDDb documents CRYPTO_DEV_HISI_SEC2 as an ARM64+ACPI+PCI/UACCE accelerator driver, matching a modern server-platform deployment model rather than obsolete consumer hardware.

codex reasoning notes (technical)

Not a removal candidate. `lore_file_timeline` on drivers/crypto/hisilicon/sec2/sec_main.c showed active 2026 fixes/features and no removal signal; recent lore URLs above came directly from that tool. Local `exec_command` inspection of sec_main.c showed PCI IDs for Huawei devices and MODULE_DESCRIPTION("Driver for HiSilicon SEC accelerator"). The LKDDb URL is canonical recall, used to support platform/deployment context. Conclusion: SEC2 is a niche but still-relevant server accelerator family, likely present in current Huawei/Kunpeng deployments, with no natural in-tree replacement beyond generic software crypto fallbacks.