]> www.infradead.org Git - users/jedix/linux-maple.git/commit
NVMe: Use CMB for the IO SQes if available
authorJon Derrick <jonathan.derrick@intel.com>
Mon, 20 Jul 2015 16:14:09 +0000 (10:14 -0600)
committerChuck Anderson <chuck.anderson@oracle.com>
Wed, 6 Jul 2016 23:31:50 +0000 (16:31 -0700)
commit9cb0ba042da92c3ef23f52f93b61b41607df5a6a
tree2f9c01648ab18dd90b1f81e160483e48deddd5cd
parentb456e0c344c10c6cd19a1ae1d173a4d7545388fd
NVMe: Use CMB for the IO SQes if available

Some controllers have a controller-side memory buffer available for use
for submissions, completions, lists, or data.

If a CMB is available, the entire CMB will be ioremapped and it will
attempt to map the IO SQes onto the CMB. The queues will be shrunk as
needed. The CMB will not be used if the queue depth is shrunk below some
threshold where it may have reduced performance over a larger queue
in system memory.

Signed-off-by: Jon Derrick <jonathan.derrick@intel.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Jens Axboe <axboe@fb.com>
(cherry picked from commit 8ffaadf7429270914b8f146ec13cf305e01df20d)

Orabug: 22620486
Signed-off-by: Jason Luo <zhangqing.luo@oracle.com>
drivers/block/nvme-core.c
include/linux/nvme.h