From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id F00F3A04AF; Thu, 20 Aug 2020 02:39:31 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 190891C044; Thu, 20 Aug 2020 02:39:31 +0200 (CEST) Received: from m12-14.163.com (m12-14.163.com [220.181.12.14]) by dpdk.org (Postfix) with ESMTP id 28FDB1C031 for ; Thu, 20 Aug 2020 02:39:28 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=163.com; s=s110527; h=Subject:From:Message-ID:Date:MIME-Version; bh=bYovo xt92o6ASeff0Lzc/wJJpYz/HWa7Z2bzicJ7Uy0=; b=KohG8GdRICc77dYjuApVT s3T+bxpiuke+PSuBbb8TrugXvUtVm5tg0UwgHO2FHxVC9vjQ/vaFrdc5LDkEJzkJ Say8PwLmfOzyoEdlQK6MkqhaZ1Kh7vPiTzkFPyPdJRlQxDKrlLvd4aRmAY12sMgp vaNKtsheJK7YFdR2ntzAos= Received: from [192.168.1.199] (unknown [139.159.243.11]) by smtp10 (Coremail) with SMTP id DsCowABHVoo2xj1fKj6HGw--.28430S2; Thu, 20 Aug 2020 08:39:20 +0800 (CST) To: Ruifeng Wang Cc: "Wei Hu (Xavier)" , "dev@dpdk.org" , nd , Honnappa Nagarahalli , "jerinjacobk@gmail.com" , "xavier.huwei@huawei.com" References: <20200817124703.58157-1-huwei013@chinasoftinc.com> <20200819070408.25949-1-huwei013@chinasoftinc.com> <20200819070408.25949-3-huwei013@chinasoftinc.com> From: "Wei Hu (Xavier)" Message-ID: Date: Thu, 20 Aug 2020 08:39:18 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-CM-TRANSID: DsCowABHVoo2xj1fKj6HGw--.28430S2 X-Coremail-Antispam: 1Uf129KBjvJXoWxZr4Duw4DWr45try7Kr43Awb_yoW5WFW3pF s3Kayfua1xJwnrtw4aqFWY9wn5Jr4rGa47Zr9FvF4UAFn0vr109ryrC348WFn8ur18A3Z5 Aas8Zwn2934DZ3DanT9S1TB71UUUUUUqnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07jGPfQUUUUU= X-Originating-IP: [139.159.243.11] X-CM-SenderInfo: 50dyxv5ubk34lhl6il2tof0z/xtbBURiGo1aD8HBiVgAAsN Subject: Re: [dpdk-dev] [PATCH v5 2/2] test/cpuflag: add new flags for ARM64 platform X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Hi, Ruifeng Wang On 2020/8/19 16:11, Ruifeng Wang wrote: > >> -----Original Message----- >> From: Wei Hu (Xavier) >> Sent: Wednesday, August 19, 2020 3:04 PM >> To: dev@dpdk.org >> Cc: nd ; Honnappa Nagarahalli >> ; Ruifeng Wang >> ; jerinjacobk@gmail.com; >> xavier.huwei@huawei.com >> Subject: [PATCH v5 2/2] test/cpuflag: add new flags for ARM64 platform >> >> From: "Wei Hu (Xavier)" >> >> This patch adds new flags into the test_cpuflags() functions for ARM64 >> platform, such as RTE_CPUFLAG_SVE, etc. >> >> Signed-off-by: Wei Hu (Xavier) >> Reviewed-by: Ruifeng Wang >> --- >> v4 -> v5: Use double '\t' for better alignment. >> v4: Initial patch. >> --- >> app/test/test_cpuflags.c | 39 >> +++++++++++++++++++++++++++++++++++++++ >> 1 file changed, 39 insertions(+) >> >> diff --git a/app/test/test_cpuflags.c b/app/test/test_cpuflags.c index >> 06718631f..7c71ffef1 100644 >> --- a/app/test/test_cpuflags.c >> +++ b/app/test/test_cpuflags.c >> @@ -118,6 +118,45 @@ test_cpuflags(void) >> >> printf("Check for ATOMICS:\t"); >> CHECK_FOR_FLAG(RTE_CPUFLAG_ATOMICS); >> + >> + printf("Check for SVE:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE); >> + >> + printf("Check for SVE2:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVE2); >> + > Sorry if I didn't make it clear. > In v4, I meant we need double '\t' when checking for 'SVE' and 'SVE2' to align the check results with that of other flags. > You can check this by running cpuflags_autotest. > OK, I got it. Thanks for you detail description. Regards Xavier > Thanks. > /Ruifeng >> + printf("Check for SVEAES:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEAES); >> + >> + printf("Check for SVEPMULL:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEPMULL); >> + >> + printf("Check for SVEBITPERM:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBITPERM); >> + >> + printf("Check for SVESHA3:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESHA3); >> + >> + printf("Check for SVESM4:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVESM4); >> + >> + printf("Check for FLAGM2:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_FLAGM2); >> + >> + printf("Check for FRINT:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_FRINT); >> + >> + printf("Check for SVEI8MM:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEI8MM); >> + >> + printf("Check for SVEF32MM:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF32MM); >> + >> + printf("Check for SVEF64MM:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEF64MM); >> + >> + printf("Check for SVEBF16:\t\t"); >> + CHECK_FOR_FLAG(RTE_CPUFLAG_SVEBF16); >> #endif >> >> #if defined(RTE_ARCH_X86_64) || defined(RTE_ARCH_I686) >> -- >> 2.27.0