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=-17.0 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham 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 4E9A2C433ED for ; Thu, 1 Apr 2021 18:13:24 +0000 (UTC) Received: from desiato.infradead.org (desiato.infradead.org [90.155.92.199]) (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 E323160232 for ; Thu, 1 Apr 2021 18:13:23 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E323160232 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+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=desiato.20200630; h=Sender:Content-Transfer-Encoding :Content-Type:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ppNsx9fng2fB3b8o5hKuUF45buKrQHtHG16GxwMvKSM=; b=juVrTdFY+XK2SLCXNMhXmvgsQ dbbgfAjxpSDh+e89nTFW7hg7d7tu1xGgpjy/f9KRo6MzukD3hMOz3V8P2OUB1EFDAE+L774ZoF9t2 Essdf1t6DwDrgE5gJ8fL4Z3oeFvWxxWtBFVSUVKcRqX871nhRMz7lp0/92vQhnkXF1drzpyMDdePY jFCAW5Tp0US0YNPOROSKvHJ5yjzssEzhWm3DI+QP+YnJfvSf6P8scpRyVdNfccGMI8ET7YxviECuu 4HSbbMrFCwbvMqYVmyNdqbItH18ynAB0EkndnNKRFVX8pgoFwkFUXlrHgruXkhHRFMMD/MGOJwAsh KAXPgNmVA==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nc-00Acwp-RX; Thu, 01 Apr 2021 18:12:08 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nR-00AcuH-Ae for linux-arm-kernel@lists.infradead.org; Thu, 01 Apr 2021 18:11:59 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9DB806044F; Thu, 1 Apr 2021 18:11:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617300716; bh=6NC/DhPz8OPqtOoFJr1Zj0Q3tLvu6kt2qGsuOraH454=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AcnrDQIEw9EXqHWdtaTc87yJu249DM+lKZmtsOjFXKyAWBw3/Grt/nOqcbqnbjMVV +D3LPIHxl2VaThC+P8IiXTKKMm8ph0a8tq+3dmc1gIOvhqcVROyvnKjI23um526SvO D3iGIBTG9Dxn8yUhpUPSRjpBIzrCKva0S4IARU5dxnIbY114FuXC4+3SWoFCw0ciLk Hrqoe2VZL5z/YRghmtQpXEEhd1M4VZcvkiDsbLd4TAt6Q5o2HANMVsy9iSL51f+szW nmBk9y9Z3Hi8/OrtaVeYjHBzrTt3tMAL+KF2cbNPnmNWjFay6lQIv3LpS3ItrZD66s B5X+8/YlKulCA== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 1/4] arm64: Document requirements for fine grained traps at boot Date: Thu, 1 Apr 2021 19:09:39 +0100 Message-Id: <20210401180942.35815-2-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210401180942.35815-1-broonie@kernel.org> References: <20210401180942.35815-1-broonie@kernel.org> MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=3zwHCBz+BRy4MS4wz7TFS0H1AKX3IEJHanve+vG8FAg=; m=Xoqfv5m/rSYkJeiA2dZuuJGODYIZ1jVx67aaDFSda+w=; p=CeH2LvZ3hDHyUMCw7hFdVA7wj8M0B1RG9nV3SzvQUTA=; g=49c5d80c78e2151a248dd614071cd3026c42763b X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBmDGMACgkQJNaLcl1Uh9DHZQf9HLg PugfQxgBLGHMggPZJI6UjqRrMsWxf6FD6ZSzThVB/BaGncD1MrCWttKDWJiSzHomNG9v5S2Y8Zfcj elPMYIjudmRsjVoa22GM4K9N7jEmbGSMCXBVLZZhF7ClEYwYuWHk70n8nnfETtiywevOXIDoEqJd1 erbD4gs1yVo/8jxEZtqEAm2D4PP4wNxb32kVY0vS4jC4WBCCuSBxI3EI5zVUvt0RJivd4dotFhI1H weCLVWDXvpKKIbjgU8XssX0QZJgUTL/L6c2osoV96RzLxubH8H7Kk6ymf/Cv9bXw+F3u5vhcnBaWH KskuYfI74YEzqpkKu1RL/fwgOlJ02lQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_191157_931338_FB483FDB X-CRM114-Status: GOOD ( 10.09 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The arm64 FEAT_FGT extension introduces a set of traps to EL2 for accesses to small sets of registers and instructions from EL1 and EL0, access to which is controlled by EL3. Require access to it so that it is available to us in future and so that we can ensure these traps are disabled during boot. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 7552dbc1cc54..92ec0bea1af5 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -270,6 +270,12 @@ Before jumping into the kernel, the following conditions must be met: having 0b1 set for the corresponding bit for each of the auxiliary counters present. + For CPUs with the Fine Grained Traps (FEAT_FGT) extension present: + + - If EL3 is present and the kernel is entered at EL2: + + - SCR_EL3.FGTEn (bit 27) must be initialised to 0b1. + The requirements described above for CPU mode, caches, MMUs, architected timers, coherency and system registers apply to all CPUs. All CPUs must enter the kernel in the same exception level. -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel