From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v2 5/7] eal: bring forward init of interrupt handling Date: Fri, 13 Jul 2018 00:36:59 +0200 Message-ID: <5431396.k1M6VaMcRs@xps> References: <5f6bc60bf193daf4eb07f4484c52878bb1b751de.1530009564.git.anatoly.burakov@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Jianfeng Tan , Bruce Richardson , konstantin.ananyev@intel.com, qi.z.zhang@intel.com, stephen@networkplumber.org, olivier.matz@6wind.com, david.marchand@6wind.com, ferruh.yigit@intel.com To: Anatoly Burakov Return-path: Received: from out4-smtp.messagingengine.com (out4-smtp.messagingengine.com [66.111.4.28]) by dpdk.org (Postfix) with ESMTP id ABB121B06D for ; Fri, 13 Jul 2018 00:37:03 +0200 (CEST) In-Reply-To: <5f6bc60bf193daf4eb07f4484c52878bb1b751de.1530009564.git.anatoly.burakov@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 26/06/2018 12:53, Anatoly Burakov: > From: Jianfeng Tan > > Next commit will make asynchronous IPC requests rely on alarm API, > which in turn relies on interrupts to work. Therefore, move the EAL > interrupt initialization before IPC initialization to avoid breaking > IPC in the next commit. > > Signed-off-by: Jianfeng Tan > Signed-off-by: Anatoly Burakov > --- > --- a/lib/librte_eal/linuxapp/eal/eal.c > +++ b/lib/librte_eal/linuxapp/eal/eal.c > @@ -839,6 +839,11 @@ rte_eal_init(int argc, char **argv) > > rte_config_init(); > > + if (rte_eal_intr_init() < 0) { > + rte_eal_init_alert("Cannot init interrupt-handling thread\n"); > + return -1; > + } > + > /* Put mp channel init before bus scan so that we can init the vdev > * bus through mp channel in the secondary process before the bus scan. > */ > @@ -968,11 +973,6 @@ rte_eal_init(int argc, char **argv) > rte_config.master_lcore, (int)thread_id, cpuset, > ret == 0 ? "" : "..."); > > - if (rte_eal_intr_init() < 0) { > - rte_eal_init_alert("Cannot init interrupt-handling thread\n"); > - return -1; > - } > - > RTE_LCORE_FOREACH_SLAVE(i) { I am almost sure it will bring regressions. Please think again about the consequences of initializing interrupt thread before affinity setting, memory init, device init. Opinions / ideas from anyone?