]> git.baikalelectronics.ru Git - kernel.git/commit
cxl/acpi: Enumerate host bridge root ports
authorDan Williams <dan.j.williams@intel.com>
Wed, 9 Jun 2021 16:01:51 +0000 (09:01 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 10 Jun 2021 01:02:39 +0000 (18:02 -0700)
commit901abe7922b4d286cfada019a20addc63f268b47
tree8bbe939ba6313851ffd364dec78c009db1ba3379
parent4b51b513a832f33631d419cb5ba85d8ce409a7a9
cxl/acpi: Enumerate host bridge root ports

While the resources enumerated by the CEDT.CFMWS identify a cxl_port
with host bridges as downstream ports, host bridges themselves are
upstream ports that decode to downstream ports represented by PCIe Root
Ports. Walk the PCIe Root Ports connected to a CXL Host Bridge,
identified by the ACPI0016 _HID, and add each one as a cxl_dport of the
host bridge cxl_port.

For now, component registers are not enumerated, only the first order
uport / dport relationships.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/162325451145.2293126.10149150938788969381.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c