From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f67.google.com (mail-wm0-f67.google.com [74.125.82.67]) by dpdk.org (Postfix) with ESMTP id 5A919952 for ; Mon, 6 Mar 2017 11:57:04 +0100 (CET) Received: by mail-wm0-f67.google.com with SMTP id z63so10862003wmg.2 for ; Mon, 06 Mar 2017 02:57:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=nBed9u0SlNV2vyJW2f+PitDdXl3c6dSvvMmNP1C1AfI=; b=dGHnmnebuWY+LhITelaiOsMx/WH9NpSJ98ueMLURYkS90oSeUuQZqj2WRlCDY4Kxia lk58Uxa3CVRZZ0JqDcUGcVihU9XVps+bEm+aK/7QuqP0zq0ITqY/s5LCmM1ptP6/eqy6 F0vyDdclqwihYXmiaoitgqwvTRXQ/jjp/qgr2wscWTr9BH971NOXOJakdtmhMnfbeXJO xqkpDu/5a8RzMoJc0TEUEcl9E+TRBJ8iGBDFwB1/5LNEVJk0pBWeJTaHojpO2t/aBUlI AsWZr/3fNOIcU7WUzPK//Kp/ffo3bx/pNKPfjdAS8P63YmEddeE2hs6LN9BdTUTiMccP B9nA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references:in-reply-to:references; bh=nBed9u0SlNV2vyJW2f+PitDdXl3c6dSvvMmNP1C1AfI=; b=rz9IXxzhVq2wBM2I6bfssRB4cV96kuz4d8j/Vdr65LQFsat3nVX/j8xp//z+unOAAb 2mUvNk/YMUcYuzNUvlpXhHhim/LaPJuibanoUYrvHmryQk/j7uAunXhNNdW/jlblbhfz CRiyyiiOJBdZVTKZJiXPSdXYISb/LtVjrHJ3K9gKwiEPqi1WfQ1nMJP9Q2XQITTGkYRm IGDjm5DvtE9uw3ojlU9a5GdHOl3VhLVbufiPHOVwlqk+Rdqds9E+7FBPO77iwbOf/fxB OYfHOdiehxJoXt9CMxtgcDsCHQLzcQFFQvJcF4K8qMFDV2UV80ZpWPpNd5h48ZBceNgd wexQ== X-Gm-Message-State: AMke39kyefniUcBoIq12/7IWngP2lbXwDcN35MmdO0i3DO2KMUyjzoDLu2ILk8zvY0H5Xg== X-Received: by 10.28.155.65 with SMTP id d62mr13302220wme.7.1488797824166; Mon, 06 Mar 2017 02:57:04 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o63sm14277896wmo.30.2017.03.06.02.57.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 06 Mar 2017 02:57:03 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: david.marchand@6wind.com, shreyansh.jain@nxp.com, ferruh.yigit@intel.com Date: Mon, 6 Mar 2017 11:56:40 +0100 Message-Id: <1488797809-12917-2-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488797809-12917-1-git-send-email-jblunck@infradead.org> References: <1488797809-12917-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v4 01/10] eal: probe legacy PCI devices before other bus devices X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 06 Mar 2017 10:57:04 -0000 Make sure that the PCI devices are probed before the virtual devices after the legacy virtual device probing has been moved to a bus. Signed-off-by: Jan Blunck Tested-by: Ferruh Yigit Acked-by: Shreyansh Jain --- lib/librte_eal/bsdapp/eal/eal.c | 8 ++++---- lib/librte_eal/linuxapp/eal/eal.c | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/librte_eal/bsdapp/eal/eal.c b/lib/librte_eal/bsdapp/eal/eal.c index ee7c9de..a584447 100644 --- a/lib/librte_eal/bsdapp/eal/eal.c +++ b/lib/librte_eal/bsdapp/eal/eal.c @@ -613,14 +613,14 @@ rte_eal_init(int argc, char **argv) rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER); rte_eal_mp_wait_lcore(); - /* Probe all the buses and devices/drivers on them */ - if (rte_bus_probe()) - rte_panic("Cannot probe devices\n"); - /* Probe & Initialize PCI devices */ if (rte_eal_pci_probe()) rte_panic("Cannot probe PCI\n"); + /* Probe all the buses and devices/drivers on them */ + if (rte_bus_probe()) + rte_panic("Cannot probe devices\n"); + if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c index bf6b818..f77ff5c 100644 --- a/lib/librte_eal/linuxapp/eal/eal.c +++ b/lib/librte_eal/linuxapp/eal/eal.c @@ -884,14 +884,14 @@ rte_eal_init(int argc, char **argv) rte_eal_mp_remote_launch(sync_func, NULL, SKIP_MASTER); rte_eal_mp_wait_lcore(); - /* Probe all the buses and devices/drivers on them */ - if (rte_bus_probe()) - rte_panic("Cannot probe devices\n"); - /* Probe & Initialize PCI devices */ if (rte_eal_pci_probe()) rte_panic("Cannot probe PCI\n"); + /* Probe all the buses and devices/drivers on them */ + if (rte_bus_probe()) + rte_panic("Cannot probe devices\n"); + if (rte_eal_dev_init() < 0) rte_panic("Cannot init pmd devices\n"); -- 2.7.4