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 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 7C2EAC10F1B for ; Tue, 27 Dec 2022 17:14:48 +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=ffzNbrZcX0/2p0DhMTrcM4gRTjxPTb/uVF5ZtdwQIek=; b=4dDMbS9w7CbTmL zNt0dJqxpLxdh6dxYiWNmH/ZrTbRex8Kmi/fBwALkdtvVWl+0eW+kCQhLZSGqSDGPeCPGihf111ri o3ZuTIyQWBB2e30tcQStkmaZV7zYagf+B196vxNqdIKsa1XMam5FJziqexss8vEcjSO6iPWztInLy zq3qSUl2eCdj4/HLMc4lxzIXiAkNEb8RdKr9N+xcsL8KEjLD2v6Q0P/9mX2MsSo+jYomEwtqPKI5Z mgzCsQ4blAtdZxppsTPlo6GcGtBxEsU9rqD3RtT4T1O4GLXkTMtQomsluvn8g1oaRVrZE2XrBmOe9 ltuBaoLiJxvts1Gjsk9A==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADWF-00Ep7F-Lm; Tue, 27 Dec 2022 17:13:40 +0000 Received: from dfw.source.kernel.org ([2604:1380:4641:c500::1]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pADUw-00EoVP-ET for linux-arm-kernel@lists.infradead.org; Tue, 27 Dec 2022 17:12:19 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id E60A161093; Tue, 27 Dec 2022 17:12:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 7BDFCC433D2; Tue, 27 Dec 2022 17:12:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672161137; bh=2DK2MiQibplGn52Ix1WNre/FU3HFP9C3W63y0tQq6SE=; h=From:Date:Subject:References:In-Reply-To:To:Cc:From; b=YpA36d4zxY2zQ3V3nEqCblF/2W+kcZMS6mxV8DKbEfXx7E1TYpHCJ3AXaLO2ivr2b WFweap9/jOdiQD7epIeh/r7ECzalc8l9L2X4u3qK70tGDXS8tdLyCAs1p8fDgjhAsA q4q/cfyxNx8WQHyiFJ1/S8Kx5/hmWp2/JXjv+UyOHP0tswmbqJGlHi2f57QvtUhYn/ YWHtiugocAjrz9mgaAn/3Hexz4du/GjYl0NuCX688NFhzxO1bHkx98r6VPJTr4YTgO NxbDD0DXyECGpvpxljq50ul4VVxlysI8qmNdYDfkDda9ae6wRVFtFBMZ4KK0GBfz6g 7l/P38y/UIwdg== From: Mark Brown Date: Tue, 27 Dec 2022 17:12:06 +0000 Subject: [PATCH 3/3] arm64/signal: Always allocate SVE signal frames on SME only systems MIME-Version: 1.0 Message-Id: <20221223-arm64-fix-sme-only-v1-3-938d663f69e5@kernel.org> References: <20221223-arm64-fix-sme-only-v1-0-938d663f69e5@kernel.org> In-Reply-To: <20221223-arm64-fix-sme-only-v1-0-938d663f69e5@kernel.org> To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown X-Mailer: b4 0.12-dev-7ab1d X-Developer-Signature: v=1; a=openpgp-sha256; l=942; i=broonie@kernel.org; h=from:subject:message-id; bh=2DK2MiQibplGn52Ix1WNre/FU3HFP9C3W63y0tQq6SE=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBjqydq0GY8nBKcJuyTI61djQRC9zytH0keo2ct3eCz wGEuf3aJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCY6snagAKCRAk1otyXVSH0BxGB/ 9SmInHgUbeHK3aiglxsnzOsCVGRvetIawNmqHNpwbpheTfhkV0T0ZlpJtlLOfPubW8hejNTId/swh5 arIMuwnLq4RVCjIt1lc1zAdK0XE+u6m4irAzLLoZJFEXVUhBhz0Zc/xRpDyDyTKFWah3fm4CtBlKEU 1inSzDFSsdzUIVAnfPxw82RIT8eqTB4wlpHh8H1lhJ0Ioi6UyQoZU6YTQLPVc3vh7GNhdZf1Qu6r9l WRLHhHtoLVfrCtHu7uKST3KUa6+eSP2J91/kLhTuDzy5osBThWLrYN0pl9Vm3UHBYGz79l2flTfaTC q0eZvbY5fD8m7sfesX1JoblHz3dHv0 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-20221227_091218_628064_50457EE3 X-CRM114-Status: GOOD ( 13.88 ) 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 Currently we only allocate space for SVE signal frames on systems that support SVE, meaning that SME only systems do not allocate a signal frame for streaming mode SVE state. Change the check so space is allocated if either feature is supported. Fixes: 85ed24dad29 ("arm64/sme: Implement streaming SVE signal handling") Signed-off-by: Mark Brown --- arch/arm64/kernel/signal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index f90ee2dc413c..be279fd48248 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -737,7 +737,7 @@ static int setup_sigframe_layout(struct rt_sigframe_user_layout *user, return err; } - if (system_supports_sve()) { + if (system_supports_sve() || system_supports_sme()) { unsigned int vq = 0; if (add_all || test_thread_flag(TIF_SVE) || -- 2.30.2 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel