From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BN3-obe.outbound.protection.outlook.com (mail-bn3nam01on0045.outbound.protection.outlook.com [104.47.33.45]) by dpdk.org (Postfix) with ESMTP id 86F5F7CDC for ; Fri, 16 Jun 2017 07:33:00 +0200 (CEST) Received: from DM5PR03CA0059.namprd03.prod.outlook.com (10.174.189.176) by CY1PR03MB2396.namprd03.prod.outlook.com (10.167.8.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 16 Jun 2017 05:32:58 +0000 Received: from BN1BFFO11FD026.protection.gbl (2a01:111:f400:7c10::1:141) by DM5PR03CA0059.outlook.office365.com (2603:10b6:4:3b::48) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Fri, 16 Jun 2017 05:32:58 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) 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.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD026.mail.protection.outlook.com (10.58.144.89) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.1157.12 via Frontend Transport; Fri, 16 Jun 2017 05:32:58 +0000 Received: from Tophie.ap.freescale.net ([10.232.14.39]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v5G5WNFG001003; Thu, 15 Jun 2017 22:32:56 -0700 From: Shreyansh Jain To: CC: , Date: Fri, 16 Jun 2017 11:10:47 +0530 Message-ID: <1497591668-3320-18-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> References: <1497591668-3320-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131420647782257827; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(39410400002)(39400400002)(39850400002)(39380400002)(39840400002)(39860400002)(39450400003)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(105606002)(104016004)(189998001)(106466001)(38730400002)(81166006)(110136004)(5660300001)(8676002)(50466002)(47776003)(305945005)(85426001)(2351001)(76176999)(498600001)(36756003)(33646002)(356003)(86362001)(77096006)(53936002)(4326008)(50986999)(54906002)(8656002)(2950100002)(5003940100001)(48376002)(8936002)(2906002)(50226002)(6916009)(6666003)(21314002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR03MB2396; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD026; 1:Gi/I5I5elwUvCjA672eclFLgU+JbaQwWglkt9WJRy8MYC57pwaqnoG6hYkYbJaMW3Is8ghbPK4ei2rPGvKP2mN6+0Ic680phjkPIVgJ34qsgyp7yBqkf7Hyv2f20sffTy+VCG49jiuWs4ZKZ2p3S3c/VwG1rRLvPfyPFAkBHrOxQahvVTJ1XEwqJKgWbBzX0xbukFTO44aorRwm7G5NSodcYd9hJ5eBIa0lNHoL7H3wnj+EhFuGIg0GFYMBL+IOieKFRSl6AhYZtrC+l/cAufHpgBN3mRxtDEyGgxmTxD1sFWUngWfscTUr/NZM9bWDUeNSA+xKfVSEvQ1HAxTQmmWT+r8BAeBbT0B4HWHES4M62rGEeU+tOc7XRQOdjuaSUByT7w3eaPhgaiXsOqwC91NJ/9tCANc7ZxAFGUfRy9Dl3V5Zcw6Z5GeBBuRj0qGZgnTscujbmj10QYFWyVKhlw5pGhANiCJzyWWGVxfRs9QJQBZQaw9/eixCz1VCb9IuTpX+q3kWCPgeaVk3IxdiGD/dHiwlqP9admp5WoztuBX19k+86elk6O/3GDHtssiuQLvllNonxJUo1mgDnXEhp6pEdGovFy+/00mK6B1amhXbJBxZ9p9Xh1C+YmSySaEvTATZiz/64JsweLiTeZ+h7Ilkx3SAH8V6Be6EHRO7QX8894aGInkG+8KFV2iihcHOCJznUa3RrnYzLKT/79SzbKSRdLqgG8/y3d54GrkCYUHA= MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CY1PR03MB2396: X-MS-Office365-Filtering-Correlation-Id: 2ae344df-7b5a-4c0b-3343-08d4b47925ab X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131430075)(201703131517081); SRVR:CY1PR03MB2396; X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2396; 3:UBbaBhjA7kg+BjiuP9gxPIRJr2RzIM957ABZaB3nuWw4oFquUdBaNh1kqdZeC6eEOfa+FrtpaKDsF8itOd7IhTsgXzj3owRtl/qwD7ikNEcODXVR5oG1Gx+wzs9UifTuIKf95q5oaDI9eON0+gnj2mmgdy8r/I88NF8+q4o347Ur3iJ9iE+TVwxWsWPbUywhfcqQvpgrRlawO7P1rGMTmqhjjhLfVRffgGynsbibstwRRYeD3FI5r7Iy/mQBT7vqvRjlhpR74VWmzsc3IR2ip15Xf7e//alQ1b0Mvp9xS18it12O7dmsubkzs0CmJAoE/z4jh3HeKbXAJ7/QS1o5CV8OPpWHcNLC7t1H/Tv8mtN8A7Tp1jjzmVqv3Saz2Qvm0E/mvUnK4rXnro6hNs9bt7Nvg19wF9obG8eLCcMH+CF+qeOKPusxcLQ6pynUOA4w; 25:V0mw1HDsZ4wu2+xCjO4CwACyl35ODi+21aiKxamvzJqXcJIooO/bT/bgdtyLtUWTjUUZFk61U1psFbSdhzGnMUHN0l/4NI5NwnGu6mzl4S8DRxWSZ+bzVBimVTK5BK5mJds7rKm78nItMX0TGKOuiyhl4oL5Gpyp7fceunP66+LtVYM0jNGNXptLs4ViaeHB/msKyUAxTKZLcaJj1J8WojaOcFy1RGnDsZ8iySvmP+xbVb1SeEGTuQ0SRiObH9qUkKs4gWu52pclxokTD7OOxHNf9ot4o5l4GTglT/NrV5pr5hIPVetHe5pijIwJhAgXZMGrgi2oHK+zw6vIimJEOQ2MZZiw3cxJCCNhb6ivFvr/fy3I0RpgGutXSJ4RAOfkA7cQMljPaBHfl+39yq/jnpzuhrngJwNVLPoyJil2rmfmSiiJXp7B50Kc4t4V8wjS/mYsjRIhoX0IayPMbBW84/vmtUEV/kooPGpsCSISH3s= X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2396; 31:EwG1vipwsvBoMVn3+PEWUZWxcCvE2CycEoRdkfAU/roinRT35UQAW+ud1/uQ2gQdKWpfDbQ/CCKu22t9sVs4l0FGfjdfUVQi/lAG50eBfNOvuUVHDS7Y7cxrNiwstpgI5ILy0MHyln9sOHEOsq0ZkUv2GrscWVMJ69vf+ZanNKVn7MWlAjr+YUQ4RfvJqCzX5F9L0QIf+pZru1BSTSmnjS7v0haRP4HhBSIETR1BDgnzANkmRz3bG7LXffvDr0m4 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(227817650892897)(275809806118684); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(13016025)(8121501046)(13018025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123556025)(201703131430075)(201703131448075)(201703131433075)(201703161259150)(201703151042153)(20161123561025)(20161123565025)(20161123563025)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CY1PR03MB2396; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CY1PR03MB2396; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2396; 4:uDAJTCDvJWIvqXg2IE/eScQwL97lepAmSybQ4buOER?= =?us-ascii?Q?YQFnpsO7+nPjLmDYyMFSo8WEUlZKWIPtszt8nZOzuvoG+HZamkriYPU1IbnM?= =?us-ascii?Q?UcG4Ix3eVagy+VY+NW6mhCj5+ySfQ/gfq+riszDff4xQ62rHi0KPZPOFlhwA?= =?us-ascii?Q?0iqqxQb5gt2Pa7YgzbsApOEcVbCmTHmzxKHC5U9YteYLjj4iz6c0ZFlZ2k3K?= =?us-ascii?Q?+l5gPuG4mQhssLsLRc14Af7hLc+QaEFaFAZJtq8gaSHOPnfYfihEuLgt8Vbc?= =?us-ascii?Q?O4f9w9z9UaO8osTJVsGkd7mMZASBJeIHyvBNhoJvFw42So9aw89mPD509fdk?= =?us-ascii?Q?VE5YP2J9qK8b64bXYS1n6e3VzlpahRmicSVpEYFJS+H4RhN5817/yagOc76k?= =?us-ascii?Q?mdUjnFwILQVCMGa5ITas164eGdUxmdMUGu9jIa6Htq9V5/U9GnTNufbpoICL?= =?us-ascii?Q?CxR2H9DE/4UksJlAnopZYRpIHTUEy/l+tBGA18RIuH2hI8UrE50+OpIVcQwt?= =?us-ascii?Q?wZhDXzZH2SN/vkmow0x4JJ/bjBUGywveQVzNx3G9/kkLRRXiMhEg4M/gC6Wk?= =?us-ascii?Q?6oj7ZIvN+Iy8HZOhsxUX62/W+0UXKYa7Swd5k/1vvcqlqhU+Xxj+C+qwCSBM?= =?us-ascii?Q?sSlK3cH/p8GrxgWm1woSpkixfKkTqcM2cjUk6EDo543cv29E+fcXEZXDAjDH?= =?us-ascii?Q?m5hRPs1Tc/U7wSMGakOVGCXNvKE79yXa6g7f9tz07YMAbRCo59lE5i5EKfbn?= =?us-ascii?Q?9TAq2589c7Swoom1JXPyCkmtYvlLGc1qslBPhxctw+RWKXPgulbEOzlnVPeK?= =?us-ascii?Q?YHD2Ero+Mp0ZhAydJx8EGUjBXrN5HCtxzr0kUGRVo9f4EX8fGchmuXtBtSzH?= =?us-ascii?Q?f8E0sjIxhXbpS5yqX/GLPWJVuFvAlNCKdt1lGZFFm7XPfnzpmxIuIe0NRbia?= =?us-ascii?Q?rlUGJNBOtUQ3tXtebNCt0seVZnlXKJXYg/hllaU/+AZJy+3JEAPnPPRdiolt?= =?us-ascii?Q?ZdvKzE6d/8XMhW6QUl8IjEYgjm1CL4VBUhbMx8bQ9nT6RBtZuTkorV8x6kSL?= =?us-ascii?Q?HfYXzUju2k4smKCV1YAT2aZUpyC3f49QyzdqLIc7+ZlVE+bHaPOy5y0bqBAe?= =?us-ascii?Q?QVmzG3DjwZuiWj+Abd279VhwMtkw+whexT4ekTzshwP+VP/uRNvI6F2RZSCZ?= =?us-ascii?Q?bEfPrXpZhlyENSf5YCv5Wbg6FJRb/3CJe1ADNc5w+tRqVei4r56yPIxwOaTv?= =?us-ascii?Q?qXQ9MymL9HccLljBLf14eWo0HRkXwU9xTcMDRTyZGLnr2k+MoKUuU3Qp9OSk?= =?us-ascii?Q?mTpg1SijdASE2ScoqzLJcG3J7JftQDZrgPyamo4hhy?= X-Forefront-PRVS: 0340850FCD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2396; 23:KGHGaRFICJ/AicdRnfsSocTjvYl+i4jI7tCovXxBK?= =?us-ascii?Q?JHe7z5scrX4DoxGPrG/TrUbPDQ0qjUpJP11orCYRaxLwlLO1JnG1CShVc8Xz?= =?us-ascii?Q?uYCcM2DEBBL08op0kiiM+SYJUlqwTmgE1ewoZFebbxnXZTy4EFvsgWfZDuD2?= =?us-ascii?Q?ZFRJWY48TwNv83riorI1TTMhqKSTM9ct+tgS7uQjcgmcQK8HpcJhItTfeEYt?= =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TjVHX9hgO4jftw/vJQkrYVg5M/?= =?us-ascii?Q?asT+UDayiK7d3NlnYQ8rch718W3QKtsXgA6he8ri/9WMJ4L1SBVJ/DgtHS9x?= =?us-ascii?Q?HVuxkBcviFWQ1svIVpv6RoAtYyP+plSj+iISg2+gOUq7XpWvHXDB+vy6/4K7?= =?us-ascii?Q?R0qIKlq4ztRMyTft6L/O7RgqIDJFnNH7IpL6WAo?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR03MB2396; 6:+TYEkiApR5lYou7UMDBxBmZKPRJ34vZOuoUp43On16?= =?us-ascii?Q?Sf7uUlC6wG8/vvHQJfE7nkGEP0i15M9D6ghs4g+pW2pF8tlWhJNZUi1oOITh?= =?us-ascii?Q?7jmvC94Rp30ogwAJlfrcCg6wMgxTrs/fPu5HZJ/E35r2cGUxHp4u9jlInGvm?= =?us-ascii?Q?52+CN3iBzDa198/VUqS94K4Qm044wzXZyGRqa7wjmsK1NUUg1O0WqA3p9Ip2?= =?us-ascii?Q?6JwNbMJx9llkC8i6svsNsS/FJ8w9zOuOvpng/tQQ0ygpH9IHiH4+akBjHfIz?= =?us-ascii?Q?Gc6u9vV4DkGRjcY/AT/q+rzy4hSRw+4zBMf46PzWkpHwViXBTCFtjva/UQyz?= =?us-ascii?Q?FyWyrOXV3VGZiWrv1dlFhUAHUioBmH63pT9alROPUd/VwuwvTNev2WrKiaPp?= =?us-ascii?Q?zROknPsM8gKoCOO1btr4KCnzell3gYjQf9o028d3lFYz690AYi/I+FDy6bsP?= =?us-ascii?Q?mqs6klDBdRH8tX/SNau65J73KP5Ir7r8HKoQxq/95AhMYj2pbV1tBW4MYpR5?= =?us-ascii?Q?qw/y+tn9ZcBLyWlZVqEvtUAMKUR/axp0p3f3EsXkmyvRClEO0RbZKP+722zo?= =?us-ascii?Q?DqjKkHVW+8BqTILMAKXIFSwQd5Up3mhwBls71V7+jKIVQ6hQE342Hhr+K6BJ?= =?us-ascii?Q?1EgZp718EIwLYlC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XGeGI/qSahDY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR03MB2396; 7:2yylvNiEjXBYDHfwyvOQKnw42lVX24mRHLOeXZBXEdeSry2vIYl+a0JyaOG83Vc87T5Or91oZYY2HklUdDk2rZixTOTCR8hDlc3mJ3BQZjw8A2mpwdYZ0JNmDwAbgpuWzJWq0tf72iUhJP441AiRgVwhE7Hy62T2XAHwBdy2gPIiuNDSZj7u+RE36E9SLC2aFd22cWeNNjHPXQLmtxE4scyivG6gVO4gARXajLjjStLAUfYmHII2dW2KGtZOLevJlPMJGr7ySIeDt4yk6hQSqrSbREd50ZsE3uZbZdbH5Q3oN8zzozXftjDLGrMF4fxgJNIdyMQZrv+YHzNb7illOpnoLV7tLUeUTcEi2qJrXOLVQc1hNVH5Z76Rg+o3NcIvzzen+GM/zXor0wGjjDCfHb2pXLnVUQxjDRlI7FX6hU00nexbvc0RM6epGBL+O5TMuFGls9jKqUY7y89HObgWDPQzf8fjYATU6PIrrvOSFEpJ+snqDf8K6VbNJ0kGWTW6JEExErNkNICNLEx1fxny/x39qRc5ZG0DiacYCmdte2ChakpT+SKXZUI0EyjyW2Ezprxin+MlrMjDqou7lrcA+qQ4e0rrkZ5smYCNQxjunJbPYiimMwkskYYKzozwbHiPjaeTv1/OJffK6Xk66JaMuWjSoT0BCygSSk/f/gsTG9grlkPXwr0XSFlgDlJhHYqoEzuO33mcZpI6lkycndSiXiFniW2Z9W5YemrQ6Yz7JzR6tVEf0Su3AKFlZFpVetvzLAi5fdgnjEBcjpLnIxU3j6JaVFWTBLqL6mDOTgRRaVU= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jun 2017 05:32:58.0229 (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.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR03MB2396 Subject: [dpdk-dev] [PATCH 17/38] 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: Fri, 16 Jun 2017 05:33:01 -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 | 236 ++++++++++++++++++++++++++++++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 39 +++++ drivers/bus/dpaa/rte_dpaa_bus.h | 6 + 3 files changed, 281 insertions(+) diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 1c4627d..6a6baf1 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -64,9 +64,19 @@ #include #include +#include +#include +#include +#include +#include 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 +89,237 @@ 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); + + 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; + + PMD_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) { + PMD_DRV_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) { + PMD_DRV_LOG(ERR, "bman_thread_init failed on " + "core %d with ret: %d", cpu, ret); + return ret; + } + + PMD_DRV_LOG(DEBUG, "BMAN thread initialized"); + + /* Initialise qman thread portals */ + ret = qman_thread_init(); + if (ret) { + PMD_DRV_LOG(ERR, "bman_thread_init failed on " + "core %d with ret: %d", cpu, ret); + bman_thread_finish(); + return ret; + } + + PMD_DRV_LOG(DEBUG, "QMAN thread initialized"); + + dpaa_io_portal = rte_malloc(NULL, sizeof(struct dpaa_portal), + RTE_CACHE_LINE_SIZE); + if (!dpaa_io_portal) { + PMD_DRV_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) { + PMD_DRV_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; + + PMD_DRV_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) { + PMD_DRV_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; + PMD_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 55e6793..34a7f4b 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