From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0052.outbound.protection.outlook.com [104.47.40.52]) by dpdk.org (Postfix) with ESMTP id 636A3567D for ; Tue, 12 Jul 2016 08:01:30 +0200 (CEST) Received: from BN3PR0301CA0084.namprd03.prod.outlook.com (10.160.152.180) by CY1PR0301MB0779.namprd03.prod.outlook.com (10.160.160.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.539.14; Tue, 12 Jul 2016 06:01:28 +0000 Received: from BL2FFO11FD033.protection.gbl (2a01:111:f400:7c09::114) by BN3PR0301CA0084.outlook.office365.com (2a01:111:e400:401e::52) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.528.16 via Frontend Transport; Tue, 12 Jul 2016 06:01:28 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BL2FFO11FD033.mail.protection.outlook.com (10.173.161.129) with Microsoft SMTP Server (TLS) id 15.1.534.7 via Frontend Transport; Tue, 12 Jul 2016 06:01:27 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id u6C60qWj006202; Mon, 11 Jul 2016 23:01:25 -0700 From: Shreyansh Jain To: CC: , , Date: Tue, 12 Jul 2016 11:31:16 +0530 Message-ID: <1468303282-2806-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1468303282-2806-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1468303282-2806-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131127768873260909; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(4326007)(36756003)(8676002)(586003)(2906002)(87936001)(356003)(6806005)(86362001)(50986999)(11100500001)(92566002)(33646002)(229853001)(85426001)(5003940100001)(76176999)(105606002)(2950100001)(106466001)(2351001)(47776003)(77096005)(15395725005)(97736004)(110136002)(50466002)(48376002)(81166006)(8936002)(81156014)(19580395003)(15975445007)(19580405001)(104016004)(305945005)(68736007)(7846002)(50226002)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0779; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD033; 1:tag3u2xztbncbt2ExdbMenoQqA7iXcE0KFstLFOeO/tOr4SMX/fNlHtF7EVkBtDF1S3910XvjHeEMT+lIex3teKTOza/dztCZ6K8IdSobq9rQdmIEAsyLswofiSvt7/tJ2fkQa8KsjVI8BVVAjre4rDEEy4o0eQCGxEFmWTz5ZqwKSfPAHyeFpVXJpCic97caOTtavta4RKV8Qr06XLpoKIuCqof4vw9p/qk1CN66DgK+y1zAPVsdxK/msCbOekQuKJG6x4rBjebk6N0+0jz5FfaY8K46i4GRcWcAHW0i5ncvguWE1Hlz+DbVAZ29c/pSvAyj13m78fCtUY6VLDyUWfOUFlX1zLGQZix1xXeKJ1tSM2iWucBg85YeUcJgvk+KVGB/ywT3FgojaOROmEsMa550w/SYJJCbmORnT+xgVo+B/KVjCFLLAwxiivKk23wmwPw038kXZZrxF/ryKAnf7RgnmBNyuux+SafZPq91gVhsR9tL5hLfj9pYMjhyMG2M/gqDkdDPXK3ucm4UpVKcsCZPcSSCPqRR98WD2rKWhkQ8fF4wLi9ciWleec5sUVe2YKS7GVMiKILAGZ7BY7pNVupFKgmIzlX/T9esZQy3A0W2ufTWZ/a9gm07f5GMDZE MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 1524f02c-bd0d-4f85-94ad-08d3aa19f653 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0779; 2:LSp0VmgSydGNtIMHlDIBSq0rDoNoR8RfxCyGHsEorNmCQJ7yWP+IE/sfQNHDp2BX8n0Ubz5KvKqoQeu4J/Q9KfeHZbFaa8ZpfOS/I+WxWQh9kMHd475qj9NwKN6pLbsUtROCrmy7uAgzEXgcBwfljfy916E+uCb2HxJgPA2uC9C7b/sbN+90bT5CWU7Np8Sv; 3:jhwfveeWr7Pt5OKaK6x+6jZgdQ2yRQbLEBbwTTzybsWDbpnMtSrnNlfMgPcVM4xHojbX4qWAmHqAtLT4Yc87q1iEAErLZALawGnbrLRONM+uF/ITTOAOX464Yx3KCjCgEupBAx2N1KPGQuAGiKJ0n8FJWMg9cAsyKZ3HjecdtBwCxP2TApiLEOFB7w/Np062yX5O+WFOM3vzTzrJOYGI5y06csxkiLHinbyZEEcHXlA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB0779; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0779; 25:34ogW7JrhKF+1/v8jsbTMRfvClcQ1RSNUnvfPHs/BOJYL1vI9mBeActAKQJMxeJXLWw57Gh/ofs3ORbURzXZ/13b0qjy3z8FDh7Tc+0Tbrt+XLLAKYYs/RPUR5ZBnSXOBzcW2WsAWB4GTuJYVXnAlKV/Z5bjfn+Yj+F7Rsdyux354ZbFLm+wVPM23r8xq5w+cux6pAm93ABRmPWQIDwKV218E8JDVGUpbHk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NQFzEfNotYMejNRK8eP8d4DNohUr3PX+rIwwCJOd48CDZXY9JWO083mwNa9qplrDXK3kB7PXG6kncvsRYJDW7JXmT6WrtqB7b+TMng34SF3HDB2uMYA6BDvSddAJejo6s9Bo7HTijZb5GEX/pIvZ/FJFiu6+bGAfmDzOZ9aAd79fL20jWC6YeugpoeAcxDH/MPeWk01J5fXEJAXAGQgrrexrhvv9k/G+hz+XrCMKUvUj/f3CrSODM5d3j857iy44DmRyuJ0eDfEfry7YVdqscJYcHa6KOUUY3Os4NMMqFUvUAZlzvAxlFPlSAqx3PirjUEgAZPqUArqw== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13015025)(13017025)(13018025)(13024025)(13023025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:CY1PR0301MB0779; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR0301MB0779; X-Forefront-PRVS: 0001227049 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0779; 23:xNaS+j9TmAZHLVFpdQUHEH0agu3xFzGfRXdoiHi?= =?us-ascii?Q?IMgA2SDuite9rOd03o0VFsHE8Xlq6ENloRtZTeMApuerZ8s0owc9wTtJX7Eg?= =?us-ascii?Q?A7YKiGk5qPn5JqIWj5ifYDebHcU73fJwpeADcj47oGDuAAj2uCj4fN3iCA66?= =?us-ascii?Q?9B6YqOeTId9clIf5vbPLMMIkMl0juNlCgdWAWvYneTztlCrQZRMWt87JTP57?= =?us-ascii?Q?D3/20fwxiK2a0vjIx/PeGYhwLaq5YSFxbeBtwtEPp/Mod0NVD/cgvaeXS2wa?= =?us-ascii?Q?3VLQs3lksZqc7nHH+wMBT+CfTIqDBlFfckbjjyPfmbhUNa9GMNywl5bLDWBc?= =?us-ascii?Q?sCck8/vwa/5XkgufV+C4wJrh1GeolOMmXewy7hl0eVNUa0cuUFkLxjF4fUzF?= =?us-ascii?Q?70R+nqWMKvUQrmIagndNAhS5c4DSIiq489d3H0QBmGgkMx1xE1UysBFb8ahT?= =?us-ascii?Q?hoYfxYdWj99a6KrUERu9smqKumLm4xkU63DHrf6C3vcwOUmYtS3CWKivp/ra?= =?us-ascii?Q?+aewvOsejNlyHBW4JtDDkzXJca1b4Pm14H3Ab1okpf+eatCLuKjn7xVX3rXL?= =?us-ascii?Q?djxQrGsk3DS7ni0dE9pi3fcwQmDYj8qIfB5e58lBH2IYWfffd0hH12f6wIbW?= =?us-ascii?Q?kQdF+sgWg20bPruSBK2uY57ReRTVuzQoHjSSGbR799SRidVKyoDMrOObLQMI?= =?us-ascii?Q?0ozcZ3vV8+IbKFuPSKdRMjVQBdeLqiR2SN0Hp+TMTMAUG/fC/jAByfGssxxE?= =?us-ascii?Q?oi2HK7A8A4lN/MEXacVR186wYiw5bqVwNQiLFRFyF3bS+ntsdNtZCdE1UMrY?= =?us-ascii?Q?n3en0+ggmaZdBDZzBSqIJZRX7MCLUoE8JBDs/XVNMtKunphiFSY3DhveZ/SH?= =?us-ascii?Q?jYS1R+AVhj2IlImyCvPx2J/cFLTv17nWTefDBhrXQ4i5cDwboV7OATbG9Ksc?= =?us-ascii?Q?lU8U1mCqbBITN7OlyFz1a1nYbeWoFqYRyhSA5Eh9VWmrJItaKeYvJ+orXO98?= =?us-ascii?Q?mXWjXy7X7CC3GYMqtiW5hM5hvsmdbb2B0lt0PGJBvG3u/JLnajEg6Jjclr2V?= =?us-ascii?Q?pC3PygMF/56pSARD1nB/Il6OnVfNO6ivkqYZLY0lgsGFZXfPYxoXgg0qMvTu?= =?us-ascii?Q?O/QUHsQkFsT9HB15XLnfG/ilLHUb2mXYcnNztg/Neyork82kuoenaRQ=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0779; 6:A7m1wgHpErkGiFmco0qw9CDlX/mzPZjSzrIbfgmdDIDvbouzSIHj7zg2v3G9+3L8DwOMxghM5bJXEmgUiz7c1gutyANpSXIps+/i2WwL2z2o+BsBuug80ayitlPsKHDrx/H3x0Gu25RlA4smI+t4JG5Z9imJ8mStGvs/fQ5i9afalmPZQ9JUdVcwuU5G0wUebimB51Ffbs+FhXdiTWV5u0Tc6/ZWG4V6ARkAJB5XcuhXpQZ297rZHmbZK2QxUJJolUkrmrgsJnugBIcqq+a8+SaAVapnuBdOP80i3gndfO4=; 5:M6neOTlfzXxlqB3OiYEXpEppUj6kNuY4ATesLAvL5pUGClT8VHJPr+AwpJMceZdwGG5iTm4+X22Kv0AL5tgqLjN6j8ZUkfEnjP0y+BwboFUkR4unFH0t6Fw6AYvTgbQK6d9paIKGsQ+NLZSzM58tyem1Me1sdqG6cTKRX3UkE1s=; 24:C0rjwp1QC69zlH444rQAxthPtzuPI3OZ5ipScVM1dAAvPzIrmbNiVhEUplRBjO6i9RrFT3cMphwatgn8HSiMkabXImTupU13VHK0OuTcb2c=; 7:l9ITEig1Ih7nixMn4CWSr1lYvcRSFs8siRwbuaZmP0YC3M3NnNMESLVienLHe0RH5r/XinFPcMj8/ZylwM3CcHd71k400Kdy8NQvpMJW13Uk8IG7qZC4tH/pocLNBz9bnNFVtl0KYIe4I5ApI5w5dKhrUZ8WUsKiuN8z7jaHwzlJ/HTP1V2sS13D4+m5r2onpUJVoZP3W3+MWrFgRGM/vs3K19pnD0rAXQAzzLuKQPTOWFjEMq/HP9OEBkDVQETl SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Jul 2016 06:01:27.1388 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB0779 Subject: [dpdk-dev] [PATCH v6 11/17] eal/linux: move back interrupt thread init before setting affinity X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jul 2016 06:01:31 -0000 Now that virtio pci driver is initialized in a constructor, iopl() stuff happens early enough so that interrupt thread can be created right after plugin loading. This way, chelsio driver should be happy again [1]. [1] http://dpdk.org/ml/archives/dev/2015-November/028289.html Signed-off-by: David Marchand Tested-by: Rahul Lakkireddy Signed-off-by: Shreyansh Jain --- lib/librte_eal/linuxapp/eal/eal.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index fe9c704..259a7e4 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -834,6 +834,9 @@ rte_eal_init(int argc, char **argv) if (eal_plugins_init() < 0) rte_panic("Cannot init plugins\n"); + if (rte_eal_intr_init() < 0) + rte_panic("Cannot init interrupt-handling thread\n"); + eal_thread_init_master(rte_config.master_lcore); ret = eal_thread_dump_affinity(cpuset, RTE_CPU_AFFINITY_STR_LEN); @@ -845,9 +848,6 @@ rte_eal_init(int argc, char **argv) if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); - if (rte_eal_intr_init() < 0) - rte_panic("Cannot init interrupt-handling thread\n"); - RTE_LCORE_FOREACH_SLAVE(i) { /* -- 2.7.4