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)
Mon, Apr 27, 12:01 PM
Unknown Object (File)
Mon, Apr 27, 8:27 AM
Unknown Object (File)
Sat, Apr 25, 4:54 AM
Unknown Object (File)
Wed, Apr 8, 5:42 AM
Unknown Object (File)
Tue, Mar 31, 5:05 AM
Unknown Object (File)
Mar 30 2026, 2:58 PM
Unknown Object (File)
Mar 29 2026, 8:50 AM
Unknown Object (File)
Mar 28 2026, 11:04 PM
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