summaryrefslogtreecommitdiff
path: root/drivers/cxl/pmem.c
diff options
context:
space:
mode:
authorTerry Bowman <terry.bowman@amd.com>2023-10-18 20:17:08 +0300
committerDan Williams <dan.j.williams@intel.com>2023-10-28 06:13:38 +0300
commit6ac07883dbb5f60f7bc56a13b7a84a382aa9c1ab (patch)
treece43c7100f3b45fe108b9e8f73bc048a2561dd61 /drivers/cxl/pmem.c
parent6c5f3aacb2963d49a11d4f8accb1188db6a6404b (diff)
downloadlinux-6ac07883dbb5f60f7bc56a13b7a84a382aa9c1ab.tar.xz
cxl/pci: Add RCH downstream port error logging
RCH downstream port error logging is missing in the current CXL driver. The missing AER and RAS error logging is needed for communicating driver error details to userspace. Update the driver to include PCIe AER and CXL RAS error logging. Add RCH downstream port error handling into the existing RCiEP handler. The downstream port error handler is added to the RCiEP error handler because the downstream port is implemented in a RCRB, is not PCI enumerable, and as a result is not directly accessible to the PCI AER root port driver. The AER root port driver calls the RCiEP handler for handling RCD errors and RCH downstream port protocol errors. Update existing RCiEP correctable and uncorrectable handlers to also call the RCH handler. The RCH handler will read the RCH AER registers, check for error severity, and if an error exists will log using an existing kernel AER trace routine. The RCH handler will also log downstream port RAS errors if they exist. Co-developed-by: Robert Richter <rrichter@amd.com> Signed-off-by: Terry Bowman <terry.bowman@amd.com> Signed-off-by: Robert Richter <rrichter@amd.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Link: https://lore.kernel.org/r/20231018171713.1883517-16-rrichter@amd.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/pmem.c')
0 files changed, 0 insertions, 0 deletions