RE: [PCIe spec question] How to get PCI express link up / link down notifications?

Rajat Jain <[email protected]> Fri, 4 Oct 2013 06:48:50 +0000
Newsgroups org.kernel.vger.linux-newbie,org.kernel.vger.linux-hotplug,org.kernel.vger.linux-pci,org.kernelnewbies.kernelnewbies
Message-ID <a092b6a8fd0e4c32a79458b13386b9e8@BN1PR05MB123.namprd05.prod.outlook.com>
Hi,

I found the answer to my original question. I found the "Data Link Layer State Changed Enable" bit in the Slot Control register which seems to provide interrupt on link state changes.

6.7.3.3. Data Link Layer State Changed Events 
==============================================
The Data Link Layer State Changed event provides an indication that the state of the Data Link Layer Link Active bit in the Link Status register has changed. Support for Data Link Layer State Changed events and software notification of these events are required for hot-plug capable Downstream Ports. If this event is supported, the Port sets the status field associated with the event
5 when the value in the Data Link Layer Link Active bit changes.

Thanks a bunch!

Rajat

--
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs