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
F156662977: D55334.diff
Fri, May 15, 12:38 PM
Unknown Object (File)
Mon, May 11, 4:47 PM
Unknown Object (File)
Sun, May 10, 7:37 AM
Unknown Object (File)
Sun, May 10, 7:28 AM
Unknown Object (File)
Wed, May 6, 5:20 PM
Unknown Object (File)
Tue, May 5, 4:50 AM
Unknown Object (File)
Mon, Apr 27, 8:33 PM
Unknown Object (File)
Fri, Apr 24, 12:26 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