From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0075.outbound.protection.outlook.com [104.47.41.75]) by dpdk.org (Postfix) with ESMTP id 4A1567CCC for ; Tue, 4 Jul 2017 16:36:03 +0200 (CEST) Received: from BN3PR03CA0115.namprd03.prod.outlook.com (10.174.66.33) by CY1PR0301MB0601.namprd03.prod.outlook.com (10.160.142.20) 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:36:01 +0000 Received: from BL2FFO11OLC006.protection.gbl (2a01:111:f400:7c09::102) by BN3PR03CA0115.outlook.office365.com (2603:10b6:400:4::33) 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:36:01 +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 BL2FFO11OLC006.mail.protection.outlook.com (10.173.160.95) 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:36:00 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by az84smr01.freescale.net (8.14.3/8.14.0) with ESMTP id v64EZM70016426; Tue, 4 Jul 2017 07:35:58 -0700 From: Shreyansh Jain To: CC: , Date: Tue, 4 Jul 2017 20:14:07 +0530 Message-ID: <1499179471-19145-17-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: 131436525610076238; (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)(39840400002)(39860400002)(39380400002)(39850400002)(39400400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(6916009)(50226002)(68736007)(33646002)(6666003)(5660300001)(77096006)(626005)(4326008)(2950100002)(2906002)(104016004)(53936002)(85426001)(76176999)(50986999)(54906002)(8656002)(50466002)(86362001)(36756003)(48376002)(105606002)(106466001)(81166006)(69596002)(2351001)(8936002)(189998001)(47776003)(356003)(38730400002)(5003940100001)(110136004)(498600001)(8676002)(305945005)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0301MB0601; H:az84smr01.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BL2FFO11OLC006; 1:TIYGw6FVI4civ0fDTUPZEi7p5L6rQvsBFTjKvgGOH?= =?us-ascii?Q?AgKyfdnCzJw4anfnQqAXepJUKR+0yd0k3LQhc01Gt3jrM0l7R1sM69q5yNLj?= =?us-ascii?Q?ztRkxni94NyxVxaSqITc/8Iipw3MfQh14QhN+Cxre/QdyK0+F9zY7A6Vxxu1?= =?us-ascii?Q?knAIi+2fbocJeD5QoYIZgQZbEhEAY6wrm0gHQplAxJPV0yO2O9Z46nKX236q?= =?us-ascii?Q?K017GapzLuWaUhm9j+TQfiQGwCeCgw38pNiVoMxBurZw8h4beGQDi+u/IJ53?= =?us-ascii?Q?h2H+xjowWMElXmvLfCOpAaYrZfy2xjYowxPapc78lMUvxmdtY5vt6t2WSouX?= =?us-ascii?Q?elt+QImI+04syj/yb11dSxZOhEhTmgdKyqf+0mpY2bnkcO9G6TRLr/uqQw8l?= =?us-ascii?Q?BpTBcNaQlfqAxBA0nBQICw9ZM6W9E/9/yvPFwCRxI1rmPEl8YUrVuULeawY3?= =?us-ascii?Q?AW+SVNSHungE1JQrEBpkeMcixktSrqrq4PdYgihpDR+kb1TepGBlgjybydZ2?= =?us-ascii?Q?tZMhr1sBaVA71WTdhWNZqUD9WOcuiiX09uhgs1NLi1mcRKiYCYQ/TSpwmj/L?= =?us-ascii?Q?sczSWk2LXsxvITbTVHVyeLSTGah9953enGT/s8gm90MEqim87pAFP2FmuZZc?= =?us-ascii?Q?TthV/HDFiA5kwoB/N3/b5V8sWIS757yqko2H8ZmzR+VKrdBguHACSvhAD9hM?= =?us-ascii?Q?jv6/DkwjifE+CUSSe+ARyX/njIW/R8JmoHe1XoqCKoPkWPsqIHrJQUr6pUiQ?= =?us-ascii?Q?pA6fm6KLNJuBkNtRV9SMznb1wY4rErnvpPnhPJz7qEecPVL7pOml1gIThy0j?= =?us-ascii?Q?oqN840gUIDEmb0tc0L7BEiDjmWYMnkMUu7or+ldQjEWlOVbNfNFiq2hZXC78?= =?us-ascii?Q?QDeMJSQzKjYrgJU2n0UtoKFhh+sCF5LFipPZFk2SVpdaIZ/3KrKOd76yPJx8?= =?us-ascii?Q?ocK2KsTXr1tvMueopZ5EOQu3N/gUbqbfd9ADyjDoZJqPMHdr/fj644lDjp5j?= =?us-ascii?Q?sgxrLenLFs3pBErM4frG9dBGHGtcNrxG8rODdc4b29D6PcnPE9g55MBInwoL?= =?us-ascii?Q?UffW41LcWsIpZGxbTZlUG8MxevKw6tI2jRttdspPzuqYJgr2A=3D=3D?= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 9e63b1f5-e567-4b5d-9c09-08d4c2e9fde1 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:CY1PR0301MB0601; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 3:AePYjxq3UUQG14yQuV9afHI74T/ewWnMroAvqlENbR/tLVrzEMn8IaOn/i2OB4bn6VQ5xsgUf1laGDKXUuWZL/zeLpWNrz2ZJFIe7gz2e5IdQ7kXXUNHyEYJ5i3J8EspDlZ2llV+npOhkkgcmYTq2IuG2B62DjkNHDr90KZ9qf2FFvXh0GicgenUbb+rBGeuIoe5apc/XRrBO/etqrKeXmrTIkI/UrKuzrdleqiMxpqdSsHxBBlednBLtd6XygjuHQtTvvKTXqJ1DP7CTKDR+bU6kHqqlC8R64w1deZPsa+y0vO1AgPIlGkpyqjvYJ9pWeX+odNIlqqDyzhGlyh/HpBnSgRtFywN0p8qfUjqxqMNNd0dZbAButL6TXaT04mF3PHRp/zkfOj2sJU0aEKEMiKtOzU+hj9GLpZfvu3MVkULoeuMlnK9ftHXs1TjtmkCcudHpo3u0EFSCtbzzKkgYY8KYJjtPRv9hTgE3iRfJaUhybk1DF6fJ3NjDr42xkyVs2j1GzsjIqgfShQHaeVD9KHQYGsUAPvnTXqxlbN3o3tW2MC3L53VNHa/4Z0LmvCuyKCm+v5jlY41i6wZIiNRuH4EhXMZtLvSizva3hoD+Cp5KsoRVbUpo10GjeyJuI7oCT064IA6HeGgQ61Z7MnWxr2hhvfsdUTEc3xVsqsQgEBTvhOKEsc8XuPN93/QM8e3AByMSgfsJTJBw6R9WS2eQPRFGIQfcDlRPPzxFVp0M9IWBZZzX9HiLM5gvejJjIXkkJtL5CSji5S6JjMiE56ndht7kGmLnacqqZMuxJ2EDz0eLKtLjdBCukjbCyBGKddE/phJBhgsyL0RzzMtfZgNyRbmbIgGyS2JQB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301MB0601; 31:W2W7da+E7FgLNcQeqYjd+rezvhpbtWRKW0cAaI1Iyrb9bGuQ2EqMv962uFFVi95gaAdFczQ0Hv/J0GEy9wLOK8sPc8+OI/MU3tM1bpks7nCXXrgtIBzvcLZytuVTmFQgMHW4Q1GNb4BLRXidt0WTgKwLbKuBrOXvAfWpK3WHYP29mjzGLLPp7KIIOMP7Q3MLSSvUv7mxwHONgAjuhLXuzzojv2mO3y4YteG0LRikbEtSFWE++i3jwqw0y1slp+0raqE+twjORcI23dmAEh9rbkzaHiyaOBBx/N/+1ssQjtHtB6A6GzPrR6A7JSc9mL0Boz8qMObiDExUOd9TjpWK1Nu1zNT4xM0q/GpXmD4A/2uKNmyl4d499VpS7MXqUFT6pF6AngSr3QAzChTIp1ULbVKjATpRdB2d4L9nPnJq1IxmnWzNEgLfqd3gEEe++qkWg6lYRr3FHE812Stlu5vLNIt1nY8NE+b1L1E+ygqTTrSplcZPTsKCFLQwcYOjBStFic4H9yqNoTos7T+fwsoaeJxCc/B4JHCalSyPtr+OC1ayagY8ieam5+JbxXp6AefZmBXLqSTbcG/hpqlDxA2nJSijRF0wKYIDFiAdyijxreeGFgQVmgep88u2ac2xcRM7ocw75raH6+YCm0XBrzU/jdkV0O2mbzViAioWKQB3o6Vg3dPrmAhgGSeI6+fO5Ev0 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(185117386973197)(227817650892897)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(13016025)(2017060910033)(5005006)(13018025)(8121501046)(10201501046)(3002001)(93006095)(93001095)(100000703101)(100105400095)(6055026)(6096035)(20161123559100)(20161123556025)(20161123565025)(201703131430075)(201703131433075)(201703131441075)(201703131448075)(201703161259150)(20161123563025)(20161123561025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR0301MB0601; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR0301MB0601; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0601; 4:z42tJn17xF4EjnZ2WC8Lyu4JlKoq8Nl3Ann/GVof?= =?us-ascii?Q?UHuwJQrMJhbowMJO93M31bCpW57HbHflymS0xODRd9GdEE08j3OAf+hAoN9v?= =?us-ascii?Q?L0+8pQKFaKxM3pCqihabrwcPI1P7INh9pYCdbYj2J+/PHSvh1Ln0nk4JML0+?= =?us-ascii?Q?pA+yC4xFPg8czp1sCNRb8iOUzAkEkJZmW4WVsAM0LC04KXdPojcYL3MNRg9q?= =?us-ascii?Q?EbVEzcarXX1tMZLy54J1tZGx0/tiCMUKI/c47RLpOnPEya+9oVWd85v+Becg?= =?us-ascii?Q?2mHkEa1EFYGpyfCg6iPhRmYUoHJBLDhMQ63pTuVoSYbmuq3L1p0yUFPJeUSL?= =?us-ascii?Q?wArsbFzHdR40DPmXQnQEyohmdea56JTAF1dqi9jCzheEus8h1kmVQI6Trluu?= =?us-ascii?Q?GdLj9DJx70G7s30wyAwXtqh5wQr+OJpYRNvqyGP/7M2Wa43UwIf+7ub0Hwhr?= =?us-ascii?Q?Pyy4fD5zWplJNTgp2/ietFhbtS9S2e9inUc45auqGpvz1xmZGH+1s0zA6UVC?= =?us-ascii?Q?RvNR9vODKiI5KJ7Drx6wgvIwsGPGHmM8optgoqz6b3iK/27fjdX0HhBPy13m?= =?us-ascii?Q?ZK5ezxJsyAYl3+d4fyJcDLYlrslVcuRV03qP/mcw4gmWLgG1hLmVhd8jf8iQ?= =?us-ascii?Q?RUeQFTvGGgmHI3qni/+hxIhaPQyAi94gzGxNSpaIGhHVGJ2Envyd44HfifBV?= =?us-ascii?Q?UowjnaMlvozsG1Lh2SL2ZbOHzuoKAk0MdqPmKLnw7iE/H8aTuZDF2nEA8Jix?= =?us-ascii?Q?yL00BPxDZqVAT61/J8rS2OlUhR53XY87NvgNgrFoFYipiZlSinfI6+zzXCcD?= =?us-ascii?Q?K1k+L+0g2mtBCaMeQfg6mnecwQFU3CVtmpWGNgjIQqmncLWecLM5BkhtRJ/o?= =?us-ascii?Q?ggB9rgxSQVa60WHXFnu3cQ/onFL09KQS7EcRbxuuMqxt2naJpFCsrQ4Oa4VP?= =?us-ascii?Q?idSZNV0Ci77RpabQzJ6rsx5e2GBPlzqScnEuxQXDdrqznOKDCPZ+Jeg1O1hr?= =?us-ascii?Q?0NCSbZoA5B/V+YnATk2Ff0q+e8voUqGEsDCr+xn9ccv7Me5lzpfFcl00RKR8?= =?us-ascii?Q?oYLn259INWiQW+gvasNqKl3LRopfNI9VOEiNFSk5RxFSZmZZPwyNlYlZVcCr?= =?us-ascii?Q?gdJC1NcxooDr8FK27+jEId3I4AoFIt6oVMBVj3AHgfsPWmDH45Dfu6dyfOdP?= =?us-ascii?Q?o5mRnBY2Nx38Si3KaOwNPggXJf/aGjCLyD1FIj/Rlwh47mIM9ZXOWxF9kfut?= =?us-ascii?Q?wak6OtTO7gYajg5Cj6IAZVKJvteyLe9Ze3qvu+Pqo2CyEHuxTN3taHyL0Ogf?= =?us-ascii?Q?FyK+mVbNKucA6d2pLY0I00HCI1tBZznrYVZlbnNISZB5vcC+i0VLz2gbDSac?= =?us-ascii?Q?ssSXCw/RZ729htB2JLAJg/jmkyBpQG06ezMPZh0tFs1Gfu0t?= X-Forefront-PRVS: 0358535363 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0301MB0601; 23:t7PVDQPqi90eFge46y0VK+2jdovc/c1WgoKju3T?= =?us-ascii?Q?SXFd1qpWZHEhmofBawZeb7yeWs9X/PSC5aQ99gzTLZkSSWoS06HpdKpI1glG?= =?us-ascii?Q?2uMXU6A5y5nbKxGXbDR2dWKyyUSLtFfQynoaNt30mV6TdiyrxGSSM5qTg9MZ?= =?us-ascii?Q?73iHG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45N+BwvxbBMHrEaLOvwS5AYWnPlEgYrCxXREJHdMTm+jkps?= =?us-ascii?Q?uygUm0IAFiwc+FGE6sevdZFaESN/VgFNOnGkIuN+eDeHF+EMNfP8NAI3K40x?= =?us-ascii?Q?vaBDLUfCX+a52Mw6mezlFGc47tEcWhWarKmwV2jFhkm6aYy4fSnGn2samQrP?= =?us-ascii?Q?K5r7FA9jcvzwQpEMs+1XHVUP3ltY+B4RocFgI1rPv0F6j2xwhx76d6ouJmLT?= =?us-ascii?Q?Y5nUatlDhCwhPmk+D9P2GgKJbB0atMVmoJWNjSWg1J3eX1YVdbalHVeOckdU?= =?us-ascii?Q?Uy7KSqWNZZuLpnrUuID/G8PrM6mHMkCYBw8SYxBeC9j2D8RoJmREne2dJVko?= =?us-ascii?Q?m9KqlHaF8hnFP9BNh8Tmh1DdwfnTI3TaVYhKVe1CsGHjDA09+cHx38G4x7qN?= =?us-ascii?Q?IZ+5B+uDffrZ81jSIe43akru33v4/Up6lXvLNLGIEUZyqJUTyF+rpGlmYwfx?= =?us-ascii?Q?Z5E=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 5:gFCFp5cOdK3+bSiqqqQRcrU1cFeN69++IChpplZQAi8K0xWuPe05PpgtUEKPMv7C+5MnqUDeyxFE5ALBsRh/ocsMYYks5nyxpTbfHj9nFL0RPa7jalXb7a77qywk4G/ARWBMT41SM3V1fvojFhKz0AMqsPj8yrJoVgiC98RsoPYTS29/4OccfTM8thUp57YyqO9EfavnsbdLrQL6eBRI6yLCBeWoHXWh81NamvQWDElrvChzVuebM7HyJZ/HsCZTVOt7RPDgiMKF4YpENputfOgeOElEjlCEKmwxJaBX3sNADM7juKccXySO9AmWWXE7/zU6d/iyaTjvHMBwsyojE+dQTXD6zPaEU/2OfI2i9LwJggN9KGOlAOzUB2la6Nmn0LZspTtZjXysZwcRjUeyi0ImXCzpkJTPQfGLoyEAfMGrlbYPks1SrYye0wYBUb2qk/GnTh1/CpKOcknNbATxPGgliL0cFFt5xYdK/xOhEaWTTQP0ihZdHZgODADNkpGrOJYsvoQC5b/Ie3orxpQ1pA==; 24:0jPGBR6/8/cpcixtuMX2d/gkLBOABTS19yu1kBh8Sd9HgQs7N77qE9t/RW8d+iSToDWCVm3FFK508EL8LusBHY0mMSHRmyju7vVZBgsBuP4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB0601; 7:4rJTiv8WculYdRUjFoYqesmMK6Wec5rpJkbubNuTCY7q9A7Rk36/Gh0xY4MMXYZIgR3YvcVoJKPs8D7XUbL/he01pz7O8LrWRB9wxXOZI1eytBj22XtcRUhp8rqg6lu9v/dJwz/EXee1fcVs24Eaptg5W1/4OgTBhoujwO+puuPuCL0CqKvUk03KxE3+RdPZ5YwvQBiHGzHFTBoSnircf3wEuHr7DVGiQu5etmwHk6XVBWexkUErS9hVtTeKeQOX9TbQa8eXmtUp0iQc8eOp9wgmXjKwiPOmTQCbnL8R+3CFHvl8+m1oNTTchYSRJLA+/sbAy/WnbagNAq3l2vWj4h6Z/MJNxhTWkzTePoQLXaHVm/oOZE9Y/QeLSxVjW+0dsdbo/HgvCUB02GqWyte2MWZa9BbBeh75MNftXdbB2OceOW8QgGtT8RGGOyOv18QiEya4XBEk7nV31VEgXyhUQEcM6DNuaau34wuJUyxfBtSUvw1l3JBc/XRH7iWbAJP5dmOVAHXFqKGr5qGyRlGftmaEWxHoXfac9L+5QHJz9swYNBYlWcHcK0uwEp/6cbtSQrKxsu7PZF43LvAOm9E+EBSUEmfa9sthhOflGSJrGOz2q7eXdGZJifotLiRdjrtJkovZVOzQAX1lsb0uPJQkK+RHPa4zd+IctCsEah1hnB6HLKpub9+5zVttHyhiIQKATzKE4fsrrYOBrkq0bM8L3GhrcFpHSgRN5iIw1sBhmonSROR7ekgXaarXvtSc5qBMQuVyuVGsX1kudGqtTmjgkkT4BVvr10VRGGS8M5M2OvU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2017 14:36:00.6488 (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: CY1PR0301MB0601 Subject: [dpdk-dev] [PATCH v2 16/40] bus/dpaa: integrate DPAA Bus with hardware blocks 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:36:04 -0000 Now that QBMAN (QMAN, BMAN) and FMAN drivers are available, this patch integrates the DPAA Bus driver for using the drivers for scanning devices and calling the PMD registered probe callbacks. Signed-off-by: Hemant Agrawal Signed-off-by: Shreyansh Jain --- drivers/bus/dpaa/dpaa_bus.c | 239 ++++++++++++++++++++++++++++++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 39 +++++ drivers/bus/dpaa/rte_dpaa_bus.h | 6 + 3 files changed, 284 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index c530c83..2e16a09 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -64,9 +64,21 @@ #include #include +#include +#include +#include +#include +#include + int dpaa_logtype_bus; struct rte_dpaa_bus rte_dpaa_bus; +struct netcfg_info *dpaa_netcfg; + +/* define a variable to hold the portal_key, once created.*/ +pthread_key_t dpaa_portal_key; + +RTE_DEFINE_PER_LCORE(bool, _dpaa_io); static inline void dpaa_add_to_device_list(struct rte_dpaa_device *dev) @@ -79,11 +91,238 @@ dpaa_remove_from_device_list(struct rte_dpaa_device *dev) { TAILQ_INSERT_TAIL(&rte_dpaa_bus.device_list, dev, next); } + +static void dpaa_clean_device_list(void); + +static int +dpaa_create_device_list(void) +{ + int i; + int ret; + struct rte_dpaa_device *dev; + struct fm_eth_port_cfg *cfg; + struct fman_if *fman_intf; + + /* Creating Ethernet Devices */ + for (i = 0; i < dpaa_netcfg->num_ethports; i++) { + dev = rte_zmalloc(NULL, sizeof(struct rte_dpaa_device), + RTE_CACHE_LINE_SIZE); + if (!dev) { + DPAA_BUS_LOG(ERR, "Failed to allocate ETH devices"); + ret = -ENOMEM; + goto cleanup; + } + + cfg = &dpaa_netcfg->port_cfg[i]; + fman_intf = cfg->fman_if; + + /* Device identifiers */ + dev->id.fman_id = fman_intf->fman_idx + 1; + dev->id.mac_id = fman_intf->mac_idx; + dev->id.device_type = FSL_DPAA_ETH; + dev->id.dev_id = i; + + /* Create device name */ + memset(dev->name, 0, RTE_ETH_NAME_MAX_LEN); + sprintf(dev->name, "fm%d-mac%d", (fman_intf->fman_idx + 1), + fman_intf->mac_idx); + DPAA_BUS_LOG(DEBUG, "Device added: %s", dev->name); + dev->device.name = dev->name; + + dpaa_add_to_device_list(dev); + } + + rte_dpaa_bus.device_count = i; + + return 0; + +cleanup: + dpaa_clean_device_list(); + return ret; +} + +static void +dpaa_clean_device_list(void) +{ + struct rte_dpaa_device *dev = NULL; + struct rte_dpaa_device *tdev = NULL; + + TAILQ_FOREACH_SAFE(dev, &rte_dpaa_bus.device_list, next, tdev) { + TAILQ_REMOVE(&rte_dpaa_bus.device_list, dev, next); + rte_free(dev); + dev = NULL; + } +} + +/** XXX move this function into a separate file */ +static int +_dpaa_portal_init(void *arg) +{ + cpu_set_t cpuset; + pthread_t id; + uint32_t cpu = rte_lcore_id(); + int ret; + struct dpaa_portal *dpaa_io_portal; + + BUS_INIT_FUNC_TRACE(); + + if ((uint64_t)arg == 1 || cpu == LCORE_ID_ANY) + cpu = rte_get_master_lcore(); + /* if the core id is not supported */ + else + if (cpu >= RTE_MAX_LCORE) + return -1; + + /* Set CPU affinity for this thread */ + CPU_ZERO(&cpuset); + CPU_SET(cpu, &cpuset); + id = pthread_self(); + ret = pthread_setaffinity_np(id, sizeof(cpu_set_t), &cpuset); + if (ret) { + DPAA_BUS_LOG(ERR, "pthread_setaffinity_np failed on " + "core :%d with ret: %d", cpu, ret); + return ret; + } + + /* Initialise bman thread portals */ + ret = bman_thread_init(); + if (ret) { + DPAA_BUS_LOG(ERR, "bman_thread_init failed on " + "core %d with ret: %d", cpu, ret); + return ret; + } + + DPAA_BUS_LOG(DEBUG, "BMAN thread initialized"); + + /* Initialise qman thread portals */ + ret = qman_thread_init(); + if (ret) { + DPAA_BUS_LOG(ERR, "bman_thread_init failed on " + "core %d with ret: %d", cpu, ret); + bman_thread_finish(); + return ret; + } + + DPAA_BUS_LOG(DEBUG, "QMAN thread initialized"); + + dpaa_io_portal = rte_malloc(NULL, sizeof(struct dpaa_portal), + RTE_CACHE_LINE_SIZE); + if (!dpaa_io_portal) { + DPAA_BUS_LOG(ERR, "Unable to allocate memory"); + bman_thread_finish(); + qman_thread_finish(); + return -ENOMEM; + } + + dpaa_io_portal->qman_idx = qman_get_portal_index(); + dpaa_io_portal->bman_idx = bman_get_portal_index(); + dpaa_io_portal->tid = syscall(SYS_gettid); + + ret = pthread_setspecific(dpaa_portal_key, (void *)dpaa_io_portal); + if (ret) { + DPAA_BUS_LOG(ERR, "pthread_setspecific failed on " + "core %d with ret: %d", cpu, ret); + dpaa_portal_finish(NULL); + + return ret; + } + + RTE_PER_LCORE(_dpaa_io) = true; + + DPAA_BUS_LOG(DEBUG, "QMAN thread initialized"); + + return 0; +} + +/* + * rte_dpaa_portal_init - Wrapper over _dpaa_portal_init with thread level check + * XXX Complete this + */ +int +rte_dpaa_portal_init(void *arg) +{ + if (unlikely(!RTE_PER_LCORE(_dpaa_io))) + return _dpaa_portal_init(arg); + + return 0; +} + +void +dpaa_portal_finish(void *arg) +{ + struct dpaa_portal *dpaa_io_portal = (struct dpaa_portal *)arg; + + if (!dpaa_io_portal) { + DPAA_BUS_LOG(DEBUG, "Portal already cleaned"); + return; + } + + bman_thread_finish(); + qman_thread_finish(); + + pthread_setspecific(dpaa_portal_key, NULL); + + rte_free(dpaa_io_portal); + dpaa_io_portal = NULL; + + RTE_PER_LCORE(_dpaa_io) = false; +} + static int rte_dpaa_bus_scan(void) { + int ret; + BUS_INIT_FUNC_TRACE(); + /* Load the device-tree driver */ + ret = of_init(); + if (ret) { + DPAA_BUS_LOG(ERR, "of_init failed with ret: %d", ret); + return -1; + } + + /* Get the interface configurations from device-tree */ + dpaa_netcfg = netcfg_acquire(); + if (!dpaa_netcfg) { + DPAA_BUS_LOG(ERR, "netcfg_acquire failed"); + return -EINVAL; + } + + if (!dpaa_netcfg->num_ethports) { + DPAA_BUS_LOG(INFO, "no network interfaces available"); + /* This is not an error */ + return 0; + } + + DPAA_BUS_LOG(DEBUG, "Bus: Address of netcfg=%p, Ethports=%d", + dpaa_netcfg, dpaa_netcfg->num_ethports); + +#ifdef RTE_LIBRTE_DPAA_DEBUG_DRIVER + dump_netcfg(dpaa_netcfg); +#endif + + DPAA_BUS_LOG(DEBUG, "Number of devices = %d\n", + dpaa_netcfg->num_ethports); + ret = dpaa_create_device_list(); + if (ret) { + DPAA_BUS_LOG(ERR, "Unable to create device list. (%d)", ret); + return ret; + } + + /* create the key, supplying a function that'll be invoked + * when a portal affined thread will be deleted. + */ + ret = pthread_key_create(&dpaa_portal_key, dpaa_portal_finish); + if (ret) { + DPAA_BUS_LOG(DEBUG, "Unable to create pthread key. (%d)", ret); + dpaa_clean_device_list(); + return ret; + } + + DPAA_BUS_LOG(DEBUG, "dpaa_portal_key=%u, ret=%d\n", + (unsigned int)dpaa_portal_key, ret); + return 0; } diff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map index 8c1ea65..3d4dc88 100644 --- a/drivers/bus/dpaa/rte_bus_dpaa_version.map +++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map @@ -1,7 +1,46 @@ DPDK_17.08 { global: + bman_acquire; + bman_free_pool; + bman_get_params; + bman_new_pool; + bman_release; + dpaa_netcfg; + fman_ccsr_map_fd; + fman_dealloc_bufs_mask_hi; + fman_dealloc_bufs_mask_lo; + fman_if_disable_rx; + fman_if_enable_rx; + fman_if_discard_rx_errors; + fman_if_get_fc_threshold; + fman_if_get_fc_quanta; + fman_if_promiscuous_disable; + fman_if_promiscuous_enable; + fman_if_reset_mcast_filter_table; + fman_if_set_bp; + fman_if_set_fc_threshold; + fman_if_set_fc_quanta; + fman_if_set_fdoff; + fman_if_set_ic_params; + fman_if_set_maxfrm; + fman_if_set_mcast_filter_table; + fman_if_stats_get; + fman_if_stats_reset; + fm_mac_add_exact_match_mac_addr; + fm_mac_rem_exact_match_mac_addr; + netcfg_acquire; + netcfg_release; + qman_create_fq; + qman_dequeue; + qman_dqrr_consume; + qman_enqueue_multi; + qman_init_fq; + qman_set_vdq; + qman_reserve_fqid_range; rte_dpaa_driver_register; rte_dpaa_driver_unregister; + rte_dpaa_mem_ptov; + rte_dpaa_portal_init; }; diff --git a/drivers/bus/dpaa/rte_dpaa_bus.h b/drivers/bus/dpaa/rte_dpaa_bus.h index d1de6d3..5c795f9 100644 --- a/drivers/bus/dpaa/rte_dpaa_bus.h +++ b/drivers/bus/dpaa/rte_dpaa_bus.h @@ -36,6 +36,12 @@ #include #include +#include +#include +#include +#include +#include + #define FSL_DPAA_BUS_NAME "FSL_DPAA_BUS" #define DEV_TO_DPAA_DEVICE(ptr) \ -- 2.7.4