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 A9466A0A0E; Wed, 3 Feb 2021 00:08:02 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 26A392403F1; Wed, 3 Feb 2021 00:08:02 +0100 (CET) Received: from mail-lf1-f51.google.com (mail-lf1-f51.google.com [209.85.167.51]) by mails.dpdk.org (Postfix) with ESMTP id B0FAF2403E9; Wed, 3 Feb 2021 00:08:00 +0100 (CET) Received: by mail-lf1-f51.google.com with SMTP id p21so30571507lfu.11; Tue, 02 Feb 2021 15:08:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=KWe42g5WWYhnR+20LCrsHtcnpk6XeScUzZjuf/LJslE=; b=vTnfE+jG/fsDgybEHoiQRLt3RTWhZ7ZKvXD/gTLEMsLdaRFec3FYsEB14prBmm5/Ek C0iv/V2uIVAPobO5anHl0mxQv0Wk/xjLEquX/7p7d74LUJ9cPG+oYBA6ljVNe3fRqFaA oWlZMqnbayxBAPT8gM5nA8UxkXFEdCZqYKvMJbKCc/sQWVQhjPt3c3KsodpAz8m11+Lu RGxYTnSI9SjPEMTsPc0M0Q2ejvBViXWdfbB6W/3tswx8ADlmzPUJrw9EGGW7hxeaW9gz eS4UJoBQPqTTEjOFfJd/PUgELDm3uHxk+AHXpOklPHPtABW+AFsCnXl3OiYgban3eFjN 7Nuw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KWe42g5WWYhnR+20LCrsHtcnpk6XeScUzZjuf/LJslE=; b=Vz+MwXtRUwe2EvK1W8323+CWaSKdcYRnq3pZpoJs4lkoqhYk3ofKdk5tUWYgKxfFNc 63pVXqS4Z7jxaR7GSFfTW9ciL/C+B22tFmuchKSoKXK5K/7NDSxNr9AKy/FDQQ8N/XZw jifwMABFJMgKkpxCkr9/8ryJmcfyUHTv1vDhc6O7vfp+MK2W9FV2YbcvlThW7e0ezAUf h1zi2cGp6yF+L2uud1XX0lEmAnQ5lCrGgjYHP7YJOdrUIwJoA+emXl05lgrvx5Yc7Z/m X2dHkTQKvAe6LCObC7lV+XOdxQOe0E8MP5/hbdy7bhR+3VWfE12E4PZMHC/cpAvBaCFd ddcQ== X-Gm-Message-State: AOAM5320bk+mb0CuPBL/76KCAkk98kCfUSmO5CA4OQFqYjHQ+oxhBHVY zW/PkuWulTaqi2vi+3PyYlQ= X-Google-Smtp-Source: ABdhPJwDsu0AX1XAJashjbQqC/evO8Byf/IEfHXmoaKf1L6jjZtWOz79zF6oiokUVODQ7yajvF9h0Q== X-Received: by 2002:ac2:4114:: with SMTP id b20mr172782lfi.180.1612307280231; Tue, 02 Feb 2021 15:08:00 -0800 (PST) Received: from sovereign (broadband-37-110-65-23.ip.moscow.rt.ru. [37.110.65.23]) by smtp.gmail.com with ESMTPSA id v24sm43207lfe.216.2021.02.02.15.07.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Feb 2021 15:07:59 -0800 (PST) Date: Wed, 3 Feb 2021 02:07:58 +0300 From: Dmitry Kozlyuk To: Leyi Rong Cc: david.marchand@redhat.com, qi.z.zhang@intel.com, ferruh.yigit@intel.com, thomas@monjalon.net, bruce.richardson@intel.com, talshn@nvidia.com, pallavi.kadam@intel.com, ranjit.menon@intel.com, beilei.xing@intel.com, aconole@redhat.com, dev@dpdk.org, ci@dpdk.org Message-ID: <20210203020758.12cd8089@sovereign> In-Reply-To: <20210202143258.108477-1-leyi.rong@intel.com> References: <20210202090639.83164-1-leyi.rong@intel.com> <20210202143258.108477-1-leyi.rong@intel.com> X-Mailer: Claws Mail 3.17.6 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH v2] net/i40e: fix avx code error on MinGW 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" On Tue, 2 Feb 2021 22:32:58 +0800, Leyi Rong wrote: > Adds extra cflags '-fno-asynchronous-unwind-tables' > to avoid the MinGW build error: > Error: invalid register for .seh_savexmm > > Fixes: 5c38c33f7880 ("net/i40e: disable AVX512 with MinGW") > > Signed-off-by: Leyi Rong Tested-by: Dmitry Kozlyuk Re: -fno-asynchronous-unwind-tables, when cross-compiling from Linux, I observe bit-to-bit identical i40e_rxtx_vec_avx512.c.obj. My guess it that this option somehow affects GCC inlining heuristics. Similar issue existed in librte_acl (at least a year ago win GCC 6, I believe), where GCC generated incorrect code unless certain functions had been inlined (caught by test app). No an AVX expert, just my 2c.