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
File | Mode | Size |
---|---|---|
Makefile | -rw-r--r-- | 953 bytes |
datagram.c | -rw-r--r-- | 19.2 KB |
dev.c | -rw-r--r-- | 201.6 KB |
dev_addr_lists.c | -rw-r--r-- | 20.8 KB |
dev_ioctl.c | -rw-r--r-- | 12.6 KB |
drop_monitor.c | -rw-r--r-- | 9.7 KB |
dst.c | -rw-r--r-- | 11.3 KB |
ethtool.c | -rw-r--r-- | 49.7 KB |
fib_rules.c | -rw-r--r-- | 18.1 KB |
filter.c | -rw-r--r-- | 54.8 KB |
flow.c | -rw-r--r-- | 12.4 KB |
flow_dissector.c | -rw-r--r-- | 22.9 KB |
gen_estimator.c | -rw-r--r-- | 8.8 KB |
gen_stats.c | -rw-r--r-- | 9.4 KB |
link_watch.c | -rw-r--r-- | 5.5 KB |
lwtunnel.c | -rw-r--r-- | 5.3 KB |
neighbour.c | -rw-r--r-- | 78.3 KB |
net-procfs.c | -rw-r--r-- | 9.6 KB |
net-sysfs.c | -rw-r--r-- | 37.0 KB |
net-sysfs.h | -rw-r--r-- | 368 bytes |
net-traces.c | -rw-r--r-- | 1.0 KB |
net_namespace.c | -rw-r--r-- | 22.7 KB |
netclassid_cgroup.c | -rw-r--r-- | 2.9 KB |
netevent.c | -rw-r--r-- | 2.0 KB |
netpoll.c | -rw-r--r-- | 19.4 KB |
netprio_cgroup.c | -rw-r--r-- | 6.8 KB |
pktgen.c | -rw-r--r-- | 96.7 KB |
ptp_classifier.c | -rw-r--r-- | 7.2 KB |
request_sock.c | -rw-r--r-- | 5.3 KB |
rtnetlink.c | -rw-r--r-- | 84.7 KB |
scm.c | -rw-r--r-- | 7.8 KB |
secure_seq.c | -rw-r--r-- | 4.1 KB |
skbuff.c | -rw-r--r-- | 111.2 KB |
sock.c | -rw-r--r-- | 73.6 KB |
sock_diag.c | -rw-r--r-- | 8.2 KB |
sock_reuseport.c | -rw-r--r-- | 6.4 KB |
stream.c | -rw-r--r-- | 5.2 KB |
sysctl_net_core.c | -rw-r--r-- | 10.4 KB |
timestamping.c | -rw-r--r-- | 2.1 KB |
tso.c | -rw-r--r-- | 2.3 KB |
utils.c | -rw-r--r-- | 8.2 KB |
Computing file changes ...