All of lore.kernel.org
 help / color / mirror / Atom feed
From: Gilles Chanteperdrix <gilles.chanteperdrix@xenomai.org>
To: Paul <paul_c@tuxcnc.org>
Cc: Pierre LE COZ <peter.le.coz@gmail.com>, xenomai@xenomai.org
Subject: Re: [Xenomai] GPIO Interrupts problem with RTDM
Date: Tue, 22 Jan 2013 09:40:28 +0100	[thread overview]
Message-ID: <50FE507C.6080406@xenomai.org> (raw)
In-Reply-To: <50FE44F5.9000204@xenomai.org>

On 01/22/2013 08:51 AM, Gilles Chanteperdrix wrote:

> On 01/22/2013 04:06 AM, Paul wrote:
> 
>> On Sunday 20 January 2013, Gilles Chanteperdrix wrote:
>>> On 01/20/2013 01:13 AM, Paul wrote:
>>
>>>>>  About the fact that interrupts are not detected :
>>>>>
>>>>> This may be a generic issue, which I thought was fixed, but may
>>>>> not be.
>>>>>
>>>>>> Could you try the following patch?
>>>>>
>>>>> http://git.xenomai.org/?p=ipipe-gch.git;a=commit;h=c14c79d29fed822
>>>>> 675 60c7bf26d628ef4d39f5b7
>>>>
>>>> Gilles: Looked at the patch and got as far as the changes in
>>>> kernel/ipipe/timer.c:ipipe_timer_stop() - Correct me if I'm wrong,
>>>> but this patch is based on a 3.5.7 parent without
>>>> GENERIC_CLOCKEVENTS ?
>>>
>>> Yes, this patch is based on 3.5.7 and is used with and without
>>> GENERIC_CLOCKEVENTS.
>>
>> Short version: Updated my kernel to 3.5.7 and backported the Raspberry 
>> Pi changes from 3.6.11 and added in the ipipe support. Interrupts are 
>> not being recognised unless irq_set_irq_type() is called. Digging 
>> through the rtdm, nucleus, and ipipe code, at no point is 
>> irq_chip->irq_set_type() called - Also have a problem that none of the 
>> ipipe_pic_muter fields are set, so __ipipe_enable_irqdesc() & friends 
>> do nothing.
>>
>> Noticed XN_ISR_EDGE equates to a falling edge trigger - 
>> irq_set_irq_type() allows for rising, level, or falling edge triggers. 
>> At some point, it may be advantageous to be able to select one of the 
>> three.
>>
>> Will continue digging and add a routine in bcm2708_gpio.c to set the 
>> ipipe_pic_muter fields in the morning.
> 
> 
> PIC muting is not mandatory, I am not sure why you would need it.
> 

If you decide to implement it anyway, you may find some information here:
http://xenomai.org/index.php/I-pipe-core:ArmPorting#Interrupt_Controller_muting

-- 
                                                                Gilles.


  reply	other threads:[~2013-01-22  8:40 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 15:15 [Xenomai] GPIO Interrupts problem with RTDM Pierre LE COZ
2013-01-18 19:59 ` Gilles Chanteperdrix
2013-01-18 22:11 ` Paul
2013-01-18 23:47   ` Pierre LE COZ
2013-01-19  0:52     ` Paul
2013-01-19 10:41       ` Pierre LE COZ
2013-01-19 12:35         ` Paul
2013-01-19 15:46           ` Pierre LE COZ
2013-01-19 15:49             ` Gilles Chanteperdrix
2013-01-20  0:13             ` Paul
2013-01-20 13:50               ` Gilles Chanteperdrix
2013-01-22  3:06                 ` Paul
2013-01-22  7:51                   ` Gilles Chanteperdrix
2013-01-22  8:40                     ` Gilles Chanteperdrix [this message]
2013-01-23 12:14                   ` Gilles Chanteperdrix
2013-01-24 16:52                   ` Christophe Blaess
2013-01-24 17:12                     ` Paul
2013-01-24 17:38                       ` Christophe Blaess
2013-01-25  9:08                         ` Gilles Chanteperdrix
2013-01-31  2:11                           ` Paul
2013-01-31 19:45                             ` Gilles Chanteperdrix
2013-02-13 12:40                               ` Paul
2013-01-25  9:03                       ` Gilles Chanteperdrix
2013-01-28 12:29                         ` Paul
2013-01-28 17:22                           ` Gilles Chanteperdrix
2013-01-19 12:32   ` 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=50FE507C.6080406@xenomai.org \
    --to=gilles.chanteperdrix@xenomai.org \
    --cc=paul_c@tuxcnc.org \
    --cc=peter.le.coz@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.