From patchwork Mon Aug 12 12:57:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 11089837 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id AB9D16C5 for ; Mon, 12 Aug 2019 12:57:56 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A202208C2 for ; Mon, 12 Aug 2019 12:57:56 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 89F9621327; Mon, 12 Aug 2019 12:57:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CE18208C2 for ; Mon, 12 Aug 2019 12:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:To :From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=jLbhFMDgbJGIc6h113mD4144+iHrSrt1d1sX4GdL1+U=; b=mGdbjN2QwS08Q7 5aPJidWqkiuoF5ZSjfyagOpDFEsL/dVKqH4z9rcBc4g9B0gjqpST0MB+vDs30dVk+SR9tw2Nh2P29 tu/9lrcgnRcv4QLAytkXICbAJE96q+YX/vCXgOGun6+rEUxuMQGC+PsqA9nGyZZ2EU3dqL1E7u8LE TbJQH5SqZp4Empj1aBVTvSsbgKxn6FvhU9IsZFGFMDr86sauiosjQqS/IHwvphADJwycY6lzxm1Rc TSgJJzZUpaaILMBnFKhi/8wehePByKuD4CSirBSQb/pebiuUo9LvxyM7Qrc2hT0y4qvi4CkHNkbOB 4bCflU6cjagQd0hQ6lFA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92 #3 (Red Hat Linux)) id 1hx9tb-0003qv-Ar; Mon, 12 Aug 2019 12:57:55 +0000 Received: from heliosphere.sirena.org.uk ([2a01:7e01::f03c:91ff:fed4:a3b6]) by bombadil.infradead.org with esmtps (Exim 4.92 #3 (Red Hat Linux)) id 1hx9tX-0003py-Oa for linux-arm-kernel@lists.infradead.org; Mon, 12 Aug 2019 12:57:52 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sirena.org.uk; s=20170815-heliosphere; h=Content-Transfer-Encoding: MIME-Version:Message-Id:Date:Subject:Cc:To:From:Sender:Reply-To:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=syq/tRXIIEB0wZzSMh7clGQmwOfVvN7VI6QsS+KZuyg=; b=fTLzkfE6CAY/HPeRLewEiHPUy O0zXCe225OY7C683jRvnZ8s3z7WvP3MprXPwFFmMmnrLLnUeLvofbDdGnq9bV/5C9YAu11jghu0eH HHrGk0iKOBSdIqlZ5/swQVUeEiASnQtoN6IKJN3Svgl/k4eeu19FQqSheeRabNsjTolyc=; Received: from cpc102320-sgyl38-2-0-cust46.18-2.cable.virginm.net ([82.37.168.47] helo=ypsilon.sirena.org.uk) by heliosphere.sirena.org.uk with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1hx9tU-0001Jb-Ek; Mon, 12 Aug 2019 12:57:48 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 613C32740CB7; Mon, 12 Aug 2019 13:57:47 +0100 (BST) From: Mark Brown To: Catalin Marinas , Will Deacon Subject: [0/2] arm64: E0PD support Date: Mon, 12 Aug 2019 13:57:36 +0100 Message-Id: <20190812125738.17388-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20190812_055751_798740_B32C0641 X-CRM114-Status: GOOD ( 10.17 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP This series adds support for E0PD. We enable E0PD unconditionally where present and on systems where all the CPUs in the system support E0PD we will not automatically enable KPTI for KASLR. The integration with KPTI is safe but not optimal for big.LITTLE systems where only some CPUs support E0PD since for them it will still use KPTI even on the CPUs that have E0PD, I've not yet come up with something I like for integrating support for them with the command line overrides. arm64: Add initial support for E0PD arm64: Don't use KPTI where we have E0PD arch/arm64/Kconfig | 14 ++++++++++++++ arch/arm64/include/asm/cpucaps.h | 3 ++- arch/arm64/include/asm/pgtable-hwdef.h | 2 ++ arch/arm64/include/asm/sysreg.h | 1 + arch/arm64/kernel/cpufeature.c | 29 ++++++++++++++++++++++++++++- 5 files changed, 47 insertions(+), 2 deletions(-)