From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 90CC5A00C2; Thu, 21 Jul 2022 12:33:26 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2AA5740A7A; Thu, 21 Jul 2022 12:33:26 +0200 (CEST) Received: from loongson.cn (mail.loongson.cn [114.242.206.163]) by mails.dpdk.org (Postfix) with ESMTP id 32CEE400D7 for ; Thu, 21 Jul 2022 12:33:23 +0200 (CEST) Received: from localhost.localdomain (unknown [10.20.42.60]) by mail.loongson.cn (Coremail) with SMTP id AQAAf9AxCeFvK9liPV8sAA--.421S3; Thu, 21 Jul 2022 18:33:20 +0800 (CST) Subject: Re: [v3 00/24] Support LoongArch architecture To: David Marchand Cc: Thomas Monjalon , Bruce Richardson , "Burakov, Anatoly" , Qiming Yang , Yuying Zhang , Jakub Grajciar , Konstantin Ananyev , dev , maobibo@loongson.cn References: <20220606131054.2097526-1-zhoumin@loongson.cn> From: zhoumin Message-ID: <9b228fbc-331c-145b-01be-c3e5480bac87@loongson.cn> Date: Thu, 21 Jul 2022 18:33:19 +0800 User-Agent: Mozilla/5.0 (X11; Linux mips64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-CM-TRANSID: AQAAf9AxCeFvK9liPV8sAA--.421S3 X-Coremail-Antispam: 1UD129KBjvJXoWxCw4xXF1xtFW7GFWrJFW3Awb_yoW5Ww18pa n0939Ikw1kXrnxAw18WryjgayFv393Ja4DJan8CryUCrs0qrn7Kryfta1Yva4DCrnYgFyj qrW5Ca4DJa45AaDanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDU0xBIdaVrnRJUUU9G14x267AKxVW8JVW5JwAFc2x0x2IEx4CE42xK8VAvwI8IcIk0 rVWrJVCq3wAFIxvE14AKwVWUJVWUGwA2ocxC64kIII0Yj41l84x0c7CEw4AK67xGY2AK02 1l84ACjcxK6xIIjxv20xvE14v26ryj6F1UM28EF7xvwVC0I7IYx2IY6xkF7I0E14v26F4j 6r4UJwA2z4x0Y4vEx4A2jsIE14v26rxl6s0DM28EF7xvwVC2z280aVCY1x0267AKxVW0oV Cq3wAS0I0E0xvYzxvE52x082IY62kv0487Mc02F40EFcxC0VAKzVAqx4xG6I80ewAv7VC0 I7IYx2IY67AKxVWUJVWUGwAv7VC2z280aVAFwI0_Jr0_Gr1lOx8S6xCaFVCjc4AY6r1j6r 4UM4x0Y48IcVAKI48JM4x0x7Aq67IIx4CEVc8vx2IErcIFxwACI402YVCY1x02628vn2kI c2xKxwCYjI0SjxkI62AI1cAE67vIY487MxkIecxEwVCm-wCF04k20xvY0x0EwIxGrwCFx2 IqxVCFs4IE7xkEbVWUJVW8JwC20s026c02F40E14v26r1j6r18MI8I3I0E7480Y4vE14v2 6r106r1rMI8E67AF67kF1VAFwI0_Jw0_GFylIxkGc2Ij64vIr41lIxAIcVC0I7IYx2IY67 AKxVWUJVWUCwCI42IY6xIIjxv20xvEc7CjxVAFwI0_Jr0_Gr1lIxAIcVCF04k26cxKx2IY s7xG6rW3Jr0E3s1lIxAIcVC2z280aVAFwI0_Jr0_Gr1lIxAIcVC2z280aVCY1x0267AKxV W8JVW8JrUvcSsGvfC2KfnxnUUI43ZEXa7VUbXdbUUUUUU== X-CM-SenderInfo: 52kr3ztlq6z05rqj20fqof0/ X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On 2022年07月21日 00:33, David Marchand wrote: > Hello, > > On Mon, Jun 6, 2022 at 3:11 PM Min Zhou wrote: >> Dear team, >> The following patch set is intended to support DPDK running on LoongArch >> architecture. >> >> LoongArch is the general processor architecture of Loongson and is a new >> RISC ISA, which is a bit like MIPS or RISC-V. >> >> The online documents of LoongArch are here: >> https://loongson.github.io/LoongArch-Documentation/README-EN.html >> >> The latest cross compile tool chain can be downloaded from: >> https://github.com/loongson/build-tools >> >> v3: >> - add URL for cross compile tool chain >> - remove rte_lpm_lsx.h which was a dummy vector implementation >> because there is already a scalar implementation, thanks to >> Michal Mazurek >> - modify the name of compiler for cross compiling >> - remove useless variable in meson.build >> >> v2: >> - use standard atomics of toolchain to implement >> atomic operations >> - implement spinlock based on standard atomics > Thanks for porting DPDK to a new architecture. > > I am unsure of what this architecture status is wrt to the upstream > Linux kernel and wrt to main distributions support. > Could you give some details? The upstream Linux kernel has merged the majority of the LoongArch architecture code for Linux 5.19, including the final system call interface and all core functionality. However, It still misses some patches to add support for other subsystems, which currently under review. Due to some of the code not yet passing review, Linux 5.19 cannot boot on LoongArch system. Presumably by the time of the Linux 5.20 kernel cycle later this summer the rest of the required driver support will pass review to yield a bootable LoongArch system. The GLIBC LoongArch support is likely to be mainlined for GLIBC 2.36 on or around August 1st, 2022. The LoongArch port for GCC has been merged for GCC 12. For lacking the complete upstream support for these significant projects, there is no main distribution yet for upstream Linux kernel of LoongArch. > > Otherwise, I did not look at the series yet, but it needs to be > rebased on the main repository, there have been quite some changes > since this original submission. I have rebased the patchset on the main repository and will send it later. > How will this architecture be integrated wrt CI: GHA? sending your hw > to UNH lab? or maybe do you have plans for your own CI servers? There are some public repositories that all have loongson branches maintained by ourselves, which will be submit to upstream project, under Loongson organization on github: https://github.com/loongson. We can build a CI server that can be accessed externally based on these repositories. However, I want to know how to integrate the CI server we build into the patch review process of DPDK. > -- Thanks, Min Zhou