All of lore.kernel.org
 help / color / mirror / Atom feed
* [ndctl PATCH 0/8] dimm label space initialization support
@ 2016-10-19 16:47 ` Dan Williams
  0 siblings, 0 replies; 25+ messages in thread
From: Dan Williams @ 2016-10-19 16:47 UTC (permalink / raw)
  To: linux-nvdimm; +Cc: qemu-devel

The 4.9 kernel added support for sub-dividing PMEM.  With this kernel
patch [1] on top of that baseline, the PMEM-sub-division support can be
enabled for QEMU-KVM and any other platforms that advertise both un-aliased
PMEM regions and support for the label DSM commands [2].

Given this increasing need to perform a label management operation
across a set of DIMMs this update also adds glob(3) support.  For
example you can now write commands like:

    ndctl zero-labels nmem[2-4]

...as a shorthand for:

    ndctl zero-labels nmem2 nmem3 nmem4

This support extends to all the commands that take an undecorated dimm /
nmem device as a parameter:

    disable-dimm
    enable-dimm
    read-labels
    zero-labels
    init-labels
    check-labels

The patch "libndctl: fix error returns for unsigned apis" was something
noticed while developing "init-labels", but is otherwise unrelated to
the rest of the set.

[1]: https://patchwork.kernel.org/patch/9384741/
[2]: http://pmem.io/documents/NVDIMM_DSM_Interface_Example-V1.2.pdf

---

Dan Williams (8):
      libndctl: fix error returns for unsigned apis
      ndctl: consolidate label commands into a single file
      ndctl: glob support for label commands
      ndctl: merge {enable,disable}-dimm with label commands
      libndctl: add ndctl_cmd_cfg_read_get_size()
      ndctl: provide a read_labels() helper
      ndctl: init-labels command
      ndctl: check-labels command


 Documentation/Makefile.am            |    2 
 Documentation/ndctl-check-labels.txt |   25 +
 Documentation/ndctl-init-labels.txt  |   83 +++
 ndctl/Makefile.am                    |    4 
 ndctl/builtin-dimm.c                 |  975 ++++++++++++++++++++++++++++++++++
 ndctl/builtin-read-labels.c          |  412 --------------
 ndctl/builtin-xable-dimm.c           |  115 ----
 ndctl/builtin-zero-labels.c          |   92 ---
 ndctl/builtin.h                      |    2 
 ndctl/lib/libndctl.c                 |   17 -
 ndctl/lib/libndctl.sym               |    1 
 ndctl/libndctl.h.in                  |    1 
 ndctl/ndctl.c                        |    2 
 13 files changed, 1105 insertions(+), 626 deletions(-)
 create mode 100644 Documentation/ndctl-check-labels.txt
 create mode 100644 Documentation/ndctl-init-labels.txt
 create mode 100644 ndctl/builtin-dimm.c
 delete mode 100644 ndctl/builtin-read-labels.c
 delete mode 100644 ndctl/builtin-xable-dimm.c
 delete mode 100644 ndctl/builtin-zero-labels.c
_______________________________________________
Linux-nvdimm mailing list
Linux-nvdimm@lists.01.org
https://lists.01.org/mailman/listinfo/linux-nvdimm

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

end of thread, other threads:[~2016-10-20 20:07 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-19 16:47 [ndctl PATCH 0/8] dimm label space initialization support Dan Williams
2016-10-19 16:47 ` [Qemu-devel] " Dan Williams
2016-10-19 16:47 ` [ndctl PATCH 1/8] libndctl: fix error returns for unsigned apis Dan Williams
2016-10-19 16:47 ` [ndctl PATCH 2/8] ndctl: consolidate label commands into a single file Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 3/8] ndctl: glob support for label commands Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 4/8] ndctl: merge {enable, disable}-dimm with " Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 5/8] libndctl: add ndctl_cmd_cfg_read_get_size() Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 6/8] ndctl: provide a read_labels() helper Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 7/8] ndctl: init-labels command Dan Williams
2016-10-19 16:48   ` [Qemu-devel] " Dan Williams
2016-10-19 16:48 ` [ndctl PATCH 8/8] ndctl: check-labels command Dan Williams
2016-10-19 18:42 ` [ndctl PATCH 0/8] dimm label space initialization support Eric Blake
2016-10-19 18:42   ` [Qemu-devel] " Eric Blake
     [not found]   ` <6ceb7075-71fc-b725-8a1c-a7d8c727770e-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-10-19 19:41     ` Dan Williams
2016-10-19 19:41       ` Dan Williams
     [not found]       ` <CAPcyv4gbRE-ALJM6EHv6fM3Kq02HeZFMLF5T63J5qaJmHWvQCg-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2016-10-19 21:29         ` Dan Williams
2016-10-19 21:29           ` Dan Williams
2016-10-19 23:46           ` Eric Blake
2016-10-19 23:46             ` [Qemu-devel] " Eric Blake
     [not found]             ` <708947f5-dfdc-d6c9-4523-7436959119f3-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2016-10-19 23:56               ` Dan Williams
2016-10-19 23:56                 ` Dan Williams
2016-10-20 19:32 ` Vishal Verma
2016-10-20 19:32   ` [Qemu-devel] " Vishal Verma
2016-10-20 20:06   ` Dan Williams
2016-10-20 20:06     ` [Qemu-devel] " Dan Williams

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.