All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Johan Borkhuis <j.borkhuis@domain.hid>
Cc: Xenomai-help@domain.hid
Subject: Re: [Xenomai-help] Problem with interrupt enabling
Date: Sat, 26 May 2007 11:10:34 +0200	[thread overview]
Message-ID: <1180170634.15146.0.camel@domain.hid> (raw)
In-Reply-To: <4656C2D0.7000705@domain.hid>

On Fri, 2007-05-25 at 13:04 +0200, Johan Borkhuis wrote:
> Hello,
> 
> I am trying to create an RTDM interrupt handler for an external 
> interrupt. I use a rtdm_irq_request, followed by a rtdm_irq_enable. This 
> caused one interrupt to be processed, but subsequent interrupts were not 
> processed.
> After adding an extra rtdm_irq_enable to the ISR the interrupts are 
> processed. When I look at the other drivers I don't see this. Is this 
> needed, or is there a bug/feature in the interrupt handling on my platform?
> (I use a MVME3100 with a ppc8540 processor and openPIC interrupt 
> controller).
> 

Does this help?

--- arch/ppc/syslib/open_pic.c~	2006-11-17 15:55:24.000000000 +0100
+++ arch/ppc/syslib/open_pic.c	2007-05-26 11:09:03.000000000 +0200
@@ -833,7 +833,7 @@
 {
 #if defined(__SLOW_VERSION__) || defined(CONFIG_IPIPE)
 	if (!(irq_desc[irq_nr].status & (IRQ_DISABLED|IRQ_INPROGRESS))
-	    && irq_desc[irq_nr].action)
+	    && (!ipipe_root_domain_p || irq_desc[irq_nr].action))
 		openpic_enable_irq(irq_nr);
 #else
 	if ((irq_desc[irq_nr].status & IRQ_LEVEL) != 0)

> Kind regards,
>     Johan Borkhuis
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
-- 
Philippe.




  parent reply	other threads:[~2007-05-26  9:10 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-25 11:04 [Xenomai-help] Problem with interrupt enabling Johan Borkhuis
2007-05-25 11:16 ` Jan Kiszka
2007-05-25 11:24   ` Johan Borkhuis
2007-05-25 11:34     ` Jan Kiszka
2007-05-25 11:50       ` Johan Borkhuis
2007-05-25 11:57   ` Philippe Gerum
2007-05-25 12:00     ` Jan Kiszka
2007-05-25 12:56       ` Philippe Gerum
2007-05-25 13:05         ` Jan Kiszka
2007-05-25 13:25           ` Philippe Gerum
2007-05-26  9:10 ` Philippe Gerum [this message]
2007-05-29  6:24   ` Johan Borkhuis
2007-05-29  7:32     ` 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=1180170634.15146.0.camel@domain.hid \
    --to=rpm@xenomai.org \
    --cc=Xenomai-help@domain.hid \
    --cc=j.borkhuis@domain.hid \
    /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.