From patchwork Wed Oct 7 17:00:24 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jeremy Linton X-Patchwork-Id: 7346731 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 759329F443 for ; Wed, 7 Oct 2015 17:04:31 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 9FDD120749 for ; Wed, 7 Oct 2015 17:04:30 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 2023D2072E for ; Wed, 7 Oct 2015 17:04:29 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zjs6C-0006Vu-2b; Wed, 07 Oct 2015 17:01:52 +0000 Received: from eu-smtp-delivery-143.mimecast.com ([146.101.78.143]) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1Zjs5Y-000647-Oy for linux-arm-kernel@lists.infradead.org; Wed, 07 Oct 2015 17:01:14 +0000 Received: from cam-owa2.Emea.Arm.com (fw-tnat.cambridge.arm.com [217.140.96.140]) by eu-smtp-1.mimecast.com with ESMTP id uk-mta-15-fwxNS_AdTy-L_1NQYWeGQA-1; Wed, 07 Oct 2015 18:00:53 +0100 Received: from mammon-v1.localdomain.localdomain ([10.1.2.79]) by cam-owa2.Emea.Arm.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 7 Oct 2015 18:00:52 +0100 From: Jeremy Linton To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 6/7] arm64: Add a kernel Kconfig option to enable contiguous PTE marking Date: Wed, 7 Oct 2015 12:00:24 -0500 Message-Id: <1444237225-13802-7-git-send-email-jeremy.linton@arm.com> X-Mailer: git-send-email 2.4.3 In-Reply-To: <1444237225-13802-1-git-send-email-jeremy.linton@arm.com> References: <1444237225-13802-1-git-send-email-jeremy.linton@arm.com> X-OriginalArrivalTime: 07 Oct 2015 17:00:53.0052 (UTC) FILETIME=[B9A3BFC0:01D10121] X-MC-Unique: fwxNS_AdTy-L_1NQYWeGQA-1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20151007_100113_247397_03283DA4 X-CRM114-Status: UNSURE ( 8.29 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -5.2 (-----) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: steve.capper@linaro.org, catalin.marinas@arm.com, will.deacon@arm.com, Jeremy Linton , dwoods@ezchip.com, shijie.huang@arm.com, dennis.chen@arm.com MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add ARM64_CONT_PTE, so that the contiguous PTE marking in the kernel's linear mapping may be turned off. In general this should not be necessary, but it can help sanity check that the code/hardware is working properly. Signed-off-by: Jeremy Linton --- arch/arm64/Kconfig | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/arch/arm64/Kconfig b/arch/arm64/Kconfig index 07d1811..9485c14 100644 --- a/arch/arm64/Kconfig +++ b/arch/arm64/Kconfig @@ -400,6 +400,13 @@ config ARM64_VA_BITS default 42 if ARM64_VA_BITS_42 default 48 if ARM64_VA_BITS_48 +config ARM64_CONT_PTE + bool "Use contiguous page hint for kernel linear mapping" + default y + help + Marking kernel pages contiguous can reduce TLB pressure for + certain workloads. If unsure, say Y. + config CPU_BIG_ENDIAN bool "Build big-endian kernel" help