Skip to content

Validating namespace size and start address attributes.

Aneesh Kumar K.V linux-nvdimm linuxppc-dev nvdimm 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest6 patches 10 repliesIn review
  2. v36 patches 6 repliesSuperseded
  3. v26 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v1 RFC4 patches16 repliesSuperseded

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6libnvdimm/namespace: Make namespace size validation arch dependentarch/arm64/mm/flush.c arch/powerpc/lib/pmem.c arch/x86/mm/pageattr.c +1 more+23 -07 replies
2/6libnvdimm/namespace: Validate namespace start addr and sizedrivers/nvdimm/namespace_devs.c+50 -01 reply
3/6libnvdimm/namespace: Add arch dependent callback for namespace create time validationarch/arm64/mm/flush.c arch/powerpc/lib/pmem.c arch/x86/mm/pageattr.c +1 more+25 -01 reply
4/6libnvdimm/namespace: Validate namespace size when creating a new namespace.drivers/nvdimm/namespace_devs.c+19 -51 reply
5/6libnvdimm/namespace: Align DPA based on arch restrictionsdrivers/nvdimm/namespace_devs.c+2 -00 replies
6/6libnvdimm/namespace: Expose arch specific supported size align valuedrivers/nvdimm/namespace_devs.c+9 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [PATCH v4 0/6] Validating namespace size and start address attributes.

When creating a new namespace, the kernel needs to make sure namespace size and start address are correctly aligned to SUBSECTION_SIZE. This ensures kernel can enable/disable namespace without conflicting with memory hotplug rules. Without this, a namespace that partially covers a SUBSECTION can prevent the creation of an adjacent namespace because the hotplug subsystem will find the subsection already active.

To make sure new kernel don't break an existing install with an unaligned start/size attribute, while initializing the namespace the kernel validates these attribute against direct-map mapping page size rather than subsection size.

Aneesh Kumar K.V (6):
libnvdimm/namespace: Make namespace size validation arch dependent libnvdimm/namespace: Validate namespace start addr and size libnvdimm/namespace: Add arch dependent callback for namespace create
time validation
libnvdimm/namespace: Validate namespace size when creating a new
namespace.
libnvdimm/namespace: Align DPA based on arch restrictions libnvdimm/namespace: Expose arch specific supported size align value

 arch/arm64/mm/flush.c           | 13 +++++
 arch/powerpc/lib/pmem.c         | 20 ++++++++
 arch/x86/mm/pageattr.c          | 13 +++++
 drivers/nvdimm/namespace_devs.c | 85 +++++++++++++++++++++++++++++++--
 include/linux/libnvdimm.h       |  2 +
 5 files changed, 128 insertions(+), 5 deletions(-)
Signature · 4 lines
2.24.1
_______________________________________________
Linux-nvdimm mailing list -- [email protected]
To unsubscribe send an email to [email protected]