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

2018-03-16 Thread branislav . sasic
IF you want to use them via user space there >>>>> are >>>>> better and quicker approaches then creating a custom RTDM driver. >>>>> >>>>> -Greg >>>>> >>>>> On Wed, Mar 7, 2018 at 8:15 AM, >

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

2018-03-15 Thread Greg Gallagher
pe-arm kernel with latest xenomai from git on >>>>> NanoPi-NEO. Interrupts configured from sysfs interface works, doesn't >>>>> display any message, but when requested with rtdm_irq_request >>>>> >>>>> //request_irq(i

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

2018-03-15 Thread Greg Gallagher
ER_FALLING | IRQF_TRIGGER_RISING); >>>> rtdm_irq_enable(_handle); >>>> >>>> sunxi_pinctrl_irq_handler(struct irq_desc *desc) routine never get >>>> called. >>>> >>>> >>>> Branislav >>>> >>>> &g

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

2018-03-08 Thread Greg Gallagher
(struct irq_desc *desc) routine never 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. &

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

2018-03-08 Thread branislav . sasic
t;> 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 >>> Cc: xenomai@xenomai.org >>> Sub

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

2018-03-07 Thread Greg Gallagher
e green this week. I wasn'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...@

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

2018-03-07 Thread branislav . sasic
c: 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 >> freezed >> cpu afte

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

2018-03-05 Thread Greg Gallagher
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

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

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

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

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

2018-02-26 Thread Greg Gallagher
or what matters). > Thanks, > Giulio > > From: Greg Gallagher <g...@embeddedgreg.com> > Sent: 26 February 2018 16:06 > To: Giulio Moro > Cc: branislav.sa...@automatika.imp.bg.ac.rs; Xenomai@xenomai.org > Subject: Re: [Xenomai] i

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

2018-02-26 Thread Giulio Moro
bruary 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 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

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

2018-02-26 Thread Greg Gallagher
; > Best, > Giulio > > > From: Xenomai <xenomai-boun...@xenomai.org> on behalf of Greg Gallagher > <g...@embeddedgreg.com> > Sent: 26 February 2018 15:37 > To: branislav.sa...@automatika.imp.bg.ac.rs > Cc: Xenomai@xenomai.org >

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

2018-02-26 Thread Giulio Moro
f Greg Gallagher <g...@embeddedgreg.com> 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 you provide what version of Xenomai you are using and what ipipe patch you are usi

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

[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,