Page MenuHomeFreeBSD

D34867.diff
No OneTemporary

D34867.diff

diff --git a/sys/dev/nvme/nvme_ctrlr.c b/sys/dev/nvme/nvme_ctrlr.c
--- a/sys/dev/nvme/nvme_ctrlr.c
+++ b/sys/dev/nvme/nvme_ctrlr.c
@@ -474,7 +474,8 @@
*/
if (ctrlr->cdata.mdts > 0)
ctrlr->max_xfer_size = min(ctrlr->max_xfer_size,
- ctrlr->min_page_size * (1 << (ctrlr->cdata.mdts)));
+ 1 << (ctrlr->cdata.mdts + NVME_MPS_SHIFT +
+ NVME_CAP_HI_MPSMIN(ctrlr->cap_hi)));
return (0);
}

File Metadata

Mime Type
text/plain
Expires
Thu, Jan 16, 12:35 AM (18 h, 30 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
15817947
Default Alt Text
D34867.diff (408 B)

Event Timeline