From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0060.outbound.protection.outlook.com [104.47.0.60]) by dpdk.org (Postfix) with ESMTP id 263581B647 for ; Tue, 5 Jun 2018 08:35:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=1n9qYYPAu6BEBqxIUHzd9f0SvxM7I6uTs0X/7wF2pX0=; b=Gv6/DFA6e+evvTg85u2Ug46sO4wxNS0M75kV0T0/FFS0VujDIiqKk06nLSldfxew2SkxY/0ZA+sDkT8L2JvgCBxJN9KYPe5WzlOH9F8XarHlgg9/tCJamTIKCQUybpFp00ZbTnNDJfj54YOfAKh2clPGMm1tn0jtg8Gc2mXPKSw= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.820.15; Tue, 5 Jun 2018 06:35:08 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: Sachin Saxena Date: Tue, 5 Jun 2018 12:03:45 +0530 Message-Id: <1528180425-27937-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: SG2PR06CA0158.apcprd06.prod.outlook.com (2603:1096:1:1e::12) To AM2PR04MB0753.eurprd04.prod.outlook.com (2a01:111:e400:8411::13) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0753; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 3:3gR5/waqzYjdBpMFLjXtkTKkCSrXIt7T6nJthjZMDfCurIIr9/WO7+7fudepXD2uQktyVv2vU2rrj2Tx86tpaiiitwOYS8nXPq9F5lSrqriHIvjZ/16PEQ6HIEgmM0aHB54fnC4JcUL27goBwAGW7hnvfso/j+72zDWreaF7mVOmze+QwnRjnsTlYgAY3/VRdf7StuARa6vRVaXnxk1XHRKCmXLGsLrm0nnQacbe9ekv/NRRliNMI1AKmugDz+1L; 25:LxbuP0axkQhlx/R7RL8iCEVmRg5AgHwyczxq4yAsNuNu5gSpIv16CmBIHbDcgtCLGiH7bIS2dFk5e8UsdsVH7khDV1QBX+KIqGe36bYWKjFq2Pv48EOKvtXTN5IDJvBATplgybJpfKmQIkMEIXCNs2EPeTngyFQXjwkX9xOYTace2i4hkTj2IfuFIDI57koacvfGqqO6Aw/O2wYyJOUNtmtMcUpB/+ZmmQH7LDSWcrkpgg0w4cvLc7zRjUpduYN4cRxuL3IylLcCJiQtLns/YEQtjULkrFnKCGZZHXGcoEYT8lLxl1+fM6K7emTgCm8nf2twgoY0G2DxGTtoltNL/A==; 31:a7PDq8iAOGSgPr0L341gXKmaDaCG5SqGb//N1yvy6a5B9Hygj2p2xANSSuTNBDnlHm9h1Hek7qKQrW3v8d2DDJ2cgghbydLPVB4E/5368Ed5i0R4DFHZjquCcKK3+KYMnecwGcLT80Ty5Qk5XIF978oIoHbS5VXNR6MiFxe9Mzjmh+IsWUtNrMchC6sehTYpaBJNB4XqBoimyUlnfqbLx5fvxXKVcCGYRXS37pluC8c= X-MS-TrafficTypeDiagnostic: AM2PR04MB0753: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 20:+/aUbX1gzRyYwz6BNb8M9bYg/tWoCLpqB5HGs1e1PdfdqYTX0S7k2GOpwLUUhZaAFxbeqUrfLwpF+hp+5fkBkflsaq4vbOmKAqHoNiTZ80ATbByL8fenY4UL7rm+26c2UUjOpu/GTBox4KJCgWx3AF04t105I6pgO5gRtXc0LZvfuAdbbAVlD5rNqDtBMmUvZeZ5/vev2Kv+4Twrl6oeVIEd/Jk7GNJn3Q7SsiF6HzldLnNVLEy2dEv87mQKzut0n3CkC1voC7g+XkImeyq/Y9NFG/FkKEkp3CE4MYQUY+anUhkpNoq3hT68+xPwmkIiYO8O07nlnwFueD4bJ7Gtfw8gIXxo2iXwD+aXOnROrHOuur9Qujv0+9rKeiq9O2KXqqqoMnriKuTSnlC2T8ka5VTEUFELV1PD+ryHMmYG3fNc3CPHuCtmGA9nSdgrvQEFPIgI8tolp7a2tX5+tGXljqrqNoUbZns9Abjiarr5gQvQgD96VX4SThYb5ktir0rN; 4:FEhHVsF3Dzs4MeMgLwo+XDDg8zC4Mi9z/d5dX+5G2mT/+iU104hSl2joWjN9L6VuW15cse2yGZ0YKZE154EpmUBnpDbZCTls3x8Rhl0Cy7M2/wakoMZYOE5gTWdbDkjkpJhbtoNjZtEnWWBNZDjm3ACTgwJ8/Piiyzfd6IFod5ccMXo+P6jPay06bE9SEMbKGX9oKY4kgeSSWc6CkPqCxeQCf63jgrR3oyzKzKkkQb7Hqx1DnkAd/gyMVUQNrViYfSKfbgAZa680dYXFn2ossYQP/Y+nzLXUkzKa8oQ5NZli+7zTE+r43iDx6GKlI0yb X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(10201501046)(93006095)(93001095)(3002001)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123562045)(20161123558120)(20161123564045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0753; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0753; X-Forefront-PRVS: 0694C54398 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(39380400002)(366004)(346002)(376002)(39860400002)(189003)(199004)(2616005)(6116002)(3846002)(48376002)(50466002)(68736007)(5009440100003)(44832011)(97736004)(36756003)(478600001)(6486002)(81166006)(81156014)(66066001)(305945005)(5660300001)(7736002)(8676002)(1857600001)(47776003)(86362001)(6666003)(6916009)(8936002)(52116002)(51416003)(26005)(4326008)(50226002)(186003)(16526019)(16586007)(106356001)(53936002)(316002)(105586002)(6512007)(476003)(486006)(956004)(25786009)(6506007)(386003)(55236004)(2361001)(2351001)(2906002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0753; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0753; 23:edESkKS1XN1VJuqCIqLdijJcmx8UGb+6EJ4YG4pDT?= =?us-ascii?Q?As3jM0U64Utxt3xv80uiVq11OqouipuTx9cuKCXOkOkf0QhYmHbst8tKtYRe?= =?us-ascii?Q?H3FF/0gagFBAtf7VYgNgwZgS1kekt+q01IBQ2KN0Baw8YrEIbzweJfvh3U/N?= =?us-ascii?Q?EtwAioGGQoEnQIiTmGZcaiGqS9n0vsBS79IUKCCjJdGTUOqDZgn6rATPF8jy?= =?us-ascii?Q?QDhMd3yJ0zDAGgwM8gCLyfO6QJ0G28q0Ch075sbANTQEUAFQvG6PEQfqCPed?= =?us-ascii?Q?XOpCEoOF9ZTL5agH2YE4eM7ccQDf6/rEeP7lrfj94YRGVpy4P9OY2T7rItxf?= =?us-ascii?Q?rdQhxTbacSWG/n/aoq9KFgCuoMD/xyhfe3Ty++KaCLHVXHMPg/1lLY9a93Pj?= =?us-ascii?Q?fa88DmVHm9OsL+gtcson0Ss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?B?dz09?= X-Microsoft-Antispam-Message-Info: B9AX0C2KVxj9J+dp5VZc4t5DZoUgiZgadyKTduMogIcagKHQMhThL60gu+HHv18Cma8o3+Hov4ub2d4rwqWHo+QBz9kLSUqJTD4mw+bIHDgeqV8poh4TOKaZa6X9YBPQcaJos+Sx59N3Uc7N4XNFFgRTfII5OCwLPiM4koaZsJwdA/yItOJ8Ch7GMqABk0tF X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 6:9SFCODCYIH3lbQBTeYejxK9ViNAVUIv9J/FvOyNPxAwL2sngmXrH2ppFt0wIaPxfwaXqN8hcSe4LfhVwNLKKTKyXvD8Msqw1ugdKOBaGCj4zIvuFuxvsCFmUIpRAMEm0g2M2Sv8Lq1sc2YJVKdhvP8wiPsLHEsVUF0DEFTOgtQ++Pt93KlI1jMHhP3p6ecrr5T/eJj6uBcTjtsaBxnRF5+8sxgElCeckt+a/OcrTVnCqIdUKZhU7e7bCvDGPu6IUIr3ZJ4X6/2BK5gR5atzNNIvhakfdTDfDDVJz/XJiJvFzKZkHakiY15qkCuY1/oUTwMCSPr4XNUSIMr3RSaDKHVxRT1JKZg7h2MngNKcMsDOSNoNFGfjrjo+u+KtzKX9U2zcSM6PtYby662XLiirwUJHYKKp4R9MYeBvxBwKpNzXTELL3+1NvWkJDQ1gJ4asmUTan2qfAfipLNIhZLnhqag==; 5:2us6AWOJ9uXMXtaodt8ljQN8BM97kzemVfsX/F6FPUXyz85EocWw9luTA7VfBPo5+o0+JOnrlLn2PQolIa+k2uWzdILMQnZHetN1coCDbEM9TCehhfwZAdqz2T/eYG9V3C9PtfKeGqquFo33nY7R8P/LnB0EVTggon3MOgMt5Oo=; 24:0qvRxwR6x2xQoly/whjEnm4FolLmlF744iFCiN6TYb8jw2aT6FjulZ2Hpo75maWacAChB41d+enuamC1nfd1MTh7lBzx0KOEiLCevnAjwi0= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0753; 7:xCda3z9mXDx+O8FeZALkS5zb0lGSU0dl7e0K8GyBkKkwb3jmhSXieFVE7OSYnc1Ag7rY7ppqzUru1uHVHiFeR/MvxfjA2ksP1HF3i/wxQwwQEPiDzUMre3LUnz/lKRy5YqxKf9pN13WPzlMrLrCGrqA5fhSUkUEf90YYfOyVVnM/lq7C9xvGn0Cwu36FlizdTp5VJp/XQ5QAmMgf6EqvSsSiqQsUBuYmG+WkDbCaKCiV55TlXHbB1ez9Sf3SQxRH X-MS-Office365-Filtering-Correlation-Id: 856dbabb-e289-4a5c-1a94-08d5caae7bd8 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Jun 2018 06:35:08.3595 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 856dbabb-e289-4a5c-1a94-08d5caae7bd8 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0753 Subject: [dpdk-dev] [PATCH] mk: change TLS model for ARMv8 and DPAA machine 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: Tue, 05 Jun 2018 06:35:11 -0000 From: Sachin Saxena Random corruptions observed on ARM platfoms with using the dpdk library in shared mode with VPP software (plugin). sing traditional TLS scheme resolved the issue. Tested with VPP with DPDK as a plugin. Signed-off-by: Sachin Saxena --- mk/machine/armv8a/rte.vars.mk | 3 +++ mk/machine/dpaa/rte.vars.mk | 3 +++ mk/machine/dpaa2/rte.vars.mk | 3 +++ 3 files changed, 9 insertions(+) diff --git a/mk/machine/armv8a/rte.vars.mk b/mk/machine/armv8a/rte.vars.mk index 8252efb..6897cd6 100644 --- a/mk/machine/armv8a/rte.vars.mk +++ b/mk/machine/armv8a/rte.vars.mk @@ -29,3 +29,6 @@ # CPU_ASFLAGS = MACHINE_CFLAGS += -march=armv8-a+crc+crypto + +# To avoid TLS corruption issue. +MACHINE_CFLAGS += -mtls-dialect=trad diff --git a/mk/machine/dpaa/rte.vars.mk b/mk/machine/dpaa/rte.vars.mk index bddcb80..75df626 100644 --- a/mk/machine/dpaa/rte.vars.mk +++ b/mk/machine/dpaa/rte.vars.mk @@ -32,3 +32,6 @@ MACHINE_CFLAGS += -march=armv8-a+crc ifdef CONFIG_RTE_ARCH_ARM_TUNE MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%) endif + +# To avoid TLS corruption issue. +MACHINE_CFLAGS += -mtls-dialect=trad diff --git a/mk/machine/dpaa2/rte.vars.mk b/mk/machine/dpaa2/rte.vars.mk index 2fd2eac..aaa03c4 100644 --- a/mk/machine/dpaa2/rte.vars.mk +++ b/mk/machine/dpaa2/rte.vars.mk @@ -32,3 +32,6 @@ MACHINE_CFLAGS += -march=armv8-a+crc ifdef CONFIG_RTE_ARCH_ARM_TUNE MACHINE_CFLAGS += -mtune=$(CONFIG_RTE_ARCH_ARM_TUNE:"%"=%) endif + +# To avoid TLS corruption issue. +MACHINE_CFLAGS += -mtls-dialect=trad -- 2.7.4