From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0078.outbound.protection.outlook.com [104.47.33.78]) by dpdk.org (Postfix) with ESMTP id 7CB8C7EF0 for ; Wed, 9 May 2018 03:53:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=ozByLZTL1NKM0pmCk+weLGM+l0d6UtKC6qnZcJgCC9U=; b=g4oPhi1cx7sitGJqp+deChB5+hijYGkih8qNlfnBOq7u5xyuAA9is9k/qkkWdQpKtfePDoHdCq5nRaXH6nm+GKXbnwSYtypYMQgkk+DrSjsZJW+6RBFNIMpeGUg2qhlYjjzJzrNsWNvqMEth4X8F0rJUqHTqLM4iMsFqplDgDMU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (12.108.191.226) by SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.735.18; Wed, 9 May 2018 01:53:16 +0000 Date: Wed, 9 May 2018 07:23:08 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, arybchenko@solarflare.com, dev@dpdk.org Message-ID: <20180509015306.GA27146@jerin> References: <20180508212600.26954-1-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180508212600.26954-1-pbhagavatula@caviumnetworks.com> User-Agent: Mutt/1.9.5 (2018-04-13) X-Originating-IP: [12.108.191.226] X-ClientProxiedBy: BYAPR02CA0031.namprd02.prod.outlook.com (2603:10b6:a02:ee::44) To SN2PR07MB2526.namprd07.prod.outlook.com (2603:10b6:804:6::26) X-MS-PublicTrafficType: Email X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:6SzAZNc63t4Vg5MfCMbkJ2NDPWVfRA+QsU/S14Udmay5TiWY5UEqnsN17fbgNt9FIMgP0ZQBfTTgYiPsr4iEpryew+AiuvxXegB+BlWH8v02ZIWDpul5QaXimZDTwW3eB4FlYpvEcGT9Fnl37SuyYD0FoUw5mrCqY+LC5yWwH6UUzQNHMGRQQn7hoFOg6qG9Pc6quR2H3otk8uJHB+r0i1/ibpYcig3VZlJMW44zoIqiXx6ppypjxzUaXTdx14y9; 25:ZM3Q+G6fiSwuuIg3u9Tx0locmvG5543N/u2ADZU1HqON+88GjSUts/gjGYx3dg901YK8xhGZtQi2uEP9E3Pk+W4d9hMCuZI/kyAXLZFAx9QFjpcP6HdQxHDcBPiqNFA8Fvpvy/e+NthLzr2HRY2jMHQz2ggsYCQsyBbtf75VvJoskNW15aB4BzpHJfdrw33FfZLDR94K8ohKIvpWI8LB9FrpzjpaaD5ldlzFnuUGEgjyrBNjtS1GLUYYIJ1lm7iVscdABfWvrU3Jb91xgu3vr5RQZiB+0oWZV0OufGhrfVi6zybMgFKzCQGgtsly1yKseWVwMcrfgb5ueb4ZPAhozg==; 31:mI4WF5fIp+oDVQcrUP1tMm2ybG2qRCAn//Xu3h1RlCkkn/MiLJKeJxdTp+9Azh96bPMMAvS2lhDtFSzXhILGRxvFJrwm1qPijz8DgV9sZpVE3BHkoGdNVHYVgsZWHjGShTxlIp0vlMBfzxJUzQYfigRZLJUuvxfa0heflu8IkkQn1BAJUN8qrJGiIvPU2Oysn14xDK1vhysrPmXB8Nk8Zv260Hzm/aZmcxUXUp5gEkk= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:3oVecIKlAI0YljbeF+bdJvcmaAs6xefeC6FsXHVPfM1Wsgq8gZlFu4r67Gmv+Hrg8xb/mxMVlO0rzwptPUOHG6cSEGy9s6ZWGtV5ymrOVNqs5i3+dSUTpPzyL6PptFneCtCjKRDTz7UsrkBarV5TLsFbWUjt26yWBS5KJenyDIlWXHK52t+aD83niv618U2B9Hj9ZEBOYaEYdxlxueSMHMkEWhG1yxYsLm6HsUzlWcGKj3U6Bbub6wqCD6ohIcypYSVf1EF/flm8XMmUlzjdDMWJDnkM/YsNzg1UwAL5P5VAcSOd4woJzSpaSj9booKf71RHPCsqW9xF3ysAyMhuBAFQgdgMf+ZAMdgRNd/eLgVBUBI7S/M+NIooiDM+zxqzTkRgVh1rjKk5A3/DrRXn4PRqZ4eRMV079boMy1WEeBpYN9KZVf17VOhVdLjyaxKYqEQnkjzC01VOxKi+Ggwq0lAqYKyGtfreC5W+Vm68Ln4nIbE3iE2ZUcgsLrG1RStTCbpCFRTztRbDcM3mNQ7XymtCcC5usk5oLneFhs7MqOSPuJ9qu7ELIxE+LOaQ1NLj9IsZkNsVXN9ER3XeHPgIr6wBvekKZDF7c5tfEls8fHo=; 4:95NuzYDk6Dj5+v7pkZEuiXWa4abqEk9T0isdf50yGI1r4SLaCq4HDnLEoFMI0JnvXM0G6pDC9Rg3CS0dcVl5Jj3lvAKm7V0Pyzu0b/jWpBsvK4hyyEJvZegHozjAzL6Ba447oj8AVJN+dcZXaOVk6xP4jPzTCOgrIvy5WWRo2AOlWZ8smuydseMOJSGnRijqnfALgjl/lABSaeCcCcz/hGdwGgOTxTwl+USjfR4nS6qDO0bUkSeoMHO8xJVfkZFR1F8aIF4rNMW1z4LKJ14o+A== 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)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2526; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(346002)(366004)(39380400002)(39860400002)(396003)(13464003)(189003)(199004)(6636002)(8676002)(6666003)(6116002)(105586002)(106356001)(3846002)(9686003)(25786009)(6862004)(6246003)(55016002)(4326008)(53936002)(50466002)(72206003)(81166006)(1076002)(81156014)(23726003)(305945005)(7736002)(16526019)(229853002)(386003)(26005)(478600001)(59450400001)(8936002)(33656002)(33716001)(42882007)(33896004)(6496006)(52116002)(76176011)(956004)(66066001)(316002)(47776003)(476003)(11346002)(446003)(97736004)(486006)(44832011)(5660300001)(58126008)(68736007)(2906002)(16586007)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2526; 23:DlPYl/k0HS4PlVq9nCCIJaHa/0SewwvP2q0D0sWY7?= =?us-ascii?Q?qzcCNu/2COzIeSPk5dCuhsTCHr5/H+Ce7UuJeMm1SHdCX8obj6cM1lXQWAZH?= =?us-ascii?Q?T3zhb08lna+pvU9PYkYwBfTjPT7YmtQqA5XF9wPWpMUP9xeC0Osw6D068sUy?= =?us-ascii?Q?r/FOIuyg6fSImgEZtySEH7mZawCy2yLa7cFwzQvtt/SdotXLcvCv37jbSTDQ?= =?us-ascii?Q?1kE2ACfXp4KZFEu7Ot0FLNsOZE+rnz7jUMrOLPTlfwrBrNkehoe6zd8uSflh?= =?us-ascii?Q?/pmVhPi6ShlSnX/7vBLUtCEkUxj4j3uGRysV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ascii?Q?QNKJ15AoqRdMIen7BvUxnNod8P1f/ixiMC96aggt9jbbIuAm6tGlVpRx95D5?= =?us-ascii?Q?+Gf3j32T815knvICLc7sJBDsi4wzl/uQdAuhUPsz22oCYXTsITylWWFrLJwf?= =?us-ascii?Q?4g2dh0cezbRDP+PKroMIZn4nWebbKdoe+SJz2Kjg2BfDR/o43LXC1uBGaT0C?= =?us-ascii?Q?MblHg=3D=3D?= X-Microsoft-Antispam-Message-Info: lYv9MLgAOO9tXQ7PL41u9O3SqZfvtayZiqApGo+x5JL6X2kpo1C/KwN+SyRX11+XfYw/3/QVbP7CkEO6M+XocJx1WElE7VRKXhckjuLJg74GhNQe7AvKyhnMPSNlUqqAZKRu4GNij89YsDtgpuE3Ug8AOB1l4xJ86xn7evo8aOPnrPaDJfzjkKOjxidIMT0m X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 6:l1qhQuQKVgdpF/D1XOJJ3kvuab16y123j7agU01+sYCIQHAka3IkRZ6H5kMM7TpkFh81KzaZYBp/W7S0JP6EFcekzoYDkZRSjKx4nU33Z04T8WNH0HUiCMVAU1FPEikh2S3pyALIMQCi9h4Um2BwgRF2SVtWOvisGBn8FWpP73l1Ul9tkky1zwXEuoSBGSlyzqduuT4svvO9R3414dzeXajVUMvCltS8xcqtMI+kVceLU5DgjrwPRtMLw5mozghx4nylql6tf8SySIPodeI/QN9EwHfQveZg8UDhlSHBOBJKPQ+gn4HzA+RE+8PZ7gNdSJrYa4sbXlXOcwaJQnAeCMGvkz7sZyhmwjSZRZux8v7iCttHdA3dzWzoDjfpvIg1tXbrNFzivaizCbnrEoovtQ5n45EoYCRtN11mjkZ+i6ZsGVoKsOTL53nMBcvUbhn/CIVl3+M2rHyawbap89nzmQ==; 5:TjK6m1tYZjIzibD90IuwC+OJy+8iHGdmPTi2rBgMy9rU+EaI662p+ejiC3qRBaA2AGqohT+2KA2TJA+zFGl03D2xt0aSWvWctt8bJBVKlyw7xjRaXz0lRbUQ4PtqDUCog4eX+LUeIPaXFtBJs8uSCmRVF39s9CqbQZBiaejLMJ4=; 24:v1C5ZBeef2tUbkD1Hegba0Z8ub+j3sabQq0eCDZyDKZbXsMUf5w8UF4lnk/diCYcurwSE4EP7Uy1vGOhktSF4vSR6ITAhpyCaRWoxtYs/6Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 7:7aZkmS1lwMRMqTWyFaXAyXnj2ZUncbdcGET/Q7r0p/wf4idCKKn0CE30vAirl82fIOXcXOXmBxEnImSYJpLRmrs4O47HzQxUIF21TGJzFvpazjEUUe3J4qAH+NFinU4E+6dLNL/aT3yjqPtpp8vHpiDqJAP92rvrLsoOk8yF09xzFZNzxWE4yLDCAPLqQvuOJsxhzUbhIjycC2bJu/1qB7KdZYtnSbsSyQTdi0rS5VSMGlR1XsvlcuWuOx4xVcOr X-MS-Office365-Filtering-Correlation-Id: c7377a12-8e3a-4226-c6df-08d5b54fa303 X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 01:53:16.2114 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c7377a12-8e3a-4226-c6df-08d5b54fa303 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 Subject: Re: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error 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: Wed, 09 May 2018 01:53:21 -0000 -----Original Message----- > Date: Wed, 9 May 2018 02:56:00 +0530 > From: Pavan Nikhilesh > To: jerin.jacob@caviumnetworks.com, santosh.shukla@caviumnetworks.com, > arybchenko@solarflare.com > Cc: dev@dpdk.org, Pavan Nikhilesh > Subject: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error > X-Mailer: git-send-email 2.17.0 > > Clang 6 & 7 fail to naturally align packed structs due to this clang > can't use 8byte atomic primitives and splits them into lesser atomic > primitives. To use lesser atomic primitives we need to link libatomic > (-latomic), instead supply alignment attribute to the compiler. > > timvf_worker.c:(.text+0x498): undefined reference to `__atomic_fetch_add_8' > timvf_worker.c:(.text+0x525): undefined reference to `__atomic_store_2' > timvf_worker.c:(.text+0x557): undefined reference to `__atomic_fetch_add_4' > timvf_worker.c:(.text+0x5de): undefined reference to `__atomic_store_2' > > Fixes: f874c1eb1519 ("event/octeontx: create and free timer adapter") > Reported-by: Andrew Rybchenko > Signed-off-by: Pavan Nikhilesh Acked-by: Jerin Jacob > --- > drivers/event/octeontx/timvf_evdev.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/event/octeontx/timvf_evdev.h b/drivers/event/octeontx/timvf_evdev.h > index b1b2a8464..1cac1e612 100644 > --- a/drivers/event/octeontx/timvf_evdev.h > +++ b/drivers/event/octeontx/timvf_evdev.h > @@ -145,7 +145,7 @@ struct tim_mem_bucket { > }; > uint64_t current_chunk; > uint64_t pad; > -} __rte_packed; > +} __rte_packed __rte_aligned(8); > > struct tim_mem_entry { > uint64_t w0; > -- > 2.17.0 >