Spdk/lib/nvme
Daniel Verkamp a15573c47c nvme: don't reset already-disabled controllers
In nvme_ctrlr_hw_reset(), if we encounter a controller whose CC.EN bit
is already 0 (controller is disabled), the previous code would enable
the controller just so that it could be disabled to get a full reset
(transition from CC.EN = 1 to CC.EN = 0).  However, it is a safe
assumption that if CC.EN is already 0, the controller has just been
reset, so we don't need to reset it again.

This saves a significant amount of time (2+ seconds per controller with
Intel SSD DC P3700) during initialization for devices that were disabled
on startup.

Change-Id: I552b1f0f185a84a8a0ce57a93b012d9d5fe096f3
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
2016-02-23 16:53:09 -07:00
..
Makefile nvme: Add Intel NVMe device supported feature quirks 2016-01-29 13:45:05 -07:00
nvme_ctrlr_cmd.c nvme: add spdk_ prefix 2016-02-10 11:27:45 -07:00
nvme_ctrlr.c nvme: don't reset already-disabled controllers 2016-02-23 16:53:09 -07:00
nvme_impl.h Include rte_config.h before other DPDK headers 2016-02-16 14:44:41 -07:00
nvme_intel.c pci_ids: add SPDK_ prefix 2016-02-08 14:28:47 -07:00
nvme_internal.h nvme.h: include stdbool.h and stdint.h 2016-02-22 09:57:11 -07:00
nvme_ns_cmd.c spdk_nvme_ns_cmd_reservation_report: fix request allocation 2016-02-19 15:24:09 -07:00
nvme_ns.c nvme: add spdk_ prefix 2016-02-10 11:27:45 -07:00
nvme_qpair.c nvme: store SGL callback in nvme_payload 2016-02-18 15:07:18 -07:00
nvme.c nvme: remove initialization of nvme_reqest::parent 2016-02-18 15:15:36 -07:00