PCI/ERR: Add pcie_link_rcec() to associate RCiEPs
authorSean V Kelley <sean.v.kelley@intel.com>
Sat, 21 Nov 2020 00:10:32 +0000 (16:10 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Sat, 5 Dec 2020 21:26:02 +0000 (15:26 -0600)
commit507b460f814458605c47b0ed03c11e49a712fc08
tree201bf61baf5e20ee27b5c9ccb5952f0c080e4f76
parenta175102b0a82fc57853a9e611c42d1d6172e5180
PCI/ERR: Add pcie_link_rcec() to associate RCiEPs

A Root Complex Event Collector terminates error and PME messages from
associated RCiEPs.

Use the RCEC Endpoint Association Extended Capability to identify
associated RCiEPs. Link the associated RCiEPs as the RCECs are enumerated.

Co-developed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://lore.kernel.org/r/20201121001036.8560-12-sean.v.kelley@intel.com
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> # non-native/no RCEC
Signed-off-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Signed-off-by: Sean V Kelley <sean.v.kelley@intel.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/pci/pci.h
drivers/pci/pcie/portdrv_pci.c
drivers/pci/pcie/rcec.c
include/linux/pci.h