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 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 72F67C433F5 for ; Mon, 25 Oct 2021 12:49:50 +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 3CAF260EE9 for ; Mon, 25 Oct 2021 12:49:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 3CAF260EE9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version: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:In-Reply-To:References: List-Owner; bh=NYtecxX6V/PKB6caSRL1PtLWoUePFcBcJ15OvbIeq1M=; b=MCIxZQxhPlCe+7 UKVdEkcOOchMuuvJ++Fz2KPQ/WGZ1fQByy912lGae4cSlT2U6kzlOBng8gNripgpFYarVomtbnnz4 LFT0G6m5fiG0llWHBZKeTNHzsMcBxSZaqJVlhZEHIyVUqHXxrCnjzjXLNiK8OOyylqw2dFSaXa6ZW ty/snB7vhPwqpop6phJ+FVtU5tnp2DSqGwqzlHjI3Ycss56mRHi8Z6q96KuhT2bwvhYmXC/X5fyax rLD+gp4iqKK1IxYAV82KXFh8p40AzE/QU94HZvsvTg0RSYOZQbcO9TsGhp9KMohY4NvA9Rt2hOpFa v37CUnBiFx0UUdEM27Jw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mezOy-00GRxX-Ir; Mon, 25 Oct 2021 12:48:32 +0000 Received: from mail.kernel.org ([198.145.29.99]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mezOu-00GRxA-UV for linux-arm-kernel@lists.infradead.org; Mon, 25 Oct 2021 12:48:30 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0F87760EE9; Mon, 25 Oct 2021 12:48:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635166108; bh=fylwrgSIIjxZnXsAH5hW90OS7b7D+rOmr0ubr7jaDWc=; h=From:To:Cc:Subject:Date:From; b=k5dIdYHYpjcU1CF6cxlATEVgwuuj5t8T4IJqAtdUFudxhOYoOHaCrRHbo8DrRVnGO om0/3kn/fFOpzKfwoaHSnaS3QtL5i/SHMkCz8UkDtWrJeLhKrd7+UsdmKqC4Az62Mf S65t5NfgslxB6BKRGOOX+cHc31UnLIXUxME2RoF/DC0omTGH2WFRlBuZPOJgbGsCZt aRpx4ESqTmL/RAiNwp7P+1KPzDCdnrEOhLhzPOzjukqQWt7TAX2Uyl4ct1P27978CI GeTyPFQVgjI1iU75pUkcVctrMqITM0MNayoKrt3rdJZnJqYOUuFjSVZX5vFe14tVZ5 TRLanSHha6l4A== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] arm64: Document boot requirements for FEAT_SME_FA64 Date: Mon, 25 Oct 2021 13:48:22 +0100 Message-Id: <20211025124822.3496090-1-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1285; h=from:subject; bh=fylwrgSIIjxZnXsAH5hW90OS7b7D+rOmr0ubr7jaDWc=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhdqd3958X+36xGEvxWYC8sv0FJwfDH8pz2qlgywvR xZ/Aa/CJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYXandwAKCRAk1otyXVSH0Aw+B/ 4gdKJq1gdOcbHGRgvsJRuVqEA/mEKGHVbhflHP+BkEVyUYfGNF2IZESxm/t7lb7M1NC/Faczp5rq6h H9xeBH3QArkp7EVt3gFVoj1KwaBcwK+AEBdZ09xVtS6uqp/bxEJ5MwxXY7Bhh+uWpQFGhI7I8OObPU S2mdcDH2oTh09x2vzE+v5CQ6g1K6TjKSacOwDW+k9gIEMGuplG8hL7BigC+A8voK2obGc7Ge0EEAZa HtiCNo6inPpdEoGhwPDEicjHWc91epqDaI91CLgJ9AP3ri8a0xvo/3VcJPvfYCVyUXwXCJPEGNzRET lDvrq5VaYK7Fb2jbYTuxbolRpqU/GU X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211025_054829_030365_556DD47C X-CRM114-Status: UNSURE ( 9.52 ) X-CRM114-Notice: Please train this message. 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 EAC1 release of the SME specification adds the FA64 feature which requires enablement at higher ELs before lower ELs can use it. Document what we require from higher ELs in our boot requirements. Signed-off-by: Mark Brown --- Documentation/arm64/booting.rst | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 3f9d86557c5e..0047d3b42d5c 100644 --- a/Documentation/arm64/booting.rst +++ b/Documentation/arm64/booting.rst @@ -340,6 +340,16 @@ Before jumping into the kernel, the following conditions must be met: - SMCR_EL2.LEN must be initialised to the same value for all CPUs the kernel will execute on. + For CPUs with the Scalable Matrix Extension FA64 feature (FEAT_SME_FA64) + + - If EL3 is present: + + - SMCR_EL3.FA64 (bit 31) must be initialised to to 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - SMCR_EL2.FA64 (bit 31) must be initialised to 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. Where the values documented -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel