cxl/acpi: Add downstream port data to cxl_port instances
authorDan Williams <dan.j.williams@intel.com>
Wed, 9 Jun 2021 16:01:46 +0000 (09:01 -0700)
committerDan Williams <dan.j.williams@intel.com>
Thu, 10 Jun 2021 01:02:39 +0000 (18:02 -0700)
commit7d4b5ca2e2cb5d28db628ec79c706bcfa832feea
tree833b93b5d980d417f1bac66dff19607dbb15c409
parent3feaa2d35880de935fc0d02acf808f355564f4e6
cxl/acpi: Add downstream port data to cxl_port instances

In preparation for infrastructure that enumerates and configures the CXL
decode mechanism of an upstream port to its downstream ports, add a
representation of a CXL downstream port.

On ACPI systems the top-most logical downstream ports in the hierarchy
are the host bridges (ACPI0016 devices) that decode the memory windows
described by the CXL Early Discovery Table Fixed Memory Window
Structures (CEDT.CFMWS).

Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://lore.kernel.org/r/162325450624.2293126.3533006409920271718.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Documentation/ABI/testing/sysfs-bus-cxl
drivers/cxl/acpi.c
drivers/cxl/core.c
drivers/cxl/cxl.h