* [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
@ 2013-09-30 9:47 Antoine MOREL
2013-09-30 11:35 ` Gilles Chanteperdrix
0 siblings, 1 reply; 10+ messages in thread
From: Antoine MOREL @ 2013-09-30 9:47 UTC (permalink / raw)
To: xenomai@xenomai.org
Hi all,
I'm testing Xenomai on an apf28 board, with imx28 processor.
I'm using a 3.8.13 kernel with the last Xenomai-head repositorie.
When I use the kernel without xenomai, my GPIO irq works well. But when I patch my kernel with adeos and Xenomai, my gpio IRQ doesn't work!
I have the same problem with the kernel 3.4.6.
I test the gpio IRQ in user space and with RTDM driver.
Do I forget anything?
Cordialement,
Antoine MOREL
POLYSOUDE SAS
Développement logiciel
+33(0)2 40 68 57 71
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: interrupt_xeno_kernel.c
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130930/8e334a79/attachment.c>
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: main.c
URL: <http://www.xenomai.org/pipermail/xenomai/attachments/20130930/8e334a79/attachment-0001.c>
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-09-30 9:47 [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13 Antoine MOREL
@ 2013-09-30 11:35 ` Gilles Chanteperdrix
2013-09-30 13:01 ` Antoine MOREL
0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2013-09-30 11:35 UTC (permalink / raw)
To: Antoine MOREL; +Cc: xenomai@xenomai.org
On 09/30/2013 11:47 AM, Antoine MOREL wrote:
> Hi all,
>
> I'm testing Xenomai on an apf28 board, with imx28 processor.
> I'm using a 3.8.13 kernel with the last Xenomai-head repositorie.
>
> When I use the kernel without xenomai, my GPIO irq works well. But when I patch my kernel with adeos and Xenomai, my gpio IRQ doesn't work!
> I have the same problem with the kernel 3.4.6.
>
> I test the gpio IRQ in user space and with RTDM driver.
> Do I forget anything?
The irq line probably needs to be enabled, you should use
rtdm_irq_enable after rtdm_irq_request, if that does not work, try to
request irq at Linux level, then please report your findings to the
mailing list.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-09-30 11:35 ` Gilles Chanteperdrix
@ 2013-09-30 13:01 ` Antoine MOREL
2013-10-01 19:15 ` Gilles Chanteperdrix
0 siblings, 1 reply; 10+ messages in thread
From: Antoine MOREL @ 2013-09-30 13:01 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
Hello Gilles,
I try with the function rtdm_irq_enable after rtdm_irq_request. It doesn't work again.
I request the irq at linux level (see main.c), but with the adeos path, it doesn't work. I don't know why!
Regards,
Antoine MOREL
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
Envoyé : lundi 30 septembre 2013 13:35
À : Antoine MOREL
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
On 09/30/2013 11:47 AM, Antoine MOREL wrote:
> Hi all,
>
> I'm testing Xenomai on an apf28 board, with imx28 processor.
> I'm using a 3.8.13 kernel with the last Xenomai-head repositorie.
>
> When I use the kernel without xenomai, my GPIO irq works well. But when I patch my kernel with adeos and Xenomai, my gpio IRQ doesn't work!
> I have the same problem with the kernel 3.4.6.
>
> I test the gpio IRQ in user space and with RTDM driver.
> Do I forget anything?
The irq line probably needs to be enabled, you should use rtdm_irq_enable after rtdm_irq_request, if that does not work, try to request irq at Linux level, then please report your findings to the mailing list.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-09-30 13:01 ` Antoine MOREL
@ 2013-10-01 19:15 ` Gilles Chanteperdrix
2013-10-02 6:08 ` Antoine MOREL
0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2013-10-01 19:15 UTC (permalink / raw)
To: Antoine MOREL; +Cc: xenomai@xenomai.org
On 09/30/2013 03:01 PM, Antoine MOREL wrote:
> Hello Gilles,
>
> I try with the function rtdm_irq_enable after rtdm_irq_request. It doesn't work again.
> I request the irq at linux level (see main.c), but with the adeos path, it doesn't work. I don't know why!
Could you be more precise? Do you mean you do not receive Linux
interrupts when Adeos is enabled? Or do you try to request an irq with
rtdm_irq_request and do not receive interrupt? Did you configure the irq
type (edge, level).
Regards.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-10-01 19:15 ` Gilles Chanteperdrix
@ 2013-10-02 6:08 ` Antoine MOREL
2013-10-02 8:56 ` Gilles Chanteperdrix
0 siblings, 1 reply; 10+ messages in thread
From: Antoine MOREL @ 2013-10-02 6:08 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
I try the same software (file main.c) with and without adeos.
It works without adeos, and it doesn't work with adeos!
Did I forget anything to do with adeos?
The same software can run well with and without adeos?
Thanks.
Antoine
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
Envoyé : mardi 1 octobre 2013 21:16
À : Antoine MOREL
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
On 09/30/2013 03:01 PM, Antoine MOREL wrote:
> Hello Gilles,
>
> I try with the function rtdm_irq_enable after rtdm_irq_request. It doesn't work again.
> I request the irq at linux level (see main.c), but with the adeos path, it doesn't work. I don't know why!
Could you be more precise? Do you mean you do not receive Linux interrupts when Adeos is enabled? Or do you try to request an irq with rtdm_irq_request and do not receive interrupt? Did you configure the irq type (edge, level).
Regards.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-10-02 6:08 ` Antoine MOREL
@ 2013-10-02 8:56 ` Gilles Chanteperdrix
2013-10-04 9:01 ` Antoine MOREL
0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2013-10-02 8:56 UTC (permalink / raw)
To: Antoine MOREL; +Cc: xenomai@xenomai.org
On 10/02/2013 08:08 AM, Antoine MOREL wrote:
> I try the same software (file main.c) with and without adeos.
> It works without adeos, and it doesn't work with adeos!
> Did I forget anything to do with adeos?
> The same software can run well with and without adeos?
Please try the following patch:
diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c
index fa2a63c..a8c6fe2 100644
--- a/drivers/gpio/gpio-mxs.c
+++ b/drivers/gpio/gpio-mxs.c
@@ -137,7 +137,7 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc)
while (irq_stat != 0) {
int irqoffset = fls(irq_stat) - 1;
- generic_handle_irq(irq_find_mapping(port->domain, irqoffset));
+ ipipe_handle_demuxed_irq(irq_find_mapping(port->domain, irqoffset));
irq_stat &= ~(1 << irqoffset);
}
}
--
Gilles.
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-10-02 8:56 ` Gilles Chanteperdrix
@ 2013-10-04 9:01 ` Antoine MOREL
2013-10-04 11:27 ` Gilles Chanteperdrix
0 siblings, 1 reply; 10+ messages in thread
From: Antoine MOREL @ 2013-10-04 9:01 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
Hello Gilles,
I tried the patch and it works!
Did the adeos patch will be updated?
Thanks.
Antoine.
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
Envoyé : mercredi 2 octobre 2013 10:57
À : Antoine MOREL
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
On 10/02/2013 08:08 AM, Antoine MOREL wrote:
> I try the same software (file main.c) with and without adeos.
> It works without adeos, and it doesn't work with adeos!
> Did I forget anything to do with adeos?
> The same software can run well with and without adeos?
Please try the following patch:
diff --git a/drivers/gpio/gpio-mxs.c b/drivers/gpio/gpio-mxs.c index fa2a63c..a8c6fe2 100644
--- a/drivers/gpio/gpio-mxs.c
+++ b/drivers/gpio/gpio-mxs.c
@@ -137,7 +137,7 @@ static void mxs_gpio_irq_handler(u32 irq, struct irq_desc *desc)
while (irq_stat != 0) {
int irqoffset = fls(irq_stat) - 1;
- generic_handle_irq(irq_find_mapping(port->domain, irqoffset));
+ ipipe_handle_demuxed_irq(irq_find_mapping(port->domain, irqoffset));
irq_stat &= ~(1 << irqoffset);
}
}
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-10-04 9:01 ` Antoine MOREL
@ 2013-10-04 11:27 ` Gilles Chanteperdrix
2014-01-13 16:38 ` Antoine MOREL
0 siblings, 1 reply; 10+ messages in thread
From: Gilles Chanteperdrix @ 2013-10-04 11:27 UTC (permalink / raw)
To: Antoine MOREL; +Cc: xenomai@xenomai.org
On 10/04/2013 11:01 AM, Antoine MOREL wrote:
> Hello Gilles,
>
> I tried the patch and it works!
> Did the adeos patch will be updated?
Yes, it will be updated.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2013-10-04 11:27 ` Gilles Chanteperdrix
@ 2014-01-13 16:38 ` Antoine MOREL
2014-01-13 20:20 ` Gilles Chanteperdrix
0 siblings, 1 reply; 10+ messages in thread
From: Antoine MOREL @ 2014-01-13 16:38 UTC (permalink / raw)
To: Gilles Chanteperdrix; +Cc: xenomai@xenomai.org
Hello Gilles,
You updated the adeos patch but you forgot to include the <linux/ipipe.h> in the gpio-mxs.c
Antoine
-----Message d'origine-----
De : Gilles Chanteperdrix [mailto:gilles.chanteperdrix@xenomai.org]
Envoyé : vendredi 4 octobre 2013 13:28
À : Antoine MOREL
Cc : xenomai@xenomai.org
Objet : Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
On 10/04/2013 11:01 AM, Antoine MOREL wrote:
> Hello Gilles,
>
> I tried the patch and it works!
> Did the adeos patch will be updated?
Yes, it will be updated.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13
2014-01-13 16:38 ` Antoine MOREL
@ 2014-01-13 20:20 ` Gilles Chanteperdrix
0 siblings, 0 replies; 10+ messages in thread
From: Gilles Chanteperdrix @ 2014-01-13 20:20 UTC (permalink / raw)
To: Antoine MOREL; +Cc: xenomai@xenomai.org
On 01/13/2014 05:38 PM, Antoine MOREL wrote:
> Hello Gilles,
>
> You updated the adeos patch but you forgot to include the <linux/ipipe.h> in the gpio-mxs.c
I applied the patch you told me fixed the issue... Will add the #include
then.
--
Gilles.
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2014-01-13 20:20 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-30 9:47 [Xenomai] No GPIO IRQ on imx28(apf28), kernel 3.8.13 Antoine MOREL
2013-09-30 11:35 ` Gilles Chanteperdrix
2013-09-30 13:01 ` Antoine MOREL
2013-10-01 19:15 ` Gilles Chanteperdrix
2013-10-02 6:08 ` Antoine MOREL
2013-10-02 8:56 ` Gilles Chanteperdrix
2013-10-04 9:01 ` Antoine MOREL
2013-10-04 11:27 ` Gilles Chanteperdrix
2014-01-13 16:38 ` Antoine MOREL
2014-01-13 20:20 ` Gilles Chanteperdrix
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.