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 92668A2D for ; Mon, 21 Aug 2023 04:36:28 +0000 (UTC) Received: from out-37.mta0.migadu.com (out-37.mta0.migadu.com [IPv6:2001:41d0:1004:224b::25]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6968C101 for ; Sun, 20 Aug 2023 21:36:14 -0700 (PDT) Message-ID: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1692592572; 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=is0aN6t51XNch9mtYhUM17AwEBzy+/qqvPSiK0xV8qo=; b=nxkcvXwqUdvT72kTtPkaah0UhnliD1DWvONkmzWZUvEbb+r2LzEgJZJcEhs+HQ5Ji8mHGM 40bPsA8bTudkaMr300TuuPIhkcwBEMWzhya6X47utYsCth3vZ0bPEKEI1byYB5SzvT5X8q V0dA6pJxC4twKt72w2FMpJ+RxGDkL4c= Date: Sun, 20 Aug 2023 21:36:06 -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: bpf: Request to add -mcpu=v4 support for ARM/MIPS/NFP/POWERPC/RISCV/S390/SPARC/X86_32 Content-Language: en-US To: Pu Lehui , Shubham Bansal , Johan Almbladh , Paul Burton , Jakub Kicinski , "Naveen N. Rao" , Michael Ellerman , Luke Nelson , Xi Wang , =?UTF-8?B?QmrDtnJuIFTDtnBlbA==?= , Ilya Leoshkevich , Heiko Carstens , Vasily Gorbik , "David S. Miller" , Wang YanQing Cc: Alexei Starovoitov , Daniel Borkmann , Andrii Nakryiko , Martin KaFai Lau , bpf References: <79d3c797-17ba-bc9e-b1f9-44ad024b576f@linux.dev> <13f54b2a-0f52-325a-d138-981fc4896908@huawei.com> X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. From: Yonghong Song In-Reply-To: <13f54b2a-0f52-325a-d138-981fc4896908@huawei.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 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/20/23 7:23 PM, Pu Lehui wrote: > Alright, riscv64 is already being adapted, will be sent soon. Thanks! Looking forward to the patch set. > > On 2023/8/20 9:41, Yonghong Song wrote: >> Hi, >> >> A new set of bpf insns have been recently added in llvm with flag >> [-mcpu=v4](https://reviews.llvm.org/D144829). In the kernel, >> x86_64 and arm64 have implemented -mcpu=v4 support: >>    x86_64: >> https://lore.kernel.org/all/20230728011143.3710005-1-yonghong.song@linux.dev/ >>    arm64: >> https://lore.kernel.org/bpf/20230815154158.717901-1-xukuohai@huaweicloud.com/ >> >> The following arch's do not have -mcpu=v4 support yet: >>    arm, mips, nfp, powerpc, riscv, sc90, sparc and x86_32 >> >> If you have a chance, could you take a look at what >> x86_64/arm64 does and add support to the above arch'es? >> >> Thanks! >> >> Yonghong >>