Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F107495102
D34866.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
933 B
Referenced Files
None
Subscribers
None
D34866.diff
View Options
diff --git a/sys/dev/nvme/nvme_ns.c b/sys/dev/nvme/nvme_ns.c
--- a/sys/dev/nvme/nvme_ns.c
+++ b/sys/dev/nvme/nvme_ns.c
@@ -567,14 +567,16 @@
}
/*
- * Older Intel devices advertise in vendor specific space an alignment
- * that improves performance. If present use for the stripe size. NVMe
- * 1.3 standardized this as NOIOB, and newer Intel drives use that.
+ * Older Intel devices (like the PC35xxx and P45xx series) advertise in
+ * vendor specific space an alignment that improves performance. If
+ * present use for the stripe size. NVMe 1.3 standardized this as
+ * NOIOB, and newer Intel drives use that.
*/
if ((ctrlr->quirks & QUIRK_INTEL_ALIGNMENT) != 0) {
if (ctrlr->cdata.vs[3] != 0)
ns->boundary =
- (1 << ctrlr->cdata.vs[3]) * ctrlr->min_page_size;
+ 1 << (ctrlr->cdata.vs[3] + NVME_MPS_SHIFT +
+ NVME_CAP_HI_MPSMIN(ctrlr->cap_hi));
else
ns->boundary = 0;
} else {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jan 16, 12:18 AM (17 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15817774
Default Alt Text
D34866.diff (933 B)
Attached To
Mode
D34866: nvme: Fix old intel alignment size
Attached
Detach File
Event Timeline
Log In to Comment