android_kernel_motorola_sm6375/drivers/soc
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Dave Gerlach 22946b8397 soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot
[ Upstream commit 03729cfa0d543bc996bf959e762ec999afc8f3d2 ]

Any user of wkup_m3_ipc calls wkup_m3_ipc_get to get a handle and this
checks the value of the static variable m3_ipc_state to see if the
wkup_m3 is ready. Currently this is populated during probe before
rproc_boot has been called, meaning there is a window of time that
wkup_m3_ipc_get can return a valid handle but the wkup_m3 itself is not
ready, leading to invalid IPC calls to the wkup_m3 and system
instability.

To avoid this, move the population of the m3_ipc_state variable until
after rproc_boot has succeeded to guarantee a valid and usable handle
is always returned.

Reported-by: Suman Anna <[email protected]>
Signed-off-by: Dave Gerlach <[email protected]>
Acked-by: Santosh Shilimkar <[email protected]>
Signed-off-by: Tony Lindgren <[email protected]>
Signed-off-by: Sasha Levin <[email protected]>
2020-02-05 21:22:43 +00:00
..
actions
amlogic
aspeed soc: aspeed: Fix snoop_file_poll()'s return type 2020-01-26 10:01:02 +01:00
atmel
bcm
dove
fsl
gemini
imx
ixp4xx
lantiq
mediatek
qcom soc: qcom: llcc: Name regmaps to avoid collisions 2020-01-26 10:01:02 +01:00
renesas soc: renesas: Add missing check for non-zero product register address 2020-01-26 10:01:02 +01:00
rockchip
samsung
sunxi
tegra soc/tegra: pmc: Fix crashes for hierarchical interrupts 2020-01-26 10:01:02 +01:00
ti soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot 2020-02-05 21:22:43 +00:00
ux500
versatile
xilinx
zte
Kconfig
Makefile