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

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

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

740件の閲覧回数
sofia_0571
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 件の賞賛
2 返答(返信)

731件の閲覧回数
igorpadykov
NXP Employee
NXP Employee

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 件の賞賛

717件の閲覧回数
sofia_0571
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 件の賞賛