From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bn1-obe.outbound.protection.outlook.com (mail-bn1on0067.outbound.protection.outlook.com [157.56.110.67]) by dpdk.org (Postfix) with ESMTP id 3BE6EB436 for ; Tue, 21 Jun 2016 14:03:09 +0200 (CEST) Received: from BY2PR03CA008.namprd03.prod.outlook.com (10.255.93.25) by BLUPR0301MB1620.namprd03.prod.outlook.com (10.162.214.30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Tue, 21 Jun 2016 12:03:08 +0000 Received: from BN1BFFO11FD031.protection.gbl (10.255.93.4) by BY2PR03CA008.outlook.office365.com (10.255.93.25) with Microsoft SMTP Server (TLS) id 15.1.492.11 via Frontend Transport; Tue, 21 Jun 2016 12:03:07 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; 6wind.com; dkim=none (message not signed) header.d=none;6wind.com; dmarc=none action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD031.mail.protection.outlook.com (10.58.144.94) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Tue, 21 Jun 2016 12:03:06 +0000 Received: from Tophie.ap.freescale.net (Tophie.ap.freescale.net [10.232.14.199]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id u5LC2TDS004076; Tue, 21 Jun 2016 05:03:04 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 21 Jun 2016 17:32:40 +0530 Message-ID: <1466510566-9240-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> References: <1454076516-21591-1-git-send-email-david.marchand@6wind.com> <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131109841870959022; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(7916002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(356003)(69596002)(8676002)(76176999)(81156014)(48376002)(50986999)(50466002)(7846002)(19580405001)(104016004)(81166006)(85426001)(19580395003)(15395725005)(87936001)(6806005)(33646002)(2351001)(36756003)(50226002)(15975445007)(92566002)(5003940100001)(2950100001)(229853001)(86362001)(8936002)(105606002)(77096005)(106466001)(4326007)(189998001)(110136002)(586003)(97736004)(47776003)(68736007)(2906002); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB1620; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD031; 1:LvQNNjnIHWYwzFpDBOhnzOjI/+1cbU7gvCYEgHPXNpf4U0PQ+hHQc2Q1r4zdavH4Io8xLuiWUp8Fe4DjXzhqjG3e6sR2EBAKurUr+GiWG/B0ZX47elJZLlkpl98hUxt8nv0MRrZMi0yF2cIal1rgAqFPzTNnFDYzpLK86dzeGl3XcyGCvgrWsrJaYqudoA7oMi++I6KafEE6ifciEov9KFkuPtNnGmgokoqR820UY1YEctAuHSRtEAggKjdTbZ+r/B7hV+jgyihrdFcAyGPv4zj06DiMIkUuSTWoDoTRAVcqie42uoJD47Ob/A5C+Es6+oXbgLC6icn6feHIVkgeVz7960xJKiIPhuXVRUF8AlBisF5FR8g2YSOIM5gZou+vKPJF2UrvwO2HvEsElHHjjSl7VRK8zn7Nb2Ply5UgSyNvmr4yIC4RHpFhPxCgKFqEePdkatp3IgGqthXPtzMzwmLVfhtZIIWfvUGqJq1pbYVRyg03cI9nKs7qoY+JORBmdLde1OmvVF3sJPqkvFyqdr7TmvsOZnB16jMRyfMeYuvPzJjq8s/BmVAZ0bIVOh7ampSsFUEP9rdW+Fk6igHhpA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 0e15ff4b-7cb6-4cdd-504d-08d399cc01bb X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1620; 2:otor6JVUYJrRV8rhCddhhSLYi5lJM39znrpNT3B2UBurKZSN9LGr+4NL7Ypj2gL9QwUh1uKrQ9hUsYd6wKThkErPNSAd02exQZ8qX2zCAGsVv1r6IFTWe+5+6dRxRV7EQg1qUTIRw1BAj+vihY6NMhzOwI/Z/iwhZTc8hdBiAK27DqU77Ino/eQzWr7R3jfi; 3:2hy219/zkJ/QjcCDrNoobGjowsSDEcAPBuVibr3JlLmDoc2/JoN9FgwG5Jcvg8tdw4ikRXE+JH1XtXjashtGh8JtlR/9ZMKfPoxrOI7im/r7Cu9h4ZwKnounBaJfkTwE8C869b1nzztPYxhJtcnp4t+XCLytRassrjJUgzGa1TBjJV7cb1FVvJSadK0NZPHSCdBh6v4i/pGnGj7JiYnt16gdW/cL1M5khXejqTbshZw=; 25:ayG6ugfhA+p7QKBoxZkM2jRWU/L1WITU+a91InEFIUUCW1skuZTrliU6gFSbH1bL+DTfIiUXbpX30ADpt6FHgOMK2/nJiZj7FD42qifSYqET2FoPgd0hR2rDK+04ILCFpxUvhnRxxOLUMlJPih/r41Dhez1jn9Owcr6XwAI8q5Y2REeJOq3GnF4AF27g3EHtepBnvXHDuLD96rE1sy00mmS2YHSbmwGsvfXBb5EmM6P7rCv1If9CXhJiZXPFtPXwMXC59u0u7ZPyoOM+UzM36vpB++1Ux7j++o0o3/xM46UpiMBNBFzCtyLiBK/nwG23GemyAsONqUkEqHqLtIsWYLtXZ3RzcgtnmaSSIOW+UbdccMmgNMswCSSHd8MWjC3fsvOGgkB2P6rEXK0TpZqZZv2yird2qnlLBuukCiWMYHw= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0301MB1620; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13018025)(13017025)(8121501046)(5005006)(13015025)(13024025)(13023025)(10201501046)(3002001)(6055026); SRVR:BLUPR0301MB1620; BCL:0; PCL:0; RULEID:(400006); SRVR:BLUPR0301MB1620; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1620; 4:/7llj9L4RquGi4gopp6mISpmHm9au4nqj4FRl3ZvEhZfPf4dXOrB/tuc5JZPYzekXftqcF1oRD4gnIO+TzoFltTLKNFkBZ4ohE0Ysz5cQFdfB1clvDymXKBc6pADxWKBxcz6SZZEc1CJC6AuNqJpg7TyVVwMqu7uJGvGBKAzCtKC8p00wKfb7sgZHxVaGaPo0SfBaH1z+LlhUjqM/oOO4aMFpOxklDgMeCw1Qc6cypJE1j6jfTzZxWmRUfRtAltBU+NbNgKh2JBpHQXjpv6qEqTke0D3FJvokTfxgpsPLn9CXwV59uMWO8mMy57e4wRT5ZMRN2MvWqAuhwp0y5V4Y2D9MrszCz0XOamUmLEKCNH1b3Gq74468ECVLVpuaT+zPwz9ykIQYsG+2pErYB6Hs3K+uYkqhBe5Yhk9Lm2+sbPYDKhANxsr+6iAJnIJ02kwCylolPJLwKYN8Mxb4imiycqTOo/x5K/c+oJL4xM9eiztVFAziXLqjM3dx/7JNRMjj0lON4FxzdhnqdhjfEnsHA== X-Forefront-PRVS: 098076C36C X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1620; 23:f//Q73Z5Po0Oa602nX+z5tYBjdvYW5Jke24W2gN?= =?us-ascii?Q?1RjcA14h0brZkrQ8AiEgI2tOz0ijLmKxZatmfXKIbKNnJGvn9Ad31V4HbEEl?= =?us-ascii?Q?N5t6/Sp6zH+Aeb/P/A5q3QC054N55B+oCEgOeHQZcBLYVU2PmG8VrQL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SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2016 12:03:06.8619 (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.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1620 Subject: [dpdk-dev] [PATCH v4 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, 21 Jun 2016 12:03:09 -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 29fba52..748daca 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -821,6 +821,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); @@ -832,9 +835,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