[PATCHv4 0/5] nvme support for zoned namespace command set

Keith Busch kbusch at kernel.org
Mon Jun 29 15:06:36 EDT 2020


Changes since v3:

  Replaced older ID controller definition with the updated one from the
  ratified spec (zamds -> zasl).

  Verify power of 2 zone size (internal test)

  Check for valid capacity for report zones; a namespace deletion event
  sets the capacity to 0. If zone revalidation happens around the same
  time, we'd not fill in any zones and hit a BUG() later in the
  blk_zone_revalidate_disk_zones(). (internal testing)

  Fixup for identify namespace descriptors to hide retryable errors
  (Sagi, Nikals; requires a currently unincorporated patch from Sagi)

  Removed unnecessary __GFP_ZERO (Johannes)

  Endian conversion typo (Johannes)

  Added warnings when a zoned namespace can't be added (Klaus, Matias)

  Added received reviews

Background:

The NVM Express workgroup has ratified technical proposals enabling new
command sets. The specifications may be viewed from the following link:

  https://nvmexpress.org/wp-content/uploads/NVM-Express-1.4-Ratified-TPs.zip

This series implements support for the Zoned Namespace (ZNS) Command Set
defined in TP4053, and the Namespace Types base support it depends on
from TP4056. As this series depends on the block layer's append support
infrastructure, append-capable ZNS devices are required for this patch
sets enabling.

The block layer is updated to include the new zone writeable capacity
feature from ZNS, and existing zone block device drivers are updated to
incorporate this feature.

Aravind Ramesh (1):
  null_blk: introduce zone capacity for zoned device

Keith Busch (2):
  nvme: support for multi-command set effects
  nvme: support for zoned namespaces

Matias Bjørling (1):
  block: add capacity field to zone descriptors

Niklas Cassel (1):
  nvme: implement I/O Command Sets Command Set support

 block/Kconfig                  |   5 +-
 block/blk-zoned.c              |   1 +
 drivers/block/null_blk.h       |   1 +
 drivers/block/null_blk_main.c  |  10 +-
 drivers/block/null_blk_zoned.c |  16 ++-
 drivers/nvme/host/Makefile     |   1 +
 drivers/nvme/host/core.c       | 227 +++++++++++++++++++++++------
 drivers/nvme/host/hwmon.c      |   2 +-
 drivers/nvme/host/lightnvm.c   |   4 +-
 drivers/nvme/host/multipath.c  |   2 +-
 drivers/nvme/host/nvme.h       |  50 ++++++-
 drivers/nvme/host/zns.c        | 253 +++++++++++++++++++++++++++++++++
 drivers/scsi/sd_zbc.c          |   1 +
 include/linux/nvme.h           | 134 ++++++++++++++++-
 include/uapi/linux/blkzoned.h  |  15 +-
 15 files changed, 667 insertions(+), 55 deletions(-)
 create mode 100644 drivers/nvme/host/zns.c

-- 
2.24.1




More information about the Linux-nvme mailing list