All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Xenomai on arm926ejs based SOCs.
@ 2010-01-06 21:53 Gilles Chanteperdrix
  0 siblings, 0 replies; only message in thread
From: Gilles Chanteperdrix @ 2010-01-06 21:53 UTC (permalink / raw)
  To: Bosko Radivojevic; +Cc: Xenomai help


Hi

Short explanation: please all users of SOCs based on the arm926ejs core,
boot your xenomai-patched kernel with the "nohlt" parameter.

Long explanation: Bosko, I have finally found the reason for the strange
problem you had when an interrupt handler could take a long time to
execute when preempting the idle task, which you solved by booting the
kernel with the nohlt parameter.

The I-pipe patch modifies the ARM idle loop to run the hardware-specific
idle callback (arch_idle) with hardware interrupts enabled. But the
arm926ejs idle callback disables the I-cache, then calls the
"wait-for-interrupt" instruction, then re-enables the I-cache. So, when
CONFIG_IPIPE is active, if an interrupt happens when the idle loop is
stopped in the "wait-for-interrupt" instruction (which happens all the
time, really, on an unloaded system), the interrupt preempts the idle
loop immediately, that is before the I-cache is re-enabled, and the
whole interrupt handling, including switching-to and running some
xenomai task, happens with I-cache off. A disaster.

So, Bosko, your interrupt handler was running with I-cache off.

Obviously, next releases of the I-pipe patch will no longer call
arch_idle with hardware irqs on. But in the mean-time, you have to boot
your kernel with the nohlt parameter.

Sorry for the inconvenience.

Regards.

-- 
					    Gilles.


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-01-06 21:53 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-06 21:53 [Xenomai-help] Xenomai on arm926ejs based SOCs Gilles Chanteperdrix

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.