Message-ID: In-Reply-To: <55A3D1B2.50905@sigmatek.at> References: <559E65FB.8080904@sigmatek.at> <20150709141922.GG20176@hermes.click-hack.org> <559E9687.6020109@sigmatek.at> <20150709155115.GK20176@hermes.click-hack.org> <559F91C3.8090005@sigmatek.at> <20150710094655.GS20176@hermes.click-hack.org> <559FA1D1.6060602@sigmatek.at> <20150710104957.GT20176@hermes.click-hack.org> <55A3C023.5070000@sigmatek.at> <20150713140208.GC1554@hermes.click-hack.org> <55A3D1B2.50905@sigmatek.at> Date: Mon, 13 Jul 2015 17:24:44 +0200 From: "Gilles Chanteperdrix" MIME-Version: 1.0 Content-Type: text/plain;charset=utf-8 Content-Transfer-Encoding: 8bit Subject: Re: [Xenomai] usage of rtdm_task_sleep_abs List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: johann.obermayr@sigmatek.at Cc: xenomai@xenomai.org Johann Obermayr wrote: > without your application, there are no large latencies. > with your application see frozen.txt (with latency -f) I am confused. You mean "our application", not "your application", right? lrtdrv_monitoring_irq is not part of the code delivered by the Xenomai project. > We see the problem only if one task (background) is accessing the SRAM > on your PCI-Card. if we stop this task, all is ok. Again: the Xenomai project does not make PCI-card. So, you probably mean "our PCI-Card"? > So we have a higher prior task (pci-locker), that interrupt the > background task, so that the pci bus get free. I am not sure I understand your explanations. But the trace is pretty clear: At time -658 the timer is programmed to tick at -561. > :| # event tick@-561 -658 0.112 xntimer_next_local_shot+0xca > :| + func -651 0.145 lrtdrv_monitoring_irq+0x4 > [sigmatek_lrt] (irq_hook_handler+0x32 [sigmatek_lrt]) > :| + end 0x000000ef -651! 641.640 apic_timer_interrupt+0x52 > (<102d0254>) But at that point the tick is delayed for 600us. And according to the trace, the last traced function called before that delay is the function ltdrv_monitoring_irq. So, I do not know what this irq is doing, but I would suggest having a close look at it. -- Gilles. https://click-hack.org