]> git.itanic.dy.fi Git - linux-stable/commit
cxl/rch: Prepare for caching the MMIO mapped PCIe AER capability
authorDan Williams <dan.j.williams@intel.com>
Thu, 22 Jun 2023 20:54:59 +0000 (15:54 -0500)
committerDan Williams <dan.j.williams@intel.com>
Sun, 25 Jun 2023 18:35:26 +0000 (11:35 -0700)
commit0619337856c9a1cb999417be38c4049a6b0235a0
tree1446bbea8ddf7dff29eab3a2fd5982ea846d0876
parenteb4663b07e13bc138aad9e2a93ee9893c7139f51
cxl/rch: Prepare for caching the MMIO mapped PCIe AER capability

Prepare cxl_probe_rcrb() for retrieving more than just the component
register block. The RCH AER handling code wants to get back to the AER
capability that happens to be MMIO mapped rather then configuration
cycles.

Move RCRB specific downstream port data, like the RCRB base and the
AER capability offset, into its own data structure ('struct
cxl_rcrb_info') for cxl_probe_rcrb() to fill. Extend 'struct
cxl_dport' to include a 'struct cxl_rcrb_info' attribute.

This centralizes all RCRB scanning in one routine.

Co-developed-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Robert Richter <rrichter@amd.com>
Signed-off-by: Terry Bowman <terry.bowman@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20230622205523.85375-4-terry.bowman@amd.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/core.h
drivers/cxl/core/port.c
drivers/cxl/core/regs.c
drivers/cxl/cxl.h
tools/testing/cxl/test/mock.c