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 A1A57C433F5 for ; Tue, 26 Oct 2021 11:21:57 +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 7351560238 for ; Tue, 26 Oct 2021 11:21:57 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 7351560238 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=6rICugt1Qnsxwx47HVBqR21P+JDHxkSCNNSBe8VoBms=; b=SGTaUpznOxoZ+6 hHrMrBTnJH0PR6Wd1rS5/3fiTGvCZW40tGVdly7haQ1uZNptU6g7S4/ketXJUqPcyYP/GwJvYOYsa a5GaN8mkuxcf0e7az4OQT6sCGRwme7m6zHt1MFQ7YwJjyNASM57qkY42jElRGbFro5uGFc70wef0f cwOR9CKaMdaD+nZH3q18zZ7DtRzj+XTC8GeEYvCutQto6mlfoyG34W8Um9wcfBTWHpvnNGGcP5iIF IWRL5xDCOTNyqTpXgwx5+tsVE3dq8SMWKslGHZjyUEchGX7tzbX1SteTG+Dnx/2SUQnfGJd7fA9ai Wy/18Ze7q8NZhGfMoG2A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mfKVe-001d4V-OR; Tue, 26 Oct 2021 11:20:50 +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 1mfKVb-001d3h-22 for linux-arm-kernel@lists.infradead.org; Tue, 26 Oct 2021 11:20:48 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id BFB0760238; Tue, 26 Oct 2021 11:20:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1635247246; bh=qSJBnw5VlfQ3PNILnaH9itSw/AYDP1en3Yiwdghjh8g=; h=From:To:Cc:Subject:Date:From; b=TedBn8pyH4T/bsukMuHSP4ZfoTxcpCRnrJSFjJXA7jQ9d4qMo36kEv3L1FqYFoPVa A1kn8T/QZdHvLCbiPHL6hveK+GfO09f8G4OK2+wnH4h2KHmwhC2t3Y6Dxh/yNGFU3S Z0dmV3KPHptQTnf5ZbYItAEmVoTTQzhdm6f9IiVV/FoMhJtQSLwzabSKFYeydbTTN8 P8U7qPhA67u5rPqJ4wShpq/3qZQjPPXwR1qROJVmbyUiOvlrqlEBlZsIeUUhH466Yx ou48AffHy/nfkOitk5oLBBWNW9cuBAq7qna4FXuofw4x4gR1ercr4ZWp8cqGPbv1yp 2/yR9/z3oYO/A== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH v2] arm64: Document boot requirements for FEAT_SME_FA64 Date: Tue, 26 Oct 2021 12:18:02 +0100 Message-Id: <20211026111802.12853-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=1301; h=from:subject; bh=qSJBnw5VlfQ3PNILnaH9itSw/AYDP1en3Yiwdghjh8g=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhd+CwtfImAF9jD51UfDEACECs+wY852m4MNnMMfC1 PV2V/syJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYXfgsAAKCRAk1otyXVSH0GExB/ 99VJDyoJCwIVtfUoMzssswuiYes10a490DkCAKxVmVf6k0Te5/vic6WRn0Ykg7EFd9N3UgcStwpLn1 OvEq2jgMklXRsxgEUn87IQ1t+Duw4yupY0o2D5dMM374befiBy1RYXaohgnyGDZkJEnXY2UiWRGFdq uqKl4EvpldsnSOZs3yEDugWZoTQcHfpcRsgvnsJmycf5kbBwquwLIWqWMGRbluHHrTFGB2Z+0ENDyx s8SNB55vtWmH2k3++J2LRrWTCz8c54n0bzdmp1iQiP1L3g887bB3yINyTpubEff+bOURpQDGDhGVXO wt2FI5xgdIOIAa8ZfYetXiHNe4elop 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-20211026_042047_140519_07171704 X-CRM114-Status: UNSURE ( 8.89 ) 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(+) v2: Fix double to. diff --git a/Documentation/arm64/booting.rst b/Documentation/arm64/booting.rst index 3f9d86557c5e..52d060caf8bb 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 0b1. + + - If the kernel is entered at EL1 and EL2 is present: + + - SMCR_EL2.FA64 (bit 31) 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. 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