]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-pci: implement host memory buffer support
authorChristoph Hellwig <hch@lst.de>
Fri, 12 May 2017 15:02:58 +0000 (17:02 +0200)
committerChristoph Hellwig <hch@lst.de>
Thu, 15 Jun 2017 12:28:13 +0000 (14:28 +0200)
commit110ce3c2ba74268720a01a4a4a97d7b1f5b14d88
treed68d19dd588c5131196db2eec5613941bc21c54f
parentbdcc01b6cfed926407a163cb53cc6b29d8bb11e0
nvme-pci: implement host memory buffer support

If a controller supports the host memory buffer we try to provide
it with the requested size up to an upper cap set as a module
parameter.  We try to give as few as possible descriptors, eventually
working our way down.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
Reviewed-by: Johannes Thumshirn <jthumshirn@suse.de>
drivers/nvme/host/pci.c