Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Dave Hansen
On 10/25/2016 12:20 PM, Aneesh Kumar K.V wrote: > Dave Hansen writes: >> On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >>> VMAs containing coherent device memory should be marked with VM_CDM. These >>> VMAs need to be identified in various core kernel paths and this new

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Dave Hansen
On 10/25/2016 12:20 PM, Aneesh Kumar K.V wrote: > Dave Hansen writes: >> On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >>> VMAs containing coherent device memory should be marked with VM_CDM. These >>> VMAs need to be identified in various core kernel paths and this new flag >>> will help in

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Aneesh Kumar K.V
Dave Hansen writes: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> VMAs containing coherent device memory should be marked with VM_CDM. These >> VMAs need to be identified in various core kernel paths and this new flag >> will help in this regard. > > ... and it's

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Aneesh Kumar K.V
Dave Hansen writes: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> VMAs containing coherent device memory should be marked with VM_CDM. These >> VMAs need to be identified in various core kernel paths and this new flag >> will help in this regard. > > ... and it's sticky? So if a VMA

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Balbir Singh
On 25/10/16 04:38, Dave Hansen wrote: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> VMAs containing coherent device memory should be marked with VM_CDM. These >> VMAs need to be identified in various core kernel paths and this new flag >> will help in this regard. > > ... and it's

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-25 Thread Balbir Singh
On 25/10/16 04:38, Dave Hansen wrote: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> VMAs containing coherent device memory should be marked with VM_CDM. These >> VMAs need to be identified in various core kernel paths and this new flag >> will help in this regard. > > ... and it's

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-24 Thread Dave Hansen
On 10/24/2016 10:38 AM, Dave Hansen wrote: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> > VMAs containing coherent device memory should be marked with VM_CDM. These >> > VMAs need to be identified in various core kernel paths and this new flag >> > will help in this regard. > ... and it's

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-24 Thread Dave Hansen
On 10/24/2016 10:38 AM, Dave Hansen wrote: > On 10/23/2016 09:31 PM, Anshuman Khandual wrote: >> > VMAs containing coherent device memory should be marked with VM_CDM. These >> > VMAs need to be identified in various core kernel paths and this new flag >> > will help in this regard. > ... and it's

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-24 Thread Dave Hansen
On 10/23/2016 09:31 PM, Anshuman Khandual wrote: > VMAs containing coherent device memory should be marked with VM_CDM. These > VMAs need to be identified in various core kernel paths and this new flag > will help in this regard. ... and it's sticky? So if a VMA *ever* has one of these funky

Re: [RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-24 Thread Dave Hansen
On 10/23/2016 09:31 PM, Anshuman Khandual wrote: > VMAs containing coherent device memory should be marked with VM_CDM. These > VMAs need to be identified in various core kernel paths and this new flag > will help in this regard. ... and it's sticky? So if a VMA *ever* has one of these funky

[RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-23 Thread Anshuman Khandual
VMAs containing coherent device memory should be marked with VM_CDM. These VMAs need to be identified in various core kernel paths and this new flag will help in this regard. Signed-off-by: Anshuman Khandual --- include/linux/mm.h | 5 + mm/mempolicy.c | 43

[RFC 5/8] mm: Add new flag VM_CDM for coherent device memory

2016-10-23 Thread Anshuman Khandual
VMAs containing coherent device memory should be marked with VM_CDM. These VMAs need to be identified in various core kernel paths and this new flag will help in this regard. Signed-off-by: Anshuman Khandual --- include/linux/mm.h | 5 + mm/mempolicy.c | 43