Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp425006imm; Mon, 2 Jul 2018 14:15:25 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdBOGPxxoZnpqXUnJx13G4v9u/+YW90dN3pTHZusPb0iO8KqU9nbk4RlN0sy9HLJrtA3acb X-Received: by 2002:a62:2541:: with SMTP id l62-v6mr27147208pfl.0.1530566125447; Mon, 02 Jul 2018 14:15:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530566125; cv=none; d=google.com; s=arc-20160816; b=CfiYjF/4/uWRJa2tK/JTqnFXRQOrzbJJy2xl1tI43iRryqDpL6tT1Kk2wqWW6fPNf2 Vj/ACrIWO/efzUOHqs9gbfpGoX6dB8gXNGeio5rZPjTcQsJ8MQVp0w3YJPVTVus9zQyV kYgNqTAUypymTS2w7eFwk6ugPIYuA/jwuePbgIkyH3Ffx7Cl0OxUGVblJFYOJJ0lWdE2 F8cO7Ezw2FPcUqIte87SNujLTxmVFzsp+OSlx3U8xgY6H00JgM+TYmZJqV0tJcf7NAkW IYHA1wX3yy44yAle1ufV4Ddd/I2yojSoHeI7rHNzgfaLKQsnAfsrWphjT8nztEpYEAtc 2+pw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :dkim-signature:arc-authentication-results; bh=pIwGDlTFGK6uZwKE7rJgMjJGbntc+M1cZ3bfLF7Fzoc=; b=VUkdIzV4FdPiHS1AHJrW54YnR3Uiyz6giSJYH3XPjndNJp53Q/SG4pOT21wKYkD4Kw ZSlWecFetaB16yH6GiYVeg5ooUoOsiQn9QSMw+Aahp7oqRRJMZiO9EhYBe3FnzdyAbZs ddvG/tLhwOzDr3t5sPp7uvQ42sKF1glhYbE8gq3tioUH2N+QEPpRrF2LM7SQ4DFlv/PK ZLkhxIGiPREjsyhVK3muZi/ZWTOfgm4Pbxv3kTFZbISfhmvykHHubyIAU+MLCXtsiMud tgKdyr9hJbrz5MwJhiKfYm4XUenvWRYDqHTE8d/8BQpneyuvWH95LZC+WHWVJx6K4J/e YTTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@cisco.com header.s=iport header.b=TFDx4Dxm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d18-v6si14633676pgp.214.2018.07.02.14.15.10; Mon, 02 Jul 2018 14:15:25 -0700 (PDT) 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; dkim=pass header.i=@cisco.com header.s=iport header.b=TFDx4Dxm; 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; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=cisco.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502AbeGBVOR (ORCPT + 99 others); Mon, 2 Jul 2018 17:14:17 -0400 Received: from rcdn-iport-1.cisco.com ([173.37.86.72]:60105 "EHLO rcdn-iport-1.cisco.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752748AbeGBVOP (ORCPT ); Mon, 2 Jul 2018 17:14:15 -0400 X-Greylist: delayed 563 seconds by postgrey-1.27 at vger.kernel.org; Mon, 02 Jul 2018 17:14:15 EDT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=1262; q=dns/txt; s=iport; t=1530566054; x=1531775654; h=from:to:cc:subject:date:message-id; bh=KdN1OkqFY6/LenlgEaQPg241zjchKzZg5vCWiLuFUg8=; b=TFDx4DxmruervHtP6VSry6BO28sOZGx0GrocPEJkpLsZ998eygEypP/F IZfq+1CrRrBOkDeGnq2GV7WsvcwcDoTEDgPnWe/vDRJGKYyRk75WV3mW1 PXi0eygzSsT/FJGZHNmdMZVkfPPcy+SlApkZAQxBRErPRMEZEBC70jxxh I=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0D1AAAukjpb/4YNJK1cGQEBAQEBAQE?= =?us-ascii?q?BAQEBAQcBAQEBAYNJgWEoi32MQJcrgXoLhGyDNiE0GAECAQECAQECbSiGNoE?= =?us-ascii?q?+ARKDIIF/AapahFuDdIE2FIhZgVY/jm4CjTeMDwmPEguNVZIHgUE4gVIzGgg?= =?us-ascii?q?bFYMkkHJPkQcBAQ?= X-IronPort-AV: E=Sophos;i="5.51,300,1526342400"; d="scan'208";a="418342071" Received: from alln-core-12.cisco.com ([173.36.13.134]) by rcdn-iport-1.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jul 2018 21:04:52 +0000 Received: from sjc-ads-3734.cisco.com (sjc-ads-3734.cisco.com [171.68.250.181]) by alln-core-12.cisco.com (8.14.5/8.14.5) with ESMTP id w62L4pnj024843; Mon, 2 Jul 2018 21:04:52 GMT From: Nikunj Kela To: Catalin Marinas , Will Deacon Cc: xe-kernel@external.cisco.com, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] arm64: add support for 43bit physical address Date: Mon, 2 Jul 2018 14:04:51 -0700 Message-Id: <20180702210451.16057-2-nkela@cisco.com> X-Mailer: git-send-email 2.10.3.dirty X-Auto-Response-Suppress: DR, OOF, AutoReply Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch adds support for 43bit physical address. Additionally, this patch adds support for 27bit section size. This is useful in reducing kernel memory usage. One usecase is in kdump kernel. Cc: xe-kernel@external.cisco.com Cc: Nikunj Kela Signed-off-by: Nikunj Kela --- arch/arm64/Kconfig | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index edf327f..76d0bfb 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -665,6 +665,9 @@ choice Choose the maximum physical address range that the kernel will support. +config ARM64_PA_BITS_43 + bool "43-bit" + config ARM64_PA_BITS_48 bool "48-bit" @@ -684,6 +687,7 @@ endchoice config ARM64_PA_BITS int + default 43 if ARM64_PA_BITS_43 default 48 if ARM64_PA_BITS_48 default 52 if ARM64_PA_BITS_52 @@ -693,6 +697,9 @@ choice help Choose the maximum amount of memory in a section. +config ARM64_SEC_BITS_27 + bool "27-bit" + config ARM64_SEC_BITS_30 bool "30-bit" @@ -700,6 +707,7 @@ endchoice config ARM64_SEC_BITS int + default 27 if ARM64_SEC_BITS_27 default 30 if ARM64_SEC_BITS_30 config CPU_BIG_ENDIAN -- 2.5.0