linux_dsm_epyc7002/drivers/lightnvm
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
Kconfig lightnvm: remove dependencies on BLK_DEV_NVME and PCI 2018-10-09 08:25:05 -06:00
Makefile lightnvm: remove rrpc 2018-01-05 08:50:12 -07:00
pblk-cache.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-core.c lightnvm: pblk: add comments wrt locking in recovery path 2018-12-11 12:22:34 -07:00
pblk-gc.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-init.c lightnvm: pblk: fix pblk_lines_init error handling path 2018-12-11 12:22:34 -07:00
pblk-map.c lightnvm: pblk: stop writes gracefully when running out of lines 2018-12-11 12:22:33 -07:00
pblk-rb.c lightnvm: pblk: fix spelling in comment 2018-12-11 12:22:34 -07:00
pblk-read.c lightnvm: pblk: add SPDX license tag 2018-10-09 08:25:08 -06:00
pblk-recovery.c lightnvm: pblk: add comments wrt locking in recovery path 2018-12-11 12:22:34 -07:00
pblk-rl.c lightnvm: pblk: set conservative threshold for user writes 2018-12-11 12:22:33 -07:00
pblk-sysfs.c lightnvm: pblk: fix race on sysfs line state 2018-10-09 08:25:08 -06:00
pblk-trace.h lightnvm: pblk: add tracing for chunk resets 2018-10-09 08:25:07 -06:00
pblk-write.c lightnvm: pblk: stop writes gracefully when running out of lines 2018-12-11 12:22:33 -07:00
pblk.h lightnvm: pblk: set conservative threshold for user writes 2018-12-11 12:22:33 -07:00