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.
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
sources
- lore.kernel.org
Recent upstream maintenance continued in 2026 with a hwspinlock sparse-warning fix touching hwspinlock_core.c.
- lore.kernel.org
The subsystem saw non-removal refactoring work in 2026 ('refactor provider.h from public header'), indicating active upkeep rather than retirement.
- 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.
- 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.
- 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.