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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E7C72C05027 for ; Thu, 26 Jan 2023 23:19:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231594AbjAZXTi (ORCPT ); Thu, 26 Jan 2023 18:19:38 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232927AbjAZXTe (ORCPT ); Thu, 26 Jan 2023 18:19:34 -0500 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C48C16A5F for ; Thu, 26 Jan 2023 15:19:31 -0800 (PST) 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 ams.source.kernel.org (Postfix) with ESMTPS id 75484B81F2C for ; Thu, 26 Jan 2023 23:19:30 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2587C433D2; Thu, 26 Jan 2023 23:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674775169; bh=/xxnORces+7PQtmvaI57BF4HOd03bYSj1knJxgUH8bE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T+lZMixk8EP4tji07xe82tx6YmEqXcbjBAGrS69B7gZS9MR+7W1xvss+Q9sZDMYUi NM036B4UMI4uoTZvk/1ETeOYaqRLX1EALJzUjmtmL3vlg5cxrqumJ7Yy8Y/DkJzKfi J0XWmhxNeMjkG2IZ0yZobNo301H+LGHmyi3qx76U2hL5JCeVjlcyMFlDDwhQEq1Wse Crs6WSVDZS1XeFxaOZB9mJIsIJ3E+n2YzMx3bKjY+ChGXGZplUFYquOApIkXxE/7uF bMdv4tqlw7zcdc4437q28H2XJ6SSNEMYX8LxCEuzRLGKpnRYGCMPfuC+6QXX6w/PYj wnd1coVWplnFQ== Date: Thu, 26 Jan 2023 23:19:22 +0000 From: Conor Dooley To: Andy Chiu Cc: linux-riscv@lists.infradead.org, palmer@dabbelt.com, anup@brainfault.org, atishp@atishpatra.org, kvm-riscv@lists.infradead.org, kvm@vger.kernel.org, vineetg@rivosinc.com, greentime.hu@sifive.com, guoren@linux.alibaba.com, Vincent Chen , Paul Walmsley , Albert Ou , Eric Biederman , Kees Cook , Guo Ren , Heiko Stuebner , Zong Li , Nick Knight , Kefeng Wang , Sunil V L , Conor Dooley , Andrew Bresticker Subject: Re: [PATCH -next v13 14/19] riscv: signal: Report signal frame size to userspace via auxv Message-ID: References: <20230125142056.18356-1-andy.chiu@sifive.com> <20230125142056.18356-15-andy.chiu@sifive.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j/GNO2EbtRS4mZpS" Content-Disposition: inline In-Reply-To: <20230125142056.18356-15-andy.chiu@sifive.com> Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org --j/GNO2EbtRS4mZpS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 25, 2023 at 02:20:51PM +0000, Andy Chiu wrote: > diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/= processor.h > index 44d2eb381ca6..4f36c553605e 100644 > --- a/arch/riscv/include/asm/processor.h > +++ b/arch/riscv/include/asm/processor.h > @@ -7,6 +7,7 @@ > #define _ASM_RISCV_PROCESSOR_H > =20 > #include > +#include What have I missed that is the reason for adding this header? > #include > =20 > @@ -203,8 +205,10 @@ static size_t cal_rt_frame_size(void) > =20 > frame_size =3D sizeof(*frame); > =20 > - if (has_vector() && vstate_query(task_pt_regs(current))) > - total_context_size +=3D rvv_sc_size; Usual naming comment here about rvv. Thanks, Conor. --j/GNO2EbtRS4mZpS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY9MKegAKCRB4tDGHoIJi 0mmDAQCjFEpuNXkD97JMxkxeRTvw1yqmWXkab5dzjD9uKZ9rcQEAuWAEOzLFUUdw IHP/W6yZ16E6gVFkR9IRKYwwmzhdNAQ= =uuYD -----END PGP SIGNATURE----- --j/GNO2EbtRS4mZpS-- 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 E7078C54EAA for ; Thu, 26 Jan 2023 23:19:41 +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-Type:Cc: List-Subscribe:List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id: In-Reply-To:MIME-Version:References:Message-ID:Subject:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=ejVz4lFpAAK64r1Rv4Sz54+vsBxzzQcQ0LOHavn/3mY=; b=LXva7rqKYEQ1DmbwxfohI/LJaq +7CfI6xZVgdOjxTn8scfqTrHhEqfcBpHtXtYxOfZ+U3sQ5dqnMC/ea9dzwjGEUuqf9px9qBG/e6l/ yVTF1IthvJ7WPHxh9BCIwsGlXResPq9g81BeDFlsKAFCQIUNxoiKe2WF+9BQtqUv9YwZ+yHapIGV8 w6+7RVTn/qAZ8iq7eq4ialoPKJM85t6Ag+L4UAbCEGqVC/wQAlrKHW9Lz1zjWOwwhgXW1m2PaiZz2 dE630FDkQVv6KdjlyciMA9jpRvHEVfTke8nOrNlM1bbFCc+bH+IKptY75syqAZDkSIonKc0r8FCWl MjN2yMeA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLBWn-00CjeK-Gn; Thu, 26 Jan 2023 23:19:33 +0000 Received: from dfw.source.kernel.org ([139.178.84.217]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1pLBWk-00Cjdl-6f; Thu, 26 Jan 2023 23:19:31 +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 B2D406197F; Thu, 26 Jan 2023 23:19:29 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2587C433D2; Thu, 26 Jan 2023 23:19:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1674775169; bh=/xxnORces+7PQtmvaI57BF4HOd03bYSj1knJxgUH8bE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=T+lZMixk8EP4tji07xe82tx6YmEqXcbjBAGrS69B7gZS9MR+7W1xvss+Q9sZDMYUi NM036B4UMI4uoTZvk/1ETeOYaqRLX1EALJzUjmtmL3vlg5cxrqumJ7Yy8Y/DkJzKfi J0XWmhxNeMjkG2IZ0yZobNo301H+LGHmyi3qx76U2hL5JCeVjlcyMFlDDwhQEq1Wse Crs6WSVDZS1XeFxaOZB9mJIsIJ3E+n2YzMx3bKjY+ChGXGZplUFYquOApIkXxE/7uF bMdv4tqlw7zcdc4437q28H2XJ6SSNEMYX8LxCEuzRLGKpnRYGCMPfuC+6QXX6w/PYj wnd1coVWplnFQ== Date: Thu, 26 Jan 2023 23:19:22 +0000 From: Conor Dooley To: Andy Chiu Subject: Re: [PATCH -next v13 14/19] riscv: signal: Report signal frame size to userspace via auxv Message-ID: References: <20230125142056.18356-1-andy.chiu@sifive.com> <20230125142056.18356-15-andy.chiu@sifive.com> MIME-Version: 1.0 In-Reply-To: <20230125142056.18356-15-andy.chiu@sifive.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230126_151930_306241_9520D1E5 X-CRM114-Status: GOOD ( 14.71 ) X-BeenThere: linux-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kefeng Wang , guoren@linux.alibaba.com, Heiko Stuebner , kvm@vger.kernel.org, Andrew Bresticker , atishp@atishpatra.org, Conor Dooley , Guo Ren , Zong Li , linux-riscv@lists.infradead.org, Vincent Chen , anup@brainfault.org, greentime.hu@sifive.com, Albert Ou , Kees Cook , vineetg@rivosinc.com, Paul Walmsley , Nick Knight , palmer@dabbelt.com, Eric Biederman , kvm-riscv@lists.infradead.org Content-Type: multipart/mixed; boundary="===============2348459692110806695==" Sender: "linux-riscv" Errors-To: linux-riscv-bounces+linux-riscv=archiver.kernel.org@lists.infradead.org --===============2348459692110806695== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="j/GNO2EbtRS4mZpS" Content-Disposition: inline --j/GNO2EbtRS4mZpS Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Jan 25, 2023 at 02:20:51PM +0000, Andy Chiu wrote: > diff --git a/arch/riscv/include/asm/processor.h b/arch/riscv/include/asm/= processor.h > index 44d2eb381ca6..4f36c553605e 100644 > --- a/arch/riscv/include/asm/processor.h > +++ b/arch/riscv/include/asm/processor.h > @@ -7,6 +7,7 @@ > #define _ASM_RISCV_PROCESSOR_H > =20 > #include > +#include What have I missed that is the reason for adding this header? > #include > =20 > @@ -203,8 +205,10 @@ static size_t cal_rt_frame_size(void) > =20 > frame_size =3D sizeof(*frame); > =20 > - if (has_vector() && vstate_query(task_pt_regs(current))) > - total_context_size +=3D rvv_sc_size; Usual naming comment here about rvv. Thanks, Conor. --j/GNO2EbtRS4mZpS Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEABYIAB0WIQRh246EGq/8RLhDjO14tDGHoIJi0gUCY9MKegAKCRB4tDGHoIJi 0mmDAQCjFEpuNXkD97JMxkxeRTvw1yqmWXkab5dzjD9uKZ9rcQEAuWAEOzLFUUdw IHP/W6yZ16E6gVFkR9IRKYwwmzhdNAQ= =uuYD -----END PGP SIGNATURE----- --j/GNO2EbtRS4mZpS-- --===============2348459692110806695== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ linux-riscv mailing list linux-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-riscv --===============2348459692110806695==--