All of lore.kernel.org
 help / color / mirror / Atom feed
From: sunfishho12@gmail.com
To: linux-cxl@vger.kernel.org
Cc: dan.j.williams@intel.com, vishal.l.verma@intel.com,
	dave@stgolabs.net, a.manzanares@samsung.com,
	Matthew Ho <sunfishho12@gmail.com>
Subject: [ndctl PATCH 0/2] cxl: Add cxl list image, image-from-file subcommands
Date: Fri, 19 Aug 2022 01:50:18 -0700	[thread overview]
Message-ID: <cover.1660895649.git.sunfishho12@gmail.com> (raw)

From: Matthew Ho <sunfishho12@gmail.com>

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/20220812221553.92278-1-sunfishho12@gmail.com/

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(-)

-- 
2.34.1


             reply	other threads:[~2022-08-19  8:50 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-19  8:50 sunfishho12 [this message]
2022-08-19  8:54 ` [ndctl PATCH 1/2] cxl: Add root port attribute to cxl list output sunfishho12
2022-09-09 22:10   ` Verma, Vishal L
2022-08-19  8:57 ` [ndctl PATCH 2/2] cxl: Add list image, image-from-file to CXL command sunfishho12
2022-09-09 22:59   ` Verma, Vishal L
2022-09-09 21:40 ` [ndctl PATCH 0/2] cxl: Add cxl list image, image-from-file subcommands Verma, Vishal L

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cover.1660895649.git.sunfishho12@gmail.com \
    --to=sunfishho12@gmail.com \
    --cc=a.manzanares@samsung.com \
    --cc=dan.j.williams@intel.com \
    --cc=dave@stgolabs.net \
    --cc=linux-cxl@vger.kernel.org \
    --cc=vishal.l.verma@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.