From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Mon, 16 Feb 2015 10:25:13 +0100 From: Gilles Chanteperdrix Message-ID: <20150216092513.GA1914@hermes.click-hack.org> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Xenomai] rtdm_irq_request not registering irq List-Id: Discussions about the Xenomai project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: JAY KOTHARI Cc: xenomai 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.