From mboxrd@z Thu Jan 1 00:00:00 1970 From: Shreyansh Jain Subject: Re: [PATCH] eal: bus scan and probe never fail Date: Tue, 10 Oct 2017 10:30:36 +0530 Message-ID: <83a3c6c6-8d50-8106-7c7f-9b5c8263ce96@nxp.com> References: <20170812102220.27773-1-shreyansh.jain@nxp.com> <2075457.Vvey9mxHue@xps> <10403057.Ll0Xg1E4J1@xps> <83422f57-4c0e-5806-c741-ed5ce10891b0@nxp.com> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 7bit Cc: dev , Hemant Agrawal To: Don Provan , Jan Blunck , Thomas Monjalon Return-path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0063.outbound.protection.outlook.com [104.47.42.63]) by dpdk.org (Postfix) with ESMTP id 5ED251B221 for ; Tue, 10 Oct 2017 06:48:29 +0200 (CEST) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Hello Don, On Monday 09 October 2017 11:51 PM, Don Provan wrote: >> -----Original Message----- >> From: Shreyansh Jain [mailto:shreyansh.jain@nxp.com] >> Sent: Monday, October 09, 2017 4:10 AM >> To: Jan Blunck ; Thomas Monjalon >> >> Cc: dev ; Hemant Agrawal >> Subject: Re: [dpdk-dev] [PATCH] eal: bus scan and probe never fail >> >> ... >> This is where I have disagreement/doubt. >> Reporting error code from rte_bus_scan would do two things: >> >> 1. rte_eal_init is not designed to ignore/log-only these errors - it >> would quit initialization. (But, this can be changed) >> 2. What should rte_eal_init do with this error? rte_bus_scan would have >> already printed the problematic bus->scan() failure. > > These practical problems confirm to me that the failure of a bus > scan is more of a strategic issue: when asking "which devices can > I use?", "none" is a perfectly valid answer that does not seem > like an error to me even when a failed bus scan is the reason for > that answer. I agree with this. > > From the application's point of view, the potential error here > is that the device it wants to use isn't available. I don't see that > either the init function or the probe function will have enough > information to understand that application-level problem, so > they should leave it to the application to detect it. I think I understand you comment but just want to cross check again: Scan or probe error should simply be ignored by EAL layer and let the application take stance when it detects that the device it was looking for is missing. Is my understanding correct? I am trying to come a conclusion so that this patch can either be modified or pushed as it is. If the above understanding is correct, I don't see any changes required in the patch. > > -don provan > dprovan@bivio.net >