From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f194.google.com (mail-wr0-f194.google.com [209.85.128.194]) by dpdk.org (Postfix) with ESMTP id A54C02C50 for ; Mon, 20 Feb 2017 15:18:23 +0100 (CET) Received: by mail-wr0-f194.google.com with SMTP id 89so5467805wrr.1 for ; Mon, 20 Feb 2017 06:18:23 -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=n6B4xyfG1I5KNZGm/wdjy2l7AbRvSUqxciKdpoOlOqM=; b=Lu9tK1mZtf0Mf/P57eTaaOAZJRDw3CrTkydlghxCz+SkqM53D2nPhWIKns3GCEBLIc vumJFE20nS7WPEr7n8ICP/qRwnw2WkfxO+2sVzA1pLDzumfm5kuJeyiWyfIFBMi0dd0R f6al0RH10pvzRlAu+sqDAaPQ2H9ppYxKEi4StZbDtB34Kfk+gdn9dyDRwg3YuNtyu2U1 YmAUXIsZRqO0xRYmOdw4Ces7iElOw+rllZHkUjOMwdrFQZ449M2iOYVTeKNGKn/JcXuq eFHeZh1L6khmdFSdzi3arX5DoxRHRS7bBF96xuQzlWG+FGuQQUN90Y/tlbMKcnT2XxvA 3Z7w== 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=n6B4xyfG1I5KNZGm/wdjy2l7AbRvSUqxciKdpoOlOqM=; b=TXQ5AaJyLyNlSE0Enbe+ZNOT4cg/j+1Mq9052LFd5IvLNLv/s1778HP+DDS8sJCpnE sGDYiPYuDktb38rEzM+YFxUP2qzFV0i6lVvjK/PW7X74bs9XnuJOz7Rdgljn8+KJWgSc p4aaCwCYp5fBPEbPzPRy+2INibJifzu6inTtc3NlB/2t/AdOWRNJa0JW3Mc7EcNlcB6F cjpC8BXt4j+lwSY1TeEvMbbSdOgBCZBUmc+33czJjMKzTvzYKnY9e7vj3tcOEarp+6Iy Nl947vsbzbBK5tZ8eo9taMXHF/FmIYFqy1UzZslELRHJZztvyWtyt3mqcj0HYP7g7IY9 uVSQ== X-Gm-Message-State: AMke39kjwFe+vpMcp+u1S+vEmBMD3bFubfq+N+7GL7zAYgSSkGC67HUrejzrm7jKNkCULg== X-Received: by 10.223.136.41 with SMTP id d38mr5116821wrd.37.1487600303511; Mon, 20 Feb 2017 06:18:23 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id o2sm24932276wra.42.2017.02.20.06.18.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Feb 2017 06:18:22 -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, 20 Feb 2017 15:17:36 +0100 Message-Id: <1487600262-14382-3-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1487600262-14382-1-git-send-email-jblunck@infradead.org> References: <1487600262-14382-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1487152929-23627-1-git-send-email-jblunck@infradead.org> References: <1487152929-23627-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v2 2/8] 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, 20 Feb 2017 14:18:23 -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 --- 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