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)
Nov 20 2024, 9:00 AM
Unknown Object (File)
Oct 30 2024, 3:15 AM
Unknown Object (File)
Sep 19 2024, 2:56 PM
Unknown Object (File)
Sep 18 2024, 10:06 AM
Unknown Object (File)
Sep 17 2024, 10:53 PM
Unknown Object (File)
Sep 15 2024, 8:55 PM
Unknown Object (File)
Sep 8 2024, 11:25 AM
Unknown Object (File)
Sep 7 2024, 9:11 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