All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Wolfgang Grandegger <wg@domain.hid>
Cc: xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] Oops with ifconfig on Sequioa AMCC 440EPX board
Date: Tue, 30 Sep 2008 12:41:10 +0200	[thread overview]
Message-ID: <48E20246.7060406@domain.hid> (raw)
In-Reply-To: <48C1053E.4010507@domain.hid>

Wolfgang Grandegger wrote:
> Hello,
> 
> I get the following Oops with a Xenomai patch kernel when configuring
> the EEPRO100 on the PCI slot:
> 
>  -bash-3.2# ifconfig eth2 172.16.0.20
> ------------[ cut here ]------------
> Badness at c0025db0 [verbose debug info unavailable]
> NIP: c0025db0 LR: c01b5658 CTR: c0190738
> REGS: cfaa9d20 TRAP: 0700   Not tainted  (2.6.26.3-dirty)
> MSR: 00029000 <EE,ME>  CR: 44002044  XER: 00000004
> TASK = cf82b5a0[1052] 'ifconfig' THREAD: cfaa8000
> NIP [c0025db0] local_bh_enable+0x84/0x9c
> LR [c01b5658] dev_set_rx_mode+0x34/0x48
> Call Trace:
> [cfaa9dd0] [c01b54bc] __dev_set_rx_mode+0x40/0xb8 (unreliable)
> [cfaa9de0] [c01b5658] dev_set_rx_mode+0x34/0x48
> [cfaa9e00] [c01b83f8] dev_open+0xd8/0x114
> [cfaa9e10] [c01b7244] dev_change_flags+0x8c/0x1b8
> [cfaa9e30] [c01f7f58] devinet_ioctl+0x63c/0x77c
> [cfaa9ea0] [c01f86f8] inet_ioctl+0xcc/0xf8
> [cfaa9eb0] [c01aa878] sock_ioctl+0x60/0x2ec
> [cfaa9ed0] [c00ba598] vfs_ioctl+0x34/0x98
> [cfaa9ee0] [c00ba8fc] do_vfs_ioctl+0x300/0x430
> [cfaa9f10] [c00baa6c] sys_ioctl+0x40/0x74
> [cfaa9f40] [c000e1ac] ret_from_syscall+0x0/0x3c
> Instruction dump:
> 80010014 83e1000c 7c0803a6 38210010 4e800020 4bfdde81 4bffffdc 3d20c02f
> 39297ba0 80090154 7c000034 5400d97e <0f000000> 2f800000 419eff94 38000001
> -bash-3.2#
> Message from syslogd@ at Thu Jan  1 01:01:21 1970 ...
> sequoia666 kernel: ------------[ cut here ]------------
> 
> -bash-3.2# uname -a
> Linux sequoia666 2.6.26.3-dirty
> -bash-3.2# cat /proc/ipipe/version
> 2.2-04
> -bash-3.2# cat /proc/xenomai/version
> 2.4.5
> 
> The NIP is at:
> 
> (gdb) l *0xc0025db0
> 0xc0025db0 is in local_bh_enable (kernel/softirq.c:141).
> 136	#ifdef CONFIG_TRACE_IRQFLAGS
> 137		unsigned long flags;
> 138	
> 139		WARN_ON_ONCE(in_irq());
> 140	#endif
> 141		WARN_ON_ONCE(irqs_disabled());
> 142	
> 143	#ifdef CONFIG_TRACE_IRQFLAGS
> 144		local_irq_save(flags);
> 145	#endif
> 
> Any idea where the problem could be?
> 

As you pointed out, there was an issue with cascaded UICs. The following patch
should fix it (will be merged in the upcoming 2.2-05):

diff --git a/arch/powerpc/sysdev/uic.c b/arch/powerpc/sysdev/uic.c
index 4eff1ab..bd91669 100644
--- a/arch/powerpc/sysdev/uic.c
+++ b/arch/powerpc/sysdev/uic.c
@@ -241,7 +241,16 @@ void uic_irq_cascade(unsigned int virq, struct irq_desc *desc)
 	src = 32 - ffs(msr);

 	subvirq = irq_linear_revmap(uic->irqhost, src);
+#ifdef CONFIG_IPIPE
+	{
+		struct pt_regs regs;    /* Contents not used. */
+		ipipe_trace_irq_entry(subvirq);
+		__ipipe_handle_irq(subvirq, &regs);
+		ipipe_trace_irq_exit(subvirq);
+	}
+#else
 	generic_handle_irq(subvirq);
+#endif

 uic_irq_ret:
 	spin_lock(&desc->lock);

-- 
Philippe.


  parent reply	other threads:[~2008-09-30 10:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 10:09 [Xenomai-help] Oops with ifconfig on Sequioa AMCC 440EPX board Wolfgang Grandegger
2008-09-06 14:16 ` Wolfgang Grandegger
2008-09-06 14:34   ` Gilles Chanteperdrix
2008-09-30 10:41 ` Philippe Gerum [this message]
2008-09-30 13:52   ` Steven A. Falco
2008-09-30 14:45     ` Steven A. Falco

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=48E20246.7060406@domain.hid \
    --to=rpm@xenomai.org \
    --cc=wg@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.