Skip to contentSkip to conversation

Generel problem with realtime-tops(like adeos) overlinux-kernel

Xenomai-help Fillod Stephane 1 participant 1 message Jul 17, 2008

lore
Share & tools
lore
#0 lore raw

Schlägl "Manfred jun. wrote:
[...]

Quoted 3 lines

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...

You're right. But I hope everybody is already aware of this side effect of adeos.

Quoted 4 lines

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), ...

This is indeed the case with MTD, and some zealously "optimized" timeouts that are too short. The other time sensitive cases can generally be addressed with bigger buffering or explicit adeos/ipipe irq locking: local_irq_disable() vs. local_irq_disable_hw(). Of course, the latter comes at some RT latency expense.

Best Regards,

Signature · 1 line
Stephane