From patchwork Wed Feb 24 12:43:07 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 386855 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp343214jap; Wed, 24 Feb 2021 04:46:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyy6uqq5chN8TEtVilZeidFQ28tD3xd1whovE3W6zDaSNFKh7l9WmQ3uWQJ2J0xbXAo0TKP X-Received: by 2002:a50:e1c9:: with SMTP id m9mr34556755edl.307.1614170760400; Wed, 24 Feb 2021 04:46:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614170760; cv=none; d=google.com; s=arc-20160816; b=CZEM0OKdAWY7HwFl7WbRaP4psDtZH/6MEvXI0caCL8MV6mliyPoZmhn+X9M753xS67 B/W1QghQ3mUOF5iBqhJvksao50wvX9PcEmUT/RNe0KaVuhkXRDetgDwZanW6TA1KWURE 4j1LfbCdnB6rQb09PODNxGWIA/OvjKGbPzhxUZ/CTizHRuJM9+Iodv5MPCnhZxhq9UEq omdQJ9WYl+sr1vdvbp77+wlP3gLPTXoBQp6JrGhZUPTKRZMBjnvWa9jsop6mK9w9QwG4 W2C+JWyE9bjGYWAiCsjfq7N1hTQqSgumVKFj9nTla5SXunxh0m7QtNKxUKIfyLjE37P5 DZbw== 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=pHE/Qy0fUY6lMaxbpOENTNgI9wDulxIuMXgAeRQK804=; b=wYuMq/VZCAiGyXrC1+VVd+PEMJjynYJ9V6Lc28IBlKUfbkafeRrJJwDC+us631jViv 417PNjzLQ6AKRnUGk0Tq7t5XEQhFtsnWeKjB3nQSVj95o5RzKABDfGe2S/ariUlnUYee hoXjMcQPjIEwoNWkcx/vXhiumBH9TeOjshdjeImTx5V8UcO3nmsoQFJk4Z+nC0IfFY+c WdP3ciO4vLqtSzGOl9uJ+oU+3F8xbkhcf0RkG/DqmLTuCDezHTeU/fTDfZOpGixjnhe2 chTtIEWjnmqfUIcoOq8dpJKGdOT82yNj0P7ha76Cjcz08MK/mwdp/zE8FaTGUbbufcVJ OKpg== 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 o15si1257546ejr.527.2021.02.24.04.46.00; Wed, 24 Feb 2021 04:46:00 -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 213101608BD; Wed, 24 Feb 2021 13:43:46 +0100 (CET) Received: from inva020.nxp.com (inva020.nxp.com [92.121.34.13]) by mails.dpdk.org (Postfix) with ESMTP id 94F71160860 for ; Wed, 24 Feb 2021 13:43:30 +0100 (CET) Received: from inva020.nxp.com (localhost [127.0.0.1]) by inva020.eu-rdc02.nxp.com (Postfix) with ESMTP id 6DDD41A0398; Wed, 24 Feb 2021 13:43:30 +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 59B0F1A0391; Wed, 24 Feb 2021 13:43:28 +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 B450A40319; Wed, 24 Feb 2021 13:43:25 +0100 (CET) From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Hemant Agrawal Date: Wed, 24 Feb 2021 18:13:07 +0530 Message-Id: <20210224124311.29799-20-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 19/23] 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;