[PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-22 Thread jglisse
From: Jérôme Glisse User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array and pfn shift value allowing them to define their own encoding for HMM pfn that are fill inside the pfns array of the hmm_range struct. With this device driver can get pfn that match

[PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-22 Thread jglisse
From: Jérôme Glisse User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array and pfn shift value allowing them to define their own encoding for HMM pfn that are fill inside the pfns array of the hmm_range struct. With this device driver can get pfn that match their own private

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-21 Thread John Hubbard
On 03/21/2018 08:52 AM, Jerome Glisse wrote: > On Tue, Mar 20, 2018 at 09:39:27PM -0700, John Hubbard wrote: >> On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: >>> From: Jérôme Glisse > > [...] > >> >> Let's just keep it simple, and go back to the bitmap flags! > >

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-21 Thread John Hubbard
On 03/21/2018 08:52 AM, Jerome Glisse wrote: > On Tue, Mar 20, 2018 at 09:39:27PM -0700, John Hubbard wrote: >> On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: >>> From: Jérôme Glisse > > [...] > >> >> Let's just keep it simple, and go back to the bitmap flags! > > This simplify nouveau

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-21 Thread Jerome Glisse
On Tue, Mar 20, 2018 at 09:39:27PM -0700, John Hubbard wrote: > On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: > > From: Jérôme Glisse [...] > > diff --git a/include/linux/hmm.h b/include/linux/hmm.h > > index 0f7ea3074175..5d26e0a223d9 100644 > > ---

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-21 Thread Jerome Glisse
On Tue, Mar 20, 2018 at 09:39:27PM -0700, John Hubbard wrote: > On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: > > From: Jérôme Glisse [...] > > diff --git a/include/linux/hmm.h b/include/linux/hmm.h > > index 0f7ea3074175..5d26e0a223d9 100644 > > --- a/include/linux/hmm.h > > +++

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-20 Thread John Hubbard
On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: > From: Jérôme Glisse > > User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array > and pfn shift value allowing them to define their own encoding for HMM > pfn that are fill inside the pfns array of the hmm_range

Re: [PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-20 Thread John Hubbard
On 03/19/2018 07:00 PM, jgli...@redhat.com wrote: > From: Jérôme Glisse > > User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array > and pfn shift value allowing them to define their own encoding for HMM > pfn that are fill inside the pfns array of the hmm_range struct. With > this

[PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-19 Thread jglisse
From: Jérôme Glisse User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array and pfn shift value allowing them to define their own encoding for HMM pfn that are fill inside the pfns array of the hmm_range struct. With this device driver can get pfn that match

[PATCH 15/15] mm/hmm: use device driver encoding for HMM pfn v2

2018-03-19 Thread jglisse
From: Jérôme Glisse User of hmm_vma_fault() and hmm_vma_get_pfns() provide a flags array and pfn shift value allowing them to define their own encoding for HMM pfn that are fill inside the pfns array of the hmm_range struct. With this device driver can get pfn that match their own private