Page MenuHomeFreeBSD

nvmecontrol: Remove an incorrect use of PAGE_SIZE
ClosedPublic

Authored by andrew on Feb 17 2026, 5:46 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Mar 19, 7:37 AM
Unknown Object (File)
Mon, Mar 9, 7:21 PM
Unknown Object (File)
Mar 9 2026, 6:31 PM
Unknown Object (File)
Mar 7 2026, 9:37 PM
Unknown Object (File)
Mar 2 2026, 3:57 AM
Unknown Object (File)
Feb 26 2026, 10:52 PM
Unknown Object (File)
Feb 24 2026, 8:01 AM
Unknown Object (File)
Feb 23 2026, 9:54 PM
Subscribers

Details

Summary

The mdts value is in terms of the nvme page size, not the host page
size. On many architectures these are both 4k, however on arm64 it is
possible to build a system with the host page size of 16k.

Use NVME_MPS_SHIFT to get the correct nvme page shift.

Sponsored by: Arm Ltd

Diff Detail

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