diff options
author | Dan Williams <dan.j.williams@intel.com> | 2021-09-09 07:13:21 +0200 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2021-09-21 23:09:34 +0200 |
commit | 7d3eb23c4ccf457b52cafdca1a7b20cddf29e021 (patch) | |
tree | fe3deb591d4ad3dbac2e44e2d0cc376384354f95 /tools/testing/cxl/Kbuild | |
parent | cxl/mbox: Move command definitions to common location (diff) | |
download | linux-7d3eb23c4ccf457b52cafdca1a7b20cddf29e021.tar.xz linux-7d3eb23c4ccf457b52cafdca1a7b20cddf29e021.zip |
tools/testing/cxl: Introduce a mock memory device + driver
Introduce an emulated device-set plus driver to register CXL memory
devices, 'struct cxl_memdev' instances, in the mock cxl_test topology.
This enables the development of HDM Decoder (Host-managed Device Memory
Decoder) programming flow (region provisioning) in an environment that
can be updated alongside the kernel as it gains more functionality.
Whereas the cxl_pci module looks for CXL memory expanders on the 'pci'
bus, the cxl_mock_mem module attaches to CXL expanders on the platform
bus emitted by cxl_test.
Acked-by: Ben Widawsky <ben.widawsky@intel.com>
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/163116440099.2460985.10692549614409346604.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing/cxl/Kbuild')
-rw-r--r-- | tools/testing/cxl/Kbuild | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/cxl/Kbuild b/tools/testing/cxl/Kbuild index 63a4a07e71c4..86deba8308a1 100644 --- a/tools/testing/cxl/Kbuild +++ b/tools/testing/cxl/Kbuild @@ -33,4 +33,6 @@ cxl_core-y += $(CXL_CORE_SRC)/memdev.o cxl_core-y += $(CXL_CORE_SRC)/mbox.o cxl_core-y += config_check.o +cxl_core-y += mock_pmem.o + obj-m += test/ |