All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: "Reitinger, Peter" <preitinger@carl-valentin.de>,
	"xenomai@xenomai.org" <xenomai@xenomai.org>
Subject: Re: [Xenomai] SPI tx underflow interrupt not available
Date: Wed, 27 Aug 2014 09:58:50 +0200	[thread overview]
Message-ID: <53FD8FBA.3070403@xenomai.org> (raw)
In-Reply-To: <860f4c66b4b34363a35ca81ac139eaba@CVEX13.valentin-carl.de>

On 08/27/2014 09:48 AM, Reitinger, Peter wrote:
> On 08/26/2014 04:24 PM, Reitinger, Peter wrote:
>> Dear Xenomai people,
>> 
>> 
>> I am currently trying to write an SPI slave rtdm driver with fifo
>> and dma support. I would like to receive an interrupt if there is
>> an underflow in the tx fifo.
>> 
>> Therefore I try to request the related hardware interrupt (which is
>> irq 125 at my emtrion board which has EDMA and 2 McSPI interfaces
>> where I am trying McSPI1).
> 
> Are you sure the irq number is 125? If 125 is a "physical" irq
> number, it is almost probably not the number you should pass to 
> rtdm_irq_request. Have you tried requesting it as a Linux interrupt?
> 
> 
> 
>> 
>> Unfortunately it seems that interrupt 125 is reserved by another
>> linux
> driver because a list of /proc/irq/125 shows:
>> 
>> root@dimm-am335x:/proc# ls /proc/irq/125 53100000.sham  spurious
> 
> Have you tried grepping "sham" in the kernel sources?
> 
> No, I am absolutely unsure if 125 is the right number because I am
> relatively new in programming interrupts in the kernel. So I feel I
> have to read a lot about interrupts in linux? So I have to combine
> original linux kernel function calls and xenomai function calls to
> get interrupts working?

No, the idea is to test the interrupt with Linux alone first, to avoid
any potential bug that Xenomai or more probably the I-pipe patch would add.

> Sorry that I have so few experience there...
> If you have a quick help in mind even though it is not directly
> related to Xenomai, you would help me a lot... :-/
> 
> Thx, I will try to grep for sham. I am afraid there might be a lot of
> hits...

I have done it (grepped \bsham\b) and found that omaps have a peripheral
named sham which is a crypto device.

-- 
                                                                Gilles.


  reply	other threads:[~2014-08-27  7:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.981.1409108395.5713.xenomai@xenomai.org>
2014-08-27  7:48 ` [Xenomai] SPI tx underflow interrupt not available Reitinger, Peter
2014-08-27  7:58   ` Gilles Chanteperdrix [this message]
2014-08-26 14:24 Reitinger, Peter
2014-08-26 20:29 ` 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=53FD8FBA.3070403@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=preitinger@carl-valentin.de \
    --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.