Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-23 Thread Jason Gunthorpe
On Mon, Jul 20, 2020 at 01:49:09PM -0700, Ralph Campbell wrote: > > On 7/20/20 12:59 PM, Jason Gunthorpe wrote: > > On Mon, Jul 20, 2020 at 12:54:53PM -0700, Ralph Campbell wrote: > > > > > diff --git a/include/linux/migrate.h b/include/linux/migrate.h > > > > > index 3e546cbf03dd..620f2235d7d4

Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-23 Thread Jason Gunthorpe
On Mon, Jul 13, 2020 at 10:21:46AM -0700, Ralph Campbell wrote: > The src_owner field in struct migrate_vma is being used for two purposes, > it implies the direction of the migration and it identifies device private > pages owned by the caller. Split this into separate parameters so the >

Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-23 Thread Jason Gunthorpe
On Mon, Jul 20, 2020 at 12:54:53PM -0700, Ralph Campbell wrote: > > > diff --git a/include/linux/migrate.h b/include/linux/migrate.h > > > index 3e546cbf03dd..620f2235d7d4 100644 > > > +++ b/include/linux/migrate.h > > > @@ -180,6 +180,11 @@ static inline unsigned long migrate_pfn(unsigned > > >

Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-20 Thread Ralph Campbell
On 7/20/20 4:16 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2020 at 01:49:09PM -0700, Ralph Campbell wrote: On 7/20/20 12:59 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2020 at 12:54:53PM -0700, Ralph Campbell wrote: diff --git a/include/linux/migrate.h b/include/linux/migrate.h index

Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-20 Thread Ralph Campbell
On 7/20/20 12:59 PM, Jason Gunthorpe wrote: On Mon, Jul 20, 2020 at 12:54:53PM -0700, Ralph Campbell wrote: diff --git a/include/linux/migrate.h b/include/linux/migrate.h index 3e546cbf03dd..620f2235d7d4 100644 +++ b/include/linux/migrate.h @@ -180,6 +180,11 @@ static inline unsigned long

Re: [Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-20 Thread Ralph Campbell
On 7/20/20 11:36 AM, Jason Gunthorpe wrote: On Mon, Jul 13, 2020 at 10:21:46AM -0700, Ralph Campbell wrote: The src_owner field in struct migrate_vma is being used for two purposes, it implies the direction of the migration and it identifies device private pages owned by the caller. Split

[Nouveau] [PATCH v2 2/5] mm/migrate: add a direction parameter to migrate_vma

2020-07-13 Thread Ralph Campbell
The src_owner field in struct migrate_vma is being used for two purposes, it implies the direction of the migration and it identifies device private pages owned by the caller. Split this into separate parameters so the src_owner field can be used just to identify device private pages owned by the