All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] irqchip missing?
@ 2016-11-07 21:08 Lowell Gilbert
  2016-11-07 22:11 ` Lowell Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Lowell Gilbert @ 2016-11-07 21:08 UTC (permalink / raw)
  To: xenomai

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] irqchip missing?
  2016-11-07 21:08 [Xenomai] irqchip missing? Lowell Gilbert
@ 2016-11-07 22:11 ` Lowell Gilbert
  2016-11-14  9:09   ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Lowell Gilbert @ 2016-11-07 22:11 UTC (permalink / raw)
  To: xenomai

Lowell Gilbert <kludge@be-well.ilk.org> writes:

> 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.

ipipe_set_irq_affinity() is being called with a GPIO chip, instead of
the GIC that I expect. Why would that be?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] irqchip missing?
  2016-11-07 22:11 ` Lowell Gilbert
@ 2016-11-14  9:09   ` Philippe Gerum
  2016-11-14 21:56     ` Lowell Gilbert
  0 siblings, 1 reply; 5+ messages in thread
From: Philippe Gerum @ 2016-11-14  9:09 UTC (permalink / raw)
  To: Lowell Gilbert, xenomai

On 11/07/2016 11:11 PM, Lowell Gilbert wrote:
> Lowell Gilbert <kludge@be-well.ilk.org> writes:
> 
>> 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.
> 
> 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).

-- 
Philippe.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] irqchip missing?
  2016-11-14  9:09   ` Philippe Gerum
@ 2016-11-14 21:56     ` Lowell Gilbert
  2016-11-22 16:08       ` Philippe Gerum
  0 siblings, 1 reply; 5+ messages in thread
From: Lowell Gilbert @ 2016-11-14 21:56 UTC (permalink / raw)
  To: xenomai

Philippe Gerum <rpm@xenomai.org> writes:

> On 11/07/2016 11:11 PM, Lowell Gilbert wrote:
>> Lowell Gilbert <kludge@be-well.ilk.org> writes:
>> 
>>> 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.
>> 
>> 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).

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.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [Xenomai] irqchip missing?
  2016-11-14 21:56     ` Lowell Gilbert
@ 2016-11-22 16:08       ` Philippe Gerum
  0 siblings, 0 replies; 5+ messages in thread
From: Philippe Gerum @ 2016-11-22 16:08 UTC (permalink / raw)
  To: Lowell Gilbert, xenomai

On 11/14/2016 10:56 PM, Lowell Gilbert wrote:
> Philippe Gerum <rpm@xenomai.org> writes:
> 
>> On 11/07/2016 11:11 PM, Lowell Gilbert wrote:
>>> Lowell Gilbert <kludge@be-well.ilk.org> writes:
>>>
>>>> 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.
>>>
>>> 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).
> 
> 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.
> 

You likely need to backport this patch to your kernel:

http://git.xenomai.org/ipipe.git/commit/?h=ipipe-3.18&id=559b73e59ff1972b7dd654042aefa2bcdf7f7eab

-- 
Philippe.


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2016-11-22 16:08 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-07 21:08 [Xenomai] irqchip missing? Lowell Gilbert
2016-11-07 22:11 ` Lowell Gilbert
2016-11-14  9:09   ` Philippe Gerum
2016-11-14 21:56     ` Lowell Gilbert
2016-11-22 16:08       ` Philippe Gerum

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.