All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: "Steven A. Falco" <sfalco@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-core] clocktest and cyclictest work but irqloop crashes
Date: Fri, 26 Oct 2007 19:15:25 +0200	[thread overview]
Message-ID: <472220AD.6080402@domain.hid> (raw)
In-Reply-To: <47220255.4040309@domain.hid>

[-- Attachment #1: Type: text/plain, Size: 420 bytes --]

Steven A. Falco wrote:
> I am testing kernel 2.6.23 ARCH=powerpc with Xenomai 2.4-rc4.  The 
> clocktest and cyclictest work perfectly with the uic/spinlock patches.  
> However, the irqloop test fails with the Oops shown below.
>

Please try the patch below. It looks like the chip descriptor does not implement
any unmask handler, which seems odd. This patch should tell us a bit more about
this issue.

-- 
Philippe.

[-- Attachment #2: uic-unmask.patch --]
[-- Type: text/x-patch, Size: 483 bytes --]

Index: ksrc/arch/powerpc/hal.c
===================================================================
--- ksrc/arch/powerpc/hal.c	(revision 3095)
+++ ksrc/arch/powerpc/hal.c	(working copy)
@@ -245,6 +245,11 @@
 
     rthal_irq_desc_status(irq) &= ~IRQ_DISABLED;
 
+    if (rthal_irq_handlerp(irq)->unmask == NULL) {
+      printk("NULL ->unmask handler, IRQ %d, chip %s\n", irq, rthal_irq_handlerp(irq)->typename);
+      return 0;
+    }
+
     return rthal_irq_chip_enable(irq);
 }
 

  reply	other threads:[~2007-10-26 17:15 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-10-26 15:05 [Xenomai-core] clocktest and cyclictest work but irqloop crashes Steven A. Falco
2007-10-26 17:15 ` Philippe Gerum [this message]
2007-10-26 17:54   ` Steven A. Falco
2007-10-26 18:03     ` Jan Kiszka
2007-10-26 19:06       ` Steven A. Falco
2007-10-26 21:13     ` Philippe Gerum

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=472220AD.6080402@domain.hid \
    --to=rpm@xenomai.org \
    --cc=sfalco@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.