From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f195.google.com (mail-wr0-f195.google.com [209.85.128.195]) by dpdk.org (Postfix) with ESMTP id 698F92BA4 for ; Wed, 15 Feb 2017 11:02:25 +0100 (CET) Received: by mail-wr0-f195.google.com with SMTP id c4so5042948wrd.1 for ; Wed, 15 Feb 2017 02:02:25 -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; bh=DkZQrahDspzIwZrfFx5YrbJEuMop9D28It09qBuqMzM=; b=XeW8DUD5iHYgXb0k5tVvS79fA7QVbvwtJ2ntgnDlU7h+h5IZ+m5Hbn3Pu4NXUygRvI LxSsXrykadNLRWrsqWtsYl7vNhPfxYX4h+3o5vNVi59/R4DZyCKh9Bp4xZgvLJtMuj/J jFnvMTWGhHfBSceaUtQQPlFBsspLqNINygbuv0qgx16cOn4warBWoyWE8l2Qk6yJX+yq W8R0krKDLoHlhPcIa0ihp+sIdE9NZRze5tzSLuOumZc39O2Bi3eL6+uz7OSeWjr6KiLd 4G9V5xgbMkSHrbGC3CuJeirPW/tJMO3ft8O5Hdhzgvk1mnaPjirN5QIGw/yTW15fIyl9 2jnQ== 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; bh=DkZQrahDspzIwZrfFx5YrbJEuMop9D28It09qBuqMzM=; b=TWNyY6REqx9SUBK5IsfQP3/C6pCOtPrFUo23K75xyJnLFRjB38v838PexunPWyzckP rnpeJBxWd4AkT3i/mEuMcNCOkA4xd68xU+KCtrdEhAtnM2rlzNLd1QdBTB8RR+oS/UU3 SkUpdErkdEOFqOR4T0/FLtJIXdBrwpSTVG3LMfhjiP6HqO8f9sNr+gyZTZsXX0aWWR1a xUFj8bO55GcztsrW5iWPyD38FbCTR4ZNV637p3uHQAPsVtG4qZFuKOXjp+yHJVURuHac YypOBrH5M32ZaabXOLD6Y8paD/NS8Qo4vp9hS4a88E0dGBd5cvnwDoaDotVRsuvmDYcA at+Q== X-Gm-Message-State: AMke39kp07yk6/FYNs52s4YxeVyQPKlCfOqcfuO9jOLisKOxdpxw0WY8D06bNonDDfux/g== X-Received: by 10.223.149.103 with SMTP id 94mr28487751wrs.110.1487152945231; Wed, 15 Feb 2017 02:02:25 -0800 (PST) Received: from weierstrass.local.net ([91.200.109.169]) by smtp.gmail.com with ESMTPSA id k195sm4716061wmd.7.2017.02.15.02.02.23 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 02:02:23 -0800 (PST) Sender: Jan Blunck From: Jan Blunck To: dev@dpdk.org Cc: shreyansh.jain@nxp.com Date: Wed, 15 Feb 2017 11:02:04 +0100 Message-Id: <1487152929-23627-3-git-send-email-jblunck@infradead.org> X-Mailer: git-send-email 2.7.4 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 2/7] 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: Wed, 15 Feb 2017 10:02:25 -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 --- 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