]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvme: new define for size of host memory buffer sizes
authorWarner Losh <imp@FreeBSD.org>
Sat, 9 Apr 2022 05:01:06 +0000 (23:01 -0600)
committerWarner Losh <imp@FreeBSD.org>
Sat, 9 Apr 2022 05:05:25 +0000 (23:05 -0600)
commit214df80a9cb3e95a140b13af7d19deec2bbfae76
treed1f2f367817f8019a8290d35e8e6f31cb39f6696
parent0d46a96abffe8cbad55b1fce4fa0affb8cccc3b7
nvme: new define for size of host memory buffer sizes

The nvme spec defines the various fields that specify sizes for host
memory buffers in terms of 4096 chunks. So, rather than use a bare 4096
here, use NVME_HMB_UNITS. This is explicitly not the host page size of
4096, nor the default memory page size (mps) of the NVMe drive, but its
own thing and needs its own define.

No functional change is intended, only the logical spelling of 4k.

Sponsored by: Netflix
sys/dev/nvme/nvme.h
sys/dev/nvme/nvme_ctrlr.c