Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S941610AbcKOKSu (ORCPT ); Tue, 15 Nov 2016 05:18:50 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:40608 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S941404AbcKOKSq (ORCPT ); Tue, 15 Nov 2016 05:18:46 -0500 Date: Tue, 15 Nov 2016 11:18:56 +0100 From: Greg KH To: Ganesh Mahendran Cc: linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, arve@android.com, riandrews@android.com Subject: Re: [V2] android: binder: use VM_ALLOC to get vm area Message-ID: <20161115101856.GB4244@kroah.com> References: <1479203739-3806-1-git-send-email-opensource.ganesh@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1479203739-3806-1-git-send-email-opensource.ganesh@gmail.com> User-Agent: Mutt/1.7.1 (2016-10-04) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1061 Lines: 39 On Tue, Nov 15, 2016 at 05:55:39PM +0800, Ganesh Mahendran wrote: > VM_IOREMAP is used to access hardware through a mechanism called > I/O mapped memory. Android binder is a IPC machanism which will > not access I/O memory. > > Also VM_IOREMAP has alignment requiement which may not needed in > binder. > __get_vm_area_node() > { > ... > if (flags & VM_IOREMAP) > align = 1ul << clamp_t(int, fls_long(size), > PAGE_SHIFT, IOREMAP_MAX_ORDER); > ... > } > > This patch use VM_ALLOC to get vm area. > > Below is the throughput test result: > > # ./binderThroughputTest -w 100 > I run this command 10 times: > before after > average iterations per sec: 11199.9 11886.9 > > No performance regression found throgh binder test. > > Signed-off-by: Ganesh Mahendran > --- > drivers/android/binder.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) What changed from v1? Always list that below the --- line. thanks, greg k-h