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)
Mon, Apr 27, 8:33 PM
Unknown Object (File)
Fri, Apr 24, 12:26 AM
Unknown Object (File)
Wed, Apr 22, 3:50 AM
Unknown Object (File)
Mon, Apr 20, 2:32 AM
Unknown Object (File)
Fri, Apr 17, 2:27 PM
Unknown Object (File)
Wed, Apr 15, 1:46 PM
Unknown Object (File)
Tue, Apr 14, 1:59 PM
Unknown Object (File)
Fri, Apr 10, 7:17 AM
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