linux_dsm_epyc7002/drivers/soc/qcom
Evan Green 3bcf02208e soc: qcom: smp2p: Safely acquire spinlock without IRQs
commit fc3e62e25c3896855b7c3d72df19ca6be3459c9f upstream.

smp2p_update_bits() should disable interrupts when it acquires its
spinlock. This is important because without the _irqsave, a priority
inversion can occur.

This function is called both with interrupts enabled in
qcom_q6v5_request_stop(), and with interrupts disabled in
ipa_smp2p_panic_notifier(). IRQ handling of spinlocks should be
consistent to avoid the panic notifier deadlocking because it's
sitting on the thread that's already got the lock via _request_stop().

Found via lockdep.

Cc: stable@vger.kernel.org
Fixes: 50e9964141 ("soc: qcom: smp2p: Qualcomm Shared Memory Point to Point")
Reviewed-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Reviewed-by: Stephen Boyd <swboyd@chromium.org>
Signed-off-by: Evan Green <evgreen@chromium.org>
Link: https://lore.kernel.org/r/20200929133040.RESEND.1.Ideabf6dcdfc577cf39ce3d95b0e4aa1ac8b38f0c@changeid
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-12-30 11:54:22 +01:00
..
apr.c
cmd-db.c
cpr.c
Kconfig
kryo-l2-accessors.c
llcc-qcom.c
Makefile
mdt_loader.c
ocmem.c
pdr_interface.c soc: qcom: initialize local variable 2020-12-30 11:53:19 +01:00
pdr_internal.h
qcom_aoss.c
qcom_gsbi.c
qcom-geni-se.c soc: qcom: geni: More properly switch to DMA mode 2020-12-30 11:52:57 +01:00
qmi_encdec.c
qmi_interface.c
rmtfs_mem.c
rpmh-internal.h
rpmh-rsc.c
rpmh.c
rpmhpd.c
rpmpd.c
smd-rpm.c
smem_state.c
smem.c
smp2p.c soc: qcom: smp2p: Safely acquire spinlock without IRQs 2020-12-30 11:54:22 +01:00
smsm.c
socinfo.c ARM: SoC-related driver updates 2020-10-24 10:39:22 -07:00
trace-rpmh.h
wcnss_ctrl.c