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)
Wed, Jan 1, 1:36 PM
Unknown Object (File)
Nov 19 2024, 8:17 PM
Unknown Object (File)
Nov 5 2024, 7:04 PM
Unknown Object (File)
Nov 4 2024, 12:39 PM
Unknown Object (File)
Oct 19 2024, 6:17 PM
Unknown Object (File)
Oct 19 2024, 5:42 PM
Unknown Object (File)
Sep 17 2024, 9:50 PM
Unknown Object (File)
Sep 17 2024, 11:03 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