From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Imanol Martínez" <imanolmc@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] Problem with PXA320 and xenomai 2.4.9
Date: Wed, 26 Aug 2009 18:46:01 +0200 [thread overview]
Message-ID: <4A9566C9.7000805@domain.hid> (raw)
In-Reply-To: <2f7260f50908260246jed2b885q9c67375b19343920@domain.hid>
Imanol Martínez wrote:
> Hello all,
>
> I have installed xenomai 2.4.9 in a linux 2.6.30 kernel. It seems that
> all the boot is done correctly but when reaching the point to access the
> nfs filesystem I get the following error:
>
> <4>[ 32.879389] WARNING: at net/sched/sch_generic.c:226
> dev_watchdog+0x2c0/0x2e0()
> [ 32.879389] WARNING: at net/sched/sch_generic.c:226
> dev_watchdog+0x2c0/0x2e0()
> <6>[ 33.055929] NETDEV WATCHDOG: eth0 (): transmit timed out
> [ 33.055929] NETDEV WATCHDOG: eth0 (): transmit timed out
>
> and after some seconds
>
> <7>[ 39.438510] eth0: Tx timed out, lost interrupt? TSR=0x1, ISR=0x3,
> t=160.
> <7>[ 49.765548] eth0: Tx timed out, lost interrupt? TSR=0x1, ISR=0x2,
> t=1025.
> <7>[ 51.765562] eth0: Tx timed out, lost interrupt? TSR=0x1, ISR=0x2,
> t=124
>
> Any idea or help to solve this problem...
Please check that when starting from the configuration where you have
the bug, if you disable Xenomai (CONFIG_XENOMAI) and the interrupt
pipeline (CONFIG_IPIPE), the system works.
If it works, could you try the attached patch?
diff --git a/arch/arm/mach-pxa/irq.c b/arch/arm/mach-pxa/irq.c
index f6e0300..f8a25d5 100644
--- a/arch/arm/mach-pxa/irq.c
+++ b/arch/arm/mach-pxa/irq.c
@@ -111,7 +111,11 @@ static void __init pxa_init_low_gpio_irq(set_wake_t fn)
for (irq = IRQ_GPIO0; irq <= IRQ_GPIO1; irq++) {
set_irq_chip(irq, &pxa_low_gpio_chip);
+#ifndef CONFIG_IPIPE
set_irq_handler(irq, handle_edge_irq);
+#else /* CONFIG_IPIPE */
+ set_irq_handler(irq, handle_level_irq);
+#endif /* CONFIG_IPIPE */
set_irq_flags(irq, IRQF_VALID);
}
--
Gilles
next prev parent reply other threads:[~2009-08-26 16:46 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-26 9:46 [Xenomai-help] Problem with PXA320 and xenomai 2.4.9 Imanol Martínez
2009-08-26 9:52 ` Gilles Chanteperdrix
2009-08-26 16:46 ` Gilles Chanteperdrix [this message]
2009-08-27 8:46 ` Imanol Martínez
2009-08-27 8:49 ` Gilles Chanteperdrix
2009-08-27 21:10 ` Gilles Chanteperdrix
2009-08-28 7:03 ` Gilles Chanteperdrix
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4A9566C9.7000805@domain.hid \
--to=gilles.chanteperdrix@xenomai.org \
--cc=imanolmc@domain.hid \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.