drivers/hwspinlock

SoC hardware spinlock framework (TI K3, Qualcomm, STM32MP, Allwinner, Spreadtrum)

A kernel framework and set of provider drivers for the small hardware mutex blocks built into many heterogeneous system-on-chip designs. These blocks let the main Linux-running CPU cores safely share resources with on-chip co-processors (DSPs, Cortex-M companion cores, modem processors) on parts like TI's OMAP and K3, Qualcomm SoCs, STMicro's STM32MP, Allwinner sun6i, and Spreadtrum chips.

keep conf=0.90 deploy=medium replacement=none subsystem=hwspinlock category=infrastructure
90%

recommendation

It should stay because the framework underpins inter-processor synchronization on a wide range of heterogeneous SoCs that are actively shipping in 2025, including TI's AM64x/K3 and ST's STM32MP25 industrial parts. Maintenance is ongoing — recent 2026 upstream traffic includes routine fixes and refactoring rather than any removal effort — and there is no replacement subsystem that provides the same hardware-mutex abstraction.

repository signals

10 files
2,083 source lines
29 commits, 5y
+437 / −231 lines added / removed, 5y
18 authors, 5y
monthly commits · 2021-04-21 → 2026-04-21 · 29 total · active in 18/61 months
2021 2022 2023 2024 2025 2026 2021-04: 0 commits · +0 −0 2021-05: 0 commits · +0 −0 2021-06: 0 commits · +0 −0 2021-07: 0 commits · +0 −0 2021-08: 0 commits · +0 −0 2021-09: 0 commits · +0 −0 2021-10: 1 commit · +37 −21 2021-11: 0 commits · +0 −0 2021-12: 0 commits · +0 −0 2022-01: 2 commits · +2 −5 2022-02: 0 commits · +0 −0 2022-03: 0 commits · +0 −0 2022-04: 1 commit · +2 −4 2022-05: 0 commits · +0 −0 2022-06: 0 commits · +0 −0 2022-07: 1 commit · +23 −5 2022-08: 0 commits · +0 −0 2022-09: 2 commits · +33 −11 2022-10: 0 commits · +0 −0 2022-11: 1 commit · +1 −1 2022-12: 0 commits · +0 −0 2023-01: 0 commits · +0 −0 2023-02: 1 commit · +2 −0 2023-03: 4 commits · +6 −11 2023-04: 0 commits · +0 −0 2023-05: 1 commit · +1 −1 2023-06: 0 commits · +0 −0 2023-07: 1 commit · +9 −0 2023-08: 0 commits · +0 −0 2023-09: 1 commit · +0 −1 2023-10: 0 commits · +0 −0 2023-11: 0 commits · +0 −0 2023-12: 1 commit · +29 −24 2024-01: 0 commits · +0 −0 2024-02: 4 commits · +11 −48 2024-03: 0 commits · +0 −0 2024-04: 0 commits · +0 −0 2024-05: 2 commits · +56 −0 2024-06: 0 commits · +0 −0 2024-07: 0 commits · +0 −0 2024-08: 0 commits · +0 −0 2024-09: 0 commits · +0 −0 2024-10: 1 commit · +0 −77 2024-11: 0 commits · +0 −0 2024-12: 2 commits · +1 −18 2025-01: 0 commits · +0 −0 2025-02: 0 commits · +0 −0 2025-03: 0 commits · +0 −0 2025-04: 0 commits · +0 −0 2025-05: 0 commits · +0 −0 2025-06: 0 commits · +0 −0 2025-07: 0 commits · +0 −0 2025-08: 0 commits · +0 −0 2025-09: 0 commits · +0 −0 2025-10: 0 commits · +0 −0 2025-11: 1 commit · +3 −1 2025-12: 1 commit · +1 −3 2026-01: 0 commits · +0 −0 2026-02: 0 commits · +0 −0 2026-03: 0 commits · +0 −0 2026-04: 0 commits · +0 −0

sources

  1. lore.kernel.org

    Recent upstream maintenance continued in 2026 with a hwspinlock sparse-warning fix touching hwspinlock_core.c.

  2. lore.kernel.org

    The subsystem saw non-removal refactoring work in 2026 ('refactor provider.h from public header'), indicating active upkeep rather than retirement.

  3. git.kernel.org

    Upstream Kconfig still exposes current vendor drivers including OMAP/K3, Qualcomm, Spreadtrum, STM32 and Allwinner sun6i, so this directory serves multiple live SoC families rather than one orphaned device.

  4. ti.com

    TI AM64x/K3-class heterogeneous processors are active products for Linux/RTOS industrial systems, matching the Kconfig ARCH_K3 dependency and showing ongoing new-hardware relevance.

  5. wiki.st.com

    ST's current STM32MP25 heterogeneous MPU line targets new industrial/edge deployments, reinforcing that hwspinlock-style inter-processor synchronization remains relevant in contemporary embedded SoCs.

codex reasoning notes (technical)

Local `exec_command` inspection of drivers/hwspinlock showed a real driver/framework directory with provider drivers for OMAP/K3, QCOM, SPRD, STM32 and SUN6I. `lore_file_timeline` on hwspinlock_core.c and `lore_activity` on stm32_hwspinlock.c returned 2026 fix/refactor traffic and no removal-themed subjects in the inspected recent activity. Web search found current TI AM64x/K3 and ST STM32MP25 product pages, supporting that heterogeneous SoCs needing hardware spinlocks are still sold for new industrial/embedded designs. No natural replacement driver exists; this is the upstream framework/provider set for that function.