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)
Jan 14 2024, 8:25 AM
Unknown Object (File)
Dec 21 2023, 2:09 PM
Unknown Object (File)
Dec 20 2023, 7:10 AM
Unknown Object (File)
Nov 21 2023, 5:04 AM
Unknown Object (File)
Nov 10 2023, 10:29 AM
Unknown Object (File)
Oct 30 2023, 8:59 PM
Unknown Object (File)
Oct 27 2023, 8:12 PM
Unknown Object (File)
Oct 13 2023, 5:17 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.