From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 03D90C5DF62 for ; Wed, 6 Nov 2019 13:03:09 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 61B0F217F4 for ; Wed, 6 Nov 2019 13:03:08 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="ov66EdTJ"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sirena.org.uk header.i=@sirena.org.uk header.b="vubK3hqh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 61B0F217F4 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org 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=jfJTle5Sqrs+kUE1aayNNPPaWcuyb4/FLwxuPufQsdI=; b=ov66EdTJ4xAQHu mI7jmFfRIVZSLviJ4o4M6w8Ruymf0tQS7SPJ2qdbx8wVhI3ix5qu9Doqr99kTAbtRTjQfKwyklskM p57b8hiTEnDfM7iMJSpGjjwF11+lTckksKYZjml+ynyLToAaTx2YIvj+sX18iPSIcEL/kNJoEsRXo 6Vuz5ZCgZW2mNgIxBXJ8zglGvWMow2LNF9I7M6NKm9Jc8E7EeyLFiYwsRH5DL+hDWTice7RwjrUV9 QOsua8bbPaRTx3M94vrjhaUV8441uM+DuLWxdXLSQmWmuWmQ5itG7qbM6/3v9NfS8EY9SJE8AfW9g t+owQri2mtxeWif4Rp+Q==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSKxm-0001fb-86; Wed, 06 Nov 2019 13:03:06 +0000 Received: from heliosphere.sirena.org.uk ([172.104.155.198]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iSKxB-000135-VK for linux-arm-kernel@lists.infradead.org; Wed, 06 Nov 2019 13:02:33 +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=3nKAFh1hzUGEe4ZrEl3KtliIGXmz+5udeyeqc2VEjYg=; b=vubK3hqhe4JENTa0ll/L1uGWL wS4ix6cYMjRyW/c+v+CfJvDXN2FIx6RyjLN/SNHyfybr+ML1bw/GG+vkmrVaWTHE/QbqSv7FOVD0V Wu1WJ8xGOnHlyosgB0sog28ox6GM+AGwcLJRe4K0qQ51omTtVqn831seSxXbK+wZ0E6LI=; 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 1iSKx8-0001TD-0L; Wed, 06 Nov 2019 13:02:26 +0000 Received: by ypsilon.sirena.org.uk (Postfix, from userid 1000) id 3022F2743035; Wed, 6 Nov 2019 13:02:25 +0000 (GMT) From: Mark Brown To: Catalin Marinas , Will Deacon Subject: [PATCH v7 0/4] E0PD support Date: Wed, 6 Nov 2019 13:00:48 +0000 Message-Id: <20191106130052.10642-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-20191106_050230_015364_06438EFB X-CRM114-Status: GOOD ( 11.11 ) 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: Mark Brown , linux-arm-kernel@lists.infradead.org Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+infradead-linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series adds support for E0PD. We enable E0PD unconditionally where present on systems where all the CPUs in the system support E0PD and change to not enabling KPTI by default on systems where we have enabled E0PD. It also converts the runtime checks for use of non-global mappings into a variable. v7: Move early initialization to the start of setup_arch() v6: Move early initialization earlier. v5: Rebase on v5.4-rc3 (there will be conflicts in cpucaps.h) and add code in patch 4 to start making non-global mappings from boot if we know then that we will need KPTI, preserving an existing performance improvement. v4: Use a variable to store our decision about using non-global mappings rather than rechecking constantly at runtime. I've added this as a separate patch mainly for bisection. v3: Make E0PD a system wide feature. Mark Brown (4): arm64: Add initial support for E0PD arm64: Factor out checks for KASLR in KPTI code into separate function arm64: Don't use KPTI where we have E0PD arm64: Use a variable to store non-global mappings decision arch/arm64/Kconfig | 15 ++++++ arch/arm64/include/asm/cpucaps.h | 3 +- arch/arm64/include/asm/mmu.h | 48 ++---------------- arch/arm64/include/asm/pgtable-hwdef.h | 2 + arch/arm64/include/asm/pgtable-prot.h | 4 +- arch/arm64/include/asm/sysreg.h | 1 + arch/arm64/kernel/cpufeature.c | 70 ++++++++++++++++++++++++-- arch/arm64/kernel/setup.c | 7 +++ 8 files changed, 99 insertions(+), 51 deletions(-) -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel