Xilinx / dma_ip_drivers

Xilinx QDMA IP Drivers
https://xilinx.github.io/dma_ip_drivers/
581 stars 421 forks source link

QDMA user interrupt - how should i use it ? #139

Open nimrodhagay opened 2 years ago

nimrodhagay commented 2 years ago

Where can i find an example design which demonstrate the support of user interrupt in the user space ? i've found that the driver use a function pointer which gets called upon a user interrupt but i couldn't find an example regarding how to use it :

dma_ip_drivers/QDMA/linux-kernel/driver/libqdma/qdma_intr.c :

static irqreturn_t user_intr_handler(int irq_index, int irq, void *dev_id)
{
struct xlnx_dma_dev *xdev = dev_id;

pr_info("User IRQ fired on Funtion#%d: index=%d, vector=%d\n",
xdev->func_id, irq_index, irq);

if (xdev->conf.fp_user_isr_handler)
xdev->conf.fp_user_isr_handler((unsigned long)xdev,
xdev->conf.uld);

return IRQ_HANDLED;
}

should i write my own fp_user_isr_handler ? how can i change xdev->conf.fp_user_isr_handler ?

hmaarrfk commented 2 years ago

Hello,

My name is Mark Harfouche. I am not affiliated with Xilinx in any way. Over the years of using QDMA, I've been wanted better community organization.

I've created a fork of dma_ip_drivers which I intend to maintain and work with the community at large to improve.

The fork can be found https://github.com/hmaarrfk/dma_ip_drivers

For now, I am stating the main goals of the repository in https://github.com/hmaarrfk/dma_ip_drivers/issues/2

If you are interested in working together, feel free to open an issue or PR to my fork.

Best,

Mark

PS. Xilinx over the years, has shown that it does not intent to reply to this repository. I've found that they tend reply if you post on their own forum.