All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Manuel Huber <manuel.h87@gmail.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] (Boot)-problems with (current) ipipe patch on AMD FX 61000 - 2.6.38.8 & 3.5.7
Date: Thu, 14 Feb 2013 21:13:13 +0100	[thread overview]
Message-ID: <511D4559.5030505@xenomai.org> (raw)
In-Reply-To: <511CD2FB.7010502@gmail.com>

On 02/14/2013 01:05 PM, Manuel Huber wrote:

> Hello!
> 
> We use an AMD FX-61000 CPU and we are having trouble using kernel versions
> 2.6.38.8 and 3.5.7 (newest) and some more... The only version that
> worked is 2.6.35.9 (so far). But let's focus on 3.5.7:
> 
> I finally managed to get error messages from the 3.5.7 kernel (Thanks to
> Philippe Gerum, who was so kind to direct me to the mailing list and also
> gave me some hints about debugging,... ). I've seen that there is a
> kernel BUG on line 139 and 170. Maybe thats the reason for the problem?
> I included the kernel config and the full log from startup. Of course it can
> very well be a wrong configuration...
> 
> However, it seems like I could avoid the problemes with the 2.6.35.9
> kernel (It was related to RTnet + rt8169 sometimes getting stuck;
> it doesn't happen on the 3.5.7 kernel, as far as I can tell
> [tested on an AMD Athlon 64 X2]; now I'm using the rt8139C card which
> works like a charm), so I just wanted to submit the problem,
> maybe it helps to further improve this project...
> 
> Of coure I would love to use the current version and I can test
> configurations and boot the system with different options if that
> helps with finding the error...
> 
> Best regards, Manuel
> -------------- next part --------------
[    1.201759] kernel BUG at arch/x86/kernel/ipipe.c:589!


Could you try the following patch?

diff --git a/arch/x86/kernel/ipipe.c b/arch/x86/kernel/ipipe.c
index f833663..6d0fd72 100644
--- a/arch/x86/kernel/ipipe.c
+++ b/arch/x86/kernel/ipipe.c
@@ -586,6 +586,8 @@ int __ipipe_handle_irq(struct pt_regs *regs)
 
 	if (likely(vector < 0)) {
 		irq = __this_cpu_read(vector_irq[~vector]);
+		if (irq < 0)
+			printk("invalid irq for vector 0x%08x\n", vector);
 		BUG_ON(irq < 0);
 	} else { /* Software-generated. */
 		irq = vector;


-- 

                                                                Gilles.


  reply	other threads:[~2013-02-14 20:13 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-14 12:05 [Xenomai] (Boot)-problems with (current) ipipe patch on AMD FX 61000 - 2.6.38.8 & 3.5.7 Manuel Huber
2013-02-14 20:13 ` Gilles Chanteperdrix [this message]
2013-02-19 11:13   ` Manuel Huber
2013-02-19 12:02     ` Gilles Chanteperdrix
2013-02-15  6:55 ` Jan Kiszka
2013-02-19 11:22   ` Manuel Huber
2013-02-19 12:05     ` Jan Kiszka
2013-02-19 12:07       ` Gilles Chanteperdrix
2013-02-19 12:22         ` Jan Kiszka
2013-02-19 12:30           ` Gilles Chanteperdrix
2013-02-19 12:40             ` Jan Kiszka
2013-02-19 12:12       ` Jan Kiszka
2013-02-19 18:48       ` Jan Kiszka
2013-02-19 18:52         ` Gilles Chanteperdrix
2013-02-19 19:05           ` Jan Kiszka
2013-02-20 20:42             ` Manuel Huber
2013-02-19 20:17         ` Jan Kiszka
2013-02-22 13:54           ` Manuel Huber
2013-02-22 14:06             ` Jan Kiszka
2013-02-25 17:08               ` Jan Kiszka
2013-02-25 19:07                 ` Anders Blomdell
2013-02-25 19:10                   ` Jan Kiszka
2013-02-25 20:09                     ` Anders Blomdell
2013-02-25 22:02                       ` Jan Kiszka
2013-02-26 15:57                         ` Anders Blomdell
2013-02-26 15:58                           ` Jan Kiszka
     [not found]                             ` <512F92C3.1070003@control.lth.se>
2013-02-28 17:30                               ` Jan Kiszka
2013-03-11  8:34                                 ` Anders Blomdell
2013-03-01 11:15                         ` Manuel Huber
2013-03-01 13:48                           ` Jan Kiszka
2013-04-09 22:09                             ` Gilles Chanteperdrix
2013-04-10  7:02                               ` Jan Kiszka
2013-04-10  7:05                                 ` Gilles Chanteperdrix
2013-04-10  7:09                                   ` Jan Kiszka

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=511D4559.5030505@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=manuel.h87@gmail.com \
    --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.