linux-rt-users.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Latency measurement with oscilloscope, randomly high latency times
@ 2014-12-18 15:12 Camera.Geomatics
  2014-12-19  4:14 ` Frank Rowand
  0 siblings, 1 reply; 2+ messages in thread
From: Camera.Geomatics @ 2014-12-18 15:12 UTC (permalink / raw)
  To: linux-rt-users

Hi

We try to achieve hard real time requirements with a 
FPGA->IRQ->ISR->User-Space->Kernel-Module->FPGA loop.

Kernel IRQ handler which toggles IO pins is executed by a Hardware 
interrupt every 200us (FPGA). Priority is set to 99 via chrt ?f ?p99 
pid-module.

Problem:
The test is working (Pins are toggled in time, <50us), but for some reason 

we have randomly (every 2-3sec) big latency times of several ms.

We sometimes get already interrupted in our IRQ handler (which we 
registered with request_irq) before we wakeup our user space task. 

Kernel Version: linux-socfpga 3.10.37-ltsi-rt37
Development board: Altera Cyclone V SoC Development Kit

Do we have to somehow set the priority 99 for the IRQ handler seperately? 
Is there any kind of priority inheritance from user space task to kernel 
module?

Best Regards
Hannes


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

end of thread, other threads:[~2014-12-19  4:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-18 15:12 Latency measurement with oscilloscope, randomly high latency times Camera.Geomatics
2014-12-19  4:14 ` Frank Rowand

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).