Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-17.7 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 024C3C4338F for ; Thu, 12 Aug 2021 20:28:12 +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 9A87960C41 for ; Thu, 12 Aug 2021 20:28:11 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 9A87960C41 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: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:In-Reply-To:References: List-Owner; bh=4irph9nbi4dpSXQPIWOq2sQBZIVJmP/D0rNpA8KSg+g=; b=UMy3u+B/YHRatz qMf+iBd6wnTlwo1bABXfmNomkcDgqGsNxfIh6aqfIckJY4GrOMFoqfNAXjSDX3fPA/cm922hqN6LC B5Nj7ZYrOXncrgjCSoHhIvqTMjsAMCa4GbRRK5oaTJ+K9TFblMO9F/qDw9b++Hreahw+VdINuxMo2 BTBhvsgpUaEms2PK1ZnvnoRlMKFcpF+cVYVT9EEg9lI70J58LKNJ0obe57UwOEiNNN44l9drYq3kv q21oJmIJAgwxwFKOih8d1tx4jHIeLHzgMt5AJCMoU8g317zKRIFdKB3Gbpb8Waga82lfdm6I0+nYD LyN/IOharDBaAmK2cqvg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mEHGn-00BAP3-0K; Thu, 12 Aug 2021 20:25:41 +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 1mEHGi-00BAOA-M6 for linux-arm-kernel@lists.infradead.org; Thu, 12 Aug 2021 20:25:38 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 46D1160C3F; Thu, 12 Aug 2021 20:25:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1628799935; bh=efnc/F/dwcq/HQ2zYzUio0nda/esV8ZRikJSfN6tT44=; h=From:To:Cc:Subject:Date:From; b=MlK3EQJX98H0UrD0SlV9Fuxy8Pzri3bmdF/dC3L9KR3sPh9hP8IVpthsOacXQeqyV puBIlpssyLqJTfAPaLtxL1Vl/V2QMUF4DR/c9/05Gg1nHPJ/xMzoVAopD5uXJeLcJ0 NiTtG4NcMIO4aRPgshg4ns6iZikdMRTSnIjaf1jbeRX/bTHlC2BmL+jHwRqnaaBXri aBQHuw7RRjJGFDu07hH8lapkdP2byEfYuRR9h9EquvBk1SuwxcKayVnCwXEMNp/mty mxd3OIXcCVwQZNFq4zwzexFoSmeXGXeVe3XMYSRG4ykmmNHhw6PpxpOqVWqLHcb+i1 py4TxINt+TPkw== From: Mark Brown To: Catalin Marinas , Will Deacon Cc: linux-arm-kernel@lists.infradead.org, Mark Brown Subject: [PATCH] arm64/sve: Add some comments for sve_save/load_state() Date: Thu, 12 Aug 2021 21:11:43 +0100 Message-Id: <20210812201143.35578-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=1060; h=from:subject; bh=efnc/F/dwcq/HQ2zYzUio0nda/esV8ZRikJSfN6tT44=; b=owEBbAGT/pANAwAKASTWi3JdVIfQAcsmYgBhFYBCr/eWSSjIo47Q2vAao6P9w/p0n8nEGRcBjz1y x3DhfgiJATIEAAEKAB0WIQSt5miqZ1cYtZ/in+ok1otyXVSH0AUCYRWAQgAKCRAk1otyXVSH0B4uB/ j/rGAE/ENj8DyF1xA4HjAI0nRmpytxlQLaNAvAyP6fvQ2EU/xnFCSse2/wo+1zuf9tTFdMouCkYqj9 thJoqhhoNRhBrBdmN95616jrMxQ1YucD4rR1uY41HLHod0aEntY70rQ13tr8BwrIxhKYb+oAEPEL7F b3MZWFiLYzpac4yXyPCz9P80EBxmyNep+1vomyDdcHTsPRVuWK8CNpXmAWyux3P03aaTPo5wfgaHpH 0xz1tTdOPesS1EnR5aXLzd0n2eGEhkTwydNJRrcVFeRGinBKp+hoL22xnjMkw949THN4RiQsSIF8nr po+KFKdPkXM/hGHXLYxA7diszxI7M= 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-20210812_132536_782193_33B9EC83 X-CRM114-Status: GOOD ( 10.60 ) 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 The use of macros for the actual function bodies means legibility is always going to be a bit of a challenge, especially while we can't rely on SVE support in the toolchain, but this helps a little. Signed-off-by: Mark Brown --- arch/arm64/kernel/entry-fpsimd.S | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/arch/arm64/kernel/entry-fpsimd.S b/arch/arm64/kernel/entry-fpsimd.S index 0a7a64753878..196e921f61de 100644 --- a/arch/arm64/kernel/entry-fpsimd.S +++ b/arch/arm64/kernel/entry-fpsimd.S @@ -33,11 +33,24 @@ SYM_FUNC_END(fpsimd_load_state) #ifdef CONFIG_ARM64_SVE +/* + * Save the SVE state + * + * x0 - pointer to buffer for state + * x1 - pointer to storage for FPSR + */ SYM_FUNC_START(sve_save_state) sve_save 0, x1, 2 ret SYM_FUNC_END(sve_save_state) +/* + * Load the SVE state + * + * x0 - pointer to buffer for state + * x1 - pointer to storage for FPSR + * x2 - VQ-1 + */ SYM_FUNC_START(sve_load_state) sve_load 0, x1, x2, 3, x4 ret -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel