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)
Sun, Jan 12, 12:23 AM
Unknown Object (File)
Oct 7 2024, 6:03 AM
Unknown Object (File)
Oct 3 2024, 12:53 PM
Unknown Object (File)
Oct 1 2024, 5:55 PM
Unknown Object (File)
Sep 28 2024, 2:19 PM
Unknown Object (File)
Sep 27 2024, 12:22 PM
Unknown Object (File)
Sep 26 2024, 6:50 AM
Unknown Object (File)
Sep 26 2024, 6:08 AM
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.