From mboxrd@z Thu Jan 1 00:00:00 1970 From: santosh Subject: Re: [PATCH v6 08/12] linuxapp/eal: auto detect iova mode Date: Thu, 17 Aug 2017 20:13:54 +0530 Message-ID: <73f8a12f-739f-c446-606c-6d4e8e5bd27f@caviumnetworks.com> References: <20170724084004.25542-1-santosh.shukla@caviumnetworks.com> <20170814161059.6684-1-santosh.shukla@caviumnetworks.com> <20170814161059.6684-9-santosh.shukla@caviumnetworks.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Cc: dev@dpdk.org, olivier.matz@6wind.com, thomas@monjalon.net, jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, maxime.coquelin@redhat.com, sergio.gonzalez.monroy@intel.com, bruce.richardson@intel.com, shreyansh.jain@nxp.com, gaetan.rivet@6wind.com, anatoly.burakov@intel.com, stephen@networkplumber.org To: Aaron Conole Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0088.outbound.protection.outlook.com [104.47.42.88]) by dpdk.org (Postfix) with ESMTP id 16854916D for ; Thu, 17 Aug 2017 17:03:13 +0200 (CEST) In-Reply-To: List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On Wednesday 16 August 2017 11:08 PM, Aaron Conole wrote: > Santosh Shukla writes: > >> - Moving late bus scanning to up..just after eal_parsing. >> - Auto detect iova mapping mode, based on the result of >> rte_bus_scan_iommu_class. >> >> Signed-off-by: Santosh Shukla >> Signed-off-by: Jerin Jacob >> Reviewed-by: Maxime Coquelin >> --- >> lib/librte_eal/linuxapp/eal/eal.c | 15 +++++++++------ >> 1 file changed, 9 insertions(+), 6 deletions(-) >> >> diff --git a/lib/librte_eal/linuxapp/eal/eal.c b/lib/librte_eal/linuxapp/eal/eal.c >> index febbafdb3..5382f6c00 100644 >> --- a/lib/librte_eal/linuxapp/eal/eal.c >> +++ b/lib/librte_eal/linuxapp/eal/eal.c >> @@ -798,6 +798,15 @@ rte_eal_init(int argc, char **argv) >> return -1; >> } >> >> + if (rte_bus_scan()) { >> + rte_eal_init_alert("Cannot scan the buses for devices\n"); >> + rte_errno = ENODEV; > Since this now happens before hugetlbs are allocated, is it possible to > retry? If so, then I would say to clear the run_once variable. Yes, Change queued for v7. Thanks.