From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net [23.128.96.19]) (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 99FD11ED43 for ; Wed, 23 Aug 2023 17:34:40 +0000 (UTC) Received: from out-33.mta0.migadu.com (out-33.mta0.migadu.com [IPv6:2001:41d0:1004:224b::21]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7E2CA10CE for ; Wed, 23 Aug 2023 10:34:38 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1692812076; h=from:from:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=W6y2PSpf0KklCK/x1vlL2IxP2CNYUVfAedkT44SDp2U=; b=OI7gMP12Vgp+jaCERsVFW05Bk8n4xKzIocqn+mVIZV43JGFqZ1uZjEZ6auM1z1sEz8jbgs uE08blO7QM4iRX6l9ye2D9APeH0hLjBtqd08DQLabTrBwse8Ory3qgCm+aqDOCue+YjNKn POW9OcUCmO+eHOtBNYey9ogRU+R758g= Date: Wed, 23 Aug 2023 10:34:28 -0700 Precedence: bulk X-Mailing-List: bpf@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-To: yonghong.song@linux.dev Subject: Re: [PATCH bpf-next 7/7] selftests/bpf: Enable cpu v4 tests for RV64 Content-Language: en-US To: Pu Lehui , linux-riscv@lists.infradead.org, bpf@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Yonghong Song , Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , Song Liu , John Fastabend , KP Singh , Stanislav Fomichev , Hao Luo , Jiri Olsa , Palmer Dabbelt , Xu Kuohai , Puranjay Mohan , Pu Lehui References: <20230823231059.3363698-1-pulehui@huaweicloud.com> <20230823231059.3363698-8-pulehui@huaweicloud.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <20230823231059.3363698-8-pulehui@huaweicloud.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_OUT X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_BLOCKED, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net On 8/23/23 4:10 PM, Pu Lehui wrote: > From: Pu Lehui > > Enable cpu v4 tests for RV64, and the relevant tests have passed. > > Signed-off-by: Pu Lehui Thanks for working on this! Acked-by: Yonghong Song > --- > tools/testing/selftests/bpf/progs/test_ldsx_insn.c | 3 ++- > tools/testing/selftests/bpf/progs/verifier_bswap.c | 3 ++- > tools/testing/selftests/bpf/progs/verifier_gotol.c | 3 ++- > tools/testing/selftests/bpf/progs/verifier_ldsx.c | 3 ++- > tools/testing/selftests/bpf/progs/verifier_movsx.c | 3 ++- > tools/testing/selftests/bpf/progs/verifier_sdiv.c | 3 ++- > 6 files changed, 12 insertions(+), 6 deletions(-) > > diff --git a/tools/testing/selftests/bpf/progs/test_ldsx_insn.c b/tools/testing/selftests/bpf/progs/test_ldsx_insn.c > index 916d9435f12c..67c14ba1e87b 100644 > --- a/tools/testing/selftests/bpf/progs/test_ldsx_insn.c > +++ b/tools/testing/selftests/bpf/progs/test_ldsx_insn.c > @@ -5,7 +5,8 @@ > #include > #include > > -#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86)) && __clang_major__ >= 18 > +#if (defined(__TARGET_ARCH_arm64) || defined(__TARGET_ARCH_x86) || \ > + (defined(__TARGET_ARCH_riscv) && __riscv_xlen == 64)) && __clang_major__ >= 18 > const volatile int skip = 0; > #else > const volatile int skip = 1; [...]