Page MenuHomeFreeBSD

nvme: Use controller's page size instead of PAGE_SIZE to create qpair
ClosedPublic

Authored by imp on Apr 10 2022, 5:12 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Mar 31, 5:05 AM
Unknown Object (File)
Mon, Mar 30, 2:58 PM
Unknown Object (File)
Sun, Mar 29, 8:50 AM
Unknown Object (File)
Sat, Mar 28, 11:04 PM
Unknown Object (File)
Sun, Mar 22, 5:36 AM
Unknown Object (File)
Sat, Mar 21, 6:35 AM
Unknown Object (File)
Thu, Mar 19, 3:15 PM
Unknown Object (File)
Thu, Mar 19, 6:53 AM
Subscribers

Details

Summary

When constructing qpair, use the controller's notion of page size rather
than the host's PAGE_SIZE. Currently, these are both 4k, but the arm 16k
page size support requires decoupling.

There's a "hidden" PAGE_SIZE in btoc, so we must change btoc(x) to
howmany(x, ctrlr->page_size) to properly count the number of pages (in
the drive's world view) are needed for various calculations.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable