AnsweredAssumed Answered

MSI interrupt handler on Linux

Question asked by masasi on Dec 9, 2015
Latest reply on Jul 22, 2016 by Primoz Fiser

Hi! I am new to the MSI and I cannot find how to call an interrupt handler function when a MSI transaction is received on my P1012 processor. In my code a new MSI transaction arrives to the RC, the MSIIR register is updated and that causes the MSIR7 register of the PIC to set the interrupt 0 bit. Then, how can I call my interrupt_handler function when the that interrupt arrives? I thought I should use the irq_create_mapping and request_irq Linux functions but I do not know how to link the hwirq with my interrupt. Thanks in advance!