Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153225837
D56461.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1005 B
Referenced Files
None
Subscribers
None
D56461.diff
View Options
diff --git a/sys/cam/nvme/nvme_da.c b/sys/cam/nvme/nvme_da.c
--- a/sys/cam/nvme/nvme_da.c
+++ b/sys/cam/nvme/nvme_da.c
@@ -49,6 +49,7 @@
#include <sys/sbuf.h>
#include <geom/geom.h>
#include <geom/geom_disk.h>
+#include <dev/pci/pcireg.h>
#endif /* _KERNEL */
#ifndef _KERNEL
@@ -731,6 +732,7 @@
switch (code) {
case AC_FOUND_DEVICE:
{
+ struct ccb_pathinq cpi;
struct ccb_getdev *cgd;
cam_status status;
@@ -741,6 +743,18 @@
if (cgd->protocol != PROTO_NVME)
break;
+ /*
+ * For PCIe cards, filter all the cards whose programming
+ * interface doesn't conform to the NVMe storage spec. This
+ * allows the nvme controller to attach to more than just
+ * storage cards that use the nvme model.
+ */
+ xpt_path_inq(&cpi, cgd->ccb_h.path);
+ if (cpi.transport == XPORT_NVME &&
+ cpi.xport_specific.nvme.progif !=
+ PCIP_STORAGE_NVM_ENTERPRISE_NVMHCI_1_0)
+ break;
+
/*
* Allocate a peripheral instance for
* this device and start the probe
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Apr 20, 10:20 PM (11 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31699182
Default Alt Text
D56461.diff (1005 B)
Attached To
Mode
D56461: nda: Filter non-storage nvme drives
Attached
Detach File
Event Timeline
Log In to Comment