From patchwork Thu Feb 9 05:49:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wenjun Wu X-Patchwork-Id: 123498 X-Patchwork-Delegate: qi.z.zhang@intel.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id B79E641C49; Thu, 9 Feb 2023 06:41:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9155640DDA; Thu, 9 Feb 2023 06:41:02 +0100 (CET) Received: from mga07.intel.com (mga07.intel.com [134.134.136.100]) by mails.dpdk.org (Postfix) with ESMTP id F28EB4067B for ; Thu, 9 Feb 2023 06:41:00 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675921261; x=1707457261; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=kG9J4TpYlvYzRX5+snkpTpboM13zY5hbKQS96N5/72E=; b=F22QD9rby3gv9sXHYoefrU5gLZKb5WuTOvZTqvvpyL9tNdgfhdOh7uwr To+3a5P8dZdQVxzfL0u0dSvtpUYtUojvCpjbIQWYd7XuGnaBGD75iYRad AwyNTQufin/1SNEro58MIyv7WfNmlr6ImUvAYuVvmHWLmpj2KywgQj8q7 fr7FntOvpEPWoEDYCake5qNit3c46L8aK2MiJd93nZzpRpCsoJDMiBkuy jd1hO/kHlJiGNOsSEuyaBr2QZ3THKZTe/mXT61XquVpN3xQO0r00GcLsI 3x0Jx0/WnuolUIcOjy7RMV1o3QmRPIwEb/WCdR6vSJXDCOdjdYovLfe3+ A==; X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="394611866" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="394611866" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Feb 2023 21:41:00 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6500,9779,10615"; a="669461159" X-IronPort-AV: E=Sophos;i="5.97,281,1669104000"; d="scan'208";a="669461159" Received: from dpdk-wuwenjun-icelake-ii.sh.intel.com ([10.67.110.153]) by fmsmga007.fm.intel.com with ESMTP; 08 Feb 2023 21:40:58 -0800 From: Wenjun Wu To: dev@dpdk.org, jingjing.wu@intel.com, beilei.xing@intel.com Cc: Wenjun Wu Subject: [PATCH v2] common/idpf: fix compilation for AVX512DQ Date: Thu, 9 Feb 2023 05:49:02 +0000 Message-Id: <20230209054902.2650646-1-wenjun1.wu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230209022749.2468940-1-wenjun1.wu@intel.com> References: <20230209022749.2468940-1-wenjun1.wu@intel.com> MIME-Version: 1.0 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 Some intrinsics used in idpf split queue AVX512 datapath ask for CPUID flag AVX512DQ and compilation flag -mavx512dq. Fixes: 43e916179fa2 ("common/idpf: add AVX512 data path for split queue model") Signed-off-by: Wenjun Wu --- drivers/common/idpf/meson.build | 8 +++++--- drivers/net/idpf/meson.build | 6 ++++-- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/drivers/common/idpf/meson.build b/drivers/common/idpf/meson.build index 13df0d9ac3..58059ef443 100644 --- a/drivers/common/idpf/meson.build +++ b/drivers/common/idpf/meson.build @@ -12,18 +12,20 @@ sources = files( if arch_subdir == 'x86' idpf_avx512_cpu_support = ( cc.get_define('__AVX512F__', args: machine_args) != '' and - cc.get_define('__AVX512BW__', args: machine_args) != '' + cc.get_define('__AVX512BW__', args: machine_args) != '' and + cc.get_define('__AVX512DQ__', args: machine_args) != '' ) idpf_avx512_cc_support = ( not machine_args.contains('-mno-avx512f') and cc.has_argument('-mavx512f') and - cc.has_argument('-mavx512bw') + cc.has_argument('-mavx512bw') and + cc.has_argument('-mavx512dq') ) if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true cflags += ['-DCC_AVX512_SUPPORT'] - avx512_args = [cflags, '-mavx512f', '-mavx512bw'] + avx512_args = [cflags, '-mavx512f', '-mavx512bw', '-mavx512dq'] if cc.has_argument('-march=skylake-avx512') avx512_args += '-march=skylake-avx512' endif diff --git a/drivers/net/idpf/meson.build b/drivers/net/idpf/meson.build index 98f8ceb77b..f8fcb21a3c 100644 --- a/drivers/net/idpf/meson.build +++ b/drivers/net/idpf/meson.build @@ -23,13 +23,15 @@ sources = files( if arch_subdir == 'x86' idpf_avx512_cpu_support = ( cc.get_define('__AVX512F__', args: machine_args) != '' and - cc.get_define('__AVX512BW__', args: machine_args) != '' + cc.get_define('__AVX512BW__', args: machine_args) != '' and + cc.get_define('__AVX512DQ__', args: machine_args) != '' ) idpf_avx512_cc_support = ( not machine_args.contains('-mno-avx512f') and cc.has_argument('-mavx512f') and - cc.has_argument('-mavx512bw') + cc.has_argument('-mavx512bw') and + cc.has_argument('-mavx512dq') ) if idpf_avx512_cpu_support == true or idpf_avx512_cc_support == true