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)
Mar 2 2025, 2:16 AM
Unknown Object (File)
Feb 21 2025, 1:59 PM
Unknown Object (File)
Feb 19 2025, 12:11 AM
Unknown Object (File)
Jan 28 2025, 1:21 PM
Unknown Object (File)
Jan 24 2025, 6:01 PM
Unknown Object (File)
Jan 24 2025, 5:59 PM
Unknown Object (File)
Jan 16 2025, 2:35 AM
Unknown Object (File)
Jan 15 2025, 5:17 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45114
Build 42002: arc lint + arc unit