From patchwork Tue Feb 2 22:34:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: dann frazier X-Patchwork-Id: 577893 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 890E5140C43; Wed, 3 Feb 2016 23:06:23 +1100 (AEDT) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1aQwCP-0007nC-Qx; Wed, 03 Feb 2016 12:06:17 +0000 Received: from complete.lackof.org ([198.49.126.79]) by huckleberry.canonical.com with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.76) (envelope-from ) id 1aQjWk-0003Y1-Va for kernel-team@lists.ubuntu.com; Tue, 02 Feb 2016 22:34:27 +0000 Received: from localhost (c-107-2-141-92.hsd1.co.comcast.net [107.2.141.92]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by complete.lackof.org (Postfix) with ESMTPSA id 6826D33E00B5 for ; Tue, 2 Feb 2016 15:34:23 -0700 (MST) Date: Tue, 2 Feb 2016 15:34:23 -0700 From: dann frazier To: kernel-team@lists.ubuntu.com Subject: [PATCH v2][Xenial] UBUNTU: [Config] CONFIG_ARM64_VA_BITS=48 Message-ID: <20160202223423.GA3944@fluid.dannf> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Spam-Status: No, score=0.0 required=5.0 tests=UNPARSEABLE_RELAY autolearn=unavailable version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on complete.lackof.org X-Mailman-Approved-At: Wed, 03 Feb 2016 12:06:15 +0000 X-BeenThere: kernel-team@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Kernel team discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: kernel-team-bounces@lists.ubuntu.com Sender: kernel-team-bounces@lists.ubuntu.com On NUMA implementations of Cavium ThunderX, node1 memory addresses start with bit 40 set to 1, and therefore requires >= 41 bits of VA. A side effect of this is an increase from 3 to 4 page table levels. Note: The alternative way to increase VA bits w/o moving to 4 level page tables would be to adopt a larger page size. That would have a far more significant impact to memory usage, and is known to have issue with current Ubuntu userspace: https://lists.ubuntu.com/archives/ubuntu-devel/2014-December/038572.html http://bugs.launchpad.net/bugs/1520162 Signed-off-by: dann frazier --- debian.master/config/annotations | 4 ++++ debian.master/config/arm64/config.common.arm64 | 2 +- debian.master/config/config.common.ubuntu | 6 +++--- 3 files changed, 8 insertions(+), 4 deletions(-) diff --git a/debian.master/config/annotations b/debian.master/config/annotations index 4288cf0..f13dc79 100644 --- a/debian.master/config/annotations +++ b/debian.master/config/annotations @@ -36,6 +36,10 @@ CONFIG_LOWMEM_CAM_NUM policy<{'powerpc-powerpc-e500mc' CONFIG_ARM_DMA_IOMMU_ALIGNMENT policy<{'armhf': '8'}> CONFIG_ARM_PATCH_PHYS_VIRT policy<{'armhf': 'y'}> +# Menu: Architecture: arm64 +CONFIG_ARM64_VA_BITS policy<{'arm64': '48'}> +CONFIG_ARM64_VA_BITS mark note + # Menu: Architecture: powerpc CONFIG_PPC64 policy<{'powerpc-powerpc64-emb': 'y', 'powerpc-powerpc64-smp': 'y', 'powerpc-powerpc-e500mc': 'n', 'powerpc-powerpc-smp': 'n', 'ppc64el': 'y'}> CONFIG_NR_IRQS policy<{'powerpc': '512', 'ppc64el': '512'}> diff --git a/debian.master/config/arm64/config.common.arm64 b/debian.master/config/arm64/config.common.arm64 index 70ab3c0..e98bd48 100644 --- a/debian.master/config/arm64/config.common.arm64 +++ b/debian.master/config/arm64/config.common.arm64 @@ -272,7 +272,7 @@ CONFIG_PCIPCWATCHDOG=m CONFIG_PCI_PASID=y CONFIG_PCI_PRI=y CONFIG_PCI_QUIRKS=y -CONFIG_PGTABLE_LEVELS=3 +CONFIG_PGTABLE_LEVELS=4 CONFIG_PGTABLE_MAPPING=y CONFIG_PHANTOM=m CONFIG_PHONET=m diff --git a/debian.master/config/config.common.ubuntu b/debian.master/config/config.common.ubuntu index baa1643..647b88d 100644 --- a/debian.master/config/config.common.ubuntu +++ b/debian.master/config/config.common.ubuntu @@ -499,9 +499,9 @@ CONFIG_ARM64_HW_AFDBM=y CONFIG_ARM64_PAN=y # CONFIG_ARM64_PTDUMP is not set # CONFIG_ARM64_RANDOMIZE_TEXT_OFFSET is not set -CONFIG_ARM64_VA_BITS=39 -CONFIG_ARM64_VA_BITS_39=y -# CONFIG_ARM64_VA_BITS_48 is not set +CONFIG_ARM64_VA_BITS=48 +# CONFIG_ARM64_VA_BITS_39 is not set +CONFIG_ARM64_VA_BITS_48=y CONFIG_ARMADA375_USBCLUSTER_PHY=y CONFIG_ARMADA_370_CLK=y CONFIG_ARMADA_370_XP_TIMER=y