Revision bb143f814ea488769ca2e79e0b376139cb5f134b authored by Vineet Gupta on 23 February 2016, 06:25:16 UTC, committed by Vineet Gupta on 24 February 2016, 05:37:28 UTC
ARConnect/MCIP Inter-Core-Interrupt module can't send interrupt to
local core. So use core intc capability to trigger software
interrupt to self, using an unsued IRQ #21.

This showed up as csd deadlock with LTP trace_sched on a dual core
system. This test acts as scheduler fuzzer, triggering all sorts of
schedulting activity. Trouble starts with IPI to self, which doesn't get
delivered (effectively lost due to H/w capability), but the msg intended
to be sent remain enqueued in per-cpu @ipi_data.

All subsequent IPIs to this core from other cores get elided due to the
IPI coalescing optimization in ipi_send_msg_one() where a pending msg
implies an IPI already sent and assumes other core is yet to ack it.
After the elided IPI, other core simply goes into csd_lock_wait()
but never comes out as this core never sees the interrupt.

Fixes STAR 9001008624

Cc: Peter Zijlstra <peterz@infradead.org>
Cc: <stable@vger.kernel.org>        [4.2]
Signed-off-by: Vineet Gupta <vgupta@synopsys.com>
1 parent 3e5177c
History
File Mode Size
Kconfig -rw-r--r-- 1.1 KB
Makefile -rw-r--r-- 401 bytes
addr.c -rw-r--r-- 4.2 KB
addr.h -rw-r--r-- 2.8 KB
bcast.c -rw-r--r-- 11.2 KB
bcast.h -rw-r--r-- 3.2 KB
bearer.c -rw-r--r-- 25.4 KB
bearer.h -rw-r--r-- 8.3 KB
core.c -rw-r--r-- 4.6 KB
core.h -rw-r--r-- 4.3 KB
discover.c -rw-r--r-- 10.2 KB
discover.h -rw-r--r-- 2.3 KB
eth_media.c -rw-r--r-- 3.6 KB
ib_media.c -rw-r--r-- 3.6 KB
link.c -rw-r--r-- 54.1 KB
link.h -rw-r--r-- 6.1 KB
msg.c -rw-r--r-- 16.9 KB
msg.h -rw-r--r-- 19.7 KB
name_distr.c -rw-r--r-- 10.4 KB
name_distr.h -rw-r--r-- 3.2 KB
name_table.c -rw-r--r-- 27.8 KB
name_table.h -rw-r--r-- 5.0 KB
net.c -rw-r--r-- 8.2 KB
net.h -rw-r--r-- 2.1 KB
netlink.c -rw-r--r-- 4.9 KB
netlink.h -rw-r--r-- 2.1 KB
netlink_compat.c -rw-r--r-- 30.6 KB
node.c -rw-r--r-- 48.2 KB
node.h -rw-r--r-- 3.5 KB
server.c -rw-r--r-- 15.1 KB
server.h -rw-r--r-- 3.6 KB
socket.c -rw-r--r-- 72.1 KB
socket.h -rw-r--r-- 2.6 KB
subscr.c -rw-r--r-- 10.6 KB
subscr.h -rw-r--r-- 3.4 KB
sysctl.c -rw-r--r-- 2.5 KB
udp_media.c -rw-r--r-- 12.6 KB

back to top