From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0054.outbound.protection.outlook.com [104.47.42.54]) by dpdk.org (Postfix) with ESMTP id A319E160 for ; Wed, 9 May 2018 11:09:13 +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=OsNdiGDSdSItkNyS/gZjHgAM3oQ6kYAmZTbqJWiAsLE=; b=Njn2VmAHU3XqN4meneNuzT4e6Pv6fBMe9/6s8t53C6K73n1L4WpWlpOrS+T8d3aYo/0/K8M9s0grn/ieBI7Oanq9MDnPbLjoB9s0ULLTKPARQuPwZNy/0ndoej8O6GLSnY4gXbrBRUVhi5MlNDd0LpAZe5mi97+OCZrkJLherZk= 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 09:09:10 +0000 Date: Wed, 9 May 2018 14:39:03 +0530 From: Jerin Jacob To: Pavan Nikhilesh Cc: santosh.shukla@caviumnetworks.com, arybchenko@solarflare.com, dev@dpdk.org Message-ID: <20180509090902.GF24821@jerin> References: <20180508212600.26954-1-pbhagavatula@caviumnetworks.com> <20180509015306.GA27146@jerin> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180509015306.GA27146@jerin> User-Agent: Mutt/1.9.5 (2018-04-13) X-Originating-IP: [12.108.191.226] X-ClientProxiedBy: BYAPR01CA0030.prod.exchangelabs.com (2603:10b6:a02:80::43) 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:CpmEm3PH+5JfnjCkn7knUyfP1Zt9sIhcdUhzbz2iE0X8x2KMOdIPxk5DOZXVfdVkww/iy4rM8hlkRzk7wCp9+K9g2U/oaF94AN1zx7ucy9Ag9Cy6kRed26Y8jCrtZt8XRy5nfVj2l+mJuLV/W3XD23zURhVDT0FxjmfzzupVrbjStGKVKT3VmEu1XpG8x4mqSWPeQurZlapaQmlrjMA4aE0lRosL3h3vS7KIR9Lr808QW4m1a/kR1Kz5Gqpq/XU6; 25:fULMo0fZQ7DrBuWI+QWiWbcYowj8RsX5wLQ7Fp9b/5x6bnZhxODtupfjkY/y1tf9MQAuronEkr4Ot++he4//ym+0N7dz1LHGtStkPEPvr9DpvxnWC6Eprw4Bayzm7CBg2xrw6DaulXjjzL6i0qXrzqLXi9XwU1Hwsb/v0l/3yq4r9YCvDUxaus2W6gZsrDyb/o3+nwhMGu41nJwUYNU4rSPpE6DXuY4M5pM+KU52t7mV91XliBv9d4kAnwmnkpWWQ8b7p1R9V5aeH4xFzZl/ZrsxXyi/WimJLW+EJgREe4bHWha9tIz3GzRtB2tBMSllXyrbMzd2UnI2XK0by9sDdg==; 31:31wRBHWia8ediI2S4iWWiRw+CPFcuge6tL1jBfiuauxjCEVh/Pi5ampUFiAZTOobOiOF+KxIaCr86/l3Ngq3/LCGmGagdDjynYcOqsAT+byt34rpYBXDPbrUTM0DmqO4SvPnIcgBHjKIc/FQA+vsHUlcOj8b7pLfdbSffcw0JrEy7TXgbQmm+J3JxTvR0OWZ3OuVnswKQSg7kMMXC5O8PET61qaX7Z3UrFcTwbxckMM= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:cluwCKp9SQLaKV90P9i6492x6ger/F2Ax05VLGzfGnBkBtWBR08me+j6CPVh3uehLBx2URkDP+I3XWdUtLazfNhH/zgAEYOoT/tp74Azo5FYV5hodskQv4XUQKJYKG1oa1ssmuCp6y2adnuF/2CCD+UTYdybxYB88IvwSUH8u0hSMmzehQSOJiyFFE03sOK6+WwER+IWumS9Y3ZTSS72nz4ynp2TjQ1mnUDozt/RSZh8R8IIe35DtHIkMjvA6de0ysUl0DAs554mpUyDzjB6ZJxOakd8l7eMEJwsUgi4CBz76K7ESEpOG5yjPhYJwJt2H4eLviBkL8qxgrKl9OTX1nnfNqpBinLi8t04RZayIXjfS3REszQZmu9gukX36O5BFIghqdRTg+3k60BReYHeiC6L8sm4twYs3B1gsCHqEHlXdquzVLlu8CjL/WiIATh/z+PrhnmzvScWCwjYZn4844vneK/UKJvhc2KByU7JT6sBe87OhMtxTkfAbuP7mfs/3EO+2k2Oo7AfjjegfDS0c0Q4Y3XHTYWKwSYhEj+fCqKT95ypdJYilDfOfugZXcHni+Fww6fr5pFK/HBMjmlYmSe0P7wuuv3dYudh6vvICU4=; 4:Zy/Xc0sdSzld3JPFkhiAW7qC0QuZnKvv8i2Ei/JWPUjxYLHQFfzyqfD0MFvVQ/7AJ9+Fx3f/Q973gNwof3ew7epdWR+X4SE9Ti3HpsLHJsSRNAC9bfhILD6hYhTW4Efo/xu5DV3NqC7Rg1ccnE8y2HynTBnma1DlqkNKDPUhruh69T8oLzA2GqXAuff4sH1+iY45CewndRtgMAgqSQzHMkbjE0hs88Dw1yvPgMj34J6wYgfPtGNI/pzFj2o3npRJWjtUl+IzMoDrwuK6fByGRQ== 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)(10201501046)(93006095)(3231254)(944501410)(52105095)(3002001)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123562045)(20161123564045)(20161123558120)(6072148)(201708071742011); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2526; X-Forefront-PRVS: 0667289FF8 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(346002)(376002)(366004)(39380400002)(396003)(13464003)(189003)(199004)(377424004)(6116002)(6666003)(105586002)(106356001)(55016002)(3846002)(9686003)(25786009)(6862004)(6246003)(4326008)(50466002)(81156014)(53936002)(72206003)(1076002)(81166006)(23726003)(59450400001)(8936002)(6636002)(8676002)(7736002)(305945005)(229853002)(386003)(26005)(478600001)(16526019)(33656002)(33716001)(42882007)(33896004)(52116002)(76176011)(956004)(66066001)(6496006)(316002)(47776003)(476003)(446003)(11346002)(97736004)(44832011)(486006)(5660300001)(58126008)(68736007)(16586007)(2906002)(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:HADufkvJ7Ud5//ASXcn1OptplQ+sH+nZRCx6fiSTo?= =?us-ascii?Q?u3emKCA/2p2OzIseFphacp1CDXibRYNTuJJbdC8eqBWjysJuA4LPgsUYbLHO?= =?us-ascii?Q?67xMAMlH4eJRI0EZam8Sx3awrfE83xslnSRJ3uAut5+vbHHpgcJ0Ra3HRc9a?= =?us-ascii?Q?kE7oiBgO4mLfwlqk1EqqdoStDPoOxIFbRY4cKhi59VVZY0XtEwcovSWjcuhz?= =?us-ascii?Q?FhZPk3j82/3AsdmUHlZZOuJ6gcFUh/2JRuTjS4fLWjZj0FEyw1/mWgFYAq98?= =?us-ascii?Q?9ds8iLFsDhiZpvI0qWUvpJSMw2WNos4qBjDlCoVct7Mx58JF+WnDZcxTcqM/?= =?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+lk4Ax3145GoxFeXEpDGVWSxT3w=; 24:4W1pZXXONkkKIZoP0KPeeH2AgOfxEYBJcxMTFNPRugoJiHzSHXMiNt3dZYo8CcP/R6PFKPATofFMKsQ0Dm5yH0hM8ioGoiu2ymbRQsA7Ar4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 7:BeS1pKvkbt4Tet1JKGEXXdoKppWFdOYchqY6WDfXoRvXVGIwf0m4sEFiZJboozxM5lnz7DicgBy5lX2qhbMS6sjRfEatT/WeXFfjwsf+W1dqbpQxZXwsg/KBX+ZhWhMM4gmVTvbArOilKXr2zLt4+DJdRvM6foYZwK2TlC4sBByrzHp0vN+/Uwe2pSe/KGtUtH8ejvpXh/rczlXMenB/i5MRBIMYQDbBjszv+WW0q5bFTe6dKJ4IPvX9Q94C5MmJ X-MS-Office365-Filtering-Correlation-Id: cb59a6c4-5e79-431f-8a7f-08d5b58c87ce X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 May 2018 09:09:10.3333 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: cb59a6c4-5e79-431f-8a7f-08d5b58c87ce 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 09:09:14 -0000 -----Original Message----- > 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 > Subject: Re: [dpdk-dev] [PATCH] event/octeontx: fix clang 6 linker error > User-Agent: Mutt/1.9.5 (2018-04-13) > > -----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 Applied to dpdk-next-eventdev/master. Thanks. > > > > --- > > 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 > >