Commit 8cb3341e authored by Jim Harris's avatar Jim Harris
Browse files

bdev/nvme: print error message when PCIe SSD not found



This includes when the SSD's BDF is valid, but not attached to UIO/VFIO.

Signed-off-by: default avatarJim Harris <james.r.harris@intel.com>
Change-Id: I8de639164f8674014d9e2cc31815b86ce3cba64f

Reviewed-on: https://review.gerrithub.io/414063


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarChangpeng Liu <changpeng.liu@intel.com>
parent 8c9508f9
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -1062,6 +1062,17 @@ bdev_nvme_library_init(void)
			rc = -1;
			goto end;
		}

		for (i = 0; i < probe_ctx->count; i++) {
			if (probe_ctx->trids[i].trtype != SPDK_NVME_TRANSPORT_PCIE) {
				continue;
			}

			if (!nvme_ctrlr_get(&probe_ctx->trids[i])) {
				SPDK_ERRLOG("NVMe SSD \"%s\" could not be found.\n", probe_ctx->trids[i].traddr);
				SPDK_ERRLOG("Check PCIe BDF and that it is attached to UIO/VFIO driver.\n");
			}
		}
	}

	if (g_nvme_hotplug_enabled) {