Generel problem with realtime-tops(like adeos) overlinux-kernel
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_datais 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