android_kernel_xiaomi_sm8450/drivers/hwspinlock
Richard Maina e85cf9a5a4 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-12 11:06:41 +02:00
..
hwspinlock_core.c hwspinlock: Introduce hwspin_lock_bust() 2024-09-12 11:06:41 +02:00
hwspinlock_internal.h hwspinlock: Introduce hwspin_lock_bust() 2024-09-12 11:06:41 +02:00
Kconfig hwspinlock: Simplify Kconfig 2020-06-21 00:36:03 -07:00
Makefile hwspinlock: add STM32 hwspinlock device 2018-12-05 12:45:21 -08:00
omap_hwspinlock.c hwspinlock: omap: Use devm_kzalloc() to allocate memory 2020-01-21 16:11:25 -08:00
qcom_hwspinlock.c hwspinlock: qcom: correct MMIO max register for newer SoCs 2022-11-16 09:57:07 +01:00
sirf_hwspinlock.c hwspinlock: sirf: Use devm_hwspin_lock_register() to register hwlock controller 2020-01-21 16:16:36 -08:00
sprd_hwspinlock.c hwspinlock: sprd: Remove redundant PM runtime implementation 2019-11-08 16:42:11 -08:00
stm32_hwspinlock.c hwspinlock: stm32: convert to devm_platform_ioremap_resource 2019-12-28 20:43:23 -08:00
u8500_hsem.c hwspinlock: u8500_hsem: Remove redundant PM runtime implementation 2019-11-08 16:42:26 -08:00