kernel_samsung_a53x/Documentation/locking
Richard Maina c0d1877788 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>
2025-01-19 14:52:28 +01:00
..
futex-requeue-pi.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hwspinlock.rst hwspinlock: Introduce hwspin_lock_bust() 2025-01-19 14:52:28 +01:00
index.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockdep-design.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lockstat.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locktorture.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
locktypes.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mutex-design.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
percpu-rw-semaphore.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pi-futex.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
preempt-locking.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
robust-futex-ABI.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
robust-futexes.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rt-mutex-design.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rt-mutex.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
seqlock.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
spinlocks.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ww-mutex-design.rst Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00