On 2020/06/04 8:23, Jaromír Doleček wrote:
Hi, I'm working on a driver for some PCI device, I'm far enough to execute operations which should trigger interrupt, but the interrupt handler (registered via pci_intr_establish()) is not called. It looks like there is some kind of interrupt routing problem, maybe. Any hints on what could/should I check? Unfortunately can't boot the machine in legacy mode, to check whether it's due to mission initialisation by BIOS.
Is the device xHCI or not? I have similar problem on my machine(s). Some of xHCI don't trigger interrupt wheh MSI-X is used. If INTx is used, it works. I don't know if the problem is caused from xHCI, ioapic or some others.
Jaromir
-- ----------------------------------------------- SAITOH Masanobu (msaitoh%execsw.org@localhost msaitoh%netbsd.org@localhost)