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-03-08 Thread branislav . sasic
In attachment is example kernel module code that work when used request_irq but not with rtdm_irq_request. I need to measure time intervals between signal edges and to do some processing inside that module. This worked fine on 3.14 kernel on BeagleBone with Xenomai 2.6.x. Now, on NanoPi NEO (4.14,

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

2018-03-16 Thread branislav . sasic
Thanks! Tried that, doesn't work on NanoPI NEO Branislav > I should also mention I did my testing on a Zynq microzed board. > > On Thu, Mar 15, 2018 at 4:01 PM, Greg Gallagher > wrote: >> Using the 4.14 arm ipipe tree, xenomai stable 3.0.x (from git) I was >> able to

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

2018-03-07 Thread branislav . sasic
Thank you. Meanwhile, I tried ipipe-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(irq, irig_r_isr_test, 0, DRIVER_NAME, NULL); //this works

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

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

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