cxl/acpi: Use the ACPI CFMWS to create static decoder objects
authorAlison Schofield <alison.schofield@intel.com>
Thu, 17 Jun 2021 23:12:16 +0000 (16:12 -0700)
committerDan Williams <dan.j.williams@intel.com>
Fri, 18 Jun 2021 00:35:43 +0000 (17:35 -0700)
commit3e23d17ce1980c7cbd9426a3764eef7d7bcd443f
treeb78632ec7eaca20fe2f4f101598203aa2834e8b9
parentda6aafec3dca6132dd80a74a4d918ffd86c7ae35
cxl/acpi: Use the ACPI CFMWS to create static decoder objects

The ACPI CXL Early Discovery Table (CEDT) includes a list of CXL memory
resources in CXL Fixed Memory Window Structures (CFMWS). Retrieve each
CFMWS in the CEDT and add a cxl_decoder object to the root port (root0)
for each memory resource.

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Ben Widawsky <ben.widawsky@intel.com>
Link: https://lore.kernel.org/r/d2b73eecfb7ea22e1103f1894b271a89958b4c41.1623968958.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/acpi.c