tools/testing/cxl: Add an RCH topology
authorDan Williams <dan.j.williams@intel.com>
Thu, 1 Dec 2022 21:34:21 +0000 (13:34 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 5 Dec 2022 18:32:26 +0000 (10:32 -0800)
commitc9435dbee119f42132af2c3fc0382d16bda32601
tree9dc826441db5a5948e1534fd8ee3388bdce4cd0a
parent0a19bfc8de93d5b5d12cf0a7bb74efc88b9ad077
tools/testing/cxl: Add an RCH topology

In an RCH topology a CXL host-bridge as Root Complex Integrated Endpoint
the represents the memory expander. Unlike a VH topology there is no
CXL/PCIE Root Port that host the endpoint. The CXL subsystem maps this
as the CXL root object (ACPI0017 on ACPI based systems) targeting the
host-bridge as a dport, per usual, but then that dport directly hosts
the endpoint port.

Mock up that configuration with a 4th host-bridge that has a 'cxl_rcd'
device instance as its immediate child.

Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Link: https://lore.kernel.org/r/166993046170.1882361.12460762475782283638.stgit@dwillia2-xfh.jf.intel.com
Reviewed-by: Robert Richter <rrichter@amd.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/cxl/test/cxl.c
tools/testing/cxl/test/mem.c