From patchwork Thu Feb 11 14:16:20 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 381014 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2123933jah; Thu, 11 Feb 2021 06:30:51 -0800 (PST) X-Google-Smtp-Source: ABdhPJyyk0cLk4EJ0ATLX3GA9Qoir83urSMdR/9wfmsECpy1cGHBoYeIwndFrb92C7yjCWti1MDC X-Received: by 2002:a05:6402:702:: with SMTP id w2mr8793778edx.78.1613053851567; Thu, 11 Feb 2021 06:30:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613053851; cv=none; d=google.com; s=arc-20160816; b=qOMYSGxvgEL7qu1M/ESccpsn7Z1K6FGEL+6JnvRISUuUZbm5xWrSUL3J2rIB4GB6f/ XV5HknK+tpeTuRbUSK/EesyteesV1MOFX71PI/QVbKweViMsrgLiQQSPl+fsBAcHuVmE nBvjDCzJwF7PzC5a5/Enc89kQzN5+Vsb+RZnYCdjPFiu4fEEzY2uQe2V25UC6Cix49Wo BDQXBeqGpjeLzsaNa+eaff4kSyXlLd1zn6dhN9eUhVhnoeJ6gF9ZvHjA18rZCD6Aqp+U W2DtKgww56dghGep7wPzvjZIwG68XbxbfUy9/EwriaK09JjEHeo25eGekCQYk2Yxwkvh x4vg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:references:in-reply-to :message-id:date:to:from; bh=vK6tH4M7071lO6jJ/bcIjUiq7IWuFdo9XimYjJNJ1Ro=; b=uDJWgEcCtQ5NICsyNi+G5JN3HJIRDtW7Vs2QzzOW2KBdW06cvqPunPEgy8hxj7qbMJ 2gNgl+8PxWnjr2KaZVxXKzkpImdPUUZgZZPFpZfJrHsxH098OGO1Hj7nnokMXWJJhBpq Xq7lqRh3y7W1LtAb43+apeWfla3/HWGu/YIFvPp4rSpcdbMubbfowiilJHq9vQleDnOU vFbni3qZovly9cYQMLNFMmOOvQRhPNgvrsWM5eHzq7VqN17rOEQJQmdLC92xWb+HOaHN AB7o2ooFCMdboIhdo++xv9GloQZthvvaXLsCq75TY8ZE+CUFD3FCO/403Zh/gIctfdT8 vjsw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from mails.dpdk.org (mails.dpdk.org. [217.70.189.124]) by mx.google.com with ESMTP id g5si4052531edj.194.2021.02.11.06.30.51; Thu, 11 Feb 2021 06:30:51 -0800 (PST) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) client-ip=217.70.189.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 217.70.189.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 9730D1CC5C9; Thu, 11 Feb 2021 15:28:27 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 21BD41CC38A for ; Thu, 11 Feb 2021 15:28:09 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id A5CC11A05C7; Thu, 11 Feb 2021 15:28:08 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 656561A05EF; Thu, 11 Feb 2021 15:28:07 +0100 (CET) Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.133.63]) by invc005.ap-rdc01.nxp.com (Postfix) with ESMTP id AFA65402E5; Thu, 11 Feb 2021 15:28:05 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Thu, 11 Feb 2021 19:46:20 +0530 Message-Id: <20210211141620.12482-21-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210211141620.12482-1-hemant.agrawal@nxp.com> References: <20210120142723.14090-1-hemant.agrawal@nxp.com> <20210211141620.12482-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v2 20/20] bus/dpaa: enhance checks for bus and device detection X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 1. It is not a error if no network device available. One can only use crypto device 2. Improve logging for failure in detecting the bus Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 37cf55d60b..173041c026 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -521,16 +521,18 @@ rte_dpaa_bus_dev_build(void) /* Get the interface configurations from device-tree */ dpaa_netcfg = netcfg_acquire(); if (!dpaa_netcfg) { - DPAA_BUS_LOG(ERR, "netcfg_acquire failed"); + DPAA_BUS_LOG(ERR, + "netcfg failed: /dev/fsl_usdpaa device not available"); + DPAA_BUS_WARN( + "Check if you are using USDPAA based device tree"); return -EINVAL; } RTE_LOG(NOTICE, EAL, "DPAA Bus Detected\n"); if (!dpaa_netcfg->num_ethports) { - DPAA_BUS_LOG(INFO, "no network interfaces available"); + DPAA_BUS_LOG(INFO, "NO DPDK mapped net interfaces available"); /* This is not an error */ - return 0; } #ifdef RTE_LIBRTE_DPAA_DEBUG_DRIVER