]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvme: Rename min_page_size to page_size and save mps
authorWarner Losh <imp@FreeBSD.org>
Fri, 15 Apr 2022 20:41:13 +0000 (14:41 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 15 Apr 2022 20:46:18 +0000 (14:46 -0600)
commit55412ef90ad1b03ea8124af7537307a49f52fab3
treee47ba7f6013da744bc59cf6de3cf461b665b6e15
parent6e3deec8caab01a4de2bb446f8c5e799ed864562
nvme: Rename min_page_size to page_size and save mps

The Memory Page Size sets the basic unit of operation for the drive. We
currently set this to the drive's minimum page size, but we could set it
to any page size the drive supports in the future. Replace min_page_size
(it's now unused for that purpose) with page_size to reflect this and
cache the MPS we want to use. Use NVME_MPS_SHIFT to compute page_size.

Sponsored by: Netflix
Reviewed by: chuck
Differential Revision: https://reviews.freebsd.org/D34868
sys/dev/nvme/nvme_ctrlr.c
sys/dev/nvme/nvme_private.h