Linux CXL
 help / color / mirror / Atom feed
* [PATCH ndctl 0/5] cxl: firmware update support for libcxl and cxl-cli
@ 2023-04-22  3:09 Vishal Verma
  2023-04-22  3:09 ` [PATCH ndctl 1/5] cxl/memdev.c: allow filtering memdevs by bus Vishal Verma
                   ` (4 more replies)
  0 siblings, 5 replies; 12+ messages in thread
From: Vishal Verma @ 2023-04-22  3:09 UTC (permalink / raw)
  To: linux-cxl
  Cc: nvdimm, Alison Schofield, Ira Weiny, Dave Jiang, Dan Williams,
	Vishal Verma

Patch 1 is a preparatory patch that teaches memdev based commands to
filter their operand memdevs by bus. This helps restricting unit test
operations to the cxl_test bus.

Patches 2 and 3 add firmware information to the CXL memdev listing. This
is derived from the 'Get FW Info' mailbox command as well as state
information in the kernel's firmware loader mechanism in sysfs.

Patch 4 adds the libcxl APIs to perform a firmware update, and to cancel
an in-progress update, and the cxl-cli command to use these APIs to
start, wait for, and cancel firmware updates. A man page for the new
command is added as well.

Patch 5 adds a unit test to exercise all the features described above in
a cxl_test environment.

Signed-off-by: Vishal Verma <vishal.l.verma@intel.com>
---
Vishal Verma (5):
      cxl/memdev.c: allow filtering memdevs by bus
      cxl/list: print firmware info in memdev listings
      cxl/fw_loader: add APIs to get current state of the FW loader mechanism
      cxl: add an update-firmware command
      test/cxl-update-firmware: add a unit test for firmware update

 Documentation/cxl/cxl-disable-memdev.txt |   2 +
 Documentation/cxl/cxl-enable-memdev.txt  |   2 +
 Documentation/cxl/cxl-free-dpa.txt       |   2 +
 Documentation/cxl/cxl-read-labels.txt    |   2 +
 Documentation/cxl/cxl-reserve-dpa.txt    |   2 +
 Documentation/cxl/cxl-set-partition.txt  |   2 +
 Documentation/cxl/cxl-write-labels.txt   |   3 +
 cxl/lib/private.h                        |  36 ++++
 cxl/lib/libcxl.c                         | 304 +++++++++++++++++++++++++++++++
 cxl/builtin.h                            |   1 +
 cxl/filter.h                             |   5 +
 cxl/libcxl.h                             |  36 ++++
 cxl/cxl.c                                |   1 +
 cxl/filter.c                             |  19 ++
 cxl/json.c                               |  97 ++++++++++
 cxl/list.c                               |   3 +
 cxl/memdev.c                             |  77 +++++++-
 Documentation/cxl/meson.build            |   1 +
 cxl/lib/libcxl.sym                       |  10 +
 test/cxl-update-firmware.sh              | 195 ++++++++++++++++++++
 test/meson.build                         |   2 +
 21 files changed, 801 insertions(+), 1 deletion(-)
---
base-commit: b830c4af984e72e5849c0705669aad2ffa19db13
change-id: 20230405-vv-fw_update-905d253fcb3b

Best regards,
-- 
Vishal Verma <vishal.l.verma@intel.com>


^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2023-05-19 19:00 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-04-22  3:09 [PATCH ndctl 0/5] cxl: firmware update support for libcxl and cxl-cli Vishal Verma
2023-04-22  3:09 ` [PATCH ndctl 1/5] cxl/memdev.c: allow filtering memdevs by bus Vishal Verma
2023-05-19 17:57   ` Dave Jiang
2023-04-22  3:10 ` [PATCH ndctl 2/5] cxl/list: print firmware info in memdev listings Vishal Verma
2023-05-19 18:21   ` Dave Jiang
2023-04-22  3:10 ` [PATCH ndctl 3/5] cxl/fw_loader: add APIs to get current state of the FW loader mechanism Vishal Verma
2023-05-19 18:49   ` Dave Jiang
2023-04-22  3:10 ` [PATCH ndctl 4/5] cxl: add an update-firmware command Vishal Verma
2023-04-24 23:14   ` Verma, Vishal L
2023-05-19 18:57   ` Dave Jiang
2023-04-22  3:10 ` [PATCH ndctl 5/5] test/cxl-update-firmware: add a unit test for firmware update Vishal Verma
2023-05-19 19:00   ` Dave Jiang

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox