Skip to contentSkip to conversation

Xenomai IRQ question

Xenomai-help Terry Fryar 2 participants 5 messages Jan 16, 2012 – Jan 17, 2012

lore
Share & tools
lore
#0 lore raw

Using xenomai irq's in user mode on a beaglexm. It appears that irq latency is around 44 microseconds from the edge until the isr is executed. Is there any way to reduce the latency? Already using 99 as the priority for the isr task.

Thanks!

#1 lore raw
Quoted 4 lines · Terry Fryar

Using xenomai irq's in user mode on a beaglexm. It appears that irq latency is around 44 microseconds from the edge until the isr is executed. Is there any way to reduce the latency? Already using 99 as the priority for the isr task.

Handle the irq in kernel mode using an RTDM driver.

Signature · 1 line
                                                                Gilles.
#2 lore raw

Ok, on a falling edge irq, I'm using an RTDM driver and I'm down to 2.3uS, which is quite an improvement. However, it's still not fast enough...I need to hit a window of about 500nS. Any other suggestions?

I use the rtdm_irq_request to hook the ISR, and I set up the irq by hand using mem mapping to directly access the registers on the beagle. At this point, I'm not sure where else to try and speed things up?

Thanks!

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Monday, January 16, 2012 6:24 PM
To: Terry Fryar
Cc: [email protected]
Subject: Re: [Xenomai-help] Xenomai IRQ question

Quoted 4 lines · Terry Fryar

Using xenomai irq's in user mode on a beaglexm. It appears that irq latency is around 44 microseconds from the edge until the isr is executed. Is there any way to reduce the latency? Already using 99 as the priority for the isr task.

Handle the irq in kernel mode using an RTDM driver.

Signature · 1 line
                                                                Gilles.
#3 lore raw
Quoted 5 lines · Terry Fryar

Ok, on a falling edge irq, I'm using an RTDM driver and I'm down to 2.3uS, which is quite an improvement. However, it's still not fast enough...I need to hit a window of about 500nS. Any other suggestions?

From what I recall, irq latency under load on a 720 MHz OMAP3 is more

around 20us.

Quoted 4 lines

I use the rtdm_irq_request to hook the ISR, and I set up the irq by hand using mem mapping to directly access the registers on the beagle. At this point, I'm not sure where else to try and speed things up?

500ns is not much. I do not think we support this kind of latency on any processor.

Signature · 1 line
                                                                Gilles.
#4 lore raw

Ok, thanks Gilles!!

-----Original Message-----
From: Gilles Chanteperdrix [mailto:[email protected]]
Sent: Tuesday, January 17, 2012 1:28 PM
To: Terry Fryar
Cc: [email protected]
Subject: Re: [Xenomai-help] Xenomai IRQ question

Quoted 5 lines · Terry Fryar

Ok, on a falling edge irq, I'm using an RTDM driver and I'm down to 2.3uS, which is quite an improvement. However, it's still not fast enough...I need to hit a window of about 500nS. Any other suggestions?

From what I recall, irq latency under load on a 720 MHz OMAP3 is more around

20us.

Quoted 4 lines

I use the rtdm_irq_request to hook the ISR, and I set up the irq by hand using mem mapping to directly access the registers on the beagle. At this point, I'm not sure where else to try and speed things up?

500ns is not much. I do not think we support this kind of latency on any processor.

Signature · 1 line
                                                                Gilles.