irqchip missing?
Hi.
I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to have a set_affinity callback, so I get a kernel dump.
Where should I be checking for what changed? I can't find any relevant changes in the device tree or in the init code that processes it.
Thanks for any guidance I can get.
Be well.
Quoted 5 lines · Lowell Gilbert
I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to have a
set_affinitycallback, so I get a kernel dump.
ipipe_set_irq_affinity() is being called with a GPIO chip, instead of the GIC that I expect. Why would that be?
Quoted 11 lines · Lowell Gilbert
Quoted 5 lines · Lowell Gilbert
I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to have a
set_affinitycallback, so I get a kernel dump.
ipipe_set_irq_affinity()is being called with a GPIO chip, instead of the GIC that I expect. Why would that be?
ipipe_set_irq_affinity() receives an interrupt number, not an IC descriptor. Are you referring to the irq_set_affinity() handler from the irq_chip descriptor instead? Please be specific about the code you refer to (call site).
Signature · 1 line
Philippe.
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Lowell Gilbert
Quoted 5 lines · Lowell Gilbert
I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to have a
set_affinitycallback, so I get a kernel dump.
Quoted 8 lines
Quoted 3 lines
ipipe_set_irq_affinity()is being called with a GPIO chip, instead of the GIC that I expect. Why would that be?
ipipe_set_irq_affinity()receives an interrupt number, not an IC descriptor. Are you referring to theirq_set_affinity()handler from theirq_chipdescriptor instead? Please be specific about the code you refer to (call site).
In ipipe_set_irq_affinity(), I checked irq_get_chip(irq)->name. That gave me "gpio-dwapb" rather than "GIC". There is no irq_set_affinity driver on that chip, and so it crashes.
I haven't figured out how the chip table gets set up.
Be well.
Quoted 20 lines · Lowell Gilbert
Quoted 9 lines · Philippe Gerum
Quoted 8 lines · Lowell Gilbert
Quoted 5 lines · Lowell Gilbert
I have a system based on a Cortex A9. When I was running under Xenomai 2.6, I was able to grab interrupts in RTDM. A few months ago, I updated from a 3.16 Linux kernel and 2.6.4 Xenomai to a 4.1 kernel with 3.0.2 Xenomai. I'm trying to grab the same IRQ now, and the irqchip doesn't seem to have a
set_affinitycallback, so I get a kernel dump.Quoted 8 lines
Quoted 3 lines
ipipe_set_irq_affinity()is being called with a GPIO chip, instead of the GIC that I expect. Why would that be?
ipipe_set_irq_affinity()receives an interrupt number, not an IC descriptor. Are you referring to theirq_set_affinity()handler from theirq_chipdescriptor instead? Please be specific about the code you refer to (call site).
Quoted 6 lines
In
ipipe_set_irq_affinity(), I checked irq_get_chip(irq)->name. That gave me "gpio-dwapb" rather than "GIC". There is noirq_set_affinitydriver on that chip, and so it crashes.I haven't figured out how the chip table gets set up.
You likely need to backport this patch to your kernel:
http://git.xenomai.org/ipipe.git/commit/?h=ipipe-3.18&id=559b73e59ff1972b7dd654042aefa2bcdf7f7eab
Signature · 1 line
Philippe.