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 471EAC433B4 for ; Thu, 1 Apr 2021 18:13:48 +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 DDD15601FC for ; Thu, 1 Apr 2021 18:13:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org DDD15601FC 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=RubgOdt+qXiVw+BCihF/ld1aAC2mELONzCTkgPUdzps=; b=pwyG3JiA5mOF/n0VeNRjj7Qd7 5m/dDY6LU7qSe1uoLSId/imaspsGV5vzxfnNfKLwL0ShO3nuWZzhIBdLhGj0yDd7Kq6G+vetN1uet C5UPeW2LDmt7WBWhQ/dIAgArXdvA8gkTKiwuW4LbhaPPEJJyanP/sXQ2HgSbYBk7HJORTpSAjKhZE BE2SBK920RA0UUuS2sBQbvw0l89qmD+x6Jl/eaxqZ1WowxPsAO25fbnzzUJ5TVg6iERh8/+ENXVZe 3Fw+e+oLLsJokyLNEJ1Gs+zQ+ufka7bLBfqgqWJ33qR7UGrQGKo476i1Z/qSg2lkDP9UkTNB+vIl/ 4JFXkMTow==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nz-00Ad0n-0P; Thu, 01 Apr 2021 18:12:31 +0000 Received: from mail.kernel.org ([198.145.29.99]) by desiato.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lS1nc-00Acwi-8P for linux-arm-kernel@lists.infradead.org; Thu, 01 Apr 2021 18:12:10 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 48FFD6044F; Thu, 1 Apr 2021 18:12:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1617300726; bh=SMuhmGqN9XwpoOIvhIM6r4QxAxNzTDsf3zYBhW61zk8=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lzOonmgDnzgHP6FTaVFb+GSAyAmnKaGKpBRGT/BYF5hRney8saU+QT6lzn2sDT5sD /bA8bLapF0IPVWCudWlz1iF/8qpkAAy2JYSQ2ShMvTtDYAWj5lKa3vsP9+cXU/MVRY /QSNGwNmLUjq9p82uZIPub8q9839U6kpXA1UBuUbzbNe113YyYgXEyuX1wy/sZIpJ6 u3qsfkltlq3fVorw02heMqV/lXgC1tqJ7pceC81Qgk7rMchk+/e+EbUJqYSC1/ej1T J8/HqGoA81KZe12kX2s87Q0ERKE90e2VBhWnsJGU0eRxjDLhHiSIVnJIwSyYdjilQG ZiN8V/KtLYgZg== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Marc Zyngier , Mark Rutland , linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2 4/4] arm64: Document values for system registers on boot Date: Thu, 1 Apr 2021 19:09:42 +0100 Message-Id: <20210401180942.35815-5-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=XETftj8ZOYPUCXZLJ7tec9I8JFHn6hAW8m9aAQgh8Zc=; m=iTNNGhMMi//txacRLin3eOTLGbchBwD9zIeHNSDh+7I=; p=Fe+/ACVYHlnBUTcyNWpk0IE2XqLeFOmqAPffkSocJqk=; g=c0da436977967eda7131cebe28b2195318b51f4e X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmBmDGUACgkQJNaLcl1Uh9A2cwgAhhA Wo76rqnk/LV10Ixqm8908eUf5QoSQ6fAPHEvzRw3g8OcwrXNC1c5OiGkWNgj57XjsR1GRJQHtFc4c SH4sTYp9mU3r/CgZnnSz3eFXvuhHF3UMSpQjkBbPIW7z1W+XMYFyY3+IvbdOC1IFi4iTgeZulBHu7 NlDKmOk218Y/6XfRjp8i5X0WFcXJL94VEkZ63ihiPjhJ3Z+fQRvt9xpbFDUo3ZDi+bAMj7FUfLlc9 SShyxOWMXY6S1aVXlGwI1itb3rRJayHPVqjOPbFvKsWz1pi86symuD84RwE4wN9nIS73JGqsa30CC PGpf5pNNC1M33d23pWmYx6/jo4/dt0w== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210401_191208_581963_7A248F75 X-CRM114-Status: GOOD ( 13.62 ) 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 When booting require that the system registers available at or below the exception level the kernel is entered be initialised but do not specify what values should be used in the general case, creating some potential for issues if the kernel does not subsequently configure those registers explicitly (for example if they are not yet used by the kernel) or where their effects may create issues during early configuration. Specify that where the architecture provides a reset value that value must be used. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 4fcc00add117..d49f568eb79d 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -205,7 +205,9 @@ Before jumping into the kernel, the following conditions must be met: All writable architected system registers at or below the exception level where the kernel image will be entered must be initialised by software at a higher exception level to prevent execution in an UNKNOWN - state. + state. Where these architected system registers have reset values + specified by the architecture they must be initialised to those values + unless specified more specifically. - SCR_EL3.FIQ must have the same value across all CPUs the kernel is executing on. -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel