linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* EMEV2: debugging a Strange IRQ issue on SMP
@ 2013-07-22 17:15 Ian Molton
  2013-07-23 10:53 ` Ian Molton
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Ian Molton @ 2013-07-22 17:15 UTC (permalink / raw)
  To: linux-sh

Hi guys,

I'm currently attempting to debug strange interrupt handling behaviour 
on EMEV2.

I and Ben Dooks undertook a port of much of the EMEV2 (mach-emxx) to 
2.6.39 a couple of weeks ago, and I recall having dealt with similar 
problems before, although they went away with some patches that fixed 
the pl310 cache controller behaviour.

We are now working on mainline (3.10+) and are seeing what appears to be 
the same problem -

IRQs are arriving, usually, but it seems that under some unknown 
circumstances, the interrupts from the STI timer stop arriving when in 
SMP mode.

They often dont stop immediately but work briefly, and then stop 
somewhat randomly, usually causing driver probes to hang during an 
msleep() or such.

I've compared the SCU and GIC (distributor and CPU) registers between 
the working (2.6.39) kernel, and the non-working mainline effort, and 
not found any real differences, other than some oddities in undocumented 
(and possibly irrelevant?) registers. All the documented registers 
contain sane, and substantially identical looking values.

the SCU is enabled, and both CPUs are set to coherent.
the problem occurs despite the L2 cache being completely disabled.
**the problem goes away when booting with nosmp**
Older kernels required the GIC to be mapped in a "Strongly ordered" 
region, however emulating this behaviour in mainline does not appear to 
help.
Older kernels only exhibited this issue with L2 enabled.

I'm wondering if this is some strange IRQ routing issue, but its eluding 
me at present.

Has anyone seem odd IRQ bahaviour on SMP setups before?

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2013-07-24  3:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-07-22 17:15 EMEV2: debugging a Strange IRQ issue on SMP Ian Molton
2013-07-23 10:53 ` Ian Molton
2013-07-23 12:34 ` Ian Molton
2013-07-24  3:23 ` Magnus Damm

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).