Hello,
I'm using the P2020 PCIe controller as a host. I try to get an interrupt if a connected device resets itself so that I can re-initialize it. As far as I understand theLDD flag in the PEX_PME_MES_DR, that should be more or less exactly what I search: It detects if the link goes down. In my test case, I can also see that the LDD flag is set in that register. But I don't seem to get an interrupt.
The PEX_PME_MES_DISR[LDDD] is set to 0. I don't really need a message but I don't really care if one is sent either. The PEX_PME_MES_IER[LDDIE] is set to 1. I would have expected that with this some interrupt is generated.
I would have expected that the PCI Express interrupt is triggered (PIC Internal Interrupt number 8 to 10 for PEX3 to 1). But I don't receive that. So I checked all of the other interrupt configuration registers and there doesn't seem to be any active flag set (A bit in the *IVPR*).
What is necessary that the interrupt is generated? Is this kind of interrupt signaled as a MSI so that I need MSI support for it? Is there some other mask or gate for that interrupt that I might have missed?
With kind regards
Christian Mauderer
I found a problem with the interrupt configuration. So the problem is solved now.