From patchwork Wed Jan 27 14:27:05 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leyi Rong X-Patchwork-Id: 87402 X-Patchwork-Delegate: thomas@monjalon.net 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 38BADA052A; Wed, 27 Jan 2021 15:47:19 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D892D140E24; Wed, 27 Jan 2021 15:47:08 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id 531C7140E0C for ; Wed, 27 Jan 2021 15:47:04 +0100 (CET) IronPort-SDR: m2dq3YQrf3WKG9sSBtHXQMn5zEcRCoC5L+GDKy8a2CpOVEeB2dvGH7tl7lXajMARfxoIaGZ0qP T6FHKDfNhLHA== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="159248218" X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="159248218" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 06:47:03 -0800 IronPort-SDR: 2oxs+I4RBsvhX9L3Wl4r4cSTsLoOvgSsRsB+oSu580cb753RE6Zn6Z2mYJhTNv63ajwYrm4Du4 xdh724nfyVSA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="388330994" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2021 06:47:01 -0800 From: Leyi Rong To: bruce.richardson@intel.com, talshn@nvidia.com, qi.z.zhang@intel.com, pallavi.kadam@intel.com, ferruh.yigit@intel.com, ranjit.menon@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Leyi Rong Date: Wed, 27 Jan 2021 22:27:05 +0800 Message-Id: <20210127142706.6290-2-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127142706.6290-1-leyi.rong@intel.com> References: <20210126153819.63625-1-leyi.rong@intel.com> <20210127142706.6290-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v3 1/2] config: disable avx512 on mingw cross build 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" Disable avx512 when on mingw cross build, as .seh_savexmm build error reports if avx512 is enabled. Signed-off-by: Leyi Rong --- config/x86/cross-mingw | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/x86/cross-mingw b/config/x86/cross-mingw index 4c15a7fa2e..48a82b457e 100644 --- a/config/x86/cross-mingw +++ b/config/x86/cross-mingw @@ -11,3 +11,6 @@ system = 'windows' cpu_family = 'x86_64' cpu = 'native' endian = 'little' + +[properties] +c_args = '-mno-avx512f' From patchwork Wed Jan 27 14:27:06 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leyi Rong X-Patchwork-Id: 87403 X-Patchwork-Delegate: thomas@monjalon.net 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 666C6A052A; Wed, 27 Jan 2021 15:47:26 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 1CEE0140E2A; Wed, 27 Jan 2021 15:47:11 +0100 (CET) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by mails.dpdk.org (Postfix) with ESMTP id C2C7B140E14 for ; Wed, 27 Jan 2021 15:47:06 +0100 (CET) IronPort-SDR: bURs1ADkaZxyUaUpXqPp0QXyZ7o37C9R/BXutLUUb9wMB/VwRj1VsMWiHvL3NLRrV6g3/yBD8Z ifzT8712ldyA== X-IronPort-AV: E=McAfee;i="6000,8403,9877"; a="159248226" X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="159248226" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 27 Jan 2021 06:47:06 -0800 IronPort-SDR: pRAcT90Q+2WLEQfgIrT4JKx34evHsJHihiQQvt0MC+Tlsndkbtokx2lYMaBqSp7MgzQmiHOSJI IbHgoY3+0AUA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.79,379,1602572400"; d="scan'208";a="388331002" Received: from dpdk-lrong-srv-04.sh.intel.com ([10.67.119.221]) by orsmga008.jf.intel.com with ESMTP; 27 Jan 2021 06:47:04 -0800 From: Leyi Rong To: bruce.richardson@intel.com, talshn@nvidia.com, qi.z.zhang@intel.com, pallavi.kadam@intel.com, ferruh.yigit@intel.com, ranjit.menon@intel.com, beilei.xing@intel.com Cc: dev@dpdk.org, Leyi Rong Date: Wed, 27 Jan 2021 22:27:06 +0800 Message-Id: <20210127142706.6290-3-leyi.rong@intel.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210127142706.6290-1-leyi.rong@intel.com> References: <20210126153819.63625-1-leyi.rong@intel.com> <20210127142706.6290-1-leyi.rong@intel.com> Subject: [dpdk-dev] [PATCH v3 2/2] net/i40e: fix mingw build error 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" Disable i40e avx512 code path for windows build to avoid the mingw build error. Signed-off-by: Leyi Rong --- drivers/net/i40e/meson.build | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/net/i40e/meson.build b/drivers/net/i40e/meson.build index c0acdf4fd4..f5fc5a17e0 100644 --- a/drivers/net/i40e/meson.build +++ b/drivers/net/i40e/meson.build @@ -54,6 +54,10 @@ if arch_subdir == 'x86' cc.has_argument('-mavx512f') and cc.has_argument('-mavx512bw')) + if is_windows and cc.get_id() != 'clang' + i40e_avx512_cc_support = false + endif + if i40e_avx512_cpu_support == true or i40e_avx512_cc_support == true cflags += ['-DCC_AVX512_SUPPORT'] avx512_args = [cflags, '-mavx512f', '-mavx512bw']