Page MenuHomeFreeBSD

nvme: Use saved mps when initializing drive
ClosedPublic

Authored by imp on Apr 10 2022, 5:11 PM.
Tags
None
Referenced Files
Unknown Object (File)
Oct 24 2025, 4:04 AM
Unknown Object (File)
Oct 15 2025, 5:02 PM
Unknown Object (File)
Oct 15 2025, 5:02 PM
Unknown Object (File)
Oct 15 2025, 5:02 PM
Unknown Object (File)
Oct 15 2025, 5:02 PM
Unknown Object (File)
Oct 15 2025, 6:22 AM
Unknown Object (File)
Oct 10 2025, 9:26 AM
Unknown Object (File)
Oct 7 2025, 2:31 PM
Subscribers

Details

Summary

Make sure we set the MPS we cached (currently the drives minimum mps) in
CC (Controller Configuration) when reinitializing the drive. It must
match the page_size that we're going to use.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Apr 10 2022, 5:11 PM

Retire NVME_PAGE_SHIFT... It wasn't quite the right name for this.

chuck added inline comments.
sys/dev/nvme/nvme_ctrlr.c
392

A re-wording suggestion:

Use the Memory Page Size selected during device initialization.
Note that value stored in mps is suitable to use here without adjusting
by NVME_MPS_SHIFT.

This revision is now accepted and ready to land.Apr 14 2022, 3:49 PM
This revision was automatically updated to reflect the committed changes.