From patchwork Wed Jan 24 18:12:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13529528 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 30EB1C46CD2 for ; Wed, 24 Jan 2024 18:13:26 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=X1/t8Z7ZgDg7tw7YEPVa4SBhuDi/sBtlLMHpaVDmZ8g=; b=VwSUYCcpfi++mF 1kcCG3vXP7NAZngzzSX1R2AjHghFFrWCQGYDlvK6i6X93oxq/D6NXIjwrRy7LYo9cspzyXlcBRAmP sAFo3rF/LfX8d/HPb/Dy/WIgslQVB9dsH2DN+AkXV9KtiYMZp2NW1kO4GvAI3ejNFkRrVE2MYTfi2 EX9yXNAiNA3++ntiRjL68mTplB71gOZ0esufPzRqH/AaLUg4yWq7fldE9uZdSo8DQpLcxtdqB/goi HIzSCS33iqVxk7gZc7Di0bonbFr9bidQPz0o56gnlGHd6jboPL4Qf5U/FkSgzdR5xP07Yx44hiw0j a5edATqxnlnfmXORgySw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rShk7-004dt9-1K; Wed, 24 Jan 2024 18:12:55 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rShk0-004dqr-1C for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 18:12:49 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by dfw.source.kernel.org (Postfix) with ESMTP id AC56861E91; Wed, 24 Jan 2024 18:12:47 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8F572C43394; Wed, 24 Jan 2024 18:12:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706119967; bh=KDY509WkoApN5+z/RyjZkULoN7R+WASGjlTC5t9MtKk=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=P0VTmBJYxVMvv6CB8TA/HaVVpnLazvfoQIO697Q4uJSOo7Dg3hTcn91J+OixF1ASR hbVPRNMPuLpA4gC/Y+/RXlehw3eqEd8HrdBb3/03IIZVLo8F3jdsTCNVwG4bAciVFd F/06JVle+J1ju+JdvdYo54cGQ9PFaosU+CUuKZUQE8AkeeH72AVeFwlBolm8zoAetl bv9Aj3DUP5L1RetvfILfpS68v/W5matoazWFV3e4NWgQMlf7wRsX1f+UkNtqLqAB8U apgI/kBvrf9P5ErXGQysG14TCOPk39SmHvvjuVKwvy5oeDX1txMj3bQIzH6pSm3sAP Zt1JYHyTe1PnQ== From: Mark Brown Date: Wed, 24 Jan 2024 18:12:35 +0000 Subject: [PATCH v2 1/4] arm64/sve: Remove bitrotted comment about syscall behaviour MIME-Version: 1.0 Message-Id: <20240124-arm64-sve-sme-doc-v2-1-fe3964fb3c19@kernel.org> References: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> In-Reply-To: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet Cc: Dave Martin , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Edmund Grimley-Evans X-Mailer: b4 0.13-dev-a684c X-Developer-Signature: v=1; a=openpgp-sha256; l=1290; i=broonie@kernel.org; h=from:subject:message-id; bh=KDY509WkoApN5+z/RyjZkULoN7R+WASGjlTC5t9MtKk=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlsVMYpqkQjc6VNKfuZEYrSrZAMU6J3CcxlySvGDnw LM1Y+neJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZbFTGAAKCRAk1otyXVSH0O0xB/ sHaiosBRNM9PRQ6qCgCrhkGx4jai+8aN/V9HnQhDoimnQECFzrDb1N9gNzouahQUi6CFvWI5yzCFwb 6Jz7jEYghYHrxTNvuGjWDRZ7TQxArBujtdwLWsMlkNWdvgdtTDo4ZqtHKXt9mImEHFpJxvJkz9B386 Ovh90rpYE4oWw4N5h0UJYK4aTJrR3E+kOT+YDyMIPwSL8YKIjqyqgmLvpLaRyzRCFRWzBAYUWWK71x OCitOlwB1hXnxZuPi0ebUVsrC+Fysq1upE522w83j76AyUwAYeWKWPZ1DOLWxoQHlkSMEzgmB9wHpJ U/pwfP57f3UrMCjv6cYMdM1uYqHnIT 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-20240124_101248_451997_CEB0800A X-CRM114-Status: GOOD ( 11.16 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org When we documented that we always clear state not shared with FPSIMD we didn't catch all of the places that mentioned that state might not be cleared, remove a lingering reference. Reported-by: Edmund Grimley-Evans Reviewed-by: Dave Martin Signed-off-by: Mark Brown --- Documentation/arch/arm64/sve.rst | 5 ----- 1 file changed, 5 deletions(-) diff --git a/Documentation/arch/arm64/sve.rst b/Documentation/arch/arm64/sve.rst index 0d9a426e9f85..b45a2da19bf1 100644 --- a/Documentation/arch/arm64/sve.rst +++ b/Documentation/arch/arm64/sve.rst @@ -117,11 +117,6 @@ the SVE instruction set architecture. * The SVE registers are not used to pass arguments to or receive results from any syscall. -* In practice the affected registers/bits will be preserved or will be replaced - with zeros on return from a syscall, but userspace should not make - assumptions about this. The kernel behaviour may vary on a case-by-case - basis. - * All other SVE state of a thread, including the currently configured vector length, the state of the PR_SVE_VL_INHERIT flag, and the deferred vector length (if any), is preserved across all syscalls, subject to the specific From patchwork Wed Jan 24 18:12:36 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13529527 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 1D536C46CD2 for ; Wed, 24 Jan 2024 18:13:24 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=vMi4zZBNmm2Zdq2Ag/YI961xchL8/gXfBZHYSuhVcCU=; b=TR6AV/GBdmwjs+ qQFc+bjg+iz1DXamwFTcaX+6+gGL4R2vWJSwP602fp51xroKbBzY9kQMRcq20M7hQZydakR/fgdmy 4yicggpQZAoxQNdUaeMFeDLVAORR+j0iF6kIS8L9Lxed8KYbXc4Xm6o35IWj7owlVOQVZH/hGOqfm Rtn1wGWCNo+ZGPeNskge7M4GxsOP2+lePh7CtCXYd8wTQ594bej/jDQ8SBC4uMfgW3wIq4O2LG7N9 d0TgNHvGcMyshjGr28g1s0zU1iUfpCAKhDyuCAfBuswyA9NHqv7+PrViJHJRspi1A0unC/6UwS6W1 c6E62MUy5RqZv9tMEpng==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rShk8-004dtZ-0h; Wed, 24 Jan 2024 18:12:56 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rShk4-004drm-0Q for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 18:12:53 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4D339CE31D3; Wed, 24 Jan 2024 18:12:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id C6DABC433C7; Wed, 24 Jan 2024 18:12:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706119969; bh=2LI5A66NtYYs0c3+CFqA3f6NBGFtQt1rRRkpBo53+tY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=FgHeIsLdtoDa7SSwCq2mpMN6G3JoUpfhaqvMUcGO1+wvPmt1WhcHDyE2WMFk01aF8 MJRF8n/oBlGNG7YuqAkuuEaXrrSD0xkGwSh4GNgw7u+vn2mYiDcKbdVAxsP8iKrAZj /bVa3aCtz2msMxffaGD006592+g5mAn/JJM0fM7yuqQ2bv7O/80n1aQZLBe8hYVaoS V8/twOMVKnmgr76C76whyLAeK0f7PiCprkRyOcX5p9iunRL+cW6qTXUJ2zLcZwr1Gq VVtQilq7jCmTmCuwsQJQPcC+YCkM0gUkmaikbhk7z1flnibTxz8zlIUeHRSatLQzIs NBf4jDNo/rubA== From: Mark Brown Date: Wed, 24 Jan 2024 18:12:36 +0000 Subject: [PATCH v2 2/4] arm64/sme: Fix cut'n'paste in ABI document MIME-Version: 1.0 Message-Id: <20240124-arm64-sve-sme-doc-v2-2-fe3964fb3c19@kernel.org> References: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> In-Reply-To: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet Cc: Dave Martin , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Edmund Grimley-Evans X-Mailer: b4 0.13-dev-a684c X-Developer-Signature: v=1; a=openpgp-sha256; l=1479; i=broonie@kernel.org; h=from:subject:message-id; bh=2LI5A66NtYYs0c3+CFqA3f6NBGFtQt1rRRkpBo53+tY=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlsVMYklGisR2HSaKlrxEpAGCLKSYUF3aDgX2/vxZB gOIHR4KJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZbFTGAAKCRAk1otyXVSH0PaMB/ 4ubQz4xobPi4XlnA531QckFklF11ys4y3qltDpU8ElUI8IURI3RwAC6LRduWVvowvYNlPFJ9fwHsZU T9DLL13MKrb4vxQUcpjrjrSbrDUUf7Q5+tLHMO+lh14iF3y+GqFGqiBXPUFpj1mgGEkPmdvY+Q3wJR 9Gfcx1YIrO39SRrJ7LHxFhaoAge3ysDjKE9kt3rIfXZm73heuir/+fot8uIITq0KKIduxjmG5NbZ7k bbdb8O/mmOpJJ/pmLzh+gJ75Sm+Yz1VL+CP9rlq1oYYTWGTgdFketihTPXMpdzltvnwrpSdoNgvJj0 /7akL5qvBriciMAlIQrw9MuPr/+3PT 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-20240124_101252_362053_D99625AA X-CRM114-Status: GOOD ( 11.69 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The ABI for SME is very like that for SVE so bits of the ABI were copied but not adequately search and replaced, fix that. Reported-by: Edmund Grimley-Evans Signed-off-by: Mark Brown Reviewed-by: Dave Martin --- Documentation/arch/arm64/sme.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/arch/arm64/sme.rst b/Documentation/arch/arm64/sme.rst index 3d0e53ecac4f..3133d0e91b48 100644 --- a/Documentation/arch/arm64/sme.rst +++ b/Documentation/arch/arm64/sme.rst @@ -238,12 +238,12 @@ prctl(PR_SME_SET_VL, unsigned long arg) bits of Z0..Z31 except for Z0 bits [127:0] .. Z31 bits [127:0] to become unspecified, including both streaming and non-streaming SVE state. Calling PR_SME_SET_VL with vl equal to the thread's current vector - length, or calling PR_SME_SET_VL with the PR_SVE_SET_VL_ONEXEC flag, + length, or calling PR_SME_SET_VL with the PR_SME_SET_VL_ONEXEC flag, does not constitute a change to the vector length for this purpose. * Changing the vector length causes PSTATE.ZA and PSTATE.SM to be cleared. Calling PR_SME_SET_VL with vl equal to the thread's current vector - length, or calling PR_SME_SET_VL with the PR_SVE_SET_VL_ONEXEC flag, + length, or calling PR_SME_SET_VL with the PR_SME_SET_VL_ONEXEC flag, does not constitute a change to the vector length for this purpose. From patchwork Wed Jan 24 18:12:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13529530 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id EC31AC47E49 for ; Wed, 24 Jan 2024 18:13:35 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=aEwiSNOowbSroD/0idwP6zchLzkUss8HQ715LpwP2iI=; b=03BGPSIFEUm4u2 t39JPom+FSxf79oPj+PkyRJ9kgrp7i87dDZ6Mfjo/vklrsWpqtlrw3bOG16/hTowQ8jwledZtdWVR LVL1Zu0j/rQ1MoG3rtaDpffwm2MODJkwXExVRB5ypPtH38vSXVtw5O3e2AldouczLUkEPenoEYJdX lu+EF+Ek+f8oSVqOsDfzzkDCUx1xoaW6SqysFvII1rjnWBiSPPJpalx4px4h8ntLO5ml2maW9J3y2 QyhpCMUS/Pf890cqkLtUhgrB93BZ8/niNnyzYlE2vmjstRHRGyuJdqyo0T6hMdhdf0D1i46VTIFRC 6S8L+vOMdM7tkdGkZLmA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rShkK-004dyx-0e; Wed, 24 Jan 2024 18:13:08 +0000 Received: from sin.source.kernel.org ([2604:1380:40e1:4800::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rShk6-004dsP-0C for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 18:12:55 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 7CBE6CE31D2; Wed, 24 Jan 2024 18:12:52 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 02A04C43390; Wed, 24 Jan 2024 18:12:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706119971; bh=SZE/NEKa8x7WLFeaaJG3HC5W7JWmr0VNMdNibq7Cpz8=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=DhzBkrtPs6ZKDJAaSiEMKQASXyB3DKkTRbivSAWpMlE8hGwlWMonvwe+sLGYqZxZU rTt8F2caoXVnvtMiz8G2SQywSfF+WWN95zBQPcAWxgGxjBoUdAEARBG/2kkii1Ho1X cEhU/gmzwuG3nSPC75OHgZImBN4LPC941Gr69TjyA39vNH+RKwEEIgQztrMGfKKWA9 G9wfX85Zlgm69KeBPBeDtv+FcqsMWmfkzWfXzH3ag6wRseFZbeAnO82+Rs+PcJNdS+ tpUtToxWNiN04PfUlfRqDZJeEoBL1RZ38I5Zn4/U0It6JUnhItM9GAy56TzFgk/jPZ /M4X8O3dLtbiQ== From: Mark Brown Date: Wed, 24 Jan 2024 18:12:37 +0000 Subject: [PATCH v2 3/4] arm64/fp: Clarify effect of setting an unsupported system VL MIME-Version: 1.0 Message-Id: <20240124-arm64-sve-sme-doc-v2-3-fe3964fb3c19@kernel.org> References: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> In-Reply-To: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet Cc: Dave Martin , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Edmund Grimley-Evans X-Mailer: b4 0.13-dev-a684c X-Developer-Signature: v=1; a=openpgp-sha256; l=2159; i=broonie@kernel.org; h=from:subject:message-id; bh=SZE/NEKa8x7WLFeaaJG3HC5W7JWmr0VNMdNibq7Cpz8=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlsVMZuoJ837tq8yyiOk6QDDv0LqvP8sPwfC9POuaW cRNacMuJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZbFTGQAKCRAk1otyXVSH0IbeB/ 9uVCyeNQpECVM396Hnf/CcRMD/pftd849z37RwVfAGu2PVR32XoC7Xc5HL6+pAPSC1WzROF48vajD4 +SkqG6ViZPiC0StIEtsCiYUOcX1sgsld2OgweiWJkUERIm2n/8GlU5azPGxHEzO0TGsJZ46kyXSGU8 PMdNrMC4c9GE8py4j0yPwhckaFDnS1Ne5jq40+eLOuGuHxj201TcPX5FCyZwI9Y/rk8qOvE6hqAObq av1K7DAUNHaeRuOY8UL3iwuyBD/a/eTP9nhBs0yk1meLjenQ3gXh2jfBXCbe1Znz3PiOBLnjbXE8X6 QXbdSV9M392527bpXFNRh0v3E9o5BL 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-20240124_101254_441083_5B21211C X-CRM114-Status: GOOD ( 11.16 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org The documentation for system vector length configuration does not cover all cases where unsupported values are written, tighten it up. Reported-by: Edmund Grimley-Evans Signed-off-by: Mark Brown Reviewed-by: Dave Martin --- Documentation/arch/arm64/sme.rst | 5 ++--- Documentation/arch/arm64/sve.rst | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/Documentation/arch/arm64/sme.rst b/Documentation/arch/arm64/sme.rst index 3133d0e91b48..f4376c06f447 100644 --- a/Documentation/arch/arm64/sme.rst +++ b/Documentation/arch/arm64/sme.rst @@ -379,9 +379,8 @@ The regset data starts with struct user_za_header, containing: /proc/sys/abi/sme_default_vector_length Writing the text representation of an integer to this file sets the system - default vector length to the specified value, unless the value is greater - than the maximum vector length supported by the system in which case the - default vector length is set to that maximum. + default vector length to the specified value rounded to a supported value + using the same rules as for setting vector length via PR_SME_SET_VL. The result can be determined by reopening the file and reading its contents. diff --git a/Documentation/arch/arm64/sve.rst b/Documentation/arch/arm64/sve.rst index b45a2da19bf1..8d8837fc39ec 100644 --- a/Documentation/arch/arm64/sve.rst +++ b/Documentation/arch/arm64/sve.rst @@ -423,9 +423,8 @@ The regset data starts with struct user_sve_header, containing: /proc/sys/abi/sve_default_vector_length Writing the text representation of an integer to this file sets the system - default vector length to the specified value, unless the value is greater - than the maximum vector length supported by the system in which case the - default vector length is set to that maximum. + default vector length to the specified value rounded to a supported value + using the same rules as for setting vector length via PR_SVE_SET_VL. The result can be determined by reopening the file and reading its contents. From patchwork Wed Jan 24 18:12:38 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13529529 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 9933FC47E49 for ; Wed, 24 Jan 2024 18:13:31 +0000 (UTC) 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:Cc:To:In-Reply-To:References:Message-Id :MIME-Version:Subject:Date:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=HUAMUnDOFUa1HAjiOLLo9q+gl0orOR5VYQW8d9m67A4=; b=CRcwoLayNABK/e 9g00hcmHGL6Cf6UXhHsMbZ2GHw67o/wwJ96iKv1B63J71P+12QMDFMwsl4E+AbhFpw8Z9QEirD2Mz 9hW4N4bdWCNW3A1WTgXE1O3nyqb85Nz8NVJ6uklgYArKYjUUMOW08A9Yn4ZZK6cLFqoHxorsi51iv lbOqv8CFRVtUJKtlXnBliMYIexueUo9/vaWy2CujzWMeCAsIbSm28sLVB84sqyQokzt8qcKj19j1L xlZq0tKfnZ/B5v0mpN9JUHKLhrEEBbCcv/hRl0aY5aqwN7BsNJZPhYGvYxvI0o0dCjeENGbbh9eZ8 6MMSZQjpvcordgEte94A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rShkL-004dzm-0d; Wed, 24 Jan 2024 18:13:09 +0000 Received: from sin.source.kernel.org ([145.40.73.55]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rShk8-004dsv-18 for linux-arm-kernel@lists.infradead.org; Wed, 24 Jan 2024 18:12:57 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 5029ECE31DA; Wed, 24 Jan 2024 18:12:54 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 335BDC433F1; Wed, 24 Jan 2024 18:12:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1706119973; bh=LreoHv/YiNY4KXZSn6k3Z9OgPKJ9pxNDRUBhp7vgJ5U=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=ZMj4mlkyCgYWGSurSzFvLUXXVk9PUmjShji+B3N3/vTN8TAc3vIr7ZCXT45uq281b lVwkSa48Jl49/rSLFgOZ/dR2WTGGtyjuP8aSghgrRsRz0MHc7DS7D96THB2a3cjCmz XB6uOeoWxdCJV0kPS2WJ+mq2//SUv652iNlsJhvUODGOXf3wwENq2XNRWLGEdwFoxf dz3i9oGAipHuKSr1f3EQgeuOqKDSU4p1ImUSNE0WEzueCveH1qPvguWOiGiHatsPvj otOpTa66T+WnvmpGZtZi3SiqL2ziAqxqQCmNs5kD7Bkv/fgaIxvYoscEVX6Qw3qhev nP2wkLKyWUX4w== From: Mark Brown Date: Wed, 24 Jan 2024 18:12:38 +0000 Subject: [PATCH v2 4/4] arm64/sme: Remove spurious 'is' in SME documentation MIME-Version: 1.0 Message-Id: <20240124-arm64-sve-sme-doc-v2-4-fe3964fb3c19@kernel.org> References: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> In-Reply-To: <20240124-arm64-sve-sme-doc-v2-0-fe3964fb3c19@kernel.org> To: Catalin Marinas , Will Deacon , Jonathan Corbet Cc: Dave Martin , linux-arm-kernel@lists.infradead.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown , Edmund Grimley-Evans X-Mailer: b4 0.13-dev-a684c X-Developer-Signature: v=1; a=openpgp-sha256; l=952; i=broonie@kernel.org; h=from:subject:message-id; bh=LreoHv/YiNY4KXZSn6k3Z9OgPKJ9pxNDRUBhp7vgJ5U=; b=owGbwMvMwMWocq27KDak/QLjabUkhtSNwVIBwVoGmeKzXyvOq2WRvssQJuAacPW50iTdgOKMj6/9 eII6GY1ZGBi5GGTFFFnWPstYlR4usXX+o/mvYAaxMoFMYeDiFICJRP5n/59XY8vp5hfbmnjTNsV/yr K1yyvF5bub5kcVzHkcYaIkrr7uj4165KyGhr+m2b/MN38t8w6LypyctON12uOGyb48ZRXF6dEbu47f 42lUZF4/Z87mxGrbRZ76fsEqO9mavh/p6GGU5UixSmRcxtvVEXiSofjHDN7ug0wn24qiZ8nud91suG vqHr3i7w+nLlSz+6q/OFEpRnbjwixT+YXr/i5UD9tQHrDa7fheVu1TTZEiBTKiZzOVMr8+Fu2RZfJu W2/88satvAPXTH5fNnXM2tX3Lyv14hlhjhumOVetirlra85+/q+6rsL0zP6mNLnbCSEPo+uMjncq6I Y+MfZs3FaayX40ZPKuUJNk4yUA 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-20240124_101256_599655_1089706B X-CRM114-Status: GOOD ( 10.93 ) 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: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org Just a typographical error. Reported-by: Edmund Grimley-Evans Reviewed-by: Dave Martin Signed-off-by: Mark Brown --- Documentation/arch/arm64/sme.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Documentation/arch/arm64/sme.rst b/Documentation/arch/arm64/sme.rst index f4376c06f447..be317d457417 100644 --- a/Documentation/arch/arm64/sme.rst +++ b/Documentation/arch/arm64/sme.rst @@ -75,7 +75,7 @@ model features for SME is included in Appendix A. 2. Vector lengths ------------------ -SME defines a second vector length similar to the SVE vector length which is +SME defines a second vector length similar to the SVE vector length which controls the size of the streaming mode SVE vectors and the ZA matrix array. The ZA matrix is square with each side having as many bytes as a streaming mode SVE vector.