[v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-01 Thread Pavel Tatashin
It is now allowed to use persistent memory like a regular RAM, but currently there is no way to remove this memory until machine is rebooted. This work expands the functionality to also allows hotremoving previously hotplugged persistent memory, and recover the device for use for other purposes.

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread David Hildenbrand
On 01.05.19 21:18, Pavel Tatashin wrote: > It is now allowed to use persistent memory like a regular RAM, but > currently there is no way to remove this memory until machine is > rebooted. > > This work expands the functionality to also allows hotremoving > previously hotplugged persistent memory,

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread Pavel Tatashin
> > Memory unplug bits > > Reviewed-by: David Hildenbrand > Thank you David. Pasha ___ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread Dan Williams
On Wed, May 1, 2019 at 12:19 PM Pavel Tatashin wrote: > > It is now allowed to use persistent memory like a regular RAM, but > currently there is no way to remove this memory until machine is > rebooted. > > This work expands the functionality to also allows hotremoving > previously hotplugged per

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread Pavel Tatashin
> Currently the kmem driver can be built as a module, and I don't see a > need to drop that flexibility. What about wrapping these core > routines: > > unlock_device_hotplug > __remove_memory > walk_memory_range > lock_device_hotplug > > ...into a common exported (gpl) helper like:

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread Sasha Levin
On Wed, May 01, 2019 at 03:18:46PM -0400, Pavel Tatashin wrote: It is now allowed to use persistent memory like a regular RAM, but currently there is no way to remove this memory until machine is rebooted. This work expands the functionality to also allows hotremoving previously hotplugged persi

Re: [v4 2/2] device-dax: "Hotremove" persistent memory that is used like normal RAM

2019-05-02 Thread Pavel Tatashin
> >device-dax/kmem driver. So, operations should look like this: > > > >echo offline > echo offline > /sys/devices/system/memory/memoryN/state > > This looks wrong :) > Indeed, I will fix patch log in the next version. Thank you, Pasha ___ Linux-nvdim