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 C1D60C433B4 for ; Mon, 12 Apr 2021 15:24:27 +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 6F90061287 for ; Mon, 12 Apr 2021 15:24:27 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6F90061287 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=TyV7MEt7LeR9le9azzgPIolpKXub9Id6R+1yvLFXek0=; b=Va7SgoPBihruqZu7Q1SgNjTYg XvfV0CyfdMhXQ/mrFcT7fBDJMK3ZmTHb/OM7oFR6Ickzh00xfkVt56CP5V5KCo3FhxL5TlnvpQS2C 0wYB1GOdPX2kw9YoUu2N4s/tJuHoSa+D2jGYdJVCjjCaPYpGLc0AJ4kuFfd9DmnD6h70AORE4hqhb 6c+7Ig9SM0QZwnCqAoyTWxc6a98ovuN6GsUPxw7yN2Y7z9aJbLGi7if5LxtXhq7GCV3xw6WjHF9qK CBXVvMJwPbIrwSYIkVYc7JJ7BRV1MfBKKIvhXShyxY9GPYyXfkW7DA8lA72IWpQJvl7tKh68SkRSS cpupOp3fw==; Received: from localhost ([::1] helo=desiato.infradead.org) by desiato.infradead.org with esmtp (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOn-0073so-Sa; Mon, 12 Apr 2021 15:22:52 +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 1lVyON-0073oo-Ld for linux-arm-kernel@desiato.infradead.org; Mon, 12 Apr 2021 15:22:23 +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=XTRYD1BCUc0pALzHy6ERXP64JHqNLKG0TmBToAYk3O0=; b=BG0X4ZVxh0qGCA6r/KTv2dqT6A BgudXu47zQ3/gtB1k9XSZVlHUtXhdFDs6ypAV98GsD2aUWg7CJDhUMiqUwuIdnycriy1bS7LsEL+L AG+pvXUVWKAA8pgj7nb7SQQfs8WVER/HrHhbnFxR97lwDhBslLtc2uj6FQJjDLarbHYKMqs7ibj4C 8JrOqolMx5ffTwSYogYJV3Lrc/LhGE+8cpQl9hLImUZPz4rpFsADp6NFgv6EPL1NW8MDU8x8E5g08 5MEPxee3A+tXVLCYZMVE/q9ngupsQ1LP950h8oALChjLnLke/ZSluhQGvlm+ECMRV3cj2mYZ2xRfI rq1oGlrA==; Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94 #2 (Red Hat Linux)) id 1lVyOL-006L3A-8U for linux-arm-kernel@lists.infradead.org; Mon, 12 Apr 2021 15:22:22 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 69B9A6134F; Mon, 12 Apr 2021 15:22:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1618240941; bh=e4UDvIzf6aDRl9XKB+26eRivJIIUTt5FgCO0fWiZHls=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NQsEDywQgPA2S/rwdtMEP19zsgB620g31vR4NhvXtNHFcoL2t5ReFHkxSyRdAzu4k uG3LyIfGZxtiermpy1k4grC/86kyJnPy/yRdfCKDXEjosPvyqoBAFtH8FG4ZZBjpZn JDOaMEJsNLIwTSr+V64r1XfgGPp5zhUXd2gvFOFYYgG1YKTfFP2KUqu/3szcyVIKE6 4nb30VSEjev4HfgCeBu2TPURkghlb8393jT7KrRsGcqY+Q8lQT2GrFCS0/aDc29jB3 V09kaer8oDmuqQmU1hjU6r77DcdWk9Vm1y8V88shfwetUUTiAcvd1b9ZFqiv14ATLl //mGgSfu5SaHg== 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 3/3] arm64: Explicitly document boot requirements for SVE Date: Mon, 12 Apr 2021 16:19:55 +0100 Message-Id: <20210412151955.16078-4-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=7vxWnOS+WMqL2ywGFP5zwwvlXIVvX9wjwHenK52bKaM=; m=mafbU5cftL2Ju1sZNxqX7p0HF6Jcu5WE1xmKgHeQrWY=; p=wg+4HQ28/9BamOUR/utqCCOG/+w2BaXOUmqTrFcrf30=; g=086bef9a2748b19c34efd781949e144a4544494a X-Patch-Sig: m=pgp; i=broonie@kernel.org; s=0xC3F436CA30F5D8EB; b=iQEzBAABCgAdFiEEreZoqmdXGLWf4p/qJNaLcl1Uh9AFAmB0ZRgACgkQJNaLcl1Uh9CULgf/bZ6 5vTvOfkPEtTKJSLrwVfcoOX2KHfq6ITdEildiF9HCsFLy/P5eo3W0sUV6ESZNNHsJxYUXLNE/ZstE SXyQnzoHTz+QCk07jVIwfvoBpIPYAximFwER/b0fhaiO+b5QTzvPehNIl3pahOUR1dWRKaKHSSUBh BYBCe6p4DH2V0VbH1PvF9AT3fMhTwdfSLbwLKx0SKBNwgRkD6CEyoWBNvTyctOOulEZTnLHNQZ5JM W3Bpj3wuFQozWOsvblzXP0//ooaVDgEjBjFPd+P2KHY5gb2Y59eviyuF8mR8rknvPjFnojLYqMIAW RsAx2xYwQunYXqUEkiLaf+7HdxzzBDQ== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210412_082221_337637_0F40D9C0 X-CRM114-Status: GOOD ( 12.32 ) 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 We do not currently document the requirements for configuration of the SVE system registers when booting the kernel, let's do so for completeness. We don't have a hard requirement that the vector lengths configured on different CPUs on initial boot be consistent since we have logic to constrain to the minimum supported value but we will reject any late CPUs which can't support the current maximum and introducing the concept of late CPUs seemed more complex than was useful so we require that all CPUs use the same value. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 4d0e323c0a35..18b8cc1bf32c 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -287,6 +287,24 @@ Before jumping into the kernel, the following conditions must be met: - CPTR_EL2.TFP (bit 10) must be initialised to 0b0. + For CPUs with the Scalable Vector Extension (FEAT_SVE) present: + + - if EL3 is present: + + - CPTR_EL3.EZ (bit 8) must be initialised to 0b1. + + - ZCR_EL3.LEN must be initialised to the same value for all CPUs the + kernel is executed on. + + - If the kernel is entered at EL1 and EL2 is present: + + - CPTR_EL2.TZ (bit 8) must be initialised to 0b0. + + - CPTR_EL2.ZEN (bits 17:16) must be initialised to 0b11. + + - ZCR_EL2.LEN must be initialised to the same value for all CPUs the + kernel will execute on. + 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. Where the values documented -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel