Skip to contentSkip to conversation

Interrupt handling problem on Compulab EM-X270.

Adeos-main Nazarov Sergey 2 participants 3 messages Feb 22, 2011 – Feb 24, 2011 7 messages not in the archive

lore
Share & tools
lore
#0 lore raw

   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.

#1 lore raw
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 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.

Does it work with CONFIG_IPIPE enabled?

Signature · 1 line
                                                                Gilles.

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

A message that is not in the archive (sent off-list or not yet received): [email protected]

#9 lore raw
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.