On 6/22/20 6:25 PM, Keith Busch wrote:
From: Keith Busch <keith.busch@xxxxxxx> Add support for NVM Express Zoned Namespaces (ZNS) Command Set defined in NVM Express TP4053. Zoned namespaces are discovered based on their Command Set Identifier reported in the namespaces Namespace Identification Descriptor list. A successfully discovered Zoned Namespace will be registered with the block layer as a host managed zoned block device with Zone Append command support. A namespace that does not support append is not supported by the driver. Reviewed-by: Martin K. Petersen <martin.petersen@xxxxxxxxxx> Signed-off-by: Hans Holmberg <hans.holmberg@xxxxxxx> Signed-off-by: Dmitry Fomichev <dmitry.fomichev@xxxxxxx> Signed-off-by: Ajay Joshi <ajay.joshi@xxxxxxx> Signed-off-by: Aravind Ramesh <aravind.ramesh@xxxxxxx> Signed-off-by: Niklas Cassel <niklas.cassel@xxxxxxx> Signed-off-by: Matias Bjørling <matias.bjorling@xxxxxxx> Signed-off-by: Damien Le Moal <damien.lemoal@xxxxxxx> Signed-off-by: Keith Busch <keith.busch@xxxxxxx> --- block/Kconfig | 5 +- drivers/nvme/host/Makefile | 1 + drivers/nvme/host/core.c | 91 ++++++++++++-- drivers/nvme/host/nvme.h | 39 ++++++ drivers/nvme/host/zns.c | 245 +++++++++++++++++++++++++++++++++++++ include/linux/nvme.h | 114 ++++++++++++++++- 6 files changed, 480 insertions(+), 15 deletions(-) create mode 100644 drivers/nvme/host/zns.c
Reviewed-by: Hannes Reinecke <hare@xxxxxxx> Cheers, Hannes -- Dr. Hannes Reinecke Teamlead Storage & Networking hare@xxxxxxx +49 911 74053 688 SUSE Software Solutions GmbH, Maxfeldstr. 5, 90409 Nürnberg HRB 36809 (AG Nürnberg), Geschäftsführer: Felix Imendörffer