From patchwork Wed Feb 24 12:43:09 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 386858 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp343458jap; Wed, 24 Feb 2021 04:46:24 -0800 (PST) X-Google-Smtp-Source: ABdhPJzk8mbBGNUPfxPAfytS9ttcK7Vy7YtF4FKYvdwcb9MI00qjjBVv+7c/dgpldcletLWftZo1 X-Received: by 2002:a17:906:2816:: with SMTP id r22mr30400366ejc.2.1614170784033; Wed, 24 Feb 2021 04:46:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614170784; cv=none; d=google.com; s=arc-20160816; b=SE0NPtXyjXaAap9bG0Imw10e8ZCJ1JWfQ90EmxiGqPXXbAtroHrGdpOlrgwI+akhiv Ly53LxO7Et/lFR1iz3rIPNxtgAV51yiE6jzujMPFv51/lxFSx0wrtVOi81oc0ptw9Q3S quGfknXSgC/x9viqMA6JA0fSwxm8Me3x5mqb95gH+kB0KoRhmPAfEH7OFD8aaGS1C0nQ L+3YZ8T1r11ZLf3XRmL3NqYkHzQMGP1NpGewLj+Te7AEdHUjRZEyDeV+K6WTiJHZxTLe uRxMAM9npsthleb6OhcxOccE2ITCj57bSWPnK/NUUQlky4AUh3z9HK+xZnZrmeT4A6eP psuw== 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:cc:to:from; bh=vK6tH4M7071lO6jJ/bcIjUiq7IWuFdo9XimYjJNJ1Ro=; b=s6ZLxkeLTQ9HSnZYQPcHzk2+L44H8E9GpH5Cm3SEyXoEOXBnSYJMnU13Rih1kp+DPy SRREqF1APNhe0ex3qXHPqbvD+ps7hSPDACLu5CPHt39lkEHOiNo3Tjp0PlvGMbzNNrJi V2x6X/p2/4hiU/kiFN/qCFVI3f45v0zuL+9IvLY196Bh92D0tMoF+d6Ocs4IGMPgDqni wmNaWpPlPRdtKNpqy07yXILOwAv/g3eA3WywtySKvheS7dKZr0fpjyuC2W3E+FcYYNbB HFg0c1nmWd/8tO8W8M4ZxNQ4qcf8HB8Wd7BrYXyMNCKgdoPsy4V+x9aiuXEjd/xSqu8S v73g== 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 p23si1058766edy.502.2021.02.24.04.46.23; Wed, 24 Feb 2021 04:46:24 -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 C563F1608CF; Wed, 24 Feb 2021 13:43:49 +0100 (CET) Received: from inva021.nxp.com (inva021.nxp.com [92.121.34.21]) by mails.dpdk.org (Postfix) with ESMTP id 52A20160873 for ; Wed, 24 Feb 2021 13:43:32 +0100 (CET) Received: from inva021.nxp.com (localhost [127.0.0.1]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 2808A2005A5; Wed, 24 Feb 2021 13:43:32 +0100 (CET) Received: from invc005.ap-rdc01.nxp.com (invc005.ap-rdc01.nxp.com [165.114.16.14]) by inva021.eu-rdc02.nxp.com (Postfix) with ESMTP id 133AC20058F; Wed, 24 Feb 2021 13:43:30 +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 F0ADE40281; Wed, 24 Feb 2021 13:43:26 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal Date: Wed, 24 Feb 2021 18:13:09 +0530 Message-Id: <20210224124311.29799-22-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20210224124311.29799-1-hemant.agrawal@nxp.com> References: <20210211141620.12482-1-hemant.agrawal@nxp.com> <20210224124311.29799-1-hemant.agrawal@nxp.com> X-Virus-Scanned: ClamAV using ClamSMTP Subject: [dpdk-dev] [PATCH v3 21/23] 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