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)
Tue, Sep 22, 11:11 AM
Unknown Object (File)
Fri, Sep 11, 3:15 AM
Unknown Object (File)
Fri, Sep 11, 3:07 AM
Unknown Object (File)
Sun, Sep 6, 2:41 PM
Unknown Object (File)
Sun, Sep 6, 7:35 AM
Unknown Object (File)
Sat, Sep 5, 8:09 PM
Unknown Object (File)
Sat, Sep 5, 7:58 PM
Unknown Object (File)
Sat, Sep 5, 4:54 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 45110
Build 41998: arc lint + arc unit

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.