From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80084.outbound.protection.outlook.com [40.107.8.84]) by dpdk.org (Postfix) with ESMTP id 96F906C9B; Fri, 2 Nov 2018 22:04:09 +0100 (CET) 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=gnJpEXd6LLnyfPE4MLU1kSlZR7JP3KsGxUgkcJxC7+U=; b=Uc9Vmdi8XG1Avm2UfldGUlsB+txkOKLJlfa8o5W2DY1L7DeDF79DFvV4bGtw8vIzEIB1ZYSyLm+XAXCIBvOGKkA/OuYq/c/n0RwlBs4u8HbiEaYHoOZfYHuhfA/aA0DNOjgMvSJP75uqlMSiB+rbEvdVgnWxDbnRbUUF0IMf7OM= Received: from DB3PR0502MB3980.eurprd05.prod.outlook.com (52.134.72.27) by DB3PR0502MB4092.eurprd05.prod.outlook.com (52.134.73.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1294.26; Fri, 2 Nov 2018 21:04:05 +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.1273.030; Fri, 2 Nov 2018 21:04:05 +0000 From: Yongseok Koh To: Thomas Monjalon , "bruce.richardson@intel.com" , "ferruh.yigit@intel.com" CC: "dev@dpdk.org" , Shahaf Shuler , "konstantin.ananyev@intel.com" , "anatoly.burakov@intel.com" , Yongseok Koh , "stable@dpdk.org" Thread-Topic: [PATCH v2] build: disable compiler AVX512F support Thread-Index: AQHUcu+WK09O3nLQfUKZoE958YxG+Q== Date: Fri, 2 Nov 2018 21:04:05 +0000 Message-ID: <20181102210348.28148-1-yskoh@mellanox.com> References: <20181023212318.43082-1-yskoh@mellanox.com> In-Reply-To: <20181023212318.43082-1-yskoh@mellanox.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR05CA0061.namprd05.prod.outlook.com (2603:10b6:a03:74::38) 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; DB3PR0502MB4092; 6:IA+lPVjaewmCSCkcuRZkX48EtATzkpjmIlbwdFS/zlwdeWgJ/8QOaC9aryBHP2mkCHTVl29M996qUsTkw+hcaDKLf9TLtKgVygF6zj4seExVcg0YozBTcLbp839oaSIKJAwjcO5ZF1pD9HDs8tbUN6pJ/pjf1sRSkAIYqE6O3VTpc5MN80rpmFFteH7SUGyA59ybPis8/X/PLzZapMTdPQN0axp27+KqWqryTccCeAzoXgdutfsvsytcLPUu6dWpt/E730RlS8hZFRVJF5NKcU2g/G1mSlY5vphp/4VXtdcvgNdlLYhOyN45aaSNNXbnr7rPOWCRTzJ/xvZmlbVy4lwTHaqwn45t9N2CqhKRjsWprRwakVinT1OWbQqVeMLogsrupSnh0xj/gyjxki6tGR14+HsI01mZJFYJZ23P21dh/f1CMdud/NvX5SW6jKMk1STvBfqoKoC+PygxUvjExQ==; 5:CTeT3OmeabG3sXMp8/rT2t5L9eRPV2V0E+ZrjwoeHVZ6XdEXB6TBkilBO5qHiVlA6a8oX55R6CR0s3OEJtqfY2n+gvOw7b1skFCMdPdSZddW/beUY0YeXLzqDDsFm0UQaR5WU+dDcoZzkYPCof/ixvzOrhN8mF2WZ+2KUGmZXb8=; 7:1+rkL1TxluYjdlkMKHkRagVCLJiXbub9rgPiKCbo/jki6qSlZOi0zVrfnai3HEwhWbMiJv+Trgq8cBUecs3Vq22HgasahWQQnynPje2iungQstA8YzzG5JT1f9GfQYp+kjKXxRzhM21WRJXx0WuZfg== x-ms-office365-filtering-correlation-id: 901755b4-f30f-4634-95d9-08d64106b92b x-ms-office365-filtering-ht: Tenant x-microsoft-antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989299)(5600074)(711020)(4618075)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:DB3PR0502MB4092; x-ms-traffictypediagnostic: DB3PR0502MB4092: 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)(3231382)(944501410)(52105095)(3002001)(10201501046)(93006095)(93001095)(6055026)(148016)(149066)(150057)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123560045)(20161123564045)(20161123558120)(201708071742011)(7699051)(76991095); SRVR:DB3PR0502MB4092; BCL:0; PCL:0; RULEID:; SRVR:DB3PR0502MB4092; x-forefront-prvs: 08444C7C87 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39860400002)(376002)(136003)(346002)(199004)(189003)(36756003)(102836004)(26005)(6506007)(6486002)(386003)(52116002)(4326008)(76176011)(1076002)(6116002)(3846002)(86362001)(575784001)(2900100001)(68736007)(2201001)(105586002)(106356001)(99286004)(2906002)(446003)(81156014)(186003)(81166006)(486006)(66066001)(11346002)(25786009)(256004)(2616005)(8676002)(478600001)(71200400001)(71190400001)(8936002)(97736004)(316002)(6436002)(2501003)(14454004)(53936002)(7736002)(305945005)(476003)(110136005)(54906003)(5660300001)(6512007); DIR:OUT; SFP:1101; SCL:1; SRVR:DB3PR0502MB4092; 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: zMmG1RewDdf/iZ843z3yTpuv4HWr5/l75yuT2ktE059a5UysOCTcSwOy9tQAmIaQZGM+FUu/+IyAsTDRXpqM0kwlDbwgl80Z2YHmI4KKCzGUXzR4KwiBMIYdHgwek3GoydhAY3hr8SHxYXCD3IxZGUW6pZYTNoZWp1ZmrJcX1J49Jl+i50f4PPQQC9/SU8W50LNuTIJfBeUlAKeYuhc+nb6hea//6092LgZZ6/6lfnXujgW3wrJOBMzW96OoNwXOC9NP0Nc1qHYOUY0SB8Frnu9kRyQU2giNYMDOHs0VZz681nPG+4b8Qyl+mfSsKXLiAozCQKIv/ZERDuL9odK8ojXlJkxRs2e7wYVpkbgydIU= 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: 901755b4-f30f-4634-95d9-08d64106b92b X-MS-Exchange-CrossTenant-originalarrivaltime: 02 Nov 2018 21:04:05.5186 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR0502MB4092 Subject: [dpdk-dev] [PATCH v2] build: disable compiler AVX512F support 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: , X-List-Received-Date: Fri, 02 Nov 2018 21:04:09 -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 --- v2: * disable the flag only in case of gcc config/x86/meson.build | 5 +++++ mk/rte.cpuflags.mk | 7 +++++++ 2 files changed, 12 insertions(+) diff --git a/config/x86/meson.build b/config/x86/meson.build index 33efb5e547..8ddca0ea9f 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 AVX512F support of gcc as a workaround for Bug 97 + if cc.get_id() =3D=3D 'gcc' and 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..a8c26fb011 100644 --- a/mk/rte.cpuflags.mk +++ b/mk/rte.cpuflags.mk @@ -68,6 +68,13 @@ endif ifneq ($(filter $(AUTO_CPUFLAGS),__AVX512F__),) ifeq ($(CONFIG_RTE_ENABLE_AVX512),y) CPUFLAGS +=3D AVX512F +else +# disable AVX512F support of gcc as a workaround for Bug 97 +ifeq ($(CONFIG_RTE_TOOLCHAIN_GCC),y) + ifeq ($(shell $(CC) --target-help | grep -q mavx512f && echo 1), 1) + MACHINE_CFLAGS +=3D -mno-avx512f + endif +endif endif endif =20 --=20 2.11.0