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,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 619F3C43470 for ; Mon, 12 Apr 2021 15:24:14 +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 005AE61287 for ; Mon, 12 Apr 2021 15:24:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 005AE61287 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=r5Qn7SLlQyWZyHJsbzxWoGOueXxV+0EvjTPHaB6GAWM=; b=U4ZQtz4PXzuHPqaobWPJW3nUw 51CXBQTO+tL7biDdU0ZL5omDd1fFtyidHsXf9d3ts6HO8poKXrXsaDGsjE/WAyrGCCGs+/nC8L4eR S2lkPPGyN01JY9nbNhpznKEcdCZVHauxyFcEXpy+P2cwMOWZcV0pFHXNtmHZWHiQLOPtbUIg1p9pu g2SOfppSQwFtE8xJvAwIdktUwlXqNvl6TulYCLqzjeQjrHrwvUPYnl9nAjgve8feCUPIzmg4DZYE1 ho5ooi1AtnWfk1PGM5ih4D8Bv0kgb8KEJgemNoCzoPBc3mV2FYC/GLnupReA1nAWuS7ocsVNGq5y2 vd/tW1Ucw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOT-0073pK-Do; Mon, 12 Apr 2021 15:22:29 +0000 Received: from bombadil.infradead.org ([2607:7c80:54:e::133]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOH-0073mS-RM for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 15:22:17 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=bombadil.20210309; h=Content-Transfer-Encoding: MIME-Version:References:In-Reply-To:Message-Id:Date:Subject:Cc:To:From:Sender :Reply-To:Content-Type:Content-ID:Content-Description; bh=ifje9KN06i3x9IRZINWlPrhhkgWCE18pHe9OtSwE15Q=; b=HRI6JmLMrSi0YwMQ5NLnqqUoGt hmTpLjQH8lItBJeUcD/gPmWmBFxVd/Q4qBFUagQEjg9KngVxKplew372uXbqy4CsbKrlT4W7PK95g DewNCF1ngncojVxzQR9l9TzAX0tHL1jD2yWD1u6XtdhdyPTAUMgcen3/Qt/H+c8e48TCO6kBvBZ2p avkLBxULzW3E7OxcTNPcahD143utw3Wc0SGanXonU97N5BTU6Koml0+BwtqiVSld6RhQSY5t7FxSt 0JVJoG7iTW2xhx58MHyItsjMjPJAfaNnwoYLh1w2BIxvPMX0sSsLbyKez3TM7ITnZ1LdWfyq85Dyd iF+ND0dQ==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOF-006L2D-FK for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 15:22:16 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 9D7016128E; Mon, 12 Apr 2021 15:22:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618240935; bh=C+gp/BduPD+QtwiHmYY5fKKYQu5401l+tH1zeAlEJkA=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NGo4FeCFwxS9y5mv6dCJAw6mCBctQ4T1ABsN3L79W8BQ7nohdyHdCQpI4whdYO+/y vK98316fR9GHtjrtvIgsq+1VMBQ7wgu6pVWeJUDUjSGUoXMu1TZOhSweqChjxbB0Ne LINNO1neZbjWAtz9se6TUB2CSVO/r6y6i2CP0a0LSF9686sUxch5mp1Xt9/3SXakt6 BBzYyxcGuhTEEdTRQD/Lspk7ps0k5WcZz9zDxeEmm+Vy6tADgOYT+qGFcG0fTzwT1q wAlD7FtzEXMCIiL5t4kSU4WQ19lVc1e9o+aTWanT8ZERDEuT7O25qaj113JYAhTOG1 JCkcPd2nU+X1g== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , Mark Rutland , Dave Martin , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v1 1/3] arm64: Relax booting requirements for configuration of traps Date: Mon, 12 Apr 2021 16:19:53 +0100 Message-Id: <20210412151955.16078-2-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210412151955.16078-1-broonie@kernel.org> References: <20210412151955.16078-1-broonie@kernel.org> MIME-Version: 1.0 X-Patch-Hashes: v=1; h=sha256; i=MunGOQZfAbD/Amh+E73Wv41LzKmiNhQY8mQcgBfWvHA=; m=F+O7+u/eK796eFuAsDPR7PePH5wG2bpz1lnYPUQdcIo=; p=icn+dljjNtgJbaSVsn2wU+TE9GvhbuDA81XikgeoDg8=; g=c8ff778c13ad0cff24679313664c72c720ff857d X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmB0ZRcACgkQJNaLcl1Uh9DnMggAgxY 6TYezUVSyyLFfSv7r9aN7wD5MW8gHcvMLV8rXuKuLnvvEPLrDCQrpJJyNE8Gm+fbDCm+P6AjYVNhH vMjjScD++MzL1spFUYyWxdd1g0uaPRP/CsxbDjtINDcpnf50YR/r7hu7ZzPbAwn+Q9SZilV+nOjBK jHGEuIAXhHhtQtoRDrE9wzQ9zh7ri/FqEViKoyVZ4nSiQfjraGcm5l9fLUvbmROgV76/NjVdvA81P cFB21iyKBVsEKIDNkal6eT6F7lNAKRxlyzi7lrvTTz64HuflITNknkWjn2A7WBSw7ZNmqKl3+kJlH RMbKlRkxFXlXyhTybAW3tjlHRB9nGQQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_082215_548841_97459EFA X-CRM114-Status: GOOD ( 13.86 ) 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 Currently we require that a number of system registers be configured to disable traps when starting the kernel. Add an explicit note that the requirement is that the system behave as if the traps are disabled so transparent handling of the traps is fine, this should be implicit for people familiar with working with standards documents but it doesn't hurt to be explicit. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 4fcc00add117..b21049ab6c69 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -279,7 +279,10 @@ Before jumping into the kernel, the following conditions must be met: 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. +enter the kernel in the same exception level. Where the values documented +disable traps it is permissible for these traps to be enabled so long as +those traps are handled transparently by higher exception levels as though +the values documented were set. The boot loader is expected to enter the kernel on each CPU in the following manner: -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel