]> asedeno.scripts.mit.edu Git - linux.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)
commit87ad72a59a38d1df217cfd95bc222a2edfe5d399
treed68d19dd588c5131196db2eec5613941bc21c54f
parentfe6d53c9c0bb51977521d409a2efe453b7123c39
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