Skip to content

pmem: Fixes and farther development (mm: add_persistent_memory)

Boaz Harrosh linux-fsdevel linux-mm linux-nvdimm lkml nvdimm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 16 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9SQUASHME: pmem: Remove unused #include headersdrivers/block/pmem.c+0 -55 replies
2/9SQUASHME: pmem: Request from fdisk 4k alignmentdrivers/block/pmem.c+6 -02 replies
3/9SQUASHME: pmem: Let each device manage private memory regiondrivers/block/pmem.c+75 -471 reply
4/9SQUASHME: pmem: Support of multiple memory regionsdrivers/block/Kconfig drivers/block/pmem.c+44 -460 replies
5/9mm: Let sparse_{add,remove}_one_section receive a node_idinclude/linux/memory_hotplug.h mm/memory_hotplug.c mm/sparse.c+9 -88 replies
6/9mm: New add_persistent_memory/remove_persistent_memoryinclude/linux/memory_hotplug.h mm/Kconfig mm/memory_hotplug.c+204 -00 replies
7/9pmem: Add support for page structsdrivers/block/Kconfig drivers/block/pmem.c+32 -00 replies
8/9SQUASHME: pmem: Fixs to getgeodrivers/block/pmem.c+10 -40 replies
9/9pmem: KISS, remove register_blkdevdrivers/block/pmem.c+0 -110 replies

Reviews trailers per patch

1 of 9 patches has a Reviewed-by or Acked-by.

PatchRoss Zwisler
1/9
2/9
3/9R-b
4/9
5/9
6/9
7/9
8/9
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/9] pmem: Fixes and farther development (mm: add_persistent_memory)
Quoted 4 lines · Ross Zwisler

PMEM is a modified version of the Block RAM Driver, BRD. The major difference is that BRD allocates its backing store pages from the page cache, whereas PMEM uses reserved memory that has been ioremapped.

Quoted 8 lines

One benefit of this approach is that there is a direct mapping between filesystem block numbers and virtual addresses. In PMEM, filesystem blocks N, N+1, N+2, etc. will all be adjacent in the virtual memory space. This property allows us to set up PMD mappings (2 MiB) for DAX.

This patch set is builds upon the work that Matthew Wilcox has been doing for DAX:

Let us not submit a driver with the wrong user visible API. Lets submit the better API (and structure) I have sent.

Quoted 5 lines

https://lkml.org/lkml/2014/8/27/31

Specifically, my implementation of pmem_direct_access() in patch 4/4 uses API enhancements introduced in Matthew's DAX patch v10 02/21:

Quoted 8 lines

https://lkml.org/lkml/2014/8/27/48

Ross Zwisler (4):
pmem: Initial version of persistent memory driver
pmem: Add support for getgeo()
pmem: Add support for rw_page()
pmem: Add support for direct_access()

On top of the 4 above patches here is a list of changes:

[PATCH 1/9] SQUASHME: pmem: Remove unused #include headers [PATCH 2/9] SQUASHME: pmem: Request from fdisk 4k alignment [PATCH 3/9] SQUASHME: pmem: Let each device manage private memory region [PATCH 4/9] SQUASHME: pmem: Support of multiple memory regions

These 4 need to be squashed into Ross's
[patch 1/4] pmem: Initial version of persistent memory driver
See below for a suggested new patch

[PATCH 5/9 v2] mm: Let sparse_{add,remove}_one_section receive a node_id [PATCH 6/9 v2] mm: New add_persistent_memory/remove_persistent_memory [PATCH 7/9 v2] pmem: Add support for page structs

Please need review by Toshi and mm people.

[PATCH 8/9] SQUASHME: pmem: Fixs to getgeo
[PATCH 9/9] pmem: KISS, remove register_blkdev

And some more development atop the initial version

All these patches can be viewed in this tree/branch:

	git://git.open-osd.org/pmem.git branch pmem-jens-3.17-rc1
	[http://git.open-osd.org/gitweb.cgi?p=pmem.git;a=shortlog;h=refs/heads/pmem-jens-3.17-rc1]

I have also prepared a new branch *pmem* which is already SQUASHED And has my suggested changed commit logs for the combined patches here is the commit-log:

aa85c80 Boaz Harrosh  |  pmem: KISS, remove register_blkdev 
738203c Boaz Harrosh  |  pmem: Add support for page structs 
9f50a54 Boaz Harrosh  |  mm: New add_persistent_memory/remove_persistent_memory 
fdfab12 Yigal Korman  |  mm: Let sparse_{add,remove}_one_section receive a node_id 
a477a87 Ross Zwisler  |  pmem: Add support for direct_access() 
316a93a Ross Zwisler  |  pmem: Add support for rw_page() 
6850353 Boaz Harrosh  |  SQUASHME: pmem: Fixs to getgeo 
d78a84a Ross Zwisler  |  pmem: Add support for getgeo() 
bb0eb45 Ross Zwisler  |  pmem: Initial version of persistent memory driver                                                                             

All these patches can be viewed in this tree/branch:
git://git.open-osd.org/pmem.git branch pmem
[http://git.open-osd.org/gitweb.cgi?p=pmem.git;a=shortlog;h=refs/heads/pmem]
Specifically the first [bb0eb45] is needed so first version can be released with the proper user visible API.
Ross please consider taking these patches (pmem branch) in your tree for submission?

Thanks
Boaz

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to [email protected]. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>