Page MenuHomeFreeBSD

nvme: Further refinements in Host Memory Buffer Sizing
ClosedPublic

Authored by imp on Apr 10 2022, 5:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 14 2024, 8:25 AM
Unknown Object (File)
Nov 9 2023, 1:20 PM
Unknown Object (File)
Nov 8 2023, 7:28 PM
Unknown Object (File)
Nov 7 2023, 9:02 PM
Unknown Object (File)
Nov 5 2023, 6:52 PM
Unknown Object (File)
Oct 28 2023, 12:13 PM
Unknown Object (File)
Oct 26 2023, 11:52 PM
Unknown Object (File)
Oct 8 2023, 12:13 PM
Subscribers

Details

Summary

Host Memory Buffer units are a mix. For those in the identify structure,
the size is in 4kiB chunks. For specifying the buffer description,
though, they are in terms of the drive's MPS. Add comments to this
effect and change PAGE_SIZE to ctrlr->page_size where needed, as well as
correct a mistaken use of NVME_HPS_UNITS in 214df80a9cb3 as pointed out
by rpokala@ after the commit. No functional change is intended, as
page_size is still 4k which matches all current hosts' PAGE_SIZE, but to
support 16k pages on arm, we need to differentiate these two cases.

Sponsored by: Netflix

Diff Detail

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