when external interruption is coming,sometime spend long time enter gic_handle_irq

cancel
Showing results for 
Search instead for 
Did you mean: 

when external interruption is coming,sometime spend long time enter gic_handle_irq

61 Views
787835294
Contributor II

hi.

     now make a test to know how long it take enter gic_handle_irq when extern interruption is coming.

GPIO5_3(is configured interrupt gpio) is connected to ADC_RDY(32Khz frequency output)

in-gpio147 and out-gpio146 is controled in gic_handle_irq.see the  following:

static asmlinkage void __exception_irq_entry gic_handle_irq(struct pt_regs *regs)

{

  gpio_set_value(147, atomic_read(&intr_probe)%2);//interrupt is coming,gpio147 output level is flipped

do {

...

} while (irqnr != ICC_IAR1_EL1_SPURIOUS);
gpio_set_value(146, atomic_read(&intr_probe)%2);///

}

discovery sometimes lost data, later found, when the interrupt comes to enter gic_handle_irq too late.below is grasping the underlying data waveform.how to optimize.thanks.

787835294_0-1632376706723.png

787835294_1-1632377617435.png

 

0 Kudos
2 Replies

52 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi David

 

standard linux can not guarantee fixed interrupt latencies, in general one can try to analyze

it placing gpio toggling in code and observing it with oscilloscope, For low latency linux one can consider

Real-Time Edge Software

https://www.nxp.com/design/software/development-software/real-time-edge-software:REALTIME-EDGE-SOFTW...

 

Best regards
igor

0 Kudos

38 Views
787835294
Contributor II

Planning to move this feature to the M4 core,The M4 interrupt is specified by the GIC?Will the interruption of the M4 be disturbed by the A53?

0 Kudos