FPGA, SoC, And CPLD Boards And Kits
FPGA Evaluation and Development Kits
6195 Discussions

Sending interrupts from FPGA to HPS

dbhag2
Beginner
1,285 Views

Hi,

 

I have upgraded kernel from 3.10 to 4.14 and I am having some troubles with getting the interrupts from the FPGA.

 

I can see, when I do "cat /proc/interrupts" my kernel modules are not getting the interrupts from GIC as they used to from the older kernel but is now receiving from gpio-dwapb (See image 1 and 2).

 

I tried to add the registers in the hps2fpga bridge entry in the device tree but that did not work. the link to my device tree is this;

https://0bin.net/paste/8deiVzEvsn8otNyd#wK7Rnp41DDCYwKAqSXG+VBSXF23o+hbTTSrp4oAXtE-

 

And this is the c code of one of my kernel modules which receives interrupts from the fpga.

https://0bin.net/paste/4zAv89RPh3U85kdI#zugZa4gRytL+il0Gnoi9-GKUkqRx1sgj/kOCR03o9SH

 

I would be grateful if someone could tell me where the mistake is

 

Kind Regards,

 

Dev

0 Kudos
2 Replies
Fawaz_Al-Jubori
Employee
1,150 Views

Hello,

did you recompile your kernel module on 3.14 kernel?

 

changing from one kernel to another, specially major upgrade, might affect the module performance and functionality.

unfortunately, we have limited support on custom kernel modules.

I will try to find as much information as I can.

 

 

Thank you.

 

0 Kudos
SimoneBo
Beginner
1,080 Views

Hello @dbhag2 ,

I'm having the same issue with 4.14 kernel.

Have you find a solution?

 

Thanks in advance,

Simone

 

0 Kudos
Reply