Skip to content

cxl: Add cxl list image, image-from-file subcommands

[email protected] linux-cxl 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cxl: Add root port attribute to cxl list outputcxl/json.c cxl/lib/libcxl.c cxl/lib/libcxl.sym +1 more+85 -21 reply
2/2cxl: Add list image, image-from-file to CXL commandDocumentation/cxl/cxl-list.txt cxl/filter.c cxl/filter.h +3 more+327 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [ndctl PATCH 0/2] cxl: Add cxl list image, image-from-file subcommands

From: Matthew Ho <[email protected]>

cxl list outputs a json array containing the cxl hierarchy, which can be parsed to create an image of the cxl topology.

Patch 1 adds a root port attribute in the cxl list output to switch ports and type 3 memory devices to allow determination of which devices hang off of which root ports. This preps for patch 2.

Patch 2 adds a subcommand to output the cxl topology, using cxl list options. Acceptable output formats include .jpeg, .jpg, and .png. It also adds a subcommand to output the cxl topology given a text file generated by cxl list.

This pair of patches applies on [1], a pending patch, applied on the tip of the create_region branch. The tip at the time of posting is:

commit 8f0433abc2a4 ("cxl/decoder: add a max_available_extent attribute")

[1] https://lore.kernel.org/linux-cxl/[email protected]/

Matthew Ho (2):
cxl: Add root port attribute to cxl list output
cxl: Add list image, image-from-file to CXL command

 Documentation/cxl/cxl-list.txt |  16 ++
 cxl/filter.c                   | 279 ++++++++++++++++++++++++++++++++-
 cxl/filter.h                   |   7 +
 cxl/json.c                     |  16 +-
 cxl/lib/libcxl.c               |  66 ++++++++
 cxl/lib/libcxl.sym             |   3 +-
 cxl/libcxl.h                   |   2 +
 cxl/list.c                     |  24 +++
 cxl/meson.build                |   1 +
 meson.build                    |   1 +
 10 files changed, 412 insertions(+), 3 deletions(-)
Signature · 1 line
2.34.1