]> git.baikalelectronics.ru Git - kernel.git/commit
PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities()
authorSean V Kelley <sean.v.kelley@intel.com>
Sat, 21 Nov 2020 00:10:24 +0000 (16:10 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 4 Dec 2020 17:18:50 +0000 (11:18 -0600)
commitd1ca23fbc0a9c13efb2d2516e75e61d2ec2d4145
tree58f7bf6df82e1c6a97f62d47d4b08ffb344767c1
parente47eb8f09f31ed8a370cdae26ba8ac1956c8f419
PCI/ERR: Cache RCEC EA Capability offset in pci_init_capabilities()

Extend support for Root Complex Event Collectors by decoding and caching
the RCEC Endpoint Association Extended Capabilities when enumerating. Use
that cached information for later error source reporting. See PCIe r5.0,
sec 7.9.10.

Co-developed-by: Qiuxu Zhuo <qiuxu.zhuo@intel.com>
Link: https://lore.kernel.org/r/20201121001036.8560-4-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/Makefile
drivers/pci/pcie/rcec.c [new file with mode: 0644]
drivers/pci/probe.c
include/linux/pci.h