summaryrefslogtreecommitdiff
path: root/tools/lib/traceevent
diff options
context:
space:
mode:
authorDave Gerlach <d-gerlach@ti.com>2019-12-11 22:03:14 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-05 14:43:41 +0000
commit17d87b3e0b2e26b1ce13c70c10e998cbdcf2bb59 (patch)
treedb22af67c05212f8c2a1463eedd5aa2cfca2ddcb /tools/lib/traceevent
parent8d22af64f8283e732d6f858da90fcd8cee90361d (diff)
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 <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>
Diffstat (limited to 'tools/lib/traceevent')
0 files changed, 0 insertions, 0 deletions