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 765C8A0547; Wed, 19 May 2021 15:30:48 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5DA1D40041; Wed, 19 May 2021 15:30:48 +0200 (CEST) Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) by mails.dpdk.org (Postfix) with ESMTP id 45A1D4003F for ; Wed, 19 May 2021 15:30:46 +0200 (CEST) Received: from dggems702-chm.china.huawei.com (unknown [172.30.72.60]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4FlYZ94v6mzQp6h; Wed, 19 May 2021 21:27:13 +0800 (CST) Received: from dggpeml500024.china.huawei.com (7.185.36.10) by dggems702-chm.china.huawei.com (10.3.19.179) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 21:30:41 +0800 Received: from [127.0.0.1] (10.40.190.165) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Wed, 19 May 2021 21:30:41 +0800 To: Ferruh Yigit , , CC: , , , , , , , , References: <1621424821-53240-1-git-send-email-fengchengwen@huawei.com> <1621425281-2413-1-git-send-email-fengchengwen@huawei.com> <46abc8a3-1e1f-55c4-ca22-d61c7489ef84@intel.com> From: fengchengwen Message-ID: <64a68c59-622c-ecfa-e8e1-c7268d7ef5c6@huawei.com> Date: Wed, 19 May 2021 21:30:40 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <46abc8a3-1e1f-55c4-ca22-d61c7489ef84@intel.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 8bit X-Originating-IP: [10.40.190.165] X-ClientProxiedBy: dggems702-chm.china.huawei.com (10.3.19.179) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected Subject: Re: [dpdk-dev] [PATCH v2] net/hns3: fix compile error with gcc8.3 and thunderx2 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 Sender: "dev" Thanks a lot, Ferruh Already rebase and send v6, please review 2/2 patch. On 2021/5/19 20:30, Ferruh Yigit wrote: > On 5/19/2021 12:54 PM, Chengwen Feng wrote: >> Compile error with gcc8.3 and crossfile arm64_thunderx2_linux_gcc: >> ../drivers/net/hns3/hns3_rxtx_vec_sve.c >> cc1: error: switch ‘-mcpu=armv8.1-a’ conflicts with >> ‘-march=armv8.2-a’ switch [-Werror] >> ../drivers/net/hns3/hns3_rxtx_vec_sve.c:5:10: fatal error: >> arm_sve.h: No such file or directory >> 5 | #include >> >> The root cause is that gcc8.3 supports SVE, but it doesn't support >> compile ACLE[1] SVE code, and the hns3_rxtx_vec_sve.c was written >> by ACLE SVE code. >> >> This patch also filters out '-march=' '-mcpu' '-mtune' when compile >> with hns3_rxtx_vec_sve.c. >> >> [1] ACLE: Arm C Language Extensions, user should include >> when writing ACLE SVE code. >> >> Fixes: 203fbaf8813d ("net/hns3: refactor SVE code compile method") >> >> Signed-off-by: Chengwen Feng > > Hi Chengwen, > > We need CI result to proceed with the patch, since I don't have arm platfrom to > test this properly. > > But in the CI applying patch fails, I guess that is because the original patch > has been dropped in the next-net. > > Can you please send a new version of the patch rebased on top of latest next-net? > > . >