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 4D7F3A052A; Tue, 2 Feb 2021 15:13:53 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 02A3D2402F5; Tue, 2 Feb 2021 15:13:53 +0100 (CET) Received: from hqnvemgate25.nvidia.com (hqnvemgate25.nvidia.com [216.228.121.64]) by mails.dpdk.org (Postfix) with ESMTP id 08E282402DB; Tue, 2 Feb 2021 15:13:50 +0100 (CET) Received: from hqpgpgate101.nvidia.com (Not Verified[216.228.121.13]) by hqnvemgate25.nvidia.com (using TLS: TLSv1.2, DES-CBC3-SHA) id ; Tue, 02 Feb 2021 06:13:50 -0800 Received: from HQMAIL107.nvidia.com ([172.20.161.6]) by hqpgpgate101.nvidia.com (PGP Universal service); Tue, 02 Feb 2021 06:13:50 -0800 X-PGP-Universal: processed; by hqpgpgate101.nvidia.com on Tue, 02 Feb 2021 06:13:50 -0800 Received: from HQMAIL111.nvidia.com (172.20.187.18) by HQMAIL107.nvidia.com (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Feb 2021 14:13:50 +0000 Received: from HQMAIL101.nvidia.com (172.20.187.10) by HQMAIL111.nvidia.com (172.20.187.18) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Tue, 2 Feb 2021 14:13:45 +0000 Received: from NAM10-MW2-obe.outbound.protection.outlook.com (104.47.55.103) by HQMAIL101.nvidia.com (172.20.187.10) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Tue, 2 Feb 2021 14:13:46 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jfSIrztJycY1rCtk8YUiEefT912oEO8OhRdTYR1waYVWob/l0RLlExZmCvvK1eBI4R/dMGaVK/sDTG9wSoMJ3JUg0nWVVCWZcqzoylN71ZvTmETJoKzMltiGBDPuSh8iVMLk3ms/bp9nx+KKaMbC3UA/YFJwf39RAhMVXePIsosHwI0B1EgyXImlw0v7wYm5QNPXKlhtEg1yOjDAm3+igSHJCh2JbJFVv1Mtz/NLcSqnusIaVZYQfcjHRNdi+Ej2ennHUyJijKkPF70SNCqCdBGkUwI4uqietYpIpHIAdloXo0rUODuHUzv0KxvrSkYUWZrl0XfhkKzfi4NaCWJJOQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/4p0GK9ePiHxI03F8uhU6JpZwjFlX1Vxn5T9tZB6olY=; b=XOBin+SLHnD1lZmpvEMGvwXHm//OMjR4vjr1bJ4cyohE1nsyVRbr5opsMuG3oLq99I+vXkM4NneB28Gnw7yqCLlP3QgxzwDHcjQouVUtfF3jESVdJ0b3ei/Br7zoR8tVoW6XWBX3xA2f9FzZq3vuDH5porVwRDGbtb79p4sTxSYq57lM342DQrI7sF5eQPrnU+YI/IgvHKsWyg9HogGc9t94V4Nbssf2s/v4uJ6fFbuNupuHCnC5jfvTewOLS/MHSK6Bk8cvkdopNrXwqwKEQWkWyH4SqaBDrfl3lsVqfht2/dma4I6fSs1jAI1bAJtCxhT87MZFLW6oPfNtOhKuNg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nvidia.com; dmarc=pass action=none header.from=nvidia.com; dkim=pass header.d=nvidia.com; arc=none Received: from DM6PR12MB3945.namprd12.prod.outlook.com (2603:10b6:5:1c2::27) by DM6PR12MB3497.namprd12.prod.outlook.com (2603:10b6:5:3c::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3805.24; Tue, 2 Feb 2021 14:13:44 +0000 Received: from DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::d1dc:9fb2:4724:53df]) by DM6PR12MB3945.namprd12.prod.outlook.com ([fe80::d1dc:9fb2:4724:53df%7]) with mapi id 15.20.3805.024; Tue, 2 Feb 2021 14:13:44 +0000 From: Tal Shnaiderman To: Bruce Richardson , Leyi Rong CC: "david.marchand@redhat.com" , "qi.z.zhang@intel.com" , "ferruh.yigit@intel.com" , NBU-Contact-Thomas Monjalon , "pallavi.kadam@intel.com" , "ranjit.menon@intel.com" , "beilei.xing@intel.com" , "aconole@redhat.com" , "dev@dpdk.org" , "ci@dpdk.org" Thread-Topic: [PATCH] net/i40e: disable AVX512 with MinGW Thread-Index: AQHW+UWrrcZ43S+4YEGun/j31Ja6dapEqLsAgAA/T3A= Date: Tue, 2 Feb 2021 14:13:44 +0000 Message-ID: References: <20210202090639.83164-1-leyi.rong@intel.com> <20210202102450.GA139@bricha3-MOBL.ger.corp.intel.com> In-Reply-To: <20210202102450.GA139@bricha3-MOBL.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=nvidia.com; x-originating-ip: [77.137.141.17] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 2c1ca900-fb8d-4c75-44b1-08d8c784c02e x-ms-traffictypediagnostic: DM6PR12MB3497: x-ld-processed: 43083d15-7273-40c1-b7db-39efd9ccc17a,ExtAddr x-microsoft-antispam-prvs: x-header: ProcessedBy-CMR-outbound x-ms-oob-tlc-oobclassifiers: OLM:8882; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: MXN2JWClnFHG5XSgJEjxgnckAOlNz6E2+E/QStgYLGWKDwSQn3giLR0CLJn9A8+0MUiHNMJGzFTiuNf0t9fTYN/RFbSH7Q0AZQrygJ39DUciRcm2Xa+UkbbJJ3nQeeISGTxc+BZjXFAnEoCY7Xl2Czi1/qb117u3QqzeOY/m+UH6fIDca76J8HHZB8bpgljKlxuX0hFwk0Z7PQjt85rflZ5jPKX7w2dz46HZSWuwtqDzmEhOCTYwdeBUG/byrhX5E1cDgu+LoDwcnTbkztCAoY9bN2tv1FAcRDDP+pA0/xNFto3Wgxwfv6FX9dc23Yck+e2k01QDtFtVWSMAq+24K+e//9z94kbveckP7qjgQJnhjNxb7K/kMHO0sEfJ/IEcisaaADTJbLnG7IAQxh4Zt3JJFFl5WzP50pZQP6/NZ100AsyEIlUC1NcQ25qA7LkGSsanlsq6okohJDrL55DQ/INfWxF1d3x0EHxTNvTNA0JiCSvYzdbyaWy/1fojW9QSboBKVMMrh0hALiy+cB2REL29hPyXVcVvIsQe+z/SW2S5pbPk1CoC8nR3FO1semVGVXaeBne0tmXnic04C5H7QNnXWzBUjfIZXJYn5aBfL5E= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DM6PR12MB3945.namprd12.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(376002)(136003)(346002)(366004)(39860400002)(33656002)(9686003)(71200400001)(5660300002)(186003)(4326008)(26005)(66946007)(55016002)(66476007)(8676002)(6506007)(76116006)(7696005)(66556008)(52536014)(66446008)(478600001)(64756008)(316002)(54906003)(86362001)(2906002)(8936002)(110136005)(7416002)(966005); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?uTbJBekcJHE9y4yds1TZv6anKC0RhXrKHN0VHGnmuN4Qaz/nPnfJ/YwswZFA?= =?us-ascii?Q?8IlXdKzjACEcRTu+c2JivbVqoMEynwdiQDcDWiJAWT9hm2sZ3a4uqOLJzA5r?= =?us-ascii?Q?GSsq5V3qlxzwuuXMfjH4muvwFKnjn9UTJ+j6KpKy3VFtTXnhJlIkLNSdW9XM?= =?us-ascii?Q?FigV0FGF5ge5xLtyUf1qS86gjJWHaqeWfKxnrgXNpOx2tVFTZubE2ELV9g52?= =?us-ascii?Q?w38a+bhKiQ1qoh9xadxk1z15U/PKEbceot52U6wXNtFzHppomFJFQ/oX3aUq?= =?us-ascii?Q?GHYl1wIJZ1QkRGD7q9RNx0xOUZd0Vwo09JAh6N71b7e63Dz5p+UW3WaQNDQK?= =?us-ascii?Q?katRx0d0V6YeR9CxvzUmZf1Qj6AL6NSagkQDvJ9i7cltO0y1jbQeTd2TxPgH?= =?us-ascii?Q?HPo04Kd6sI44dg16x2Mg894RYhJORqKYAm+6DDUbAsYQx423DjVKCHjVEugu?= =?us-ascii?Q?g76XM9V34rpHhAvocinjUOmE32C3HmLygCAsrBhzo3/jAbz+5o4SYMu6iOPi?= =?us-ascii?Q?TigZO/ohMwePerc6amMlDywO1Q+gVhGMkYLYPdeUyqb6gTEfXs+tMLYSY3iz?= =?us-ascii?Q?z3rxU8E2/6wCrsvZ8j6bDnjcoJEpQ8FRZdk8oCF9Pd/nsvn61/1u/+UCTR4a?= =?us-ascii?Q?wYb5chEJGaLptA4AAJQUbcS3wY68tvNL89PLsn17bhD8Ow9Gr28Jd6OksvDj?= =?us-ascii?Q?+fM8sslLcn8T1/kDtsT7sgq3MV/Ln3wiUMtuvVn6qzF5HCDKWe22of7SJLaZ?= =?us-ascii?Q?ajoa9GuE2xvp+6P0htgVWlU5/ecgj6tBSPM7gLbnt9L47ULqeNt+4inVhZEz?= =?us-ascii?Q?AKOCrZyPnSASc3NHTRA7rWddPzRxYjtcwVoP5APNI32zbPAOtjk9KoujToTw?= =?us-ascii?Q?x7lc72zYPl+72R9oGih8w32J8wj+kqYyUB9h8XQJWv6WC2AkfE7obYdJGVQm?= =?us-ascii?Q?diLMP8qzSLODv/DTlVN2UvMJ3CPL2b4kMC5na5ox3ZQNCpPBjGdnUwwQzYYw?= =?us-ascii?Q?qLSJObUbBHGxoQPVH9opzmgoRXfZICto8elB79EdoJRnZF0p2D9AmjLS2NYH?= =?us-ascii?Q?gy4Xwu7t?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DM6PR12MB3945.namprd12.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 2c1ca900-fb8d-4c75-44b1-08d8c784c02e X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Feb 2021 14:13:44.6413 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: pflJ784auYhFTq6NVhsHGJLxa1i6vAsC1DK7+SlJFU6UrcHsXfuBTR31wBm0l5e5je9wUBYJx+FyI9+g7fEcBg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DM6PR12MB3497 X-OriginatorOrg: Nvidia.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nvidia.com; s=n1; t=1612275230; bh=/4p0GK9ePiHxI03F8uhU6JpZwjFlX1Vxn5T9tZB6olY=; h=X-PGP-Universal:ARC-Seal:ARC-Message-Signature: ARC-Authentication-Results:From:To:CC:Subject:Thread-Topic: Thread-Index:Date:Message-ID:References:In-Reply-To: Accept-Language:Content-Language:X-MS-Has-Attach: X-MS-TNEF-Correlator:authentication-results:x-originating-ip: x-ms-publictraffictype:x-ms-office365-filtering-correlation-id: x-ms-traffictypediagnostic:x-ld-processed: x-microsoft-antispam-prvs:x-header:x-ms-oob-tlc-oobclassifiers: x-ms-exchange-senderadcheck:x-microsoft-antispam: x-microsoft-antispam-message-info:x-forefront-antispam-report: x-ms-exchange-antispam-messagedata:x-ms-exchange-transport-forked: Content-Type:Content-Transfer-Encoding:MIME-Version: X-MS-Exchange-CrossTenant-AuthAs: X-MS-Exchange-CrossTenant-AuthSource: X-MS-Exchange-CrossTenant-Network-Message-Id: X-MS-Exchange-CrossTenant-originalarrivaltime: X-MS-Exchange-CrossTenant-fromentityheader: X-MS-Exchange-CrossTenant-id:X-MS-Exchange-CrossTenant-mailboxtype: X-MS-Exchange-CrossTenant-userprincipalname: X-MS-Exchange-Transport-CrossTenantHeadersStamped:X-OriginatorOrg; b=CuVvXF6CGyalpi++0s4Lb/d9a+cX4prhNO2SLg1XcExuW8ZO0qVB1p5idotvChL85 bwjcxS7VxAM0lOwpHt1GN7O4G5bMspE6ZAlAEnp0bwkZanadBiZiGQi9oKniZl0xE0 rvOprMGEnShzjboemwBIWCMjk8jLrI7gPl0f8LlRaVeNx8Gc6K5aq4nh6yzTwZ7Ze7 ClX59m0AZHVn29AubsqA8OotNqR/Ar5NkhI5jWvNtdRc7QJwzUtGVK13f0zTBm602b 8M/qei9fI4yNZHxm7TR7x/ODIrzHoB5QhbV+mS3HKHFxuIrdeuwajHURDcH2x6iDpW Ukro+BMtOLqUw== Subject: Re: [dpdk-dev] [PATCH] net/i40e: disable AVX512 with 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" > Subject: Re: [PATCH] net/i40e: disable AVX512 with MinGW >=20 > External email: Use caution opening links or attachments >=20 >=20 > On Tue, Feb 02, 2021 at 05:06:39PM +0800, Leyi Rong wrote: > > Disable i40e AVX512 code path for Windows build regardless of CPU > > capability to avoid the MinGW build error: > > Error: invalid register for .seh_savexmm > > > > Signed-off-by: Leyi Rong > > --- > > drivers/net/i40e/meson.build | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/net/i40e/meson.build > > b/drivers/net/i40e/meson.build index f5fc5a17e..26cd201ee 100644 > > --- a/drivers/net/i40e/meson.build > > +++ b/drivers/net/i40e/meson.build > > @@ -56,6 +56,7 @@ if arch_subdir =3D=3D 'x86' > > > > if is_windows and cc.get_id() !=3D 'clang' > > i40e_avx512_cc_support =3D false > > + i40e_avx512_cpu_support =3D false > > endif > > >=20 > This fix seems to imply that there is something else wrong in the logic i= n the > build file. If the compiler does not support avx512, the fact that the CP= U > supports it should be completely irrelevant. Therefore, I think a more co= rrect > fix (logically) should be to remove the "i40e_avx512_cpu_support" > from the next "if" condition, and only check the compiler support. We don= 't > do anything with the cpu support variable. Moreover, this patch doesn't resolve the issue [1]. [1] http://mails.dpdk.org/archives/test-report/2021-February/177665.html >=20 > /Bruce