Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-26 Thread Reza Arbab
On Tue, Sep 26, 2017 at 04:32:41PM +, Michal Hocko wrote: On Tue 26-09-17 09:47:10, Reza Arbab wrote: On Tue, Sep 26, 2017 at 01:37:07PM +, Michal Hocko wrote: > On Fri 22-09-17 15:13:56, Reza Arbab wrote: > > The move_pages() syscall can be used to find the numa node where a page > > cu

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-26 Thread Michal Hocko
On Tue 26-09-17 09:47:10, Reza Arbab wrote: > On Tue, Sep 26, 2017 at 01:37:07PM +, Michal Hocko wrote: > > On Fri 22-09-17 15:13:56, Reza Arbab wrote: > > > The move_pages() syscall can be used to find the numa node where a page > > > currently resides. This is not working for device public me

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-26 Thread Jerome Glisse
On Tue, Sep 26, 2017 at 09:47:10AM -0500, Reza Arbab wrote: > On Tue, Sep 26, 2017 at 01:37:07PM +, Michal Hocko wrote: > > On Fri 22-09-17 15:13:56, Reza Arbab wrote: > > > The move_pages() syscall can be used to find the numa node where a page > > > currently resides. This is not working for

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-26 Thread Reza Arbab
On Tue, Sep 26, 2017 at 01:37:07PM +, Michal Hocko wrote: On Fri 22-09-17 15:13:56, Reza Arbab wrote: The move_pages() syscall can be used to find the numa node where a page currently resides. This is not working for device public memory pages, which erroneously report -EFAULT (unmapped or z

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-26 Thread Michal Hocko
On Fri 22-09-17 15:13:56, Reza Arbab wrote: > The move_pages() syscall can be used to find the numa node where a page > currently resides. This is not working for device public memory pages, > which erroneously report -EFAULT (unmapped or zero page). > > Enable by adding a FOLL_DEVICE flag for fol

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-22 Thread Reza Arbab
On Fri, Sep 22, 2017 at 08:31:57PM +, Reza Arbab wrote: On Fri, Sep 22, 2017 at 08:13:56PM +, Reza Arbab wrote: The move_pages() syscall can be used to find the numa node where a page currently resides. This is not working for device public memory pages, which erroneously report -EFAULT

Re: [PATCH] mm/device-public-memory: Enable move_pages() to stat device memory

2017-09-22 Thread Reza Arbab
On Fri, Sep 22, 2017 at 08:13:56PM +, Reza Arbab wrote: The move_pages() syscall can be used to find the numa node where a page currently resides. This is not working for device public memory pages, which erroneously report -EFAULT (unmapped or zero page). Argh. Please disregard this patch.