tools/testing/cxl: Add XOR Math support to cxl_test
authorAlison Schofield <alison.schofield@intel.com>
Wed, 30 Nov 2022 22:47:26 +0000 (14:47 -0800)
committerDan Williams <dan.j.williams@intel.com>
Sun, 4 Dec 2022 01:14:10 +0000 (17:14 -0800)
commit7a7e6edfca857f490e3a963198c67620de26b7f0
treea88ea54b79ca1687618addbc207e2ce865a98dd7
parentf9db85bfec0dcc01556a41d23aec47b866ab3569
tools/testing/cxl: Add XOR Math support to cxl_test

Expand the cxl_test topology to include CFMWS's that use XOR math
for interleave arithmetic, as defined in the CXL Specification 3.0.

With this expanded topology, cxl_test is useful for testing:
x1,x2,x4 ways with XOR interleave arithmetic.

Define the additional XOR CFMWS entries to appear only with the
module parameter interleave_arithmetic=1. The cxl_test default
continues to be modulo math.

modprobe cxl_test interleave_arithmetic=1

Signed-off-by: Alison Schofield <alison.schofield@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/54670400cd48ba7fcc6d8ee0d6ae2276d3f51aad.1669847017.git.alison.schofield@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/cxl/test/cxl.c