From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0050.outbound.protection.outlook.com [104.47.41.50]) by dpdk.org (Postfix) with ESMTP id 7CF97558E for ; Mon, 1 Aug 2016 12:45:18 +0200 (CEST) Received: from DM2PR03CA0035.namprd03.prod.outlook.com (10.141.96.34) by BY2PR0301MB0694.namprd03.prod.outlook.com (10.160.63.149) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15; Mon, 1 Aug 2016 10:45:16 +0000 Received: from BL2FFO11FD035.protection.gbl (2a01:111:f400:7c09::175) by DM2PR03CA0035.outlook.office365.com (2a01:111:e400:2428::34) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.549.15 via Frontend Transport; Mon, 1 Aug 2016 10:45:16 +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 BL2FFO11FD035.mail.protection.outlook.com (10.173.161.131) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.549.5 via Frontend Transport; Mon, 1 Aug 2016 10:45:16 +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 u71Aibjr018422; Mon, 1 Aug 2016 03:45:14 -0700 From: Shreyansh Jain To: CC: , , David Marchand Date: Mon, 1 Aug 2016 16:15:26 +0530 Message-ID: <1470048332-27318-12-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> References: <1466510566-9240-1-git-send-email-shreyansh.jain@nxp.com> <1470048332-27318-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131145219165334093; (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)(189002)(199003)(86362001)(85426001)(19580405001)(48376002)(15395725005)(5003940100001)(2950100001)(104016004)(19580395003)(77096005)(15975445007)(87936001)(76176999)(33646002)(50986999)(586003)(2351001)(229853001)(106466001)(11100500001)(105606002)(36756003)(189998001)(50466002)(110136002)(68736007)(2906002)(4326007)(97736004)(47776003)(356003)(92566002)(81156014)(50226002)(81166006)(8676002)(8936002)(305945005)(7846002); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0694; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD035; 1:WL3xJdSbO3tsvAHhmAj8OCJZulfM+FCkM36u8A/savmES0JlmPZ9wwhecEiHr51j7KSv2ysg2w57+rI61wfgjw+LOI4w53NgQX/dqtT1NqLPT877JZORTRFJZSwWQNHeY9ADvBCDGqHmx5xOyWPbtCBWSXma22O3NjFoY8czTVtL+GGSvxJsr4yKdD+JE32QCkzVULdN3UHLmrgWqM2tGCu1hbz33P1FFSYVXclsE27NioLeiwuUjoSTzOQI2MIX7/Qe4ke4FpMEObjR9iqLMLp2crn4aVVccDoYy/4Q1cfdkrnSz4SF38KF5bNmjxsHJzAyT3HpbcMhSlU9GAtXyPssK5XF2KxKhlxu9Yj/fVFkndVzVOZK1qO0umweK8o/gk9QBkIFfoqDPtrb5cAL10CVtmKX1gOz/KIeFe4tC4wL8D1ttGNY/2IBLHVpfto30dFoceTa5PVXdzdjuQc/4z+EsYdlvHyygNsti4FuzYXLjb82n1vzGlfT3xXljx1hI3GR3Xi805qqeLJzlLT4h68sTxdQnffLMZF6maLvZPxGts+G2VXb+dEeV1dno+VYI+m3TuiHcliSLehoW+fOtMcNkzL/nW/SZ9hnVHJTVC6vDh2B9wusJedWxadPFgol MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 360d24c2-cdf9-4c81-c8ed-08d3b9f8eccb X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0694; 2:4dco+vlR4AkNfTR8u0+Z3ZiIKgJ9TxagDk/FQYZNoMdwS/g/9mdS6i62IQ17VCTmAMicxoyjcusvW3+DzywZn9oThcTR0l2jJkyrW/KEnsi0+oOHPsYz1arwkUJBFQIEpb23Bn+bMpbcoucIkOUlP3Mfepkbsg+XdlgKCgNbHBzUJT4x12T++3aEXUH23FtW; 3:jyuh+48EEB9/ZEiKuEYgmIRNEH7LMAnDgAd5y7kX2TaM3If7T4b08ZU2Nk0Z564sRqNGR2IgbDP45MOdXPI+GR8FzAP5xEIP4yPsfIZK2ISuTaiV9ZldubkpS8Xmbp8oe3FXf4NMv8kpbZVlNJ3drxlksMJTmFfiY8slnrBuvGpXda08CxLWLV47Mo7gJoAdM3a/xRsiJAXZHuGfn6l+FYMON1x1K6l1scIkUj1WsPM=; 25:J7gQ3jQSzOxMlyUianW/FAHmPlOAodbSHb/WV6iZxFVmKwEwe0ba+bXFyW4/Z+CMuXxYFoFm8fSoFW3okduRrcLtquRsg+M9mMbrTzRmuTpG5jnKaD1RCJczfeBPsfH4sqr6X30ujRO2jWtsVKSjAiqt67821Huwge809IwVRHzvB1Ycg5gC2vhpIOGZHbMFxfNUsvxQ875zgpFnkp6idRPYNZx8k9hzIGFCQvtKAnbTqYTdsyo3AYLWJkqipFEzFRZms5bpdKmHYwDA2hSWdD8da/XGKPvbXMvSil32Ut7SsT0vTlYSFy1s2Zq5i5/PsMg9asivHZl930mGuzwduo6pmWHM+BR7EmdI6jyobJolPICkTBF7IWCrdj5h+J+HrchryMxrC9F5mVsJ8z3aD58J54YPani5+sNzc+D2WJ0= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BY2PR0301MB0694; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0694; 31:glWVnRmxJ763qmQX2Q8HgvRNQHxOTe2aaCdGFjyJjlu/JA6HxlKBZ2wbI/dH4Oy4XrEiB8A2ZhaNp9XfLJ4B/xstPhTGyuBu9WwO7+YldYvFpso9VmJ4tM6RXP+iBV2Q2NXS21rzqYJcN9khXfJzuWyoFtBOrUqcyq1pJjeGZgNW0qWjWpIM6yl/J1PksN3co8dva/OHwvRtjc78I47EEQ==; 4:eQN96FarxPmhBxqh98Y63oraKQGUixnLC7ZdmeB1SaUexb4x6svNWYj3cVs4R2xHi8CvkXZEPonWclA65ZDUS/vuoTyoj+R69jJhWtHahSmsV/Pvbl+qWo4U4LA9ZgltXtBQu9MT7ymwD3zSz8qDjnu5N3rgua587lts0SFq5xD18xQRkLGKNcBsuDI2hYfNlxioAirIQnXqAd6QUzGiohKEQ7XNUKG5SQ7EilbXLMlnLor+Osqr3t8JcklMrOCBZ7gfE7oneQsC54/XHWNJH89mmY0LrT/MABNNFc6d8s8IfkEfFgJ3gP+a6TGUfoQFAcbDWyTmxfthHOdBzLyNRj3DxYO2TeIbSfcJDbx5q15Pk4jC0lArQATeNMEDgNywlXX+CaQy1gp5uBUfmeWj9+a4rhQbfVAzRXvGyUmQ1exPPWEJIkUPOGJ35e32+3XJoFUCaj16mq/skPBY7qOuB+c/eF81kOMsxxgNz2wvuOWTqTYbSPf32CRwaULlGipDt0CbrZGV6zmpsUew+jt7aQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(2401047)(13023025)(13024025)(13015025)(13018025)(13017025)(8121501046)(5005006)(10201501046)(3002001)(6055026); SRVR:BY2PR0301MB0694; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0694; X-Forefront-PRVS: 0021920B5A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BY2PR0301MB0694; 23:bZyPycOtfdeJAWFhCKAXZq7nAilE497Mzelkr3g?= =?us-ascii?Q?JTBUi7uZ9oDYVmsnW6Tx+gJyG/Rm65u6c1noA6fP/gxegWtwGwX3KWEU5w+t?= =?us-ascii?Q?96bigYOXYtz4vATLjlDbE35z/KbUavL50WfV1b8Eu0IcfxaBjLCXDjP1njzs?= =?us-ascii?Q?S2MB2urplEqv0JyzDgMuTHamh7hwKszToJ3B/u+4pRAWcCg4cL4q1DVDnZJC?= =?us-ascii?Q?9Xzc0lSAGWtICsRl+TObnh9IoTvHsw9xsyCD4clCu6MR9HcJUOSZr+rsMu4d?= =?us-ascii?Q?YLRDd2+AJtnd6lSDAlrrXITOyR8UEylyKiMEDLXyqtnmu5bjL/BrgJ+R/8su?= =?us-ascii?Q?ez1a0+GfHRjGo0bquGyxSqe2K6oHoxLKhzFGkOkcVL1SSAEU54f8JdhZmTum?= =?us-ascii?Q?cQb0kCvee+8sVj20YvInzNuGbSNZMFfWS04XfBSmCR5drojlkxASX9Xg8CU5?= =?us-ascii?Q?iX6QIvNhFvkaEqPTzuh/6RkzgIsWNWjGwjfyjOzeqpVNzl64PxdkuobXUUpu?= =?us-ascii?Q?wmuZ8cs8aTZj38ds6Gvh0Jh+uAne1g3Ih936lgNKReFRbF625BSn7O+Zu0jm?= =?us-ascii?Q?dwqDy58wZrChWVzwrQvdU6H6R4fdjBAb2B9j3PPAnWTGIhnKBqUrKkwAH/3A?= =?us-ascii?Q?MEUQF54RvhMvYeqDFyIa2Xk4JpvJ45qKkEJrbdQn6aSac/OqhwKa7KHALY9r?= =?us-ascii?Q?qPky+rp2mfpNl58zUuYZ16D/1W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Kv4Jft5UuM+j60SKRAulVb2eHNmqN0/YCjhevc7UE04MowZZZWIePW1XHkXELAil33yipPNu50=; 7:xJoypu4AqoYX8rBVryTKO6unbz+0HMJPoOeHZVn5piUo5itpOcUqiOF4ki2Ipa51QSzGLgGd9sYuIh5TqTsdWymX/kqVmx6gLLjiZcj457p7grPhKfRkGfKwF0PgdVmQVi7kWlpWydxmoIcty5QYfwHKFmfy4Xzm/bs4D9jVnQSzYga4c8YEh1dLibFmubJD75+8dCPV78lr7NnLtW79JsxO22zZvJhRmo1o/mCSixhkVLsOsBzskTblP4wEDnqz SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Aug 2016 10:45:16.3462 (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: BY2PR0301MB0694 Subject: [dpdk-dev] [PATCH v7 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: Mon, 01 Aug 2016 10:45:19 -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