Forum Discussion
Altera_Forum
Honored Contributor
15 years agoThe interrupts are coming through now. I had to set the AVL_IRQ bit in the Avalon-MM to PCI Express Interrupt Enable Register at address: 0x0050.
Eg. iowrite32((u32)1<<7, (u32*)(ape->bar[0]+PCIE_CONTROL_REGISTER_OFFSET+0x0050)); This is different from the altpciechdma driver that was in the linux kernel. If you want to use it for your own, add the above line after the map_bars() function in the probe() function and it will work properly. Regards, Frederik