From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f196.google.com (mail-wr0-f196.google.com [209.85.128.196]) by dpdk.org (Postfix) with ESMTP id 6D8555A3E for ; Sat, 25 Feb 2017 11:28:30 +0100 (CET) Received: by mail-wr0-f196.google.com with SMTP id q39so4882841wrb.2 for ; Sat, 25 Feb 2017 02:28:30 -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=XhKTHQnvaqp7ke5J74Apr+8vzJUBFjTHfbf+daZtPxfzJK7irogt4BFaSJ6Z3x9Azw Gn1gRPDSDOcXZmUkCspcO2v58LDgPd7nb49qamoBjuw2nD7NcMW/XxwgOPHvFnmClwd+ SgZzSmiZgWyoPYjsPHecniztWVtbtFaBbEStGAfowWOKoTAtyDQlKleHrO+Nq5DDTiz/ iooiLfi3iVl3ddj1XaqoTbXqAHRukGy/fQEBuH/B2Mn1Tb/zIpXeppCmrdrekwzV2Eu4 Nm0GMqK36CUlndCkuZtczxHzHdQHWxPJhKJeEz6kx2h1kcTZnAwsfB5sfxpkwjXV/U2E 51FA== 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=UfUPIPnJrW7YJKOlAR66i8xqIz2GPfweGSUrgFWQlNbDvIVMrU7LnbjwEYK/DJuQfr kb8bwxyhT2hGa4uyF0WOzHsx7V7kPK1mEhdoViPD4QydqKb+wE3nIWz+SpA0fl9CIB00 0cq2J7Q91lKyPSrNUl7/2CzQ5+0jGBou0IxYPxfrF+nnBoeICKa+9L4MN7NJwdHUvEyg ef9iu+2nocZI2sspsqo4A1/FvBljRaQ6tlMbyjv35Kpa9JZ8f7ZeikQVcg4PFZGBQR3e V6xvGCMfFcAVz0muYnEz2DMUREsWbIKx7N+uMAeqbhbZYI1IeFM8Hu3E5BOyMkr2dpZt TAYw== X-Gm-Message-State: AMke39kI0xg+CI/354vdCD/PIj7sGh7QI79RSiFOXf4idgevZlBxxdrYHJsjUA54igvIlQ== X-Received: by 10.223.144.65 with SMTP id h59mr7396225wrh.30.1488018509980; Sat, 25 Feb 2017 02:28:29 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id e72sm5830893wma.16.2017.02.25.02.28.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 25 Feb 2017 02:28:28 -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: Sat, 25 Feb 2017 11:28:07 +0100 Message-Id: <1488018496-995-2-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1488018496-995-1-git-send-email-jblunck@infradead.org> References: <1488018496-995-1-git-send-email-jblunck@infradead.org> In-Reply-To: <1487600262-14382-1-git-send-email-jblunck@infradead.org> References: <1487600262-14382-1-git-send-email-jblunck@infradead.org> Subject: [dpdk-dev] [PATCH v3 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: Sat, 25 Feb 2017 10:28:30 -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