Page MenuHomeFreeBSD

nvmecontrol: Remove an incorrect use of PAGE_SIZE
ClosedPublic

Authored by andrew on Tue, Feb 17, 5:46 PM.

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 70734
Build 67617: arc lint + arc unit