RT thread seems blocked
Bradley Valdenebro Peter (DC-AE/ESW52)
Peter.BradleyValdenebro at boschrexroth.nl
Tue Mar 17 11:22:31 CET 2020
Hello Xenomai team,
We are running a Xenomai/Linux setup on a Zynq Z-7020 SoC (We run Linux on CPU0 and Xenomai on CPU1):
- Linux version 4.4.0-xilinx (gcc version 8.3.0 (Buildroot 2019.02-00080-gc31d48e) ) #1 SMP PREEMPT
- ipipe ARM patch #8
- Xenomai 3.0.10
Lately we have been experiencing that our highest priority real time Xenomai thread halts for around 1ms every now and then. We see it happening during different points in our thread.
This thread is triggered by an interrupt generated from the Zynq fpga logic every 125us. We have an fpga counter which is incremented every time an interrupt is generated.
We can see in our logging that we can miss up to 4 counts (~1ms) and we do not know what is going on during that time.
We have tried using the ipipe-tracer but that gives some overhead and the issue isn't reproducible.
The same with ftrace.
Switching from Xenomai 3.0.10 to 3.1 we see the number of occurrences decrease but still we see them.
It is quite difficult to reproduce. It happens around once every 24 hours.
Have you got any ideas?
Are there any known Xenomai/ipipe bugs that could explain this behaviour?
Thanks in advance for your support.
More information about the Xenomai