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=-10.0 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,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 35EFAC433E1 for ; Mon, 29 Jun 2020 13:42:40 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (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 082D123D67 for ; Mon, 29 Jun 2020 13:42:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="Y0LITBeT"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=kernel.org header.i=@kernel.org header.b="eG+cg1Kr" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 082D123D67 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=kimSNW+9sKd6DkQh8I99LtQ+obYt8C2lBRjpVmKQcc4=; b=Y0LITBeTsYAqAjUfCLQ04jz+V lXq4prbepCIJ3w1HAU9r3iAR6vdjF0/7ZteT6qorkY4A3EDDwnl5FPd4WqOJbOJSO65Vc8g0ytip2 J7mKjWa03znso1U+197Sjtq1VrOUfhAwkJG0viRvEvLWMDQUeOo3gB5Ux11d9kEshKEHq9mQdBd1L Y02lI4y0c8kiaa6HS59Hai9ZookzAf/0OgqTnItBz+q1KUSi6/u28v9e3NeSqn82s+oBVH/SYWMpd pNNN9GpyoBBm9+2ktBkoc2wxhApc2oALGh1l/P6rW4661/Z7LaMMr77tuOP8vO372UTZXi9fzB0aN Py5ak30Tg==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpu22-0000zF-6O; Mon, 29 Jun 2020 13:41:10 +0000 Received: from mail.kernel.org ([198.145.29.99]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jpu1x-0000yS-BI for linux-arm-kernel@lists.infradead.org; Mon, 29 Jun 2020 13:41:06 +0000 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 4D22523B06; Mon, 29 Jun 2020 13:41:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1593438064; bh=5di+qLMS7a0tmDo8UtniCY68e1kPXTlXS4LHRhqW0s4=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eG+cg1KrCtZAFw8KhGWJlMUItOzWjL6ei0vpE/4yR0S2/2fLuZYEhOubpdhj2rJE2 XLQwLy1DlRXf9AXHmpe9iarZC77B8oiZeK9gPb/WvIS1Pr3Gp8xGDI0mtu8cb88Iml pq93ARDSVPNI/qBsfVx/Oflan/H0hGeI/fAx+6qM= From: Mark Brown To: Catalin Marinas , Will Deacon Subject: [PATCH v3 2/8] arm64/signal: Update the comment in preserve_sve_context Date: Mon, 29 Jun 2020 14:35:50 +0100 Message-Id: <20200629133556.39825-3-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200629133556.39825-1-broonie@kernel.org> References: <20200629133556.39825-1-broonie@kernel.org> MIME-Version: 1.0 X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , zhang.lei@jp.fujitsu.com, Julien Grall , Mark Brown , Dave Martin , linux-arm-kernel@lists.infradead.org, Daniel Kiss 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 From: Julien Grall The SVE state is saved by fpsimd_signal_preserve_current_state() and not preserve_fpsimd_context(). Update the comment in preserve_sve_context to reflect the current behavior. Signed-off-by: Julien Grall Reviewed-by: Dave Martin Link: https://lore.kernel.org/r/20190613161656.20765-3-julien.grall@arm.com Signed-off-by: Mark Brown --- arch/arm64/kernel/signal.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm64/kernel/signal.c b/arch/arm64/kernel/signal.c index 801d56cdf701..5e9df0224609 100644 --- a/arch/arm64/kernel/signal.c +++ b/arch/arm64/kernel/signal.c @@ -244,7 +244,8 @@ static int preserve_sve_context(struct sve_context __user *ctx) if (vq) { /* * This assumes that the SVE state has already been saved to - * the task struct by calling preserve_fpsimd_context(). + * the task struct by calling the function + * fpsimd_signal_preserve_current_state(). */ err |= __copy_to_user((char __user *)ctx + SVE_SIG_REGS_OFFSET, current->thread.sve_state, -- 2.20.1 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel