From patchwork Mon Aug 20 09:27:12 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 144554 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp3737833ljj; Mon, 20 Aug 2018 02:29:19 -0700 (PDT) X-Google-Smtp-Source: AA+uWPxwsRCIE34ubmDSHHB3ERVdnZsh/Z8VpovriFMx7L4WMPqocm1XvwTrkGnv2+LtTggM5KGV X-Received: by 2002:a1c:415:: with SMTP id 21-v6mr26602839wme.128.1534757359739; Mon, 20 Aug 2018 02:29:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534757359; cv=none; d=google.com; s=arc-20160816; b=l60/8eFUqK915r4QETCf0RrEJfdw8RYSgOWb6uhPIvWfFZzorklBqn2pgK+7fGB1NL RWvtym7KdVPvnjZArLViiZZazLteQo/qBKny0gaH2xuSR9o9KBjqNnsxRjX/o3K5c6fP 9KSaYAP1adxrNp14XmnCVio61HVnY2ejsohkJyiHt26Y/ShNjVbUz0wj8FG3g0Fsz2xp DEFjGgP5SNOVIkrdr/CPGLEdk/wpYk+5eq+MV/weJ0QGWwAhTvzgBrZD70eIK7nUDFYC 37a1tl2ZWtq/eAabuyflvPup4PswyDYbwsXBGqOHUW4es+j3F5pNbbsJ6abQLLiGtGQE yfyw== 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:message-id:date:cc:to:from :dkim-signature:arc-authentication-results; bh=vnCOvBU/0Kw8VSzqcLGcfSABCDX/wagDRnzn6LtFoF8=; b=0Cu5AgVpZr1HvaV/Gb5SyGeuuDVYGecE9RiUdB79Igc1WRMVo6PY4pE7UnxAJcTR4Y 0paZQ81JRNU1pVoG8vw9cAo6rXNrzrkJ6BsfedEQi4C5+jPML2pZFDnBpa5xvyFwtMF/ q/+F28zHDdDZE8M+YBqiN5Yh95F/5e1pLImWcSON3hvsNjTSlPjw4qVTwCYnYDp4+pB0 wq7HS4L3VHmi6OItT5WGrg9/G+nkgYoluHHQsION20hIiRXvJkz6i8FNOh15rGvpRj68 E1iVpDlZEiIFAckuslj5ms6/53qEVXSiTYf+bBAWBSJl21+a66tf/C5skEBeNlK/WbqN uHyA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=hbnKbdoY; 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 k125-v6si8309674wme.0.2018.08.20.02.29.19; Mon, 20 Aug 2018 02:29:19 -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=hbnKbdoY; 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 7617A2E41; Mon, 20 Aug 2018 11:29:18 +0200 (CEST) Received: from EUR04-VI1-obe.outbound.protection.outlook.com (mail-eopbgr80082.outbound.protection.outlook.com [40.107.8.82]) by dpdk.org (Postfix) with ESMTP id 14A422BC1; Mon, 20 Aug 2018 11:29:16 +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=vnCOvBU/0Kw8VSzqcLGcfSABCDX/wagDRnzn6LtFoF8=; b=hbnKbdoYHf4jJP6LxkeDX/m9T7dlN5uXYli0ArYMiFSUaLLzMJ/RVQsSM80nkeVQ5HtOcCHNz61aaGgZq3BMvRhcMBpPnBaPd46BF297bW21mQM5ToZYEmXfV797kbhyO9ynup3O9p8wdlA1rsL/LSQB4hAQSeZkaTSv4uLzjYw= Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1059.24; Mon, 20 Aug 2018 09:29:14 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: keith.wiles@intel.com, shreyansh.jain@nxp.com, stable@dpdk.org Date: Mon, 20 Aug 2018 14:57:12 +0530 Message-Id: <1534757232-7679-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0045.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::31) To DB6PR0401MB2533.eurprd04.prod.outlook.com (2603:10a6:4:36::20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: dd81acde-91a8-45c4-74cf-08d6067f65ef X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020); SRVR:DB6PR0401MB2533; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 3:gGksBgBGP34M26NGu9mD7L5etl8z0Q3NeT0gzdsPY5gV2v8dJllnxMhwKdtKqHVO0QSK8VYBq8oimXE4LYV6jHVjlQyB9cpT++8FG/0ia8r/7sxWiJQZBVFiGcAoZs6Rz1fjm3vcp6LHSNKcSs1N7fbBwm2PeSRb4+aazu9pB9NaR/xnb3FekFbQ7y/1c4VxbJpvgzsZ7MR+SaM9xl2RAmK/tXuE/lSjPJWnkjjbOI2yHV33xu4QrD/sP+ldWEJE; 25:Ai0UKJWDjo5d1uuLQvGFpAg0yaXOJd4HCOYqTkL97Q81uYQrlZnwx9lbDB+HeYl/W2xllzjqI8Wm1LGU9Wx+qCuTwmaPjNv3+g8XH9baDDFIDoePMz21jc6zEEYbqgbJEu/S3hrjsc4Lbs/WqYd/YUQqKRa2HDjqIzZtHk5JqG66ogaz8vKOk2DmmlWFxvC3aPTh14U4p6oPkRtItXz67f5EAGNwPcW6bJhu6mGi2UsrKy0YmlNEoq2DYYrv0sgSXeegsqBkbhRZDblU1E5ZBBYqFJ8IT1szKhdxKSGWOmFPbbdNlTnIGDiPI/EXmxCtjDxCF/Di2/X5t9atCldTBA==; 31:GMIAD0F5AvNKK38+1GLFmZbg3nw7QYNgvfM88YwgAWjPBWloCHNtkWg/qJMmKYEZ/yBPQn9uzANOJYuEbA1oLK8NrjWSWR2B+7GjZjeMvU6B84aSFZVZNoYTO/eqW9ldQeYhKfi/+tWrECMc9wXzEffZy2uQ2wAqD4uI5mUcowh4inKvJg89qVmkD5VSLYqQJ2OWIL5lyfef8dP+vgtSuTJjw4/YXpeMtWMdFTkrViw= X-MS-TrafficTypeDiagnostic: DB6PR0401MB2533: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0401MB2533; 20:Ap3/7kKf2LUS2ET8AcvCVE9OqFCrrIukzaW3Fazms6NyuqUkVSFN6D7a0IbPvhma1+aQAvijAh+GBHCVYsh+p9hGCO6v9qIPAlHplQHWwYwhJTmlP+YqUmV4C44cvhuhQw1ZbWLelBXsI12eiUj7W8pzJl9qqXi2C14XBzgqlmW84OsID5o2llHnugaCrxtpF6YEhq8KTGyQOIteXwFRFex7bTG2dPvQWVVv0m8Nki2bMVxoVu2d1pZfmWKcF+BGH1PQFRx7zkpa7MUKvtpXgOn3WlLZi9O0oYjsBOfutIua/WPK5EUackzYOlv0xJ2DGhJMEwHTyIVp4wwS1yXHmj7cVFUF3Rimp/oONVlHN3V2vqZxvnTNrN/htC/6PJykbRI5YCqjobeWn0pHHfDKpbwP0q2tUNwaM4bO4M70e+JStQWfjsouij2gv+tFeuXQKL5o5wet6lNEoaKl6ALkRDtu7OUSCxfV55gk0WcD2kCuF0k7p0vz004HfTBCExdL; 4:U1beKYgJY9IUPiHkXaVuM8vDkPKH7/V8eZ/s+7F+IE5lCfHjEBJU7YullIUuD+VhhA+hY5BVgAE1Ky24jO2+/jSCcaxPwpmiKU054cccFDwrEAdj1XWMaUsW8mOmAlbNV34VKmtUxYwJ/+3NxC8XmvRD5bFAYsqd5zn+PD8+LFPUcs6TT/t0kjOf5Yw56ammQWoDOHA7c20aQHmW0g7wSv1rj/L2W/ttUFuu/Xnc0XL71g+Gv1lF6I7mA0msFpv7HokGBWxiJtoQ7/pju+IqG70obAkYlBhj8GvcMuhIyqIEBATkoohjDfYueUVknECU2gFEQXdVIyDZ1nNvSUWAXqxNNj7IXUr7uOA5tfLTeWqRoYaYXV2hiaEWFiD4dNzF 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)(93006095)(93001095)(3231311)(944501410)(52105095)(10201501046)(3002001)(6055026)(149027)(150027)(6041310)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016); SRVR:DB6PR0401MB2533; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0401MB2533; X-Forefront-PRVS: 0770F75EA9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(396003)(136003)(346002)(366004)(199004)(189003)(16526019)(956004)(52116002)(486006)(476003)(16586007)(2616005)(316002)(66066001)(81166006)(81156014)(8676002)(55236004)(6486002)(86362001)(478600001)(186003)(44832011)(6512007)(6506007)(2906002)(53936002)(7736002)(305945005)(51416003)(6116002)(26005)(386003)(3846002)(1857600001)(68736007)(5660300001)(36756003)(50226002)(2361001)(5009440100003)(6916009)(8936002)(106356001)(105586002)(97736004)(25786009)(50466002)(48376002)(2351001)(4326008)(47776003)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0401MB2533; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DB6PR0401MB2533; 23:IuU4LFgTDX7n+LoZuj/heG7WQJzGSP1ip6/TdX2?= OiBV3FiX6vwNPQ52vG27kOB5BB7vHrN6o+W4pnzrMotz5Hu27b89hh80LsYPpLI6Ue3MxdwTpot5TYo4CzwJ876TzcO3ncPF3oamNjJzlD+RKWwrJfoVeEwVTCRv2OV+MBmdIGiAKLx+MH8DOWTMvuujnqlZnKz79G61m3qtin90BKtbTKPGMLDT1JygKIV83Lu/w7diABjKF27qkYh3YBTDvt/ChQH19xGTdPYv/VZX9vMQiAvUfr52YULDUKVOHguE7hKeGa8NHjgBN0CbXC40FWDQnG4KgC8VgrQoWBMCgA+J8b/m7NSiENQ5jTqL0P6sb9Pq35oXEZbhoz3+nuey+BSOoDgaeUsSkN86gF1aMAgsADqgvjlv31CCDKiHYaa1Q6KU2vJuKc1lPVLwIJaLR0Qd1tgAQq1LSmOhaxoxKf8yMcK0rkF+qihnud8ld46n8IpuQ+LhJV6tkyTNGBBZOE2+IMHMJSqaq6bZCp6C7zd1+nK4coYhDck5z3w1653k8yEhV5taOTfK4RZQAh37u6vE0JY594T/JR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ostics: 1; DB6PR0401MB2533; 6:mAzoEwYWr/l5pQxOEnMWBpGtQ+sYko2wPCW0ugLHg8TPUFfC5j6w0Pw/hvmbvcXVTV22WDQd5gFmFoY6JPTYGS5Wgk6Wz+C4qGiq5dm4AECJQFBVzmQHZEfewe29CvzNg1W27uazUhqU2IFjiEr6L/E0Y/opA3GFaFnZdu9hChIjPvNO36bY2IHXP5zH15/pJQdXI8UPssKLjeGw2zxIP0fJx382mC7xAZdOUoKDJj3wSf2KeFTtpyats4rUbzEjON7OTXUOXguY+1vqS8QdsSv/6L70IHQBzjfxYxM/t+vTZJvTUwECckZUQwX015ossTV8EdOjhZhwstCgf55I5HU8jRQUCbZTmQ86x1BRaRIEyPslkHQoy57fB6Ml6uDvcg3vBZ9WdiVK+tJKPNOmeFG/YKQB6+k5KXrtbuftRZL5je6z8DX1s4HarcynC3DFOvRkloysR/Fu4nrqPT++MA==; 5:ENzVtG5W/yUcBHgHN5UJs1UxE/3oNAOLYtmNsBIZ7zu+llvggR/KJz3qVzydvsZ0YFwmvhrXsMUfAYtovIccd3vKkEdqh0ieJrthFrEuSdf8yJ7EWzGaS8+l/xwSmbh2gI4Ka++yDRXh3fAasB/O/rNsqY0p8CcdySZStR58APs=; 7:j8KR8eVGYio4iSj3/oZw609hcsIbTvwQkRSo3kjFNZp+vBF3rX98AgF331ybVX0hsQlZfEuNEXKJ1UIYkhJXyfMIXE1kxS4z52KZWg6q6yaUDBfUTm49ZGyafbPZu4wTmF9WNZ2Uprcf3xWaFq2wq9WbwmUGQ7ypufLaYKI9uQFSBrd+qcHKvfOWI+I7Y5VzXqtrFyKmChCJcEavvh6aGjvtvG1kffL9n9GGaVg/NLV1sGHBWOSF37MmDOgc5rfG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Aug 2018 09:29:14.3745 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: dd81acde-91a8-45c4-74cf-08d6067f65ef X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0401MB2533 Subject: [dpdk-dev] [PATCH] 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" Fixes: 365fb925d3b3 ("bus/fslmc: optimize physical to virtual address search") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal Reported-by: Keith Wiles --- 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 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: *; };