All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: JAY KOTHARI <jaikothari10@gmail.com>
Cc: xenomai <xenomai@xenomai.org>
Subject: Re: [Xenomai] rtdm_irq_request not registering irq
Date: Mon, 16 Feb 2015 10:25:13 +0100	[thread overview]
Message-ID: <20150216092513.GA1914@hermes.click-hack.org> (raw)
In-Reply-To: <CALe7ZU0Y4hb0d7ANK9gitLLaQnGFiH8LpH3ZaTQ5MHLCYjAf=w@mail.gmail.com>

On Mon, Feb 16, 2015 at 10:28:51AM +0530, JAY KOTHARI wrote:
> Hello,
>          I am requesting interrupt with rtdm_irq_request. API works
> without error but not irq is not working. When I look into dmesg I get
> back-trace of this API but no error. I even looked in /proc/interrupts
> but no sign of registration. What might be wrong with this API for
> me??

You will not see an interrupt registered with rtdm_irq_request in
/proc/interrupts, /proc/interrupts lists interrupts registered with
request_irq. An interrupt registered with rtdm_irq_request appears
in /proc/xenomai/irq.

Does exactly the same irq number work when requesting it with
request_irq ?

If no, then you may have made an error in the irq number: Linux irqs
are now remapped and the irq number passed to request_irq may not be
the same as the hardware irq number you would expect.

If yes, then are you running xenomai on an arm platform? If yes, we
have a very old bug which has been fixed only recently, normally,
requesting the irq both with request_irq and rtrm_irq_request should
avoid this bug.

-- 
					    Gilles.


  reply	other threads:[~2015-02-16  9:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-16  4:58 [Xenomai] rtdm_irq_request not registering irq JAY KOTHARI
2015-02-16  9:25 ` Gilles Chanteperdrix [this message]
2015-02-16  9:52   ` JAY KOTHARI
2015-02-16 10:01     ` Gilles Chanteperdrix
2015-02-16 10:40       ` JAY KOTHARI
2015-02-16 10:48         ` Gilles Chanteperdrix
2015-02-17 17:33   ` Lennart Sorensen
2015-02-17 18:11     ` Gilles Chanteperdrix
2015-02-17 18:19       ` Lennart Sorensen
2015-02-20 12:46         ` JAY KOTHARI

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=20150216092513.GA1914@hermes.click-hack.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=jaikothari10@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.