linux-uconsole/drivers/soc
Dave Gerlach 17d87b3e0b soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot
[ Upstream commit 03729cfa0d ]

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 <s-anna@ti.com>
Signed-off-by: Dave Gerlach <d-gerlach@ti.com>
Acked-by: Santosh Shilimkar <ssantosh@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-05 14:43:41 +00:00
..
actions
amlogic soc: amlogic: meson-gx-pwrc-vpu: Fix power on/off register bitmask 2020-01-27 14:50:39 +01:00
atmel
bcm soc: bcm: brcmstb: Fix re-entry point with a THUMB2_KERNEL 2019-12-01 09:17:17 +01:00
dove
fsl soc/fsl/qe: Fix an error code in qe_pin_request() 2020-01-27 14:50:36 +01:00
gemini
imx soc: imx: gpc: fix PDN delay 2019-11-20 18:45:49 +01:00
lantiq
mediatek soc: mediatek: pwrap: Zero initialize rdata in pwrap_init_cipher 2019-06-15 11:54:08 +02:00
qcom soc: qcom: cmd-db: Fix an error code in cmd_db_dev_probe() 2020-01-27 14:50:35 +01:00
renesas soc: renesas: r8a77990-sysc: Fix initialization order of 3DG-{A,B} 2019-12-13 08:52:29 +01:00
rockchip soc: rockchip: Set the proper PWM for rk3288 2019-06-15 11:54:08 +02:00
samsung
sunxi soc: sunxi: Fix missing dependency on REGMAP_MMIO 2019-05-10 17:54:10 +02:00
tegra soc/tegra: pmc: Fix pad voltage configuration for Tegra186 2019-11-20 18:45:24 +01:00
ti soc: ti: wkup_m3_ipc: Fix race condition with rproc_boot 2020-02-05 14:43:41 +00:00
ux500
versatile
xilinx
zte
Kconfig
Makefile drivers: soc: Allow building the amlogic drivers without ARCH_MESON 2019-12-13 08:51:22 +01:00