Received: by 10.223.176.46 with SMTP id f43csp3066526wra; Mon, 22 Jan 2018 07:55:17 -0800 (PST) X-Google-Smtp-Source: AH8x227BIgu7dS18LStGK4SUAXLApiCwr0Sd/VHpoSu8ERMI0qswIYp3V7gTTUStvKBSoju40aTl X-Received: by 10.36.184.3 with SMTP id m3mr8407190ite.65.1516636517214; Mon, 22 Jan 2018 07:55:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1516636517; cv=none; d=google.com; s=arc-20160816; b=yWQupl7JmRdaq7Ibx6XekNAHC9EadWDFeEWccY1ZqDRLPLN3pTg+tdSHO3OySmyGA+ 86+w8dIYIZ08/Bgk6V1Nz3ezyxaxmC2EzGZwJttEkDtSukQhjOgla8eazBl8sURSHBmB Z6QnucfTrDp6YP/7wClSaElku1f68JD4YYnJWZSnnox7gltxbdsNeprwIXOJvCq1bwBb tTiot9Th9k/IvFSOFIloxaU6KWoYnGaQ1b1xGU7nZTbR+MOEwC6SE0ZBHeSIRu0+MRhd vO8HqBLLzm1Ibs4FY/wX9y4sybSZJ73moXJaX78LZbpsMOx5sglc5hfvUhTqdWgWJGFZ Jkog== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:arc-authentication-results; bh=EumJwLN58RxbisFCR49JJo3bZNc1a+A4zZaeF8JUmtU=; b=sKCaSsKXRgIoLTWGVBlNKfxmXUaxUePJs/sxfY9U3/TZk+xg3cH1sGi7COyASWPgkl eV5TDYkN/GG0i+mV12KljqWdAOyblPI+HWI9q3uYqwFFGgp00yUNwK/1Ncj1XCq/Rvmd Wx+Kj0b4UgpUnw+dPLWEpLFzF1cVICRx3zepv7IqOiYm1f+Tw5PYRo4sLGorg5UwZRXz 95m+k0kFXN9cGht/PU6gRy5MyV2fzyiBxu5YudNVwxQAJFN+BO23ppBNgobASU7kzski 96kHd1BCe4/KLvD/Clk0BAFcrYFN6Hlgc8ZUf/xiApDM3y2/UAe2vupXnB11gRGECnqT dH+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n204si5765515itn.58.2018.01.22.07.55.03; Mon, 22 Jan 2018 07:55:17 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751211AbeAVPya (ORCPT + 99 others); Mon, 22 Jan 2018 10:54:30 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:34960 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751028AbeAVPy3 (ORCPT ); Mon, 22 Jan 2018 10:54:29 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 938391179; Mon, 22 Jan 2018 15:54:28 +0000 (UTC) Date: Mon, 22 Jan 2018 16:54:28 +0100 From: Greg KH To: Ganesh Mahendran Cc: maco@android.com, tkjos@google.com, arve@android.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH v3] android: binder: use VM_ALLOC to get vm area Message-ID: <20180122155428.GB7714@kroah.com> References: <1515552545-18311-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: <1515552545-18311-1-git-send-email-opensource.ganesh@gmail.com> User-Agent: Mutt/1.9.2 (2017-12-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 10, 2018 at 10:49:05AM +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. > > And 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 will save some kernel vm area, especially for 32bit os. > > In 32bit OS, kernel vm area is only 240MB. We may got below > error when launching a app: > > <3>[ 4482.440053] binder_alloc: binder_alloc_mmap_handler: 15728 8ce67000-8cf65000 get_vm_area failed -12 > <3>[ 4483.218817] binder_alloc: binder_alloc_mmap_handler: 15745 8ce67000-8cf65000 get_vm_area failed -12 > > Signed-off-by: Ganesh Mahendran > ---- > V3: update comments > V2: update comments > --- > drivers/android/binder_alloc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Martijn and Todd, any objections to this patch? thanks, greg k-h