Re: [PATCH] export the function kmap_flush_unused.

2014-08-12 Thread Zhang, Yanmin
On 2014/8/11 19:54, Peter Zijlstra wrote: On Mon, Aug 11, 2014 at 01:26:45AM +, Sha, Ruibin wrote: Hi Chintan, Thank you very much for your timely and kindly response and comments. Here is more detail about our Scenario: We have a big driver on Android product. The driver allocates lo

Re: [PATCH] export the function kmap_flush_unused.

2014-08-11 Thread Peter Zijlstra
On Mon, Aug 11, 2014 at 01:26:45AM +, Sha, Ruibin wrote: > Hi Chintan, > Thank you very much for your timely and kindly response and comments. > > Here is more detail about our Scenario: > > We have a big driver on Android product. The driver allocates lots of > DDR pages. When applic

Re: [PATCH] export the function kmap_flush_unused.

2014-08-10 Thread Zhang, Yanmin
...@codeaurora.org] Sent: Friday, August 8, 2014 9:40 PM To: Sha, Ruibin Cc: linux-kernel@vger.kernel.org; linux...@kvack.org; m...@csn.ul.ie; a.p.zijls...@chello.nl; mgor...@suse.de; mi...@redhat.com; Zhang, Yanmin; He, Bo Subject: Re: [PATCH] export the function kmap_flush_unused. On 08/08/2014 02

RE: [PATCH] export the function kmap_flush_unused.

2014-08-10 Thread Sha, Ruibin
: Sha, Ruibin Cc: linux-kernel@vger.kernel.org; linux...@kvack.org; m...@csn.ul.ie; a.p.zijls...@chello.nl; mgor...@suse.de; mi...@redhat.com; Zhang, Yanmin; He, Bo Subject: Re: [PATCH] export the function kmap_flush_unused. On 08/08/2014 02:46 PM, Sha, Ruibin wrote: > export the funct

Re: [PATCH] export the function kmap_flush_unused.

2014-08-08 Thread Chintan Pandya
On 08/08/2014 02:46 PM, Sha, Ruibin wrote: export the function kmap_flush_unused. Scenario: When graphic driver need high memory spece, we use alloc_pages() to allocate. But if the allocated page has just been mapped in the KMAP space(like first kmap then kunmap) and no flush page happened on PK