From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-VE1-obe.outbound.protection.outlook.com (mail-eopbgr50057.outbound.protection.outlook.com [40.107.5.57]) by dpdk.org (Postfix) with ESMTP id CE4BE1B11C; Tue, 23 Oct 2018 23:23:29 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BuTdJtEv+7E8ICtjc44os6iQ2F4T3bdgwy7gydy3rn4=; b=qYtbRO8xr6R0ngQorGNk4nOorOT4jRL2uMrCeMEi/95b4GaLSTQaFkefMpKZ4ueIVGmFbp7W2HHqOv3UFRgOGAsFoPv8oW/WThf1rSzCJZMxjZ7pbBQHWkWmWVcUgw+Mg0ieqnpjZu1GyP83SZy5kE5cTByQRGp4qg+4ZSHrdg4= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB4025.eurprd05.prod.outlook.com (52.134.68.25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1250.30; Tue, 23 Oct 2018 21:23:28 +0000 Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::f8a1:fcab:94f0:97cc]) by DB3PR0502MB3980.eurprd05.prod.outlook.com ([fe80::f8a1:fcab:94f0:97cc%4]) with mapi id 15.20.1250.028; Tue, 23 Oct 2018 21:23:28 +0000 From: Yongseok Koh To: Thomas Monjalon , "bruce.richardson@intel.com" CC: "dev@dpdk.org" , Shahaf Shuler , Yongseok Koh , "stable@dpdk.org" Thread-Topic: [PATCH] build: disable compiler AVX512F support Thread-Index: AQHUaxajIqJF1GRaIEuSbF5cO+4UKw== Date: Tue, 23 Oct 2018 21:23:28 +0000 Message-ID: <20181023212318.43082-1-yskoh@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR02CA0066.namprd02.prod.outlook.com (2603:10b6:a03:54::43) To DB3PR0502MB3980.eurprd05.prod.outlook.com (2603:10a6:8:10::27) authentication-results: spf=none (sender IP is ) smtp.mailfrom=yskoh@mellanox.com; x-ms-exchange-messagesentrepresentingtype: 1 x-originating-ip: [209.116.155.178] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; DB3PR0502MB4025; 6:U6/BhmxwcYyPWTpLOiAd8aeYteuJFg80aA5YPLrlx72U7FC9NLEp3ptLSUNYsh27dqm+HSiej80hPnunsoaKWYucfTqvDrwxZeDoSjkYns+24XXdxPlJBLCTv0ts/X5cdhy15IYuYtLoyBabE5KGfTkVYgaOoY3cvGItS7X48iaR9dSCm4wZa3OBj667/2/M6NYxKZq5qY+fImxO+lhJaZjYW7AIx/aSQS7Vbo/Dh3ODbzWwIjkWALLJ7LqB+pOj91i5ryZ2VQ3/2swPBE0N1oQ9fOj8K4S2luetmyNXsc4rVeYErn2GSZy7o7FNVVHxP8o4D3OHOLWfa/A0Pa6JvG8ZneccUWXtCDzQvremiRdfaQAM/A4MtZQqO08G8rXNOjnd0ySeZUtRqoZ3Y9P5X3WSrEj4HhMtAqaOk3p3Y/HuaOoPLc/P+mblwEEepbG0avoZmf2f6ix/CdlD24L4yQ==; 5:h7lc7xYyyrNA+No9Muo1OQRAlAdfTjIPzyK3tSfxJP+z4G4+DV1LrQso/QcpkrE0SvpNvDZ4rNVE1SInumZB4XE5aXh8PJjp7ZHMkxO+l/e2/HbZ/bFY05yxv+aT9eeK0Lnz268KfqA2goHgUrVYaM6ZRvL0ijJKRScT4HzD13U=; 7:r6cscNDl/XkJlKFV18+BobQw2Do+Fm5v4Z5JwUcQT6PfxZeynvr80LAgerQIFhSkSIL6tcUtYUQBxGjG7mYXhA+CY07LpJYR4kbo3q5Afdg747zeIDPynK5JBKsoOXzyVb36J581miEs4PnuNRmwYQsXK/wd0wmz0vhnY4MskdP105+xVUSD57014I+gvmG50PIQFvOBEcewaX8IsMtBdfQyppcA7y+gPEHecWgBQMuRAkNR4S84N5Mh474iITDe x-ms-office365-filtering-correlation-id: b2d606ea-45ca-4989-eeef-08d6392dc600 x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(4534185)(4627221)(201703031133081)(201702281549075)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB3PR0502MB4025; x-ms-traffictypediagnostic: DB3PR0502MB4025: x-ld-processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:; x-ms-exchange-senderadcheck: 1 x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(93006095)(93001095)(10201501046)(3231355)(944501410)(52105095)(3002001)(6055026)(148016)(149066)(150057)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699051)(76991095); SRVR:DB3PR0502MB4025; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB4025; x-forefront-prvs: 0834BAF534 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(346002)(376002)(39860400002)(396003)(366004)(136003)(199004)(189003)(256004)(6116002)(3846002)(14454004)(71200400001)(316002)(478600001)(2906002)(71190400001)(5250100002)(2501003)(106356001)(1076002)(105586002)(66066001)(99286004)(6436002)(6512007)(575784001)(68736007)(102836004)(476003)(97736004)(36756003)(2900100001)(386003)(2616005)(6486002)(186003)(5660300001)(26005)(486006)(81156014)(81166006)(110136005)(8676002)(54906003)(8936002)(305945005)(52116002)(7736002)(25786009)(53936002)(4326008)(6506007)(86362001)(1857600001); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4025; H:DB3PR0502MB3980.eurprd05.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: fIxOLu1eiuVV6CTFWDnx+WXJ2r0QnYAavr/rU2oCSt1AWi3wvhVak//zav99bnzr9ea5Pp83useVO4m679mOX6ngtjZ9iW0rkFbORvd8WZdw+k5xVR81nqJkD3JiwR/jOsQstqUuZke5PFeGcyZkjhnP55RG1ZAXFx7TLm+Pft9l8vZI0fNl09bm4xx/mfgTP6l7DC4ECMVFwRuBXJpop9sFkL1m3rRJVo1+LKQ61tWuppryVqAS7iTPilnllpasI3HvYR5YtSW/V/Pbo3+Gliti5cKFPlMHuLGAIV6OPjrkEYEbX1DbWAX+T1cQO8tpXCHduvmvv1myEk/DJQuFNs57tPi0VbjR43Z6wZEM1cI= spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-Network-Message-Id: b2d606ea-45ca-4989-eeef-08d6392dc600 X-MS-Exchange-CrossTenant-originalarrivaltime: 23 Oct 2018 21:23:28.4860 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4025 Subject: [dpdk-stable] [PATCH] build: disable compiler AVX512F support X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Oct 2018 21:23:30 -0000 This is a workaround to prevent a crash, which might be caused by optimization of newer gcc (7.3.0) on Intel Skylake. Bugzilla ID: 97 Cc: stable@dpdk.org Signed-off-by: Yongseok Koh --- config/x86/meson.build | 5 +++++ mk/rte.cpuflags.mk | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/config/x86/meson.build b/config/x86/meson.build index 33efb5e547..e10ba872ac 100644 --- a/config/x86/meson.build +++ b/config/x86/meson.build @@ -47,6 +47,11 @@ endif if cc.get_define('__AVX512F__', args: march_opt) !=3D '' dpdk_conf.set('RTE_MACHINE_CPUFLAG_AVX512F', 1) compile_time_cpuflags +=3D ['RTE_CPUFLAG_AVX512F'] +else +# disable compiler's AVX512F support as a workaround for Bug 97 + if cc.has_argument('-mavx512f') + machine_args +=3D '-mno-avx512f' + endif endif =20 dpdk_conf.set('RTE_CACHE_LINE_SIZE', 64) diff --git a/mk/rte.cpuflags.mk b/mk/rte.cpuflags.mk index 43ed84155b..8fdb0cc2c3 100644 --- a/mk/rte.cpuflags.mk +++ b/mk/rte.cpuflags.mk @@ -68,6 +68,11 @@ endif ifneq ($(filter $(AUTO_CPUFLAGS),__AVX512F__),) ifeq ($(CONFIG_RTE_ENABLE_AVX512),y) CPUFLAGS +=3D AVX512F +else +# disable compiler's AVX512F support as a workaround for Bug 97 +ifeq ($(shell $(CC) --target-help | grep -q mavx512f && echo 1), 1) +MACHINE_CFLAGS +=3D -mno-avx512f +endif endif endif =20 --=20 2.11.0