From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from na01-bl2-obe.outbound.protection.outlook.com (mail-bl2on0056.outbound.protection.outlook.com [65.55.169.56]) by dpdk.org (Postfix) with ESMTP id BF8D0C47C for ; Wed, 22 Jun 2016 11:06:43 +0200 (CEST) Received: from BLUPR0301CA0020.namprd03.prod.outlook.com (10.162.113.158) by CY1PR03MB2377.namprd03.prod.outlook.com (10.166.207.152) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12; Wed, 22 Jun 2016 09:06:42 +0000 Received: from BN1BFFO11FD021.protection.gbl (2a01:111:f400:7c10::1:125) by BLUPR0301CA0020.outlook.office365.com (2a01:111:e400:5259::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.523.12 via Frontend Transport; Wed, 22 Jun 2016 09:06:42 +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 BN1BFFO11FD021.mail.protection.outlook.com (10.58.144.84) with Microsoft SMTP Server (TLS) id 15.1.517.7 via Frontend Transport; Wed, 22 Jun 2016 09:06:42 +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 u5M9663k022009; Wed, 22 Jun 2016 02:06:39 -0700 From: Shreyansh Jain To: CC: , Date: Wed, 22 Jun 2016 14:36:30 +0530 Message-ID: <1466586396-22618-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1466586396-22618-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1466586396-22618-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131110600023725007; (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)(4326007)(36756003)(85426001)(15395725005)(87936001)(586003)(76176999)(50986999)(86362001)(7846002)(2906002)(2950100001)(47776003)(92566002)(229853001)(48376002)(97736004)(356003)(5003940100001)(2351001)(8936002)(15975445007)(11100500001)(50226002)(105606002)(33646002)(106466001)(69596002)(189998001)(6806005)(8676002)(81156014)(81166006)(68736007)(110136002)(77096005)(104016004)(19580395003)(50466002)(19580405001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2377; H:az84smr01.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD021; 1:6MU5jXS0UKrLzKfny4JeZMRQO5W9uUTRob9cqO3RDiJVbs2kqnBUz3/0kSaxfk22GJGQXaoquXOZKtOY9YdFfh5j5bE9kPBI/4TenbsZ68U6XQGPhbWRMDW3KhNbhbG9JfaBP/viHDoAgApkEA+jRObPjclgXOgr8wZIX7Vj4VoolxKzmAGSNiKm4TbA0Wvvyvrd3fCVv2WrnISM39tX5rU7b/MXdnBSS/gDlItpYmL0vyzjLZi+HjAq41Ggty2a5KIR82fHNfsAtuAIWmbQX0iimABJLzjqkzGte/3F9Gm0hcNbSslFE0XVL35kAmet6/4/z9an/7S3+CoMfze1vjrBO0xpMnZb/I0LDbmdoKveebp3uw0GwoLC802pGpK3+soPet5iUTeE2H2CxJ1FiwUx+RqAEppFYJTuJKb7Eqd115tWrBEneP48evHE7bLagp2eU/eZApTdNrXoPXNOps/MXu0EBAWroh6s0ceVdPILfj5setlp1uq1TB/A60YyV8GuuvpcMowqpoMcc1g7K2AlQOVVMUG0BLvdDs+UVfLt/znFNzBFD6fBS6+GccLNDOVwUClcJvH923+Eo5IqCw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 590f186d-f100-4dbe-726f-08d39a7c8728 X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 2:9IyoyM8xVZVBrPTl/GPEE9w00/3Zl1DnVR+xazbFBnME2iSLYdI0+0mcSbGkgvoEI8ygCJBlrjVbTiD1N8nvj2RkpgGqGIoMNEjkfdqPNuEjMtZIaw3LCgbvDGvc7ODzpr5Gl2gWk9kG8EH66gcyNB0o2f3gKB6/SF6RC8qnFb/IE+Oj3kroDKi7SzY5DmIX; 3:3Tzm1UCDZqzJsKLyWhA7+Vb7LQazRRzwnuV606F+o2Upvke/WxeN7ktu4+vkvifMfLkfIkNuRpLSFFKuIK78CVftrq87PLpAnoh0YcDSOqlI1n5YyncH9Vi8k9i0I4R3hbDGeuRRyMv+wtPeg5cYKhITfj1vMZE6mIMfT2bUd9MgfKmr2sDlDuyczdonH5HmsnhZ+JMw24ck9T3AstMuUiySAyFkBr3fuAP+ezz/Z58= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR03MB2377; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 25:p5jZsXy5AZ9nVVI+R2/K3EyLLzmBCVEDn/NrumRrdzmW2i2W3DA1BX9Qs6eJkxA0IyWKMgMZuFNjInbLe8klQ8V5Lg5FDHmeUMhML2OfaB3XwH9jozer6sdjwIfv8dC4OnwXvja6xTULuS6sHQQDqI2jMRZmQpj6SDQkmj2bkTEtAkBalp2Jexh081YAmvEwmacbkZiQerpOKV6YiqFdUnURtG7aqRdkci9YyDBvvkLZy/SySI2V5nKgOXYIwwWICacJMbwjHt0I7/p/liwyVWeFEAa60KUsgGIAJDFzajQqrfiAJwrNgXYbJod/N6Ph9WagCmxuPceNhA8qpu/lVOe5uCNvehS3Q5Gtj/qxKXu9RLsBM/bytOcaXknS5I05Qp/51lL7c5m+Dx2v1XWSW9bHVKFv2cnGMjxjUBOwZEalAA+BIhJbA+8V6FhJMk5wMn7909/2f9ntA98oY8RidL53UEfaKQbsK2ts5QTs3/nkT8kjDjHBzWe/nsmmxKOJAIgmQFhSYN+Up5xVDbVVz3FDFx89Gq2dwNKmhL+Qspj9a/BH3bDzn8EMCXL1kixGObi6lfDByYG68YWPVjbyjf+N0GSPrbKH/qeMS+zMJ7p/zXPdtjSEJdhLNuLPIGotylMS8sasoNf/ziNa7rLtlJ5ZwrsjGX+VEqS6xKkqjZZin8o2Mlf0gWIAxzGlf4FKIZzRjWBQ05bz5smX7AUnaAXSkzahxEsFuyh48vXUXWLswbnel/VWzWrfQKipl2vis2gO6oYK4Gj6OAMC5W+CXjC8g6Bj9tX24TcP+RyMC2nIXOmqIsz+dDDmov6SJta2 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)(8121501046)(5005006)(13024025)(13023025)(13015025)(13017025)(3002001)(10201501046)(6055026); SRVR:CY1PR03MB2377; BCL:0; PCL:0; RULEID:(400006); SRVR:CY1PR03MB2377; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2377; 4:lowK8KZJmDqgHxvP0HK28cQE4lJ+R4c1YLo+/I61FnlMQ0aTxTUF7aTecd4VYn38hgEpuBQgNeG292lb+E4AY+fa8AmKjcxvpV3N9o5vH7uLK/2c+4VKWOh7FCfBG9haN1saDaxnyUEaGuh1tmX6UYvWxWeGq+2b9/rUvH970KFeczlPpD0NGMfCOklbzy3uYsTjs9C+WlLzknjgnQWDhvp4nUSyYZM0AcCopLjxIKv0Kr+3lSuyTsq+8rizS7J0yhVZLJZ4KpzgD81nCGbGLTFZA3xT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40JAf7qcp4olJtG0d2iD3gAOUIIKSvDOHR4hGRhqIbI90vsjZNQEkni1kpF16vhCNK9mr26DxsfrpSExGpOVHYNiOvL5+86GRJtZwcXh+7bZurrsinqI+N+u3zOo+oBSi/9qUlElQ1HacHFGUEWUFvzbcrU=; 24:PIvUC1rYYAcF9Yi+TYWCG/MIvJUsD83xpjdUWbgGsAEFEqep6iHhKgGUHXUkShPhYy6Yif+GQPI7mXzcGcz5Lpuar13vn5xEcRAxiQtrIGI=; 7:m51mKw3NOrb1W8ntPteYSARhnJaidBgO7LzsQSF0jZ9W6ymZBIyZjWxZF4Hn/47u4Kp0iIsCNXTCj9GAAdhY/MUQm7bvCjdMhUX/ogm+eKf0Kro/nVTt1SZbYa1U8OSh9PbPiuCL5CF8R/ohDNucsW+m89ptM8n+RWgJ5i5MqcK6hKCW8s2AfWmPIoM96hnlXV9QCDl8/u66uDKOYdhqSIn/skNha+Pmdut+yz3kK/PK3zEMBtghU2H8z/gxRTyGlElNRA15CmKzdIZ3Ahx6kw== SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2016 09:06:42.1229 (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: CY1PR03MB2377 Subject: [dpdk-dev] [PATCH v5 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: Wed, 22 Jun 2016 09:06:44 -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