OpenCloudOS-Kernel/drivers/hwspinlock
Richard Maina a6978d1b7b hwspinlock: Introduce hwspin_lock_bust()
[ Upstream commit 7c327d56597d8de1680cf24e956b704270d3d84a ]

When a remoteproc crashes or goes down unexpectedly this can result in
a state where locks held by the remoteproc will remain locked possibly
resulting in deadlock. This new API hwspin_lock_bust() allows
hwspinlock implementers to define a bust operation for freeing previously
acquired hwspinlocks after verifying ownership of the acquired lock.

Signed-off-by: Richard Maina <quic_rmaina@quicinc.com>
Reviewed-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Chris Lew <quic_clew@quicinc.com>
Link: https://lore.kernel.org/r/20240529-hwspinlock-bust-v3-1-c8b924ffa5a2@quicinc.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-09-08 07:54:43 +02:00
..
Kconfig hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
Makefile hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
hwspinlock_core.c hwspinlock: Introduce hwspin_lock_bust() 2024-09-08 07:54:43 +02:00
hwspinlock_internal.h hwspinlock: Introduce hwspin_lock_bust() 2024-09-08 07:54:43 +02:00
omap_hwspinlock.c hwspinlock: omap: Convert to platform remove callback returning void 2023-07-15 13:04:25 -07:00
qcom_hwspinlock.c hwspinlock: qcom: add missing regmap config for SFPB MMIO implementation 2023-07-17 11:49:18 -07:00
sprd_hwspinlock.c hwspinlock: sprd: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:57 -06:00
stm32_hwspinlock.c hwspinlock: stm32: Use struct_size() helper in devm_kzalloc() 2022-03-11 14:56:15 -06:00
sun6i_hwspinlock.c hwspinlock: add sun6i hardware spinlock support 2021-05-27 22:19:42 -05:00
u8500_hsem.c hwspinlock: u8500: Convert to platform remove callback returning void 2023-07-15 13:04:25 -07:00