Page MenuHomeFreeBSD

nvme: Use saved mps when initializing drive
ClosedPublic

Authored by imp on Apr 10 2022, 5:11 PM.
Tags
None
Referenced Files
F168206821: D34869.id104845.diff
Wed, Aug 26, 9:41 PM
F168068323: D34869.id105067.diff
Wed, Aug 26, 5:43 AM
Unknown Object (File)
Tue, Aug 25, 2:57 PM
Unknown Object (File)
Mon, Aug 24, 9:16 PM
Unknown Object (File)
Mon, Aug 24, 8:17 PM
Unknown Object (File)
Mon, Aug 24, 2:35 PM
Unknown Object (File)
Mon, Aug 24, 8:51 AM
Unknown Object (File)
Sun, Aug 23, 8:44 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.