From patchwork Tue Oct 19 17:22:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 12570765 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 7CB3CC4332F for ; Tue, 19 Oct 2021 17:25:32 +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 4E62E610E5 for ; Tue, 19 Oct 2021 17:25:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 4E62E610E5 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:References:In-Reply-To: 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: List-Owner; bh=DSg6rCx+dS91AJojGUcbniRGHIb0ir45ZrHA2Q2JJgM=; b=0qIFGE2t0L/Ip+ hFJSvSywbXp8yJrA1/KXxGj3pnpxc3f9mBddXXriFPzrIbRlQfzU56aXxnGUDhE9iUoSTCVn77O0c 4zwVHsECjiQBvOA/S3/IClZUiE7p+Iqi04Blb3J2pGNJWPULSRu6UNFfvaw0VZeZ8bqB3Y8inDeKH zpeo4nEDvjrIw5Q0XZwuDi4JDM+UzxN2mF86pn4L3CiUPlMv4Ig2QSM1drQJ3JwZjU1x8Kbm+fw+V Q50BM7bpGol1N3qcE/DhdFMT/urvGxBdaxBjyIk8SdL4pjUcqBLLLCd8ifY/GnFZhY2Asaw532y8f QXfQus+gL0QkH8D1PFqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mcsqI-00254L-22; Tue, 19 Oct 2021 17:24:02 +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 1mcspw-0024zO-1W for linux-arm-kernel@lists.infradead.org; Tue, 19 Oct 2021 17:23:41 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 340A2610E5; Tue, 19 Oct 2021 17:23:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1634664219; bh=6jAyzoU7sbK3D2Np76VXH9OD8yxSnhT/AlyskwNIuCs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=jkJmyrFd4DVx4MvnYqFb6MbscO22RNhmbH2cUAamriPQZjD8K+W0RU/RhOIxgsusS zR5G2URdcIE3ASbNACE0Qb2OdKk1SgL+hoaJsTuOb8e8jtYQ0S2hgqXf7QQRUvz7HW y48zDOSirXq3Y1Fs7K2ULpQM5Ia9NlWhke9kzAaDA6CI0PUwZ+ltXeabT1ijF7iSWq zJ+sBEbGx+8+P+nDsZEkuyPMJQekSyA9dAj28c4eCcmsCqtJuo7oFXHqFSLJL538QY Lyd79wwRpM9ZdvJ+21NIosb+IBlIb9VhUsgO8tBDYb1fakyeXk3TiRpvt+NSLDNPew 4H+sOO2Qlobpw== From: Mark Brown To: Catalin Marinas , Will Deacon , Shuah Khan , Shuah Khan Cc: Alan Hayward , Luis Machado , Salil Akerkar , Basant Kumar Dwivedi , Szabolcs Nagy , linux-arm-kernel@lists.infradead.org, linux-kselftest@vger.kernel.org, Mark Brown Subject: [PATCH v3 02/42] arm64/sve: Remove sve_load_from_fpsimd_state() Date: Tue, 19 Oct 2021 18:22:07 +0100 Message-Id: <20211019172247.3045838-3-broonie@kernel.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211019172247.3045838-1-broonie@kernel.org> References: <20211019172247.3045838-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1923; h=from:subject; bh=6jAyzoU7sbK3D2Np76VXH9OD8yxSnhT/AlyskwNIuCs=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhbv7FpTwOgZh/1AfkKXCMC6CCaTm/+AOMIBKeHQff we1QQN6JATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYW7+xQAKCRAk1otyXVSH0EMfB/ sEH5U1XYru3j05qeJQbVU88Fk1/lqlHbT7lo3yzVj1I5kgugEwNlbKELDWSS1Zqu35/jjpMMZITVyQ 9kyZbJY1YbyAEsilO85U07PuiSnHqo4c+EbC2NeqH1ZtG6Gz9ZGcVmfF4q7oGXw+XhO9Uc+VjO1YKN oKjCFRxImmx3VVY1fu7E3WESyD1T4RQQIuPq2Xpd6z2pA0+ggkNLJBSWL9DUysZqqcGQCLuXa1rPZt KVMDA8HiH+mrf69Hfv1z/VI7iyhbVq/u6vmJlv5eT+UgjtV2P++WYo2dMCfZYgugiLhCKDEF6yftJ/ sZ3jXmuaUZz19bWegTaMdrjnqK2/WX 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-20211019_102340_149158_5F8DBD8F 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 Following optimisations of the SVE register handling we no longer load the SVE state from a saved copy of the FPSIMD registers, we convert directly in registers or from one saved state to another. Remove the function so we don't need to update it during further refactoring. Signed-off-by: Mark Brown --- arch/arm64/include/asm/fpsimd.h | 2 -- arch/arm64/kernel/entry-fpsimd.S | 16 ---------------- 2 files changed, 18 deletions(-) diff --git a/arch/arm64/include/asm/fpsimd.h b/arch/arm64/include/asm/fpsimd.h index 9a62884183e5..e0e30567b80f 100644 --- a/arch/arm64/include/asm/fpsimd.h +++ b/arch/arm64/include/asm/fpsimd.h @@ -69,8 +69,6 @@ extern void sve_save_state(void *state, u32 *pfpsr); extern void sve_load_state(void const *state, u32 const *pfpsr, unsigned long vq_minus_1); extern void sve_flush_live(unsigned long vq_minus_1); -extern void sve_load_from_fpsimd_state(struct user_fpsimd_state const *state, - unsigned long vq_minus_1); extern unsigned int sve_get_vl(void); extern void sve_set_vq(unsigned long vq_minus_1); diff --git a/arch/arm64/kernel/entry-fpsimd.S b/arch/arm64/kernel/entry-fpsimd.S index 196e921f61de..afbf7dc47e1d 100644 --- a/arch/arm64/kernel/entry-fpsimd.S +++ b/arch/arm64/kernel/entry-fpsimd.S @@ -66,22 +66,6 @@ SYM_FUNC_START(sve_set_vq) ret SYM_FUNC_END(sve_set_vq) -/* - * Load SVE state from FPSIMD state. - * - * x0 = pointer to struct fpsimd_state - * x1 = VQ - 1 - * - * Each SVE vector will be loaded with the first 128-bits taken from FPSIMD - * and the rest zeroed. All the other SVE registers will be zeroed. - */ -SYM_FUNC_START(sve_load_from_fpsimd_state) - sve_load_vq x1, x2, x3 - fpsimd_restore x0, 8 - sve_flush_p_ffr - ret -SYM_FUNC_END(sve_load_from_fpsimd_state) - /* * Zero all SVE registers but the first 128-bits of each vector *