mbox series

[ndctl,00/10] CXL topology unit test

Message ID 165118380037.1676208.7644295506592461996.stgit@dwillia2-desk3.amr.corp.intel.com
Headers show
Series CXL topology unit test | expand

Message

Dan Williams April 28, 2022, 10:10 p.m. UTC
Vishal,

Here is a series that adds a unit test for CXL bus operations around
port discovery and memory device enable/disable events. Along the way it
adds some helper commands ('cxl disable-bus') and calling convention
cleanups ('cxl list -p $port'). Some other miscellaneous fixups and
cleanups are thrown in for good measure.

---

Dan Williams (10):
      build: Move utility helpers to libutil.a
      util: Use SZ_ size macros in display size
      util: Pretty print terabytes
      cxl/port: Fix disable-port man page
      cxl/bus: Add bus disable support
      cxl/list: Auto-enable 'single' mode for port listings
      cxl/memdev: Fix bus_invalidate() crash
      cxl/list: Add support for filtering by host identifiers
      cxl/port: Relax port identifier validation
      cxl/test: Add topology enumeration and hotplug test


 Documentation/cxl/cxl-disable-bus.txt  |   37 +++++++
 Documentation/cxl/cxl-disable-port.txt |    6 -
 Documentation/cxl/lib/libcxl.txt       |   12 ++
 Documentation/cxl/meson.build          |    1 
 cxl/builtin.h                          |    1 
 cxl/bus.c                              |  159 +++++++++++++++++++++++++++++++
 cxl/cxl.c                              |    1 
 cxl/filter.c                           |   12 ++
 cxl/filter.h                           |    1 
 cxl/lib/libcxl.c                       |   18 +++
 cxl/lib/libcxl.sym                     |    1 
 cxl/libcxl.h                           |    1 
 cxl/list.c                             |    1 
 cxl/meson.build                        |    3 -
 cxl/port.c                             |   30 +-----
 daxctl/meson.build                     |    1 
 ndctl/meson.build                      |    2 
 test/common                            |   12 ++
 test/cxl-topology.sh                   |  166 ++++++++++++++++++++++++++++++++
 test/meson.build                       |    2 
 util/json.c                            |   26 ++++-
 util/meson.build                       |    2 
 22 files changed, 448 insertions(+), 47 deletions(-)
 create mode 100644 Documentation/cxl/cxl-disable-bus.txt
 create mode 100644 cxl/bus.c
 create mode 100644 test/cxl-topology.sh

base-commit: 97031db9300654260bc2afb45b3600ac01beaeba