linux/drivers/nvme/host
Matias Bjørling 85136c0102 lightnvm: simplify geometry enumeration
Currently the geometry of an OCSSD is enumerated using a two step
approach:

First, nvm_register is called, the OCSSD identify command is issued,
and second the geometry sos and csecs values are read either from the
OCSSD identify if it is a 1.2 drive, or from the NVMe namespace data
structure if it is a 2.0 device.

This patch recombines it into a single step, such that nvm_register can
use the csecs and sos fields independent of which version is used. This
enables one to dynamically size the lightnvm subsystem dma pool.

Reviewed-by: Igor Konopko <igor.j.konopko@intel.com>
Reviewed-by: Javier González <javier@cnexlabs.com>
Signed-off-by: Matias Bjørling <mb@lightnvm.io>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
2018-12-11 12:22:34 -07:00
..
core.c lightnvm: simplify geometry enumeration 2018-12-11 12:22:34 -07:00
fabrics.c nvme: disable fabrics SQ flow control when asked by the user 2018-12-07 22:26:57 -07:00
fabrics.h nvme: disable fabrics SQ flow control when asked by the user 2018-12-07 22:26:57 -07:00
fault_inject.c nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
fc.c nvme: add a numa_node field to struct nvme_ctrl 2018-12-07 22:26:55 -07:00
Kconfig IB: Revert "remove redundant INFINIBAND kconfig dependencies" 2018-05-28 10:40:16 -06:00
lightnvm.c lightnvm: simplify geometry enumeration 2018-12-11 12:22:34 -07:00
Makefile nvme: Add fault injection feature 2018-03-26 08:53:43 -06:00
multipath.c nvme: add a numa_node field to struct nvme_ctrl 2018-12-07 22:26:55 -07:00
nvme.h lightnvm: simplify geometry enumeration 2018-12-11 12:22:34 -07:00
pci.c nvme: fix irq vs io_queue calculations 2018-12-11 06:27:46 -07:00
rdma.c nvme: add a numa_node field to struct nvme_ctrl 2018-12-07 22:26:55 -07:00
trace.c nvme: add disk name to trace events 2018-07-24 15:55:48 +02:00
trace.h nvme-core: add async event trace helper 2018-10-01 14:16:12 -07:00