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 67053A04A5; Thu, 18 Jun 2020 14:05:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id DF9121BEE0; Thu, 18 Jun 2020 14:05:08 +0200 (CEST) Received: from mga17.intel.com (mga17.intel.com [192.55.52.151]) by dpdk.org (Postfix) with ESMTP id 845171150 for ; Thu, 18 Jun 2020 14:05:06 +0200 (CEST) IronPort-SDR: KWYGWuGDOC3NUJOBqsJXmRuZDZCgxyXaEcd+3F8gmtue7Pb3pf6mLR9lV6fmIpCzrTn9MCn9Rn TdljPYsMQniw== X-IronPort-AV: E=McAfee;i="6000,8403,9655"; a="122765897" X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="122765897" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jun 2020 05:05:05 -0700 IronPort-SDR: aAFeK5PiYltrvKzBXUPNokUZ5FdEUKCmJBGjV0p9pHfOxFUOKbVO8EhQUAe/dqH/BLMq2h/Nhr IJoKxrYlSV6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,526,1583222400"; d="scan'208";a="291746670" Received: from fmsmsx107.amr.corp.intel.com ([10.18.124.205]) by orsmga002.jf.intel.com with ESMTP; 18 Jun 2020 05:05:05 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by fmsmsx107.amr.corp.intel.com (10.18.124.205) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 05:05:05 -0700 Received: from FMSEDG002.ED.cps.intel.com (10.1.192.134) by FMSMSX152.amr.corp.intel.com (10.18.125.5) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 05:05:04 -0700 Received: from NAM12-BN8-obe.outbound.protection.outlook.com (104.47.55.173) by edgegateway.intel.com (192.55.55.69) with Microsoft SMTP Server (TLS) id 14.3.439.0; Thu, 18 Jun 2020 05:05:04 -0700 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gnQ9q/C6cQzb5ETueOcx9lQ4pzuDzUN/ZpS9cUMbB3Ag5RTgPnX/KfJ55gOaiic9gkGg1ZlrK7HSCrCwLrt1gfpoKvL/8zdeWQkN5sCNW4t5Z+9mWUsQk/dX9wb7H3AZ+VvwFliZMne/PI1JCqRJ5M2J3Y4v80Fo9yiJv9bt0cq3RmDcPXZCBIIKqLgesGzGU3ItdssgJACEhbN9xKJ1Ob/C/OVfd1tJAQmAI+N5mm62kek4MUoIdbnl9KpoT7LQWb8dThNldmC/2AofJpk+ALwqNjko1ffFH7U6wvTVDV+/wjCudKsR+4ZzhxW2xP2jbTpOObLK5aHfZDE6lOau2w== 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=j/+yLx38H7lmBHhkAkdq/r3MvjjfPGBn0K/fKkpON1Y=; b=NG2GtVW/A0Mj9mv+oebqmUiHqh3BK7Xu2jD/j8duh8DOVdqTuAAJVU7qBYsU7vyM+PA80fcjvnLaG2wpg6MSSS8VPiFQe16bjNBxMTFfT6cVRqcZ7Znbwz3uwadrdSHFm2iL+OveOINuhXL3Iwwh/lkjkzrvL353QOsHC28LLfegSJFu/BkIsdqeIXLOJlLdxCa1py5i2kFT5RQ3G8l3QlAlC3ofBDUYQDiwA5gbIvm+3fejSWg1Gv1XLK/ccOsVg5rlVtQDuWK0jvc3VmuUpEGREOnk021HPJmkVhdcJYdTvfA4em7XOqgn3ALQ6kziYZunX+ryMT9RsS4xp1WUrw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=intel.com; dmarc=pass action=none header.from=intel.com; dkim=pass header.d=intel.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.onmicrosoft.com; s=selector2-intel-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=j/+yLx38H7lmBHhkAkdq/r3MvjjfPGBn0K/fKkpON1Y=; b=xIN5za4pxbyPY8D51BAyG8hguD+D+5gtPb6cXSnZuywbNwoQRacG7cYzfNfklluhmWMCEX+TowrfKweEfH13BAmQIJjGTtUZTXGpi7m/MhuXBC0vZdOauyacZzhTVDACeQ+Pa/EJLTWMDRc5wJiIt/jad5F8vr4hCB3fFZIC8dA= Received: from BYAPR11MB3143.namprd11.prod.outlook.com (2603:10b6:a03:92::32) by BYAPR11MB3381.namprd11.prod.outlook.com (2603:10b6:a03:79::33) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3088.24; Thu, 18 Jun 2020 12:05:02 +0000 Received: from BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::9c6b:5ce:b551:8678]) by BYAPR11MB3143.namprd11.prod.outlook.com ([fe80::9c6b:5ce:b551:8678%4]) with mapi id 15.20.3088.028; Thu, 18 Jun 2020 12:05:02 +0000 From: "Van Haaren, Harry" To: "Richardson, Bruce" , "dev@dpdk.org" CC: "Yigit, Ferruh" , "thomas@monjalon.net" , "Richardson, Bruce" Thread-Topic: [dpdk-dev] [PATCH v2] build: check functionality rather than binutils version Thread-Index: AQHWRWem8tR36c0h5Um8EENqUEvh46jeRW/A Date: Thu, 18 Jun 2020 12:05:02 +0000 Message-ID: References: <20200617104012.470617-1-bruce.richardson@intel.com> <20200618115644.488930-1-bruce.richardson@intel.com> In-Reply-To: <20200618115644.488930-1-bruce.richardson@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-reaction: no-action dlp-version: 11.2.0.6 authentication-results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=intel.com; x-originating-ip: [192.198.151.183] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 6dd56c85-5a34-4961-e80a-08d8137fd4b2 x-ms-traffictypediagnostic: BYAPR11MB3381: x-ld-processed: 46c98d88-e344-4ed4-8496-4ed7712e255d,ExtAddr x-ms-exchange-transport-forked: True x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:9508; x-forefront-prvs: 0438F90F17 x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: wxOWpju2SBaSrzaIc/ipAhSswe2nT++XCgJnq5bZWVhatUR4nVOOkciRBhUHjuAmvvRNJ+BiLChj+NzPUx8GU3kpcoMroaAyLqBuffNYN2eWcIE2qPEhWWUpTgt+1lYxSn7O+3Ur4xo4NIZF2kw4WExAXOI9Mo7dB+gOs9g7vhV1SF8ALmLvl+UmwJdkeXOsgC5LQkIVnt/pwdA+TCBW/Nw8/qfe4nyMkg3zKj4+4WDk/vMpzqpAUJ5Oi/wNao1r7acI5VsGGQG3PCnEpLwrEex+9b4Grc2dm+mA6TXjTkRgDWWt6k9S99DD6r50volr4q5i8qo2lZTCN8CBH24eNbdRWtnniyxfMD+Ni6is1zPQ5NC01qF6uYqqfuIBiOoIJNXosop9MMPC+DsWYmwU9w== x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:BYAPR11MB3143.namprd11.prod.outlook.com; PTR:; CAT:NONE; SFTY:; SFS:(4636009)(396003)(376002)(346002)(366004)(39860400002)(136003)(26005)(33656002)(4326008)(316002)(2906002)(9686003)(110136005)(55016002)(478600001)(966005)(54906003)(7696005)(83380400001)(8936002)(66946007)(66476007)(186003)(52536014)(71200400001)(66446008)(66556008)(6506007)(86362001)(107886003)(76116006)(53546011)(5660300002)(64756008); DIR:OUT; SFP:1102; x-ms-exchange-antispam-messagedata: X6DVTTof84FrAvkOH/rDPeyVnXph/g01Q/dKkbhT6M2Y2mAENiAy18G/MvhAFs422lvUz/FTcW0KMrUEIw++G92KaNwqVGPDOnEaMsauPVWALY+vg7br42gUiO3bgARtdfSoOyiEDjNCT25cmOUZejY3OZB5S5qKLAxaDp9Gfjl8RKnvEkWEd0IucHxme3PmYAWLhAiQNUWtTd3soEx7tWlNoLLGgKn8lvtezZcNNjWAp5sHEisSZlnXjQ3d0s1JsC5E8jPLzYXICFeGRm7wMugAijl2mOCvPMAu+t581c7gVKHpyH1ClxZkBwOHbJCk1ajrG2i7uZkkDw71QLjfuGWXcWtfLmh8uGXjzMEIT/+1bV9laqm8vJlyP7s+MBOk0BM17Gz/I6wWAIgl5jhlIRuqUdqjiPDHKIcDYyZoWGS4iwAbRMti6iFsx6Tt3gBYpHB/5Z/L7Z8Fq5+NOtSPDIuzXZCarWQxwrwOlITvRniZzQ66xOPcimRnLx25x3xa Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: 6dd56c85-5a34-4961-e80a-08d8137fd4b2 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Jun 2020 12:05:02.1764 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 46c98d88-e344-4ed4-8496-4ed7712e255d X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: nQDifKF/MLj6mazGa6Kvnr0DPWlvvB/k8aNzQw87RORn5kWRbZe7xGr0TNRMLCU5ekw/hsO8sfSTzY9Ni7ZqAYKdT35ljLGDVg6L+R7+Sag= X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR11MB3381 X-OriginatorOrg: intel.com Subject: Re: [dpdk-dev] [PATCH v2] build: check functionality rather than binutils version 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" > -----Original Message----- > From: dev On Behalf Of Bruce Richardson > Sent: Thursday, June 18, 2020 12:57 PM > To: dev@dpdk.org > Cc: Yigit, Ferruh ; thomas@monjalon.net; Richards= on, > Bruce > Subject: [dpdk-dev] [PATCH v2] build: check functionality rather than bin= utils > version >=20 > Rather than checking the binutils version number, which can lead to > unnecessary disabling of AVX512 if fixes have been backported to distro > versions, we can instead check the output of "as" from binutils to see if > it is correct. >=20 > The check in the script uses the minimal assembly reproduction code poste= d > to the public bug tracker for gcc/binutils for those issues [1]. If the > binutils bug is present, the instruction parameters - specifically the > displacement parameter - will be different in the disassembled output > compared to the input. Therefore the check involves assembling a single > instruction and disassembling it again, checking that the two match. >=20 > [1] https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D90028 >=20 > Signed-off-by: Bruce Richardson Tested on binutils 2.30 without backported fixes, can confirm that __AVX512= F__ define is not present at meson configure time. Tested-by: Harry van Haaren