From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0082.outbound.protection.outlook.com [104.47.38.82]) by dpdk.org (Postfix) with ESMTP id 44DF458CD for ; Tue, 4 Jul 2017 16:35:32 +0200 (CEST) Received: from CY1PR03CA0040.namprd03.prod.outlook.com (2603:10b6:600::50) by BL2PR03MB468.namprd03.prod.outlook.com (2a01:111:e400:c27::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11; Tue, 4 Jul 2017 14:35:30 +0000 Received: from BN1BFFO11FD033.protection.gbl (2a01:111:f400:7c10::1:121) by CY1PR03CA0040.outlook.office365.com (2603:10b6:600::50) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1220.11 via Frontend Transport; Tue, 4 Jul 2017 14:35:30 +0000 Authentication-Results: spf=fail (sender IP is 192.88.158.2) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.158.2 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.158.2; helo=az84smr01.freescale.net; Received: from az84smr01.freescale.net (192.88.158.2) by BN1BFFO11FD033.mail.protection.outlook.com (10.58.144.96) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1199.9 via Frontend Transport; Tue, 4 Jul 2017 14:35:29 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v64EZM6k016426; Tue, 4 Jul 2017 07:35:27 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 4 Jul 2017 20:13:53 +0530 Message-ID: <1499179471-19145-3-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> <1499179471-19145-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131436525298669632; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.158.2; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39450400003)(39850400002)(39860400002)(39400400002)(39410400002)(39840400002)(39380400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(86362001)(81166006)(8676002)(50986999)(77096006)(189998001)(76176999)(8936002)(48376002)(305945005)(50466002)(69596002)(53936002)(626005)(36756003)(356003)(2906002)(8656002)(104016004)(4326008)(498600001)(2950100002)(6916009)(106466001)(2351001)(105606002)(6666003)(68736007)(54906002)(33646002)(5660300001)(47776003)(85426001)(110136004)(38730400002)(5003940100001)(50226002)(217873001); DIR:OUT; SFP:1101; SCL:1; SRVR:BL2PR03MB468; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1BFFO11FD033; 1:iWPIcFs4k5rPPV5CN3c6m35kpcR4Y/e58mxhczbWm?= =?us-ascii?Q?FnMjpTyjLnBRFya4iQ/eLRfQg0nC80dZJXCHndnYyU37Yr8EZ+8kOPTWzrZm?= =?us-ascii?Q?UjQ7xZ5ir9WGKYMEPetcYu9BmteEIUuYDMYr2a+Xr9Ync+nVCAm2HunRj11u?= =?us-ascii?Q?7QOoJwETg0mKtlcW8p6fYFsXoR6TmBfvI0lQy0aqVd576YfOlF+5FfVVnAJe?= =?us-ascii?Q?Jgv5KBHi6X1RZ+nBh3QsObJlK8hP2QqtmBQ39cO0zNiPRdRxLrWp/GimY/Q8?= =?us-ascii?Q?CUGSNxcYNe1bmFjv6KscBt0AizE7ji4j4LgIV4LHMJ0juKDmqMID22fSpa6i?= =?us-ascii?Q?8mOgVIimgTf+BPsxtAyklnscuythivnCvTrwvwdg2Xe9j8HdOwAxbQMOE7Xr?= =?us-ascii?Q?Y9IZfy+C3JE6BVw2YU97nuckl0//jaK0vGBCsEv426/4I54Qqsv/FgBig4Oj?= =?us-ascii?Q?78XuMKvnO6rtn9RkJt+q1Q2RGz7PgOZjUjuzYtaOzcuq5nsnOsXc1KaY4s6L?= =?us-ascii?Q?vVuD9PSsHiFnplByHaes/BoyamDOfEyGzw3WnHh+Z7ohx1VUV6nUh6cJoe+M?= =?us-ascii?Q?F0woVN1tVf16vSh+s7QGQg9UojEN5Fq6Xk6yItTpFxVB/9u0aHLvkEtKWfXR?= =?us-ascii?Q?JbgEUy2MX0ObnOUF+Yn2aVybqtGCIgs3IQZ34208NZwv3jZVoU4mSDumSAiX?= =?us-ascii?Q?FkS+CZwt152PriFfiv+QZzCN9xIDTqP/6Wi7yxHPrLHNPj+JpDOTcmnyYUKM?= =?us-ascii?Q?SFW9tsU7fR9S4eDIVpnoJBT44dEP5yzIPy5cGgb36LQW0NO823WImCORV5ea?= =?us-ascii?Q?QELrJUgaMgxJcT6bHGqXCu0fPOGhC3Yrr0RJDfRktMuOtbs5nWarnUZLbe1O?= =?us-ascii?Q?eGUh+nUE6YsRswB7JcielcZsc9k0FF9J7+9h/ntZL4OuZyN5+3gSmgHb3ibm?= =?us-ascii?Q?jjx9+CLgHj3Rxearm18zxbutXRJnyXGOS4iEqxwd5tYKqFNCz2t6B0SGVWMM?= =?us-ascii?Q?HSuG0XU5ecS0CeV/1gzz/Xjowit+QU6Mu4VxylcP7bJk88srDIRROpp+SeKH?= =?us-ascii?Q?A/VOKVE1KnPKvtN4yW7f9reQXTZnS2qAIB2zYbscKKW9eITXg=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9c23067a-896c-4c04-5840-08d4c2e9eb67 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(300000503095)(300135400095)(2017052603031)(201703131430075)(201703131517081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: 1; BL2PR03MB468; 3:uoTqSv9KAjnmJIMFEBwJWGyMScoQeUQ9WRbt0Orq5fq1JBxnb/DkRYesLkKFj/TCDXEVyTLcN9EtM+pAVcm9HjVU5Ray5IrgYxnC7d8ncfkKwiLtxR+lnCP12gTFHTUjoeDWzcGYIevD6fJ5IZc5KKVh+BjQppVG5GAXk53TIbf2jP3yJHpqO8Eckgti+5Ywu1bti7b3psFG6dzgfujUZzynAWyDg9kb2/N5ZNvayxcywIhwAzQaxjVtq/t8AMFTRMMcB/XNGB+TACdrMfBiT/Lk9VzHU3afaCilmF3y8+Y1TEcLqXPELSes3V5RmRh/q/yZ5ZR7i0TwIyaYq1BZXuhyxxiAv/8GLvrZ7ZuqA3o8PLW5fkfmObHpD2Yo4OUdOLrHJ+IJOodedpN4jdsEHrK/J9psokxIQHcwKrfhODP3rzGqgTz8Npr+QQ1pfuIO85FfTAp2nDQ8nZnZTVJcsj+WrttdRu1YSnxq7BnErUEFPBFn9J+DdOuhlP2nzpT39OSl0cmK6rUa4GUACzQi+vymgTo9gbMk3HW8DARsFpafu01WUVv2D83yXfEYw9xMbj2ZwprVDrY1t1Z+oSxRbo0qzAkidN9Pm0EmIkot8TnCtLLxsYQMXreLT7K5mRUTYA8EAmBgaMMgu4PL2fDHCMxVaigT8K/Ddv8/PKFeoi3Y7WV1q9QiyvVNWA+WK6atLMujG/ev6c9MQzn7XbOW74pbj88TRD1Dk8YCF4EUo2LKx+9yaisHBUYAXbWVKawjUOBiksEgeySTXmg4CQ+cZqHhKyrR8y1qeFRrPjpALAwdYIf7U7qYlOyyQu+Q63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ange-Diagnostics: 1; BL2PR03MB468; 31:/n1aVGGMKTMslsQc7uZQuXZK73TLvc9ElZrRvmZViSg2/lYhD29R7aV3i9LT6KDrG7+sCAwsQTan7XMCj01ZXiTKPItSKGqxhgoWyMCitpMwekGYIOl87UNsUOMZkIJKtjXOGnBM3vEGpx4+2MnMoXASJcTpXrEcc2NkjN3Kcuu+G7PEWMskII5HVuyBUSnQjGJvBMGVu4FH/gbKPcovBJ6H459o0Ci+pyMRJ7n7eSOp98YEaHA5xGBJr77iSrYKIurL3S6uFqIPuf0iEuVoswE2A0nALLpcRRUJqv0Vh/3AjpFijM4GvcoNsiwN58xExR3zhjmvgt04pFItJbx6WgREV60JuC8tvEyWYfHh5Cu8wc8Us8XWF+mx0MzYKRqOS1IcoEd6LcP2uwe3t2wib9HdMxhZ9tCUU+x4ST1WoUGUMjEXexz+xln+Ll0NcxyG/kybrLmOQCSamSsVfv4x1pzTCh/zYPh8wk7A60KYFbxWaUUnkWbDy3Pge5pjJ9k39O1Z7wzceHHWgEQOYs6uE8regRW7Z1QwTBvTFFQTBc//OmA1TqbHcMLyiXdseV+JNIjzFwvcRspf2i5IMvdcZlLV5Gb8tvXKG1yUYWyIh9wFfF4HX58OCPvHYDMulp+33AiLNCU9dEevrLAvFYNgg4qvBmaz5FdwoKvzOUSfLnOeqelZeTut0RgNULRDJqUs55zCfd3Sy4+XowkGBxr6Ug== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(148574349560750)(275809806118684)(167848164394848)(158140799945019); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(6055026)(6096035)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123561025)(20161123556025)(20161123559100)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BL2PR03MB468; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BL2PR03MB468; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB468; 4:U65lV670GHV/zM7nQR0Lt4Mgm+Nu8XUPw6ZZ9eS0C7F?= =?us-ascii?Q?adC/t0lLEOXXYzohJsPWjalTOfzE2xC1uKzsaJ/hudI5SvVOOSEmcT+ZqhnD?= =?us-ascii?Q?aCOO6TL676K+I1YgiaCGPK47CRey7b/6VpMrlZ9Vusl9GfrDP4sd6NvAY3Ql?= =?us-ascii?Q?MIGat4ize1S1StRqfrodpvKG5ib0acFkGcj7IG8/T6ZJfMABWo7vcYjbJ4DY?= =?us-ascii?Q?Y6Yc65dTc8y0OtnplBKH+LWc87NJiPXfReC6gzhwnBpPzvMuwA7/MfLAWRvy?= =?us-ascii?Q?GpHbjbZkdXrexwDvKpD/aD/n86/n6Wazh+9lCGaBa/KEQqAbKEwGbnHzAJZA?= =?us-ascii?Q?eSJ+vi64KRS0mGGlaXhDU/Iql1m/D3wKaSs0tPd1ajk28Rje61tUIgled9Ie?= =?us-ascii?Q?9jbLXw+KwNJhoR69n+1GXiLsIP8CA4y+6rNN6F2NzT5cYDOqpx1QqLEAdvhl?= =?us-ascii?Q?L6IeIg1GFez73qX6HU+z9Srd0EEXlH/pbfPvZzdYWkYIiqu3IwTFxIx6ZnXN?= =?us-ascii?Q?CLdq7ocN3ATxGnc0t7eQ+MtGOekdGQBnxeC9rURX9gS8IBZJKjWU+hTfdDDT?= =?us-ascii?Q?aHOKHP8vju+OvRwThBgv8Tj9oAx/BVLK/NkkmdutWvgp2yp89F+mZGcNtxk6?= =?us-ascii?Q?0tEGXjW+J7avKOVinmRXZ90NlhSe6IA5OVb0Wk160x+OOJ+j1ggQISiTjLQ/?= =?us-ascii?Q?/rYM6q2XuH5wSb2dyWhZDXUMLn3yaMa7WznE3V9JT1oDT75nSgAKN3LxaZ4A?= =?us-ascii?Q?QipOxLamboxXFp77kRTlQZL7Ew78Pa23eayBgMrDRh/dkZFBkRrTUmpnQOB4?= =?us-ascii?Q?rzDXSpRyBcytiuVhdUrxxDo07XYMkANf+AkBAtkY3dtDk6sH01Mv+eegSaUe?= =?us-ascii?Q?hYo2qMp2qWmlEXSnP2F4I7eDLoea4BQ6smvJnBvam0AMdNbZvmKL1P8kZz9N?= =?us-ascii?Q?Sj5IrgA2aNIRXG/yLolLW5kgidO7bU04bNh3oCFbAUN1vIJQPOREK265AMD0?= =?us-ascii?Q?p3mTXf3FHUHDdymXCbakDPGG6kq1fGLl6jAyqtmkKKOqQdj/m6+F8zTl/W9e?= =?us-ascii?Q?x6g2Y1s6TPwQdWID2TcvcAcPf0KoCF1CLUVT9uvs+n8vToKVC52ct5bHyZUH?= =?us-ascii?Q?YM0Pp8LShUaIalQuPYgbrckWwQxacvFGhlGDTGUWzyLa9aIBqLuL+e86Z4nZ?= =?us-ascii?Q?IP0gyCTvAdrHO3cylqwNipG4RqMtntS2Z9/K0zVlCgMyhiM9UAvSCY5LTGTN?= =?us-ascii?Q?TpdLsEm5v071t+UesUChvl1GRFQvfhrTOaZ1sAi1brl4wVVu1tXmMSAPvgI2?= =?us-ascii?Q?PpK8tOpfGoVmGYvx4WaYS4BuhGCKhXcW/UFT6IeWpF45+B788kVzLI3Ewuxu?= =?us-ascii?Q?+lxBjAFbXnCRxiYdyVOHm86szgasN6cCLD1JANYxOX7ZO2spikjegMxuF/Ds?= =?us-ascii?Q?tlzl6/ox21M7KLCwZL2W8v82cN/8=3D?= X-Forefront-PRVS: 0358535363 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2PR03MB468; 23:gFOpgmapRXjBaeXfcgohLZUbGL/nbbrSHsqMPzzCjF?= =?us-ascii?Q?LsWOtdHsPqxgdxqKdJcMCZ427h6VZa5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QWXsupPkLXhgM+2Dg2t2lv/zzcyPSk1YOYhcPURjPr6PauXIs9++5tE8i6v08Cc/SKwMawvoi2PPU+jt84DRDgtnN2N4UIYIvoYKWKME6LzV0DXcFsQYJw4EhJjllQoNxY45W/4= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 14:35:29.6329 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.158.2]; Helo=[az84smr01.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB468 Subject: [dpdk-dev] [PATCH v2 02/40] bus/dpaa: introduce NXP DPAA Bus driver skeleton 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: , X-List-Received-Date: Tue, 04 Jul 2017 14:35:33 -0000 Signed-off-by: Shreyansh Jain Signed-off-by: Hemant Agrawal --- MAINTAINERS | 5 + config/common_base | 3 + config/defconfig_arm64-dpaa-linuxapp-gcc | 6 + drivers/bus/Makefile | 3 + drivers/bus/dpaa/Makefile | 63 ++++++++++ drivers/bus/dpaa/dpaa_bus.c | 187 ++++++++++++++++++++++++++++++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 7 ++ drivers/bus/dpaa/rte_dpaa_bus.h | 163 ++++++++++++++++++++++++++ drivers/bus/dpaa/rte_dpaa_logs.h | 64 ++++++++++ 9 files changed, 501 insertions(+) create mode 100644 drivers/bus/dpaa/Makefile create mode 100644 drivers/bus/dpaa/dpaa_bus.c create mode 100644 drivers/bus/dpaa/rte_bus_dpaa_version.map create mode 100644 drivers/bus/dpaa/rte_dpaa_bus.h create mode 100644 drivers/bus/dpaa/rte_dpaa_logs.h diff --git a/MAINTAINERS b/MAINTAINERS index 00351ff..620d57a 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -388,6 +388,11 @@ F: drivers/net/nfp/ F: doc/guides/nics/nfp.rst F: doc/guides/nics/features/nfp.ini +NXP dpaa +M: Hemant Agrawal +M: Shreyansh Jain +F: drivers/bus/dpaa/ + NXP dpaa2 M: Hemant Agrawal M: Shreyansh Jain diff --git a/config/common_base b/config/common_base index 660588a..8ea4967 100644 --- a/config/common_base +++ b/config/common_base @@ -302,6 +302,9 @@ CONFIG_RTE_LIBRTE_LIO_DEBUG_TX=n CONFIG_RTE_LIBRTE_LIO_DEBUG_MBOX=n CONFIG_RTE_LIBRTE_LIO_DEBUG_REGS=n +# NXP DPAA Bus +CONFIG_RTE_LIBRTE_DPAA_BUS=n + # # Compile NXP DPAA2 FSL-MC Bus # diff --git a/config/defconfig_arm64-dpaa-linuxapp-gcc b/config/defconfig_arm64-dpaa-linuxapp-gcc index 89e32ef..cf603f3 100644 --- a/config/defconfig_arm64-dpaa-linuxapp-gcc +++ b/config/defconfig_arm64-dpaa-linuxapp-gcc @@ -38,3 +38,9 @@ CONFIG_RTE_MACHINE="dpaa" CONFIG_RTE_ARCH_ARM_TUNE="cortex-a72" CONFIG_RTE_LIBRTE_VHOST_NUMA=n CONFIG_RTE_EAL_NUMA_AWARE_HUGEPAGES=n + +# NXP DPAA Bus +CONFIG_RTE_LIBRTE_DPAA_BUS=y +CONFIG_RTE_LIBRTE_DPAA_DEBUG_BUS=n +CONFIG_RTE_LIBRTE_DPAA_DEBUG_INIT=n +CONFIG_RTE_LIBRTE_DPAA_DEBUG_DRIVER=n diff --git a/drivers/bus/Makefile b/drivers/bus/Makefile index 1e5b281..2dad392 100644 --- a/drivers/bus/Makefile +++ b/drivers/bus/Makefile @@ -33,6 +33,9 @@ include $(RTE_SDK)/mk/rte.vars.mk core-libs := librte_eal librte_mbuf librte_mempool librte_ring librte_ether +DIRS-$(CONFIG_RTE_LIBRTE_DPAA_BUS) += dpaa +DEPDIRS-dpaa = $(core-libs) + DIRS-$(CONFIG_RTE_LIBRTE_FSLMC_BUS) += fslmc DEPDIRS-fslmc = $(core-libs) diff --git a/drivers/bus/dpaa/Makefile b/drivers/bus/dpaa/Makefile new file mode 100644 index 0000000..f44f3c4 --- /dev/null +++ b/drivers/bus/dpaa/Makefile @@ -0,0 +1,63 @@ +# BSD LICENSE +# +# Copyright 2016 NXP. +# All rights reserved. +# +# Redistribution and use in source and binary forms, with or without +# modification, are permitted provided that the following conditions +# are met: +# +# * Redistributions of source code must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# * Redistributions in binary form must reproduce the above copyright +# notice, this list of conditions and the following disclaimer in +# the documentation and/or other materials provided with the +# distribution. +# * Neither the name of NXP nor the names of its +# contributors may be used to endorse or promote products derived +# from this software without specific prior written permission. +# +# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS +# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT +# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR +# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT +# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +include $(RTE_SDK)/mk/rte.vars.mk +RTE_BUS_DPAA=$(RTE_SDK)/drivers/bus/dpaa + +# +# library name +# +LIB = librte_bus_dpaa.a + +ifeq ($(CONFIG_RTE_LIBRTE_DPAA_DEBUG_INIT),y) +CFLAGS += -O0 -g +CFLAGS += "-Wno-error" +else +CFLAGS += -O3 +CFLAGS += $(WERROR_FLAGS) +endif + +CFLAGS += -I$(RTE_BUS_DPAA)/ +CFLAGS += -I$(RTE_SDK)/lib/librte_eal/linuxapp/eal +CFLAGS += -I$(RTE_SDK)/lib/librte_eal/common/include + +# versioning export map +EXPORT_MAP := rte_bus_dpaa_version.map + +LIBABIVER := 1 + +# all source are stored in SRCS-y +# +SRCS-$(CONFIG_RTE_LIBRTE_DPAA_BUS) += \ + dpaa_bus.c + + +include $(RTE_SDK)/mk/rte.lib.mk diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c new file mode 100644 index 0000000..c530c83 --- /dev/null +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -0,0 +1,187 @@ +/*- + * BSD LICENSE + * + * Copyright 2017 NXP. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of NXP nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +/* System headers */ +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#include +#include + +int dpaa_logtype_bus; + +struct rte_dpaa_bus rte_dpaa_bus; + +static inline void +dpaa_add_to_device_list(struct rte_dpaa_device *dev) +{ + TAILQ_INSERT_TAIL(&rte_dpaa_bus.device_list, dev, next); +} + +static inline void +dpaa_remove_from_device_list(struct rte_dpaa_device *dev) +{ + TAILQ_INSERT_TAIL(&rte_dpaa_bus.device_list, dev, next); +} +static int +rte_dpaa_bus_scan(void) +{ + BUS_INIT_FUNC_TRACE(); + + return 0; +} + +/* register a dpaa bus based dpaa driver */ +void +rte_dpaa_driver_register(struct rte_dpaa_driver *driver) +{ + RTE_VERIFY(driver); + + BUS_INIT_FUNC_TRACE(); + + TAILQ_INSERT_TAIL(&rte_dpaa_bus.driver_list, driver, next); + /* Update Bus references */ + driver->dpaa_bus = &rte_dpaa_bus; +} + +/* un-register a dpaa bus based dpaa driver */ +void +rte_dpaa_driver_unregister(struct rte_dpaa_driver *driver) +{ + struct rte_dpaa_bus *dpaa_bus; + + BUS_INIT_FUNC_TRACE(); + + dpaa_bus = driver->dpaa_bus; + + TAILQ_REMOVE(&dpaa_bus->driver_list, driver, next); + /* Update Bus references */ + driver->dpaa_bus = NULL; +} + +static int +rte_dpaa_device_match(struct rte_dpaa_driver *drv, + struct rte_dpaa_device *dev) +{ + int ret = -1; + + BUS_INIT_FUNC_TRACE(); + + if (!drv || !dev) { + DPAA_BUS_DEBUG("Invalid drv or dev received."); + return ret; + } + + if (drv->drv_type == dev->id.device_type) { + DPAA_BUS_INFO("Device: %s matches for driver: %s", + dev->name, drv->driver.name); + ret = 0; /* Found a match */ + } + + return ret; +} + +static int +rte_dpaa_bus_probe(void) +{ + int ret = -1; + struct rte_dpaa_device *dev; + struct rte_dpaa_driver *drv; + + BUS_INIT_FUNC_TRACE(); + + /* For each registered driver, and device, call the driver->probe */ + TAILQ_FOREACH(dev, &rte_dpaa_bus.device_list, next) { + TAILQ_FOREACH(drv, &rte_dpaa_bus.driver_list, next) { + ret = rte_dpaa_device_match(drv, dev); + if (ret) + continue; + + if (!drv->probe) + continue; + + ret = drv->probe(drv, dev); + if (ret) + DPAA_BUS_ERR("Unable to probe.\n"); + break; + } + } + return 0; +} + +struct rte_dpaa_bus rte_dpaa_bus = { + .bus = { + .scan = rte_dpaa_bus_scan, + .probe = rte_dpaa_bus_probe, + }, + .device_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.device_list), + .driver_list = TAILQ_HEAD_INITIALIZER(rte_dpaa_bus.driver_list), + .device_count = 0, +}; + +RTE_REGISTER_BUS(FSL_DPAA_BUS_NAME, rte_dpaa_bus.bus); + +RTE_INIT(dpaa_init_log); +static void +dpaa_init_log(void) +{ + dpaa_logtype_bus = rte_log_register("bus.dpaa"); + if (dpaa_logtype_bus >= 0) + rte_log_set_level(dpaa_logtype_bus, RTE_LOG_NOTICE); +} diff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map new file mode 100644 index 0000000..8c1ea65 --- /dev/null +++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map @@ -0,0 +1,7 @@ +DPDK_17.08 { + global: + + rte_dpaa_driver_register; + rte_dpaa_driver_unregister; + +}; diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h new file mode 100644 index 0000000..d1de6d3 --- /dev/null +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -0,0 +1,163 @@ +/*- + * BSD LICENSE + * + * Copyright 2017 NXP. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of NXP nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ +#ifndef __RTE_DPAA_BUS_H__ +#define __RTE_DPAA_BUS_H__ + +#include +#include + +#define FSL_DPAA_BUS_NAME "FSL_DPAA_BUS" + +#define DEV_TO_DPAA_DEVICE(ptr) \ + container_of(ptr, struct rte_dpaa_device, device) + +struct rte_dpaa_device; +struct rte_dpaa_driver; + +/* DPAA Device and Driver lists for DPAA bus */ +TAILQ_HEAD(rte_dpaa_device_list, rte_dpaa_device); +TAILQ_HEAD(rte_dpaa_driver_list, rte_dpaa_driver); + +enum rte_dpaa_type { + FSL_DPAA_ETH = 1, + FSL_DPAA_CRYPTO, +}; + +struct rte_dpaa_bus { + struct rte_bus bus; + struct rte_dpaa_device_list device_list; + struct rte_dpaa_driver_list driver_list; + int device_count; +}; + +struct dpaa_device_id { + uint8_t fman_id; /**< Fman interface ID, for ETH type device */ + uint8_t mac_id; /**< Fman MAC interface ID, for ETH type device */ + uint16_t dev_id; /**< Device Identifier from DPDK */ + enum rte_dpaa_type device_type; /**< Ethernet or crypto type device */ +}; + +struct rte_dpaa_device { + TAILQ_ENTRY(rte_dpaa_device) next; + struct rte_device device; + struct rte_eth_dev *eth_dev; + struct rte_cryptodev *crypto_dev; + struct rte_dpaa_driver *driver; + struct dpaa_device_id id; + char name[RTE_ETH_NAME_MAX_LEN]; +}; + +typedef int (*rte_dpaa_probe_t)(struct rte_dpaa_driver *dpaa_drv, + struct rte_dpaa_device *dpaa_dev); +typedef int (*rte_dpaa_remove_t)(struct rte_dpaa_device *dpaa_dev); + +struct rte_dpaa_driver { + TAILQ_ENTRY(rte_dpaa_driver) next; + struct rte_driver driver; + struct rte_dpaa_bus *dpaa_bus; + enum rte_dpaa_type drv_type; + rte_dpaa_probe_t probe; + rte_dpaa_remove_t remove; +}; + +struct dpaa_portal { + uint32_t bman_idx; /**< BMAN Portal ID*/ + uint32_t qman_idx; /**< QMAN Portal ID*/ + uint64_t tid;/**< Parent Thread id for this portal */ +}; + +/* TODO - this is costly, need to write a fast coversion routine */ +static inline void *rte_dpaa_mem_ptov(phys_addr_t paddr) +{ + const struct rte_memseg *memseg = rte_eal_get_physmem_layout(); + int i; + + for (i = 0; i < RTE_MAX_MEMSEG && memseg[i].addr != NULL; i++) { + if (paddr >= memseg[i].phys_addr && paddr < + memseg[i].phys_addr + memseg[i].len) + return (uint8_t *)(memseg[i].addr) + + (paddr - memseg[i].phys_addr); + } + + return NULL; +} + +/** + * Register a DPAA driver. + * + * @param driver + * A pointer to a rte_dpaa_driver structure describing the driver + * to be registered. + */ +void rte_dpaa_driver_register(struct rte_dpaa_driver *driver); + +/** + * Unregister a DPAA driver. + * + * @param driver + * A pointer to a rte_dpaa_driver structure describing the driver + * to be unregistered. + */ +void rte_dpaa_driver_unregister(struct rte_dpaa_driver *driver); + +/** + * Initialize a DPAA portal + * + * @param arg + * Per thread ID + * + * @return + * 0 in case of success, error otherwise + */ +int rte_dpaa_portal_init(void *arg); + +/** + * Cleanup a DPAA Portal + */ +void dpaa_portal_finish(void *arg); + +/** Helper for DPAA device registration from driver (eth, crypto) instance */ +#define RTE_PMD_REGISTER_DPAA(nm, dpaa_drv) \ +RTE_INIT(dpaainitfn_ ##nm); \ +static void dpaainitfn_ ##nm(void) \ +{\ + (dpaa_drv).driver.name = RTE_STR(nm);\ + rte_dpaa_driver_register(&dpaa_drv); \ +} \ +RTE_PMD_EXPORT_NAME(nm, __COUNTER__) + +#ifdef __cplusplus +} +#endif + +#endif /* __RTE_DPAA_BUS_H__ */ diff --git a/drivers/bus/dpaa/rte_dpaa_logs.h b/drivers/bus/dpaa/rte_dpaa_logs.h new file mode 100644 index 0000000..54eda23 --- /dev/null +++ b/drivers/bus/dpaa/rte_dpaa_logs.h @@ -0,0 +1,64 @@ +/*- + * BSD LICENSE + * + * Copyright 2017 NXP. + * All rights reserved. + * + * Redistribution and use in source and binary forms, with or without + * modification, are permitted provided that the following conditions + * are met: + * + * * Redistributions of source code must retain the above copyright + * notice, this list of conditions and the following disclaimer. + * * Redistributions in binary form must reproduce the above copyright + * notice, this list of conditions and the following disclaimer in + * the documentation and/or other materials provided with the + * distribution. + * * Neither the name of NXP nor the names of its + * contributors may be used to endorse or promote products derived + * from this software without specific prior written permission. + * + * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS + * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT + * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR + * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT + * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT + * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, + * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY + * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE + * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + */ + +#ifndef _DPAA_LOGS_H_ +#define _DPAA_LOGS_H_ + +#include + +extern int dpaa_logtype_bus; + +#define DPAA_BUS_LOG(level, fmt, args...) \ + rte_log(RTE_LOG_ ## level, dpaa_logtype_bus, "%s(): " fmt "\n", \ + __func__, ##args) + +#define BUS_INIT_FUNC_TRACE() DPAA_BUS_LOG(DEBUG, " >>") + +#ifdef RTE_LIBRTE_DPAA_DEBUG_BUS +#define DPAA_BUS_WARN(cond, fmt, args...) \ + do {\ + if (cond) \ + DPAA_BUS_LOG(DEBUG, "WARN: " fmt, ##args); \ + } while (0) +#else +#define DPAA_BUS_WARN(cond, fmt, args...) do { } while (0) +#endif + +#define DPAA_BUS_INFO(fmt, args...) \ + DPAA_BUS_LOG(INFO, fmt, ## args) +#define DPAA_BUS_DEBUG(fmt, args...) \ + DPAA_BUS_LOG(DEBUG, fmt, ## args) +#define DPAA_BUS_ERR(fmt, args...) \ + DPAA_BUS_LOG(ERR, fmt, ## args) + +#endif /* _DPAA_LOGS_H_ */ -- 2.7.4