From patchwork Thu Sep 30 18:11:08 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Brown X-Patchwork-Id: 514928 Delivered-To: patch@linaro.org Received: by 2002:a02:606e:0:0:0:0:0 with SMTP id d46csp36034jaf; Thu, 30 Sep 2021 11:15:45 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyw+RbHXneEmt8RVh9qL78o2Xg2WjhZoXcU6r56HxK4DuiH91AEf9j8Uhm44T/mioPuGncp X-Received: by 2002:a17:906:3b8e:: with SMTP id u14mr764447ejf.418.1633025745473; Thu, 30 Sep 2021 11:15:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633025745; cv=none; d=google.com; s=arc-20160816; b=iO2+gIXLsKMe1asiHK2m9QdammRF6mY9klrKvKHBSMwz+5hH5hFF8yFR88wNBYpcBz PSsLKSbMHN7w2f5RF9uovXTK5oLUTYZd1ILjf7des4PslZO3dGQ9NQhvH1+f1gfqYkB9 LpQzkEyPg9c7/fzFo8hTecIrjMEqlXrKMyIPv+nFwJOr9EEeOPHADNucXVoxmmklawtE IWGOWVM3SbeOFk3byIWrGAwxJKMXxatZfdfRnJOMweOtdnkVecYb3ixSjd8yMJfmY08/ GP2//uN34hc1XPmdSnq1ohiNZUf8ae+4bUVxJFayXrR1GyPXS6LHk0Kil/ym5M94lPlf z4QA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=9GqSn8OQflE0F2uzv2s+ME8ej01lmz6y/XXK2CZifls=; b=z8Q0tZHrSMtZzSC2r0ii6CJM+Tv66uBz/Qqg52r6by0WXippEAUli8CHUXeppZfPf5 l0T6hD7xzH2Y54+6Ry0R2HkLiwdYV6OpRj7wfWdpf5pVKkmw8GryYREmlm95rCSn+GJj ByYwgJABH0Gbu87RQ9x5qww/DVO2bGHDhtY31OdPKw+xGtyVkjEnhI/EL5OL7fK9/lOF vl0LEoW7ZZ1PfZ0lzzdui8UMpOblLTkEh5i5cmD5MLZ2zhb1iz7natfmkVT76mRO0mt9 lTPbk4/2FLFmxcTvnQSAlEQT/N02sw2aTBS9f4aG2doHPs237NLd7we27mrZibg2h8Dk wgGA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H56ba7r0; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ga1si4939846ejc.128.2021.09.30.11.15.45; Thu, 30 Sep 2021 11:15:45 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=H56ba7r0; spf=pass (google.com: domain of linux-kselftest-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kselftest-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353321AbhI3SR0 (ORCPT + 5 others); Thu, 30 Sep 2021 14:17:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:56344 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353145AbhI3SRZ (ORCPT ); Thu, 30 Sep 2021 14:17:25 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 36C1D61A03; Thu, 30 Sep 2021 18:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1633025742; bh=YMRTMA9hSAH3XNdayzm8DwXzxJoEVd5olRUatLntM2k=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=H56ba7r0+4gpeOI/FR6prkQ0ERqA0lMhS44DOCEiXuL3w8GnGLcJi1LmKN0l7NVGP cD8bOtfYH1AXpbxWx+4SN5G51OOSJkDAzsNh+qXKeaqbHoIzAB/0LBEEWXZVINzCwk zgNX8ka7dFV0JZcp4OjfuZWwng4VCcaXHiW1HN9yR2NjWrGniFgI64wqgwSVGGPAP8 LXuPpCNKwXxJza1a/0/WwWgdsqsM75bSn+pwq4LOYy1qOE7PXd4jIpX5iuISC1SJJj 5rNsy8lkUCpO4Aj6M6jwWqcX/m8CgKribYJ8YkyFwbtIwZIwel4oTbfVUx42XM1vp8 6+Scn2s56XB9w== 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 v1 02/38] arm64/sve: Remove sve_load_from_fpsimd_state() Date: Thu, 30 Sep 2021 19:11:08 +0100 Message-Id: <20210930181144.10029-3-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210930181144.10029-1-broonie@kernel.org> References: <20210930181144.10029-1-broonie@kernel.org> MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1923; h=from:subject; bh=YMRTMA9hSAH3XNdayzm8DwXzxJoEVd5olRUatLntM2k=; b=owEBbQGS/pANAwAKASTWi3JdVIfQAcsmYgBhVf3DCKU6l6/oAmr4ExBKFpd8OJZti2P9OqJprVU+ vBHkXuaJATMEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYVX9wwAKCRAk1otyXVSH0LzdB/ 41ff/cIVDGtrMjzgueJuHjjG7xoSLdKdn4VmYpiYhEZ1R1Ju0zKdccrLaJk0f7dWPjGhuAj0fjlzSz pWD2esjIS25Lu98NSBTn8QuipsGPFgfL4plVraVSAGXI+PArUwx+OMmMh92uvxbZQsWAV/PLFwJ9hv Za1fsG3WqIjicJlXYtIvUA/82NJx9FsSYeyo4fbjDfa4BA05Sqa2IsnNm0bFfpphVnjHVpCteRA4OO TeNR82/mKJREhnCUmftrYDnjsBxI6bxHlV0oIYrtHwS0GNQ8mpmyjXqKMN2YDSw8EAAoPqY7KqBG01 ne98pwHADJbaf/bZWOusvRtFSox+RM X-Developer-Key: i=broonie@kernel.org; a=openpgp; fpr=3F2568AAC26998F9E813A1C5C3F436CA30F5D8EB Precedence: bulk List-ID: X-Mailing-List: linux-kselftest@vger.kernel.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(-) -- 2.20.1 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 *