All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] Generel problem with realtime-tops(like adeos) over linux-kernel
@ 2008-07-17  8:12 Schlägl Manfred jun.
  2008-07-17  9:14 ` Jan Kiszka
  2008-07-18  8:02 ` Philippe Gerum
  0 siblings, 2 replies; 4+ messages in thread
From: Schlägl Manfred jun. @ 2008-07-17  8:12 UTC (permalink / raw)
  To: xenomai

Hi!

I think we've discovered a generell logical problem with realtime-tops
like adeos over the linux-kernel.

The basic-assumption of such an system is: Linux is not a
realtime-system, so it is not able to provide realtime to it's services,
so no linux-service is able to use realtime-capabilities, so no
linux-service has realtime-requirements.
>From this it follows that we are able use a top like adeos (send
interrupts later, always interrupt the linux-kernel).

But... Linux is able to provide hard-realtime while interrupts are
locked. And many services(driver) use this.

abstract example:
{{{
spin_lock_irqsave
if(hardware_data_valid())
	process_hardware_data()
spin_lock_irqrestore
}}}
works fine without adeos, but with adeos there may be a relative long
interruption between validation and processing. The hardware may overrun
and process_hardware_data is called without valid data...

In our case we have this problem while the rx-interrupt of our
ethernet-driver. The dma is running permanently and generates an overrun
between the error-checking(which would catch the overrun) part and the
data-processing part of the handler.

I think it is possible that there could be many such (latent) problems
in linux-kernel. For example USB which itself has realtime-requirements,
or eventually mtd (lost data as cause of wrong flash-write/erase
timings), ...

So ... what do you think about that.

Best regards
Manfred Schlaegl





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

end of thread, other threads:[~2008-07-19  7:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-17  8:12 [Xenomai-help] Generel problem with realtime-tops(like adeos) over linux-kernel Schlägl Manfred jun.
2008-07-17  9:14 ` Jan Kiszka
2008-07-18  8:02 ` Philippe Gerum
2008-07-19  7:27   ` Philippe Gerum

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.