Page MenuHomeFreeBSD

nvdimm: Simple namespace support
ClosedPublic

Authored by scottph on Oct 19 2018, 7:59 PM.
Tags
None
Referenced Files
F82016180: D17619.diff
Wed, Apr 24, 2:13 PM
Unknown Object (File)
Tue, Apr 23, 2:50 PM
Unknown Object (File)
Sat, Apr 20, 1:35 PM
Unknown Object (File)
Fri, Apr 19, 11:43 PM
Unknown Object (File)
Fri, Apr 19, 11:43 PM
Unknown Object (File)
Fri, Apr 19, 11:36 PM
Unknown Object (File)
Wed, Apr 17, 1:48 PM
Unknown Object (File)
Sat, Apr 6, 2:08 PM
Subscribers

Details

Reviewers
bwidawsk
kib
Summary

Add support for simple NVDIMM v1.2 namespaces from the UEFI
version 2.7 specification. The combination of NVDIMM regions and
labels can lead to a wide variety of namespace layouts. Here we
support a simple subset of namespaces where each NVDIMM SPA range
is composed of a single region per member dimm.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

sys/dev/nvdimm/nvdimm.c
290

I think you need to free the buffer on each loop, not just at the end. You could potentially statically allocate the buffer, but I've never actually tried to do this myself.

One note from https://wiki.freebsd.org/Phabricator - for next upload please include full context e.g. from git show -U999999 <commit-hash> > change.diff

scottph retitled this revision from [RFC] squash of the work-in-progress series for NVDIMM Namespace support to nvdimm: Simple namespace support.
scottph edited the summary of this revision. (Show Details)
This revision is now accepted and ready to land.Feb 22 2019, 8:04 PM