Skip to content

cxl: Add CXL type2 accelerator support for cxl_test

Dave Jiang linux-cxl 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v7 Latest7 patches 6 repliesIn review
  2. v66 patches 1 replySuperseded
  3. v56 patches 6 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v46 patches1 replySuperseded
v36 patches0 repliesSuperseded
v26 patches0 repliesSuperseded
v17 patches17 repliesSuperseded

Patches in v7 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7cxl/test: Add test for module parameterstools/testing/cxl/test/cxl.c tools/testing/cxl/test/hmem_test.c tools/testing/cxl/test/mock.h+24 -12 replies
2/7cxl/test: Add type2 support for mock CFMWS0tools/testing/cxl/test/cxl.c+28 -10 replies
3/7cxl/test: Refactor platform device enumerationstools/testing/cxl/test/cxl.c+214 -980 replies
4/7cxl/test: Add hierarchy enumeration support for type2 devicetools/testing/cxl/test/cxl.c+192 -462 replies
5/7cxl/test: Propagate -ENOMEM on platform_device_alloc() failurestools/testing/cxl/test/cxl.c+18 -60 replies
6/7cxl/test: Fixup hdm init for auto region to support type2tools/testing/cxl/test/cxl.c+194 -690 replies
7/7cxl/test: Add cxl_test accelerator drivertools/testing/cxl/test/Kbuild tools/testing/cxl/test/accel.c+68 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchAlison Schofield
SeriesT-b R-b
1/7
2/7
3/7
4/7
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v7 thread

Cover letter [PATCH v7 0/7] cxl: Add CXL type2 accelerator support for cxl_test

v7
- Fixed sachiko raised issues

Based against v7.2-rc1 and sits on top of the the immutable branch [1] for type 2.

See individual patches for changes from previous version. Fixed up sashiko reported issues.

Series adds a 'type2_test' module parameter where it setup a mock type2 hierarchy with a mock type2 accelerator device directly under a root port that has an auto region setup.

It also includes a CXL fix that was encountered when running tests with the new code.

[

  {
    "memdevs":[
      {
        "memdev":"mem0",
        "ram_size":536870912,
        "ram_qos_class":42,
        "host":"cxl_type2_accel.0",
        "poison_injectable":false
      }
    ]
  },
  {
    "regions":[
      {
        "region":"region0",
        "resource":70300293136384,
        "size":536870912,
        "type":"ram",
        "interleave_ways":1,
        "interleave_granularity":4096,
        "decode_state":"commit"
      }
    ]

}
]

    "root decoders":[
      {
        "decoder":"decoder0.0",
        "resource":70300293136384,
        "size":1073741824,
        "interleave_ways":1,
        "accelmem_capable":true,
        "qos_class":42,
        "nr_targets":1
      },

[1]: https://git.kernel.org/pub/scm/linux/kernel/git/cxl/cxl.git/log/?h=for-7.3/cxl-type2-support

Dave Jiang (7):
cxl/test: Add test for module parameters
cxl/test: Add type2 support for mock CFMWS0
cxl/test: Refactor platform device enumerations cxl/test: Add hierarchy enumeration support for type2 device cxl/test: Propagate -ENOMEM on platform_device_alloc() failures cxl/test: Fixup hdm init for auto region to support type2 cxl/test: Add cxl_test accelerator driver

 tools/testing/cxl/test/Kbuild      |   2 +
 tools/testing/cxl/test/accel.c     |  66 +++
 tools/testing/cxl/test/cxl.c       | 850 ++++++++++++++++++++++-------
 tools/testing/cxl/test/hmem_test.c |   3 +-
 tools/testing/cxl/test/mock.h      |   2 +
 5 files changed, 720 insertions(+), 203 deletions(-)
 create mode 100644 tools/testing/cxl/test/accel.c

base-commit: 96ddf1af34f5f9e29891a5bfb7a18dd0a5bab9d6

Signature · 1 line
2.54.0