Interrupt handling problem on Compulab EM-X270.
Hi!
I'm trying to use i-pipe 1.18-01 on ARM XScale-PXA270 based Compulab EM-X270 board. Kernel version is 2.6.33.
With kernel, patched by i-pipe patch, network controller Davicom DM9000 standing unstable: sometimes a lot of packets are losing. This happens with CONFIG_IPIPE disabled even. The reason is lost interrupts, I see. Network controller uses GPIO line to produce interrupts. I have found that i-pipe patch changing irq handler handle_irq_edge to handle_irq_level (arch/arm/plat-pxa/gpio.c: pxa_init_gpio) without any conditions. What's the reason for that changing? The back change to edge-type handler returns network controller to stable state.
Best regards, Sergey.
Quoted 11 lines · Nazarov Sergey
Hi! I'm trying to use i-pipe 1.18-01 on ARM XScale-PXA270 based Compulab EM-X270 board. Kernel version is 2.6.33. With kernel, patched by i-pipe patch, network controller Davicom DM9000 standing
unstable: sometimes a lot of packets are losing. This happens withCONFIG_IPIPEdisabled even. The reason is lost interrupts, I see. Network controller uses GPIO line to produce interrupts. I have found that i-pipe patch changing irq handlerhandle_irq_edgetohandle_irq_level(arch/arm/plat-pxa/gpio.c:pxa_init_gpio) without any conditions. What's the reason for that changing? The back change to edge-type handler returns network controller to stable state. Best regards, Sergey.
Does it work with CONFIG_IPIPE enabled?
Signature · 1 line
Gilles.
Quoted 5 lines · Nazarov Sergey
Test:
non-RT load: dd if=/dev/zero of=/dev/null + ping flud from another host,
RT-load: 3 latency tests (user, kernel and timer task) + switchtest, worked for 1 hour without visible problems (0% of ping packets lost).
Sergey.
Ok. The problem is that on some machines, we get a lockup when using the edge handler, because the edge handler does not mask the interrupt line, and so the interrupt triggers again. I guess this must happens with devices having a level semantic.
But anyway, I prefer some non real-time interrupts lost, than a complete lockup, so, the code will stay the way it is, I suggest you modify the board/driver code to change the flow handler of only the line you use. This change could be integrated into the I-pipe patch.
Signature · 1 line
Gilles.