Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932321AbbLNUpY (ORCPT ); Mon, 14 Dec 2015 15:45:24 -0500 Received: from mail-pf0-f174.google.com ([209.85.192.174]:35620 "EHLO mail-pf0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932273AbbLNUpU (ORCPT ); Mon, 14 Dec 2015 15:45:20 -0500 Subject: Re: [PATCH v6 3/4] arm64: mm: support ARCH_MMAP_RND_BITS. To: Will Deacon References: <1449856338-30984-1-git-send-email-dcashman@android.com> <1449856338-30984-2-git-send-email-dcashman@android.com> <1449856338-30984-3-git-send-email-dcashman@android.com> <1449856338-30984-4-git-send-email-dcashman@android.com> <20151214111949.GD6992@arm.com> Cc: linux-kernel@vger.kernel.org, linux@arm.linux.org.uk, akpm@linux-foundation.org, keescook@chromium.org, mingo@kernel.org, linux-arm-kernel@lists.infradead.org, corbet@lwn.net, dzickus@redhat.com, ebiederm@xmission.com, xypron.glpk@gmx.de, jpoimboe@redhat.com, kirill.shutemov@linux.intel.com, n-horiguchi@ah.jp.nec.com, aarcange@redhat.com, mgorman@suse.de, tglx@linutronix.de, rientjes@google.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, salyzyn@android.com, jeffv@google.com, nnk@google.com, catalin.marinas@arm.com, hpa@zytor.com, x86@kernel.org, hecmargi@upv.es, bp@suse.de, dcashman@google.com, arnd@arndb.de, jonathanh@nvidia.com From: Daniel Cashman Message-ID: <566F2A5D.6010100@android.com> Date: Mon, 14 Dec 2015 12:45:17 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.4.0 MIME-Version: 1.0 In-Reply-To: <20151214111949.GD6992@arm.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1203 Lines: 31 On 12/14/2015 03:19 AM, Will Deacon wrote: >> +# max bits determined by the following formula: >> +# VA_BITS - PAGE_SHIFT - 3 > > Now that we have this comment, I think we can drop the unsupported > combinations from the list below. That means we just end up with: > >> +config ARCH_MMAP_RND_BITS_MAX >> + default 19 if ARM64_VA_BITS=36 >> + default 24 if ARM64_VA_BITS=39 >> + default 27 if ARM64_VA_BITS=42 >> + default 30 if ARM64_VA_BITS=47 >> + default 29 if ARM64_VA_BITS=48 && ARM64_64K_PAGES >> + default 31 if ARM64_VA_BITS=48 && ARM64_16K_PAGES >> + default 33 if ARM64_VA_BITS=48 Unless you object, I'd like to keep the last 3 as well, to mirror the min bits, should any new configurations be added but not reflected here: + default 15 if ARM64_64K_PAGES + default 17 if ARM64_16K_PAGES + default 18 The first two of these three should be changed as well to 14 and 16. Thanks, Dan -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/