Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-16 Thread branislav . sasic
re >>>>> are >>>>> better and quicker approaches then creating a custom RTDM driver. >>>>> >>>>> -Greg >>>>> >>>>> On Wed, Mar 7, 2018 at 8:15 AM, >>>>> wrote: >>>>>> Thank you. >>&g

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-15 Thread Greg Gallagher
from sysfs interface works, doesn't >>>>> display any message, but when requested with rtdm_irq_request >>>>> >>>>> //request_irq(irq, irig_r_isr_test, 0, DRIVER_NAME, NULL); //this works >>>>> rtdm_irq_request(&irq_handle, irq, irig_

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-15 Thread Greg Gallagher
q_enable(&irq_handle); >>>> >>>> sunxi_pinctrl_irq_handler(struct irq_desc *desc) routine never get >>>> called. >>>> >>>> >>>> Branislav >>>> >>>> >>>>> I should have access to a beagle

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-08 Thread Greg Gallagher
get >>> called. >>> >>> >>> Branislav >>> >>> >>>> I should have access to a beaglebone green this week. I wasn't able to >>>> reproduce it with a zynq or raspberry Pi 2 board. >>>> >>>> Greg >>>&

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-08 Thread branislav . sasic
>>> >>> >>> >>> Original Message >>> From: branislav.sa...@automatika.imp.bg.ac.rs >>> Sent: March 5, 2018 3:24 AM >>> To: branislav.sa...@automatika.imp.bg.ac.rs >>> Cc: xenomai@xenomai.org >>> Subject: Re: [Xenom

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-07 Thread Greg Gallagher
n't able to >> reproduce it with a zynq or raspberry Pi 2 board. >> >> Greg >> >> >> >> Original Message >> From: branislav.sa...@automatika.imp.bg.ac.rs >> Sent: March 5, 2018 3:24 AM >> To: branislav.sa...@automatika.imp.bg.ac.rs &

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-07 Thread branislav . sasic
ka.imp.bg.ac.rs > Cc: xenomai@xenomai.org > Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap > > Nothing? :| > > >> Thank you for your help Greg & Philippe! >> >> I merged gpio-omap.c from 4.14 kernel to my 4.11 kernel, result is >> f

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-05 Thread Greg Gallagher
i.org Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap Nothing? :| > Thank you for your help Greg & Philippe! > > I merged gpio-omap.c from 4.14 kernel to my 4.11 kernel, result is freezed > cpu after interrupt. Then, I compiled 4.14 latest ipipe-arm kernel from

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-03-05 Thread branislav . sasic
Nothing? :| > Thank you for your help Greg & Philippe! > > I merged gpio-omap.c from 4.14 kernel to my 4.11 kernel, result is freezed > cpu after interrupt. Then, I compiled 4.14 latest ipipe-arm kernel from > git (nothing added, nothing removed), and similar thing happens. Only I > could see som

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-27 Thread branislav . sasic
Thank you for your help Greg & Philippe! I merged gpio-omap.c from 4.14 kernel to my 4.11 kernel, result is freezed cpu after interrupt. Then, I compiled 4.14 latest ipipe-arm kernel from git (nothing added, nothing removed), and similar thing happens. Only I could see some time after, until compl

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
As Philippe mentioned, they are some missing pieces that need to be added to the ipipe. The link Philippe provided will give you guidance on how to make those changes to your custom kernel. The other option is you could use the ipipe-arm tree and the mainline kernel. Also, unrelated, the gpios t

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread branislav . sasic
Xenomai 3.0.6, and ipipe-core-4.9.51-arm-3, patched on sunxi 4.11.2 kernel (with BeagleBone patches applied too). Same situation with this kernel -> https://github.com/beagleboard/linux/tree/4.9-xenomai Just as Giulio wrote, GPIO is configured with: echo 60 > /sys/class/gpio/export echo both > /

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Philippe Gerum
On 02/26/2018 02:46 PM, branislav.sa...@automatika.imp.bg.ac.rs wrote: > Hello, > > I have a problem with new I-pipe patch, which was not existing with legacy > patch on 3.14 kernel, on BeagleBone platform. > > When GPIO pin is configured as input with edge interrupt enable, on IRQ > occurrence t

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
ks, > Giulio > > From: Greg Gallagher > Sent: 26 February 2018 16:06 > To: Giulio Moro > Cc: branislav.sa...@automatika.imp.bg.ac.rs; Xenomai@xenomai.org > Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap > >

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Giulio Moro
Moro Cc: branislav.sa...@automatika.imp.bg.ac.rs; Xenomai@xenomai.org Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap In this case you have Xenomai installed and are using the GPIO in a non rt situation? On Zynq I can use both the RTDM gpios and the sysfs gpios (non rt) at

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
> Best, > Giulio > > > From: Xenomai on behalf of Greg Gallagher > > Sent: 26 February 2018 15:37 > To: branislav.sa...@automatika.imp.bg.ac.rs > Cc: Xenomai@xenomai.org > Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap > > Can

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Giulio Moro
2018 15:37 To: branislav.sa...@automatika.imp.bg.ac.rs Cc: Xenomai@xenomai.org Subject: Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap Can you provide what version of Xenomai you are using and what ipipe patch you are using? It also may be helpful if you could provide some sort of

Re: [Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread Greg Gallagher
Can you provide what version of Xenomai you are using and what ipipe patch you are using? It also may be helpful if you could provide some sort of sample code that reproduces the problem. -Greg On Mon, Feb 26, 2018 at 8:46 AM, wrote: > Hello, > > I have a problem with new I-pipe patch, which wa

[Xenomai] interrupt on edge problem, unexpected IRQ trap

2018-02-26 Thread branislav . sasic
Hello, I have a problem with new I-pipe patch, which was not existing with legacy patch on 3.14 kernel, on BeagleBone platform. When GPIO pin is configured as input with edge interrupt enable, on IRQ occurrence the following message appears: [ 303.331386] irq 88, desc: dc1be400, depth: 0, coun