Linux - KernelThis forum is for all discussion relating to the Linux kernel.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Forgive me if this topic is already posted, I searched and couldn't find it. If it is and has useful info, please send me the link to the post.....
I am writing a device driver for Gentoo Linux (2006.0 - kernel 2.6x) for a PCI hardware device and seem to be having interrupt problems.
I have two PCI hardware devices and have ported my device driver from Redhat 9 (kernel 2.4x).
In my driver, I am using the request_irq() kernel function in my driver to reqister my interrupt handler and only receive interrupts from one of my boards, but not the other one. I have swapped the boards' physical locations and made sure that they swapped IRQ lines as a test and it seems to have followed the physical location so I am 99.999% sure it is not a board problem and %99.99 sure it is not my chassis, based on other tests I have ran. The device has a PLX 9030 chip on it and I have determined that the correct register for the interrupt line has indead gone low and should have generated a hardware interrupt but I am not seeing it in my driver.
Am I having a porting issue (from RH 9 to Gentoo)? Am I incorrectly enabling my PCI device? Is there a good example of a PCI device driver that uses interrupts for multiple devices available?
Thank you for any knowledge you may give me,