]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
NVMe: Mismatched host/device page size support
authorKeith Busch <keith.busch@intel.com>
Mon, 23 Jun 2014 17:34:01 +0000 (11:34 -0600)
committerJens Axboe <axboe@fb.com>
Tue, 4 Nov 2014 20:17:07 +0000 (13:17 -0700)
commit1d0906246095184d1624c643c2088152d330c40a
tree3d7ea112d661961bd94c293edcee8bb2e6dcdce0
parenta7dd7957acf798ac406afd6631e64a27ac4a5bf1
NVMe: Mismatched host/device page size support

Adds support for devices with max page size smaller than the host's.
In the case we encounter such a host/device combination, the driver will
split a page into as many PRP entries as necessary for the device's page
size capabilities. If the device's reported minimum page size is greater
than the host's, the driver will not attempt to enable the device and
return an error instead.

Signed-off-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Matthew Wilcox <matthew.r.wilcox@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
drivers/block/nvme-core.c
include/linux/nvme.h