]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: implement the HMB entry number and size limitations
authorChristoph Hellwig <hch@lst.de>
Mon, 11 Sep 2017 16:09:28 +0000 (12:09 -0400)
committerChristoph Hellwig <hch@lst.de>
Mon, 11 Sep 2017 16:29:40 +0000 (12:29 -0400)
commitc8228bad1d1ec20ab0a52c4f8fb3a4e857ddbc7a
tree0bb6cdf7a6d92428d4198597d12950121caf72d7
parent3c77072999551a52fd8a5595103100621f15c062
nvme-pci: implement the HMB entry number and size limitations

Adds support for the new Host Memory Buffer Minimum Descriptor Entry Size
and Host Memory Maximum Descriptors Entries field that were added in
TP 4002 HMB Enhancements.  These allow the controller to advertise
limits for the usual number of segments in the host memory buffer, as
well as a minimum usable per-segment size.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
drivers/nvme/host/core.c
drivers/nvme/host/nvme.h
drivers/nvme/host/pci.c
include/linux/nvme.h