From patchwork Mon Aug 27 08:52:23 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 145161 Delivered-To: patch@linaro.org Received: by 2002:a2e:1648:0:0:0:0:0 with SMTP id 8-v6csp3944757ljw; Mon, 27 Aug 2018 01:54:27 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ1H9v7UJBrwd/QxrNQQlAcX5PxklXbim5RIHLUXYMa4emzKIIXeKr/cHSn5sYvY9bqR/F8 X-Received: by 2002:a1c:f11a:: with SMTP id p26-v6mr5182678wmh.92.1535360067193; Mon, 27 Aug 2018 01:54:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535360067; cv=none; d=google.com; s=arc-20160816; b=iBRaP7H4oKGRq4U1uXbmrxhXUySNDKxwBLQGwAIEesVCLJmJyWKNzUSUuCz9ChxK/U wb1I4G3i+Xhz/c2w7Xt98Mv/QRJMsmih7F1/qPCZUhoXN5kY4BtYDlfAAqG7Od5m2rda 7oKb09LTQaGhXq+Ro+ug9WCk8dxAASjlun9o7zoWu6RSKFCJJIdgb+HFlGtqnwPf1XTM czlyZyrrZR/tkGZFry2fcJhrns54vh9qn/08hLdto26A6mtejfXTP64hH6MClmThFJvw z8iGYXyZK2JJe7LpdXPhtqI3lpVK0cQatgVUtUrxbNz6RGvFSE5VpLhRbIoPcCBjYLrb Kc/Q== 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:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=Ud+z9dty822BoSj0YCqDmIoznIWPu7QeljvehZQX0cY=; b=NKKmvDDGXEXyGBW1hUqWWxzpOzn027SX5Mj36ySgbaFej/Um6EgLluA2MKM2ma+Ny2 Fssv368oO7Hp9h0exNRgLjWEIM8fWw8mBUmZeHgYvS5sGno7hnJ8nb+3kHSBFad28u6D BZi8aJWoYbOR6kocqZhNZJqoGkAhqn7ifW4cSAEA95gUUR2nMUDbQPQWjX5ZQ5A6Y9+n SiefiAYWMUxhKMqLcJ/VfRrH2wMkTqQ5F+Xv2+CT+YQL1ql4OLPzTaY0zEawfZQsxVe/ rfmfMJJEyP+7LaZGuKdznO9nfG+fkGdRBhxv1LkiPo3Jpmk9rZafVmqNVgsG69FqGuwf +vRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=wxc5GYfS; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.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 dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id u26-v6si6101930wmc.29.2018.08.27.01.54.26; Mon, 27 Aug 2018 01:54:27 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=wxc5GYfS; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B362E2C72; Mon, 27 Aug 2018 10:54:25 +0200 (CEST) Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30044.outbound.protection.outlook.com [40.107.3.44]) by dpdk.org (Postfix) with ESMTP id 56EBB1D8A; Mon, 27 Aug 2018 10:54:24 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=Ud+z9dty822BoSj0YCqDmIoznIWPu7QeljvehZQX0cY=; b=wxc5GYfSaTjZvLaDKaeAjSXZB8CMtvLPLVnoEXuZAiEqoLoRmSO7jcbid0xjKvAsXAJp3IJh6woPhcB+NiIryG0jLljo9PH4Tyti3kRhLyGmiw9re2uyFwjoX5J+1WA4MRFWV+m1QHuUQ/xccX0u414opJl2F+j/5UXAwRH/FEg= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM5PR0401MB2531.eurprd04.prod.outlook.com (2603:10a6:203:36::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Mon, 27 Aug 2018 08:54:22 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: keith.wiles@intel.com, shreyansh.jain@nxp.com, stable@dpdk.org Date: Mon, 27 Aug 2018 14:22:23 +0530 Message-Id: <1535359943-20170-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1534757232-7679-1-git-send-email-hemant.agrawal@nxp.com> References: <1534757232-7679-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BMXPR01CA0026.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:c::12) To AM5PR0401MB2531.eurprd04.prod.outlook.com (2603:10a6:203:36::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 1e02a788-abf3-4e9e-2700-08d60bfaaf3e X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:AM5PR0401MB2531; X-Microsoft-Exchange-Di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YzSpgR8BF8tqdyq1b9ns78n8YpY7gZXV5AnXVOEWowkWpRHdaApeJFpzFmgPn6JKvucoGTksPh8L/Y6UtqostUXyeVH5K7xmL8bqOXFEsx0K4rLEWBtgkAgS8vF1GmeuEyCrHBIch8ciauksy1DhEn9Bpv+LPivh5byZDDb1ZDY2JhhPLuXv9kAMvYKMl1Wisqj19MbI3X7PuJe4vnpP26IggRSdSeU+h9deWCfhm6C5ythXTqkpJuOVTJC8qFb+gmy1lvi2drCzS0Do5lQwDW9zdEcHhRD+lR3KqKUWn+0KcknvHB/NLkRRQD3FyjtuaqilfHYUtMEBmbHehnVmR6bdMz2Xq92bo6J/TORgFxDCo2bdGYMh20; 4:rw8E0onAl5wsNZvvfa6Gj6s6yyUoSrTsAX1xM40rf3LllURDai5o+/q5uFU2TAv4kNy0ANkDVTXuFOrVV6CQql7HS8mnoabwzvAQDAqoAsVYQAPMVr5zSlRBCpVjwCBg6LVV5FuTBdMdoiwupTrUpubmieE8svtx9J9Mr5GCn2A5+WVWaRXCROVCSxtfx5YADqZSEdfJDHkdVvMl8BUGKUpCBUZ+Q5NJOQ7X3LKYekaVPlbDbocLTnsKa+hPVgauxKZ/GvXHpDyjJJHVr24f/6/iwDCS0F/kA1t8tqX3luCD+t0W+1HsRd/OWOj7nVWyefl6mq3pxfean1xnDqagbTpItTmcVUVb9F6pw+v2cfJ3+tImwvu0/IibsdpYdGsW X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684)(228905959029699); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(823301075)(3231311)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(201708071742011)(7699016); SRVR:AM5PR0401MB2531; BCL:0; PCL:0; RULEID:; SRVR:AM5PR0401MB2531; X-Forefront-PRVS: 07778E4001 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(136003)(346002)(396003)(39860400002)(376002)(189003)(199004)(2361001)(4326008)(8676002)(47776003)(16586007)(316002)(36756003)(6512007)(106356001)(6916009)(50466002)(68736007)(66066001)(53936002)(48376002)(2351001)(478600001)(97736004)(44832011)(86362001)(52116002)(51416003)(50226002)(486006)(6116002)(26005)(16526019)(81166006)(76176011)(186003)(3846002)(305945005)(81156014)(5009440100003)(11346002)(446003)(8936002)(956004)(2616005)(476003)(7736002)(6506007)(105586002)(2906002)(6486002)(5660300001)(386003)(25786009)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM5PR0401MB2531; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM5PR0401MB2531; 23:c58oRJanljQWYHh0vmjve3Pzns+93TKUnu18sih?= P1C1mmJn6c5utTuquTtbiOxx76h2hHX9DLcLOeZOqjx82aM01HloVEWIBpTuUSy36a5WLPxylN5IjdOMcZMEwmY/sn/4xeVh1A2qmUN3bV43mvYngb5483bcNFDDTue9894d2du2vUKeHuUS8w/DXPSUosNmDqa0mgpAn7AcQLLIhHSpCHg15PzLNLj4cyn/8mBJalsaswtOy8b9JMpw7+7MZaqEft0heh7uouZXW7NRXJyuiqQrlfUVDDLafsCas835+An6ITrJDmDDVWvwcYBNl6FWHMcXRWnm7586q3XAfWfGRXBKWvqurm+648ept4EwNlXsGnJROG8gxzFFN/ZKr7PMGhUYJKVVw4GPT8q/iy2A1Y1LTtCi6g8ifLiYx5khNb017fHS6LRCV2UhMg13OoA5vW966rIsdOJ0YcbvwMacrSRlspRWmIpeKVG7n6Cdq/FbaLCNa1tW94pTY/z+bGpSvIlTiM8rga2sRY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X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Aug 2018 08:54:22.0725 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 1e02a788-abf3-4e9e-2700-08d60bfaaf3e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM5PR0401MB2531 Subject: [dpdk-dev] [PATCH v2] bus/fslmc: fix the undefined ref of rte dpaa2 memsegs X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" This patch fix the undefined reference issue with rte_dpaa2_memsegs when compiled in shared lib mode with EXTRA_CFLAGS="-g -O0" Bugzilla ID: 61 Fixes: 365fb925d3b3 ("bus/fslmc: optimize physical to virtual address search") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Reported-by: Keith Wiles --- v2: add bugzilla id drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c | 7 +++++++ drivers/bus/fslmc/rte_bus_fslmc_version.map | 1 + drivers/mempool/dpaa2/dpaa2_hw_mempool.c | 7 ------- drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map | 1 - 4 files changed, 8 insertions(+), 8 deletions(-) -- 2.7.4 Acked-by: Shreyansh Jain diff --git a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c index 39c5adf..db49d63 100644 --- a/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c +++ b/drivers/bus/fslmc/portal/dpaa2_hw_dpbp.c @@ -28,6 +28,13 @@ #include "portal/dpaa2_hw_pvt.h" #include "portal/dpaa2_hw_dpio.h" +/* List of all the memseg information locally maintained in dpaa2 driver. This + * is to optimize the PA_to_VA searches until a better mechanism (algo) is + * available. + */ +struct dpaa2_memseg_list rte_dpaa2_memsegs + = TAILQ_HEAD_INITIALIZER(rte_dpaa2_memsegs); + TAILQ_HEAD(dpbp_dev_list, dpaa2_dpbp_dev); static struct dpbp_dev_list dpbp_dev_list = TAILQ_HEAD_INITIALIZER(dpbp_dev_list); /*!< DPBP device list */ diff --git a/drivers/bus/fslmc/rte_bus_fslmc_version.map b/drivers/bus/fslmc/rte_bus_fslmc_version.map index fe45a11..b4a8817 100644 --- a/drivers/bus/fslmc/rte_bus_fslmc_version.map +++ b/drivers/bus/fslmc/rte_bus_fslmc_version.map @@ -114,5 +114,6 @@ DPDK_18.05 { dpdmai_open; dpdmai_set_rx_queue; rte_dpaa2_free_dpci_dev; + rte_dpaa2_memsegs; } DPDK_18.02; diff --git a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c index 7d0435f..84ff128 100644 --- a/drivers/mempool/dpaa2/dpaa2_hw_mempool.c +++ b/drivers/mempool/dpaa2/dpaa2_hw_mempool.c @@ -33,13 +33,6 @@ struct dpaa2_bp_info rte_dpaa2_bpid_info[MAX_BPID]; static struct dpaa2_bp_list *h_bp_list; -/* List of all the memseg information locally maintained in dpaa2 driver. This - * is to optimize the PA_to_VA searches until a better mechanism (algo) is - * available. - */ -struct dpaa2_memseg_list rte_dpaa2_memsegs - = TAILQ_HEAD_INITIALIZER(rte_dpaa2_memsegs); - /* Dynamic logging identified for mempool */ int dpaa2_logtype_mempool; diff --git a/drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map b/drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map index b9d996a..b45e7a9 100644 --- a/drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map +++ b/drivers/mempool/dpaa2/rte_mempool_dpaa2_version.map @@ -3,7 +3,6 @@ DPDK_17.05 { rte_dpaa2_bpid_info; rte_dpaa2_mbuf_alloc_bulk; - rte_dpaa2_memsegs; local: *; };