From patchwork Mon Jan 22 20:41:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13526236 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 5016AC47DD3 for ; Mon, 22 Jan 2024 20:42:51 +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=7onl9MeW0iGTll0hISWlYIJNwPaJe4Nc686ifIuXGL8=; b=KfcO3nA2ZJPinR ywQJpwsxwMUL2UTBM5AZluaAUTeR54CCjEFc3qWtpFxTynbQXV2W1cdijDZU+V7NgXX5s0GxLu81m srk1IXGiy7atxnnqdjSKJvig5IuTrtvL+jpKqWQvR0u9GJ+X9Bl7XjhGL0/I0vVyAz2gU+aP5N8fx 3qt0HCaogxy5QiP6hylWbdSrMFOVdBTu58bZpicwt8B6y6WxZIN38WQlzcdSm3FZPNRhtjLT8mJar PpfWEuuB9tYnN083xnk4g1GwffFBao00nfA3lJ355Bqo4pTFjN4ZYx8lDSNTDj1Hz7vqfzTi+TaDm 7kVOPlUztmj8KiJkqCSQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rS17i-00E4o3-0N; Mon, 22 Jan 2024 20:42:26 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rS17c-00E4lq-1f for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 20:42:21 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 00E29B81183; Mon, 22 Jan 2024 20:42:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DD7FEC433F1; Mon, 22 Jan 2024 20:42:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705956138; bh=lfUVq4d83TpgqB+IiKAo863O49OEz4Su7IWo3c36W6c=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=HIHIvmFTqCUSJzRCT8Ld6KOulhixCJJDuGF3pL2SmCmosC3qC0PTNMFVTr0z7A76/ nsjhhwqJd7CWfYbiM8fm1ry9283VTqMP4okUwojTG9hg1SATGpGlCx/H5jTDshumzz pP2GouGmXt3gcxD5xIYe4Qj4tAMdwLGhUxthi7KHWRWDrnMp+UgGwIYZ1uTE2GjPKP 10zVEzDvdxSKZmsUhAjAstnq8J5HbvXl0ntWH2HhO+dv/nNxcq2i3LzCnNNAR2DmJv 9prRHPrzzRTZtBfskwMGWGRogx8K/vATBdnNQB0IFbaQLoeMnrs75YAvIFMbkEpA4L D8qo1DiPFdSjA== From: Mark Brown Date: Mon, 22 Jan 2024 20:41:51 +0000 Subject: [PATCH 1/4] arm64/sve: Remove bitrotted comment about syscall behaviour MIME-Version: 1.0 Message-Id: <20240122-arm64-sve-sme-doc-v1-1-3d492e45265b@kernel.org> References: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@kernel.org> In-Reply-To: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@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-5c066 X-Developer-Signature: v=1; a=openpgp-sha256; l=1242; i=broonie@kernel.org; h=from:subject:message-id; bh=lfUVq4d83TpgqB+IiKAo863O49OEz4Su7IWo3c36W6c=; b=owGbwMvMwMWocq27KDak/QLjabUkhtR1lxUXfU2+78rT5LF8Y2ZNr4/SBmO7zrR9rVOsuBUs+wv4 Ehs7GY1ZGBi5GGTFFFnWPstYlR4usXX+o/mvYAaxMoFMYeDiFICJzOBk/1+xdsIKiadlHrGG4qdDOo 5OeeThFFVjfmU5v1bbT8EIUzVHp/6Dgnfn2Ug5l50vWeHkl9CTu6S0xdA17qBZj+i75TJZvgFtYRuW hOx/sZQ/dum1urB7waHsn15q9+9um/H8Fmf38Sjbc+sCk40OfTQzdNLX1s1qCwzvis+X6VVouiK0o8 Vrx5VvNrF1PZk/D7AvnvX9SDJXdryTTsBdzgbVfbbP2t5EvZy0J2JG87o/N1RcjvMGtZ3TFir3Sb8w 7coJD1GlaasduHtPPtvum7rq6u74zX92a1hr7n/GtmRBQH5pUMQXo+08KZEVv67/l/jDvMdostbct3 ZNRf9+s+qJ92QwWvzs+n6zxe4gAA== 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-20240122_124220_697377_2AF13E27 X-CRM114-Status: GOOD ( 11.04 ) 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 Signed-off-by: Mark Brown Reviewed-by: Dave Martin --- 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 Mon Jan 22 20:41:52 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13526237 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 4E4BCC47E49 for ; Mon, 22 Jan 2024 20:42:53 +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=Flc+BvRCkvZpRO c589KOf0+YcTNap9mdVdskSVgLzkwfcswAXHCEguvUT38C4YUev+9X+8/YJoQ9Svr4CSN5vzl1LeX TLAFRHvlM+DEpY/O2ULTCMQbSx+soRihl58xaMxtXOTBX0C1Zydf+r8cJUmM/1XsPbXVSEl5nS6Tq njcWvY8y3sv4TXCJYH7qE8RS6/+tEg4rwZ2kMnFDXxjFWel667QhygpR/knzpuwPKtKbEBsPKKlQq ZEXRoLJR+SywXLGFi43T2wQk6Pu1RX2UVyh0eVNGQexQ1N/hJbEnJWye10+RH6tgcumsMtIXe9kkq 3+pKoRiHMOqGXHdZe6vw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rS17i-00E4oZ-2K; Mon, 22 Jan 2024 20:42:26 +0000 Received: from ams.source.kernel.org ([145.40.68.75]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rS17f-00E4mn-0K for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 20:42:24 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id BCFA8B81187; Mon, 22 Jan 2024 20:42:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EF516C433B2; Mon, 22 Jan 2024 20:42:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705956141; bh=2LI5A66NtYYs0c3+CFqA3f6NBGFtQt1rRRkpBo53+tY=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=MrWPu4fFzFvOJiNPFgjHlKBWqgjnUQVLsReSEslKUrYWzGmyewGgdg4rWrTjArDnZ wKoXpUq0EA+R3VoSGd4Iv83OIwLfzoErnQO1o+TOb9pz+iraPpYfdEHKV4uYAINmSe Ar+652uIg2AalXKrFY4kJttecHLXUbeSPB3gBsoiHLEtaTjC0lHyyFClDssUbpoLgn HftQdeN9OdpQj8npAPjZQH9aGEAThyPH5Bd/SVYaWduOJDHblkreWyqpyw+2MzGU89 gBngbv6hCx91WZfn9d8h/6V6HVNpcwZe8kCex+OAcNWFC4n6kNPH0P4QykBbYhr+gn 4OXM8dUEpWsWw== From: Mark Brown Date: Mon, 22 Jan 2024 20:41:52 +0000 Subject: [PATCH 2/4] arm64/sme: Fix cut'n'paste in ABI document MIME-Version: 1.0 Message-Id: <20240122-arm64-sve-sme-doc-v1-2-3d492e45265b@kernel.org> References: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@kernel.org> In-Reply-To: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@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-5c066 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/pANAwAKASTWi3JdVIfQAcsmYgBlrtMiQWgzM6b3u/SZr1xZS0wLY+G9U2uI6gub7nqh Ddw+TreJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZa7TIgAKCRAk1otyXVSH0G2nB/ 44xZPX2DfylvBDshiwux6gUY/1TyyezZYWDNhHcvN0y0OEgzTGUDuHtcVdPuJBXPWUVDdhTPHTGkJn RzbkpZarjcwWzwZ1WEwh+cSwgJGRhqX4KHk9F0pWvVky3o8Swoe4pkZ4GyY8U0+tVz/82wwtHXPt2l sQVFPb0q3gCWvzWSmr8KcOwpwHYC5eL1rzJFSHKt4FI1iPujU4FUAiWuzUBiCFmytTlyjU2ZFsRgMZ mljHhD90EKIikRfwRfSDlnTV3dQTaarH/tLnp7kedPRJQpneJTMfr1Pi6qUZF2Md3YQVS3GtDyOWIt PmgbgJVJVYsTpcbdBAbILjbiAkgqqT 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-20240122_124223_315060_14FD02A7 X-CRM114-Status: GOOD ( 11.73 ) 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 --- 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 Mon Jan 22 20:41:53 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13526238 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 70A87C47DD3 for ; Mon, 22 Jan 2024 20:43:00 +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=fs2DrqXeVP9xN16LezWuSEPLPjDYjQy108BtJMWxTpg=; b=DoOXSrm4GvjNnv fkfNobM3usGKS/C5+gQimJ5U/0wgmQv6MVgXEke/SQhSFEYVblp22c8Fc4rjMweDTOVeDRudTHgyW DnB8IYgYM2YKRTlCgijNIfOTFWvivRP4/2ZW8iAgukuhjHBQFv51U4Tb9OGNcAivrSb05RRtef/kX 5yofvBODRN09Nva025MPjJu5C+R2oc6NXVNZ/0oBIGECwRteFq0ZRa5e0Q779r7g9egoSyuENELcG 5zklMlV4mfovzG66A56nRTWqzd79l7cota3lSdXDK9ndEU0ODVWcqkBgMZqoTjHwhZi5o18zOcqFj 2YGBUZPKyw9qZOzGBvkg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rS17s-00E4sv-19; Mon, 22 Jan 2024 20:42:36 +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 1rS17i-00E4nc-2d for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 20:42:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sin.source.kernel.org (Postfix) with ESMTP id 4FA7ECE2CBD; Mon, 22 Jan 2024 20:42:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 99D76C43394; Mon, 22 Jan 2024 20:42:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705956143; bh=fjtGYrPLVAgmnbjt+Ekb+IEbQu2c0zwfHg/G7gZsVmI=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=Gm/qcEFfiSNUvkiYPekzxnCgffzrZrI0Jbe2TkhEzD/a1Bgwo9j9yFsV9UTTPJozG wYPAqCysMsWfPqH/Y4fv9gPhoIhFODWmE55a1CPr0O7yocY3N2t8+C5ldmR/RYqRyy D0zhzdYC5LGHrBZdaZldNRZ/xUd22SbYm+Gxbuab+V6Ycg2im9X1hoyGJa6VJsxmOh ipY42DR0cQy1Ch90ARtStJ1BEYHhKDaah3Q6Dvg7XSMhAd4aY+0Iv7uHPMvdgN0Df8 1h+FMpMxljyMaL65Bt9TPlnVn/+/79cBmayWIJGk5tH64lAU6xdGYyOlqbbg9+5miQ 4UABMgXSkbZWQ== From: Mark Brown Date: Mon, 22 Jan 2024 20:41:53 +0000 Subject: [PATCH 3/4] arm64/fp: Clarify effect of setting an unsupported system VL MIME-Version: 1.0 Message-Id: <20240122-arm64-sve-sme-doc-v1-3-3d492e45265b@kernel.org> References: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@kernel.org> In-Reply-To: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@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-5c066 X-Developer-Signature: v=1; a=openpgp-sha256; l=2147; i=broonie@kernel.org; h=from:subject:message-id; bh=fjtGYrPLVAgmnbjt+Ekb+IEbQu2c0zwfHg/G7gZsVmI=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlrtMiH/73f//2tkGiaJyZTf5xHRxxVBa9xFB2oZ2L zwYsEhaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZa7TIgAKCRAk1otyXVSH0PHiB/ 9zHa9KEFYs2ugoCsm80PWrKpmYx7jbcBOAt1g3oeczKb/va6JJ8R8yS4RO+t0zjM+SgEWE2gMboGMz WfUNahqBNUYMy30d0sUCnj0ykg/ghbn/SY0Ng5wfRLG0yExhnde4OSIbdtV8MB3S22TuOgevK6y2RB NUWNljFA3h031svejBLxzIuKg+BAZJshAKtavwWDxY3N4og3h/KBeyvwhSpyPuZaVAOtZgODrcLwUX l6hTlmcn8M0E0Vwsjb9KonvrLA+FW/5yDNZVqYKSTEpbmDkZIHE4+FJpFY1ysmbj5ulodp1nN+V2Y4 9AkkJP5c4s66BXeveCA9VgM1Wv2K2x 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-20240122_124227_239868_10C5676D X-CRM114-Status: GOOD ( 11.12 ) 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 --- 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..ba0a5e5b2523 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 prctl(). 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..b923727ff4b9 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 prctl(). The result can be determined by reopening the file and reading its contents. From patchwork Mon Jan 22 20:41:54 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 13526239 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 DF3E1C47DD3 for ; Mon, 22 Jan 2024 20:43:03 +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=FZsIK+HGtfrpUzwHLCpigFh92vSdDx0XOJfzRxDcupg=; b=Qxd7rrs0Lu3E/B 53l+lIX2ieeCIhXoaVnwVTgmWmLU+Qp8G7MbTdU/IU6DpzmrgTz4Wza7WSGs0WEXPCloRXhD5IbqS 41tkuob7m8hJdTCXGeisu/TZx8jzeIWyiqtCVQJJ+m7Z87gxp9WzXVWFJI/RX61pQbjJl5MuqcJ9o uwErtrPxaVh9ZYG/X8izR2ETz2v04hw4GeBvXMbSjxOUa6FL9ltAFlDwPemIFZcaG6K9AwhPGtJG/ Ii77ctlE2IRmwaLyX+mYpIbj8lSiXvR9R8eSMW2tx11XJDblF1Xk8+KT5LOc5N2HJcLlECZhb/Zm+ ASzOe213xP73hrIBcAIA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1rS17s-00E4tD-3D; Mon, 22 Jan 2024 20:42:37 +0000 Received: from ams.source.kernel.org ([2604:1380:4601:e00::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1rS17j-00E4oV-1T for linux-arm-kernel@lists.infradead.org; Mon, 22 Jan 2024 20:42:28 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by ams.source.kernel.org (Postfix) with ESMTP id 1B67FB81185; Mon, 22 Jan 2024 20:42:26 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09458C43390; Mon, 22 Jan 2024 20:42:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1705956145; bh=9wwET/SR7knk4oSeCNFeV/MEM9M1Z+V//fKVMmchNVA=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=WJMJhdkEMVCsME+TmfhWjSnniEDJHwowqo5SHRtMJ6QQ79jW80iSuhn8ruChmQRNe uajnlUjNW8Zsh2qgHCl5obP2siMRrvEOVeD1u9IRtexCD/GZ4b254yFGMry4OPFZ42 cc71nCZfe8phSoFEjR+O+n6Q0vDTnkdZAzFYoohK+8Y8OiUEltZDQrPvkXV04HoVvv 1AOwKoagGq191arGl0quSnDW3wD8ZPcZ2zDsek7cqO1tjU7JvsLEWBVvzgdgvME2/P syOA4PcoE/irBksey7CvpMyB9TEoVFiA1oRtI6NjXrkV0BbHv9WlUJhtYbQJkrPGlj eLAaaBdIYX64A== From: Mark Brown Date: Mon, 22 Jan 2024 20:41:54 +0000 Subject: [PATCH 4/4] arm64/sme: Remove spurious 'is' in SME documentation MIME-Version: 1.0 Message-Id: <20240122-arm64-sve-sme-doc-v1-4-3d492e45265b@kernel.org> References: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@kernel.org> In-Reply-To: <20240122-arm64-sve-sme-doc-v1-0-3d492e45265b@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-5c066 X-Developer-Signature: v=1; a=openpgp-sha256; l=904; i=broonie@kernel.org; h=from:subject:message-id; bh=9wwET/SR7knk4oSeCNFeV/MEM9M1Z+V//fKVMmchNVA=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBlrtMjztdy04L3pPKFQ1UwQtFqAqS9I99xBUZdbr7I CdmgEmKJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCZa7TIwAKCRAk1otyXVSH0EOqB/ 4kOHuIWx69XoT/RvheUGIeg8J6oxM+WtZVJEVFPIDAlWVc83YY8eyKp9n+WWz4MhO5XYUUQ+1/kVIL nu5oS58CpKIFsYZCz4KlWQzu/AOWr6Mtbb5szjzWKxz1JDZQugZzC4EjiExRx4FOiMb34XkH/DGt2q s/GEdytazihB5d9tSxFE0/1XlGZE0hU4vjbJzkegGoX5+sCRo3M7OyUZTsgIfjk2GafMUY8uECNAet u5zr8YjOhg4d2TO68AHXFdqE+48uvKVJQO0O+9SqH1guCb9gwuE5QIAAre4fOas6m4x4oTyWTq83U/ WQIIiyJOgp1a4HIpKh7NqPRZNS5J4y 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-20240122_124227_656778_CF8FF396 X-CRM114-Status: GOOD ( 10.81 ) 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 Signed-off-by: Mark Brown Reviewed-by: Dave Martin --- 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 ba0a5e5b2523..bc9855e599c8 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.