From patchwork Thu Feb 11 14:16:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 381012 Delivered-To: patch@linaro.org Received: by 2002:a02:b18a:0:0:0:0:0 with SMTP id t10csp2123698jah; Thu, 11 Feb 2021 06:30:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJxf1vQegKGmfV6GRguNY8eGp+FlqBm4ys+AFhJU+R+oihnsWDmP2ynXzeNa/YSmo6fehWiA X-Received: by 2002:a17:906:7d97:: with SMTP id v23mr8429143ejo.222.1613053835882; Thu, 11 Feb 2021 06:30:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613053835; cv=none; d=google.com; s=arc-20160816; b=Y5H+D3XduUj/42L03JEBNYySXHxFb7Oy2MIqBV+n81338Z2uN8Da/9Qx4H7fS0fFT3 IVFZ5i12ZY/WqWTUzI1xmt0RXljilh3mrr+NBJshn0aL0GvpbXvEP1NdH6eMGuz59+Fm KzxJlDQDAqOw3JhdyyRiLe6Y85tpXbsBbmamSbH4HReF8oU1IDKTIa5lpPhC6v+QeGiQ cJx6RkKoVO4Esno0IJz7hlSJV5iPUEZXCqMjqCByTmKup0hdvxakDr3ocqtJsF6frdeR mWNyUZkdE6mbtM9gkwgUhkpwQghiVquFLJ25Ylb9GM16He447wdhWdQthDt9FTokjBfK Qfdg== 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=pHE/Qy0fUY6lMaxbpOENTNgI9wDulxIuMXgAeRQK804=; b=GRu276kK6y3D7w4IH3fYmZU0nLpkwMiy7kCZiyoZcPs/faLVbuKv+ynzoa62qexL1r jmAwyxkCiBIlElM4Ztqp3ph92a/JN8Agrg8b32IR6Yujws5PRzqJqHn13/H4JTcps4b5 zODfNngsNWuG3F63FYMtUBVLfTrd6tRCn2aEAROo6foGx+yrU5cCDnVNb0ym3UPoDr9G WPgkugwmbBjAYrhxUyKtMWyl0JlYp9YYuokMIV4/Y/qbLDznL76MLcisjmGcdgpfsMGz +5isjADM5UuJ4dJzqBX8/DjHVAfENKBBv1E/g7gvmoENUHWLHyKLNYC6cr9dUbEvy+W0 Kz7A== 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 z22si3801390eje.542.2021.02.11.06.30.35; Thu, 11 Feb 2021 06:30:35 -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 09FE01CC5BF; Thu, 11 Feb 2021 15:28:25 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 10E201CC570 for ; Thu, 11 Feb 2021 15:28:08 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 8ECCA1A05F5; Thu, 11 Feb 2021 15:28:07 +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 4EAB11A05F0; Thu, 11 Feb 2021 15:28:06 +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 976E8402D0; Thu, 11 Feb 2021 15:28:04 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org, ferruh.yigit@intel.com Date: Thu, 11 Feb 2021 19:46:18 +0530 Message-Id: <20210211141620.12482-19-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 18/20] bus/dpaa: secondary process init support 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" Secondary process also need the access the qman and bman ccsr map. Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) -- 2.17.1 diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 662cbfaae5..37cf55d60b 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -582,20 +582,18 @@ rte_dpaa_bus_probe(void) /* Device list creation is only done once */ if (!process_once) { rte_dpaa_bus_dev_build(); - if (rte_eal_process_type() == RTE_PROC_PRIMARY) { - /* One time load of Qman/Bman drivers */ - ret = qman_global_init(); - if (ret) { - DPAA_BUS_ERR("QMAN initialization failed: %d", - ret); - return ret; - } - ret = bman_global_init(); - if (ret) { - DPAA_BUS_ERR("BMAN initialization failed: %d", - ret); - return ret; - } + /* One time load of Qman/Bman drivers */ + ret = qman_global_init(); + if (ret) { + DPAA_BUS_ERR("QMAN initialization failed: %d", + ret); + return ret; + } + ret = bman_global_init(); + if (ret) { + DPAA_BUS_ERR("BMAN initialization failed: %d", + ret); + return ret; } } process_once = 1;