All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Terje Frøysa" <Terje.Froysa@sintef.no>
Cc: "xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] IRQ155 not handled. Disabling IRQ line
Date: Tue, 2 Dec 2014 13:13:20 +0100	[thread overview]
Message-ID: <20141202121320.GI2076@hermes> (raw)
In-Reply-To: <314E5ECDAA86314791309FA670550F89C9C51CF0@SINTEFEXMBX05.sintef.no>

On Tue, Dec 02, 2014 at 12:07:50PM +0000, Terje Frøysa wrote:
> Thanks Gilles,
> 
> I think setting the IRQ type mended the problem.
> 
> Before that I did some digging:
> I couldn't find any information that indicated a shared interrupt:
> The /proc/interrupts did not contain the IRQ155 and the /proc/xenomai/irq held only one entry for my driver (below).
> The external interrupt source is a PWM generated pulse-train of 200Hz, i.e. 5ms interval started the code-line before entering the read-loop.
> You say that the line must have been unserved for a 1000 events before being disabled.
> A 1000 events from when and at what rate if EDGE not spesified? The irq handler have no optional returns but "RT_INTR_HANDLED".
> Hence, I cannot imagine where the non-handled returns are coming from. At 5ms rate this would require 5s of pulses to reach 1000.
> The distance in time from IRQ enable to disable the IRQ line seem less than 4us..
> [19833.958667] RTDM IMU 27 - enable IRQ
> [19838.962472] Xenomai: xnintr_irq_handler: IRQ155 not handled. Disabling IRQ line.
> 
> However, I changed the flags to "RTDM_IRQTYPE_EDGE" and it seemed to have a good effect.
> I don't get the message any longer 

If the default irq type is say level low, your pwm signal being low
for for instance 5ms generates interrupts during 5ms, and since the
interrupt condition (low level) is still true, the interrupt
triggers over and over again.

Is the interrupt shared with Linux ?

-- 
					    Gilles.


  reply	other threads:[~2014-12-02 12:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-12-02  9:28 [Xenomai] IRQ155 not handled. Disabling IRQ line Terje Frøysa
2014-12-02  9:33 ` Gilles Chanteperdrix
2014-12-02  9:51   ` Terje Frøysa
2014-12-02  9:57     ` Gilles Chanteperdrix
2014-12-02 10:20       ` Terje Frøysa
2014-12-02 10:53         ` Gilles Chanteperdrix
2014-12-02 12:07           ` Terje Frøysa
2014-12-02 12:13             ` Gilles Chanteperdrix [this message]
2014-12-02 12:16               ` Terje Frøysa
2014-12-02 12:17                 ` 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=20141202121320.GI2076@hermes \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=Terje.Froysa@sintef.no \
    --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.