From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 796E814F135; Tue, 2 Jul 2024 13:40:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719927621; cv=none; b=eIfbgNooS1/KE11dLtsFTjZM+5afrNjuTDciuXW126hDeQn51v+2DGeG6HaYi70j6rjd1SUk0vLUMWOXaxrnACK/Rqi/cxb8KlVJ6XI3Lg8X7KMFBYLQZ8NTVIHB9eIxEtjYcmN1OkHl05f0r0TshDlTDGOpivyFW651dA+Qxmo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719927621; c=relaxed/simple; bh=/GVZeyDyQK8AXbMqTZiufCNDNqS1Z4p3Wb4mdqN502c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=U+2XNxyrmXZy6FETrSLW3dubTajoGWetpi8XDeDLAS8WiF+HMaCC2u5xVHSE+LllLDdXwPRfYbt5eRtFuljZhO2oB+yUVrI2tJixlxUaPbYTLVbD5Yr0aX6qOoiAFO/N6+M17oSdl5LTXJvQD9OXxCjL+y6sMOLUd9+Fh1e8FGs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=qYHVcnak; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="qYHVcnak" Received: by smtp.kernel.org (Postfix) with ESMTPSA id B55ABC116B1; Tue, 2 Jul 2024 13:40:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1719927621; bh=/GVZeyDyQK8AXbMqTZiufCNDNqS1Z4p3Wb4mdqN502c=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From; b=qYHVcnakAG4sRMAo3JTbas7o8n17yRD/nZuJ1NgivbBobs1otqujnKkYxtKxI/GSJ sCsBmkjTg0/gEdsAFSJzIeGCkz73UVOArNxlMnoA4MvbdS0qf3VbGlTPQxwz6b0cVv eHfj0CEcrplKTBEd5UziGc+4Tj75dsFsIbdV9npAI+iLVuNNxOdXXZojy/8tt7OADo rFtS6qA5/nDbiztqdJugvEiljupR9AIKqmdRihLA2Z5pqyPPhWd2EuTUUH6ae/RjMx aSPOrAA0Ja4EY7UXpZ8siBometN+7HGvwRqyeGBfMkLlBDxoNKc0+nQ59KKoUgDM28 1Bx1XfwzDqIIA== From: Puranjay Mohan To: Pu Lehui , bpf@vger.kernel.org, linux-riscv@lists.infradead.org, netdev@vger.kernel.org Cc: =?utf-8?B?QmrDtnJuIFTDtnBlbA==?= , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Eduard Zingerman , Song Liu , Yonghong Song , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Palmer Dabbelt , Pu Lehui Subject: Re: [PATCH bpf-next v6 1/3] riscv, bpf: Add 12-argument support for RV64 bpf trampoline In-Reply-To: <20240702121944.1091530-2-pulehui@huaweicloud.com> References: <20240702121944.1091530-1-pulehui@huaweicloud.com> <20240702121944.1091530-2-pulehui@huaweicloud.com> Date: Tue, 02 Jul 2024 13:40:03 +0000 Message-ID: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Pu Lehui writes: > From: Pu Lehui > > This patch adds 12 function arguments support for riscv64 bpf > trampoline. The current bpf trampoline supports <=3D sizeof(u64) bytes > scalar arguments [0] and <=3D 16 bytes struct arguments [1]. Therefore, we > focus on the situation where scalars are at most XLEN bits and > aggregates whose total size does not exceed 2=C3=97XLEN bits in the riscv > calling convention [2]. > > Link: https://elixir.bootlin.com/linux/v6.8/source/kernel/bpf/btf.c#L6184= [0] > Link: https://elixir.bootlin.com/linux/v6.8/source/kernel/bpf/btf.c#L6769= [1] > Link: https://github.com/riscv-non-isa/riscv-elf-psabi-doc/releases/downl= oad/draft-20230929-e5c800e661a53efe3c2678d71a306323b60eb13b/riscv-abi.pdf [= 2] > Signed-off-by: Pu Lehui > Acked-by: Bj=C3=B6rn T=C3=B6pel > Reviewed-by: Bj=C3=B6rn T=C3=B6pel Acked-by: Puranjay Mohan Thanks, Puranjay --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iIoEARYKADIWIQQ3wHGvVs/5bdl78BKwwPkjG3B2nQUCZoQDNBQccHVyYW5qYXlA a2VybmVsLm9yZwAKCRCwwPkjG3B2nflEAQCjAe+AxuQrgIDgc1bxgHeB/tv8iUpO wMzYeE99NEwXSgD7BAY3XDTU5cNevHTPXgOmwwAXJX8st3eeEEzoBlhRzgU= =SI05 -----END PGP SIGNATURE----- --=-=-=--