Re: [PATCH 0/7] RISC-V: Sparsmem, Memory Hotplug and pte_devmap for P2P

2019-04-26 Thread Logan Gunthorpe
On 2019-04-24 5:23 p.m., Palmer Dabbelt wrote: On Wed, 27 Mar 2019 14:36:36 PDT (-0700), log...@deltatee.com wrote: Hi, This patchset enables P2P on the RISC-V architecture. To do this on the current kernel, we only need to be able to back IO memory with struct pages using

Re: [PATCH 0/7] RISC-V: Sparsmem, Memory Hotplug and pte_devmap for P2P

2019-04-24 Thread Palmer Dabbelt
On Wed, 27 Mar 2019 14:36:36 PDT (-0700), log...@deltatee.com wrote: Hi, This patchset enables P2P on the RISC-V architecture. To do this on the current kernel, we only need to be able to back IO memory with struct pages using devm_memremap_pages(). This requires ARCH_HAS_ZONE_DEVICE,

[PATCH 0/7] RISC-V: Sparsmem, Memory Hotplug and pte_devmap for P2P

2019-03-27 Thread Logan Gunthorpe
Hi, This patchset enables P2P on the RISC-V architecture. To do this on the current kernel, we only need to be able to back IO memory with struct pages using devm_memremap_pages(). This requires ARCH_HAS_ZONE_DEVICE, ARCH_ENABLE_MEMORY_HOTPLUG, and ARCH_ENABLE_MEMORY_HOTREMOVE; which in turn