From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0085.outbound.protection.outlook.com [104.47.32.85]) by dpdk.org (Postfix) with ESMTP id 3FED81094 for ; Tue, 17 Jan 2017 14:34:24 +0100 (CET) Received: from BN3PR03CA0112.namprd03.prod.outlook.com (10.174.66.30) by CY4PR03MB2472.namprd03.prod.outlook.com (10.168.165.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Tue, 17 Jan 2017 13:34:22 +0000 Received: from BN1BFFO11FD039.protection.gbl (2a01:111:f400:7c10::1:141) by BN3PR03CA0112.outlook.office365.com (2603:10b6:400:4::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12 via Frontend Transport; Tue, 17 Jan 2017 13:34:22 +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;nxp.com; dkim=none (message not signed) header.d=none; 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 BN1BFFO11FD039.mail.protection.outlook.com (10.58.144.102) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Tue, 17 Jan 2017 13:34:21 +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 v0HDYI2e005071; Tue, 17 Jan 2017 06:34:19 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Tue, 17 Jan 2017 19:07:35 +0530 Message-ID: <1484660264-6531-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484647774-28984-1-git-send-email-shreyansh.jain@nxp.com> References: <1484647774-28984-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131291336614401204; (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)(7916002)(39860400002)(39400400002)(39850400002)(39450400003)(39840400002)(39380400002)(39410400002)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(4326007)(2906002)(5890100001)(189998001)(15395725005)(97736004)(626004)(5660300001)(81156014)(8936002)(54906002)(47776003)(30001)(8676002)(38730400001)(8656002)(36756003)(6306002)(77096006)(6916009)(48376002)(50986999)(6666003)(230783001)(85426001)(33646002)(76176999)(50466002)(50226002)(110136003)(86362001)(81166006)(92566002)(68736007)(5003940100001)(305945005)(356003)(2950100002)(2351001)(106466001)(104016004)(105606002); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2472; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD039; 1:YXY8SbnSYu96YlPJsm3z6D0k/edGMbIje2C/aR1uzlZV7KTvZHt7/8WknWncw8LgWQKaD3HUJXrJSyC0gqSbT/SG/SuCRygoCK96t2OgKE4qQM32yfo8npH8/2D+d9GiOzHKUdxDTlcOtIi01Ez2rZI+Q5BtlUl0FPObmhsnZly/v8xFlByR5lz6sAAHzp4XR8K8clQVoYQeO29E36zDhtFUvpbB0xShIch/VhAWJDEU52Q9vFj0BVB6OKeeFbhv80aP5LQJm0EHtU0489z6fv1wZABY2MNys0C7GnQC/+CpXwp+tKx4+F+8kYAuDZyyiMUm63iwLRGZjLEexGEbTXq1Q1MnYMBZING3zWDfx7y0VA9M2sWhOyVJrA4kOvv8p9g7i9ag+eqrKBoMtlBhg0EDHMfUnFsiJk85ydIQLTYjpDMZ9ALBUFvwABse8ZBClYWcgb67qY9RcXPcBOgVHy4Yt3auYVK2mWVa46iCxguxZJeBHPjrf5i0ddjjKs6A33qsisxTguKYHyZRcfLiiJgGu99vdiPZ2wLnB5PxRCV62C5QoIlx6dbmeOh6XFxfPwbvkEbwZ9dxoETnemUZ3tPHrj4eMZ8KrG9fbqDd+4FTFhwAgTwab3Rv2vISQWBeg3pIRVeSG4HENZAtSSTENNnA3NYgo7jQ+eybtg22wVkQpG9npYzg5M4dfC7PEsW4WcHuWw1biYKZfJeyDBtRHQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 3580baa9-7a28-4541-7357-08d43edd8b71 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 3:dVqvIkN2t6W/0pxKtOteVfo7DPkgtKb2fklHgQ1tm+IehYMZYf0rwoTv3Xxtqc97/HCf3dIugEwZL1fQ9VxA6Ex3Sv/HprQCQe8kWOolg/vU2fR+wB19wo4SENCzYQtwKkbCvhFS6Cje+tomVa1T85l6jFgVlSUh+5SoGMljRFqgTR1++bLR5hV7r6y5MS9kRUCiGaz8oT0znvDiNee8kcyZFCLAn61Xn8ehOFz8Z/+DaT3ay30x13OK+s4Vyqni0dRD45Wl0rmQ/OalIMnnh0U6qAXojIjgwPBLtsGhhFLpXHaefXZOWNK9cv+Empq+tjgmwGVCkPE/nf+JreTpI8tr+AtdCo75DdkHdJ+Bdy+mayGAmy8VxsiIbfhubpqr; 25:B0iguC6UnNfQcPQziCh1ETTLljmyDc7r3iNgkcaKyd4OSB08gbeh3ryvKUOnxTBNsRhq8UoWlDLu6K0JyCmq81jk05mUNZ6nCv6B8OGGDzyZuAEhhcvlH903wYKy3BEUosg9WMNqhDvzfoLPxmomq0Jr0ZckN7NF9jPtAFSjzrSUEsRKwVpM70TxQb6K7JxqW+DdBoN7jhisrSuLfs8/FGiGFmDyIT/6HvoXTm142de4BxBjT2zzuuCwNKQfDvzXEwfvrrC+GcSUMNCobFJLDy8NnNUKiW3DcG8WFUkqhtCa/IdQR13OY58EnimewEVXXHl5n3FUJ1qXe1cHPBoy5kvjoX3ZZWACpeyWVJJDqM88J+R1W0QX5UZyKQvut7YJJGl63iUgrXQia6VQeJOqd1AQKZAaWCluj+3qN1g3Aa89LARJ2suwnjEk02vI+TjqBmTyDSgHkb3E6co1iDgyWA== X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 31:g45LuEEuoqXrrsT0/TM5+rxUMUCKwxYwP4b9D8VxpXCtdFcN259YjvFG/WBvHyluxQWJYUKO9jz5RGlZr60Tc1MLSFr9zAAhSO4AbuB5MlWv2plWE5+VeX5bvOg9asjemLUVsC6O1EsmFSy+k5ljYOxtzsUnO0KeeJx+FVZJ9XIJYQfujOCujvSkhDxbtDhOV6EVHHJwrkwzT9GyYiTQwWvL1iVr+4z2k6Wc0k/QofRFIuXXRGzVFJTO7As/JJ2S7LY4sydXJAZwayOP/Bw/dQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13023025)(13017025)(13015025)(13024025)(13018025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123556025)(20161123563025)(20161123565025); SRVR:CY4PR03MB2472; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2472; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 4:tj1WioJWjNMom7qhGDjypw842FjABmMkXDiIZMiqDfwg4APZGccksRnoOSkbpxDYDivrB+OiwQL7bMpIzVWytMZK0d5cF33CLRxFBJPRyGmtKvc1y3NVg2zdoW8+gLsdcQzqKJyPwpbrpx9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aLlrI65mO?= =?us-ascii?Q?wIgT5gpwthao7/MY8bJG9VQk4FrZK8ZfnFN2kSB/jHGoPIWiYos8sHEneey+?= =?us-ascii?Q?uUQU2tLXksAL2NAOuFfd7z0oEBDwGvGJyXmHkdZZvDzF2umWRT13JuuxxLuo?= =?us-ascii?Q?nUpclBmOUZWlYX9Poeusj8cxU+HBm0P1JN7J9aWVEOOwdxG?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 6:19clLyCoICZ6Z1iL24WBiQViUX/inOGjbhJb0MMAG8AytUPRJTgXAvhbudujb/pYZ99gOegaOUUyOiVXNWpVtfYaSwS+NhDzL4TR1Y9NpWV9KqBzr/oRQfTaIPtZ6cMc6RRR2aXKHw9ZRrxHfg3PqDcRzxKqP4TaN0YZynKhYsNXeC9m+EiDGPUvtqbYSO0ncakHuYfAbDzu3Ri4vhR+TGx30Sz1S/+ZtK9er3/dWC/sQ0P042lFdN1u0rJrkEhB6gfcXIqkoU3zbbhJMWAChVlLNyWXPS41Sn1XAlyGhxWtBazdsJLTeTGfOkWeopdwtJdQU7DW0H1sDAfwtvYmHgcLi3LBNdUZhRCdUz6ARPoC8nOEd7A4F1bYGOZg2ON3KeOwgLqfKHHGCg32RBH10uNkEp0xDooCOxHmt+vwQigiswK26SX5EmN6F014mf30; 5:G5YeMPQThVS9/lKmZhMWSYhqnkzPl5I/I1ca5zO1zMoI74KGm47AbQTu2zESbm6Kl9GcRIYu4BWLjxfk/reR09mcbb1AKWoKVTBDf9DS/jcShPde0AMa81ZgfoJC5HRxUMf8JEmbFI3s8UVhOaz8umyvGgwyN1nNiOyzctJ2NwSUbwFT8BEBwqYJdAtFWlgJ; 24:9vzZ51IBZBjVAYt/eMZFqxZkKF1LRmvW20SGYNFCPcwZGnKA+2vk2rgMmybb/r+I0nHAIv1kLnlphCyltZi6IFOteAfg3glQB08C/1+4trw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2472; 7:Be0i6A3p3oOt1vXVP6eyPf8Nt2c9YM9T0Pp+eI/h5L7NqE12hMI3HLxyteU9iHJPXSgQUNrXOaZDB5LBV2y0CXET2xA0iRr0b2TzW5bzRjRfXFJ3I0AwIfBIja+VziYBl1AKA/HLeP18yMHnN6roHRrJdYfZilZ7YzQzJZhGWcsDcat5D5C3kL997j4GvSBmF0L9YvZzsd7SXHW5e0fJHLgGA0ruoXJUL6YzRTevrfL5fQfZfj/P74+aUK5qryD9t0QhmQZ1DGfNpgzlbLRCwC3ahj+joGYxYBTKFM8iSYZ4+9IUWkzUhVlyQabHiZVC5zo/fmLfn0YNvayWDL02kelTtWUCDxNHzIHir/G6P6/aTy/K+DE4Op3UXhHJzy7cC+MJclEnGDnzkM1xlvtfnBXZFnrZMNaJtltULkhZj11DyG+K6YVDGF3wtcx8jixAUTrxYNO15rudwsMXVbbDBA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 13:34:21.2373 (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: CY4PR03MB2472 Subject: [dpdk-dev] [PATCH v8 0/9] Introducing EAL Bus-Device-Driver Model 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, 17 Jan 2017 13:34:24 -0000 Link to v7: [17] :: Introduction :: DPDK has been inherently a PCI inclined framework. Because of this, the design of device tree (or list) within DPDK is also PCI inclined. A non-PCI device doesn't have a way of being expressed without using hooks started from EAL to PMD. (Check 'Version Changes' section for changes) :: Overview of the Proposed Changes :: Assuming the below graph for a computing node: device A1 | +==.===='==============.============+ Bus A. | `--> driver A11 \ device A2 `-> driver A12 \______ |CPU | /````` device B1 / | / +==.===='==============.============+ Bus B` | `--> driver B11 device B2 `-> driver B12 - One or more buses are connected to a CPU (or core) - One or more devices are conneted to a Bus - Drivers are running instances which manage one or more devices - Bus is responsible for identifying devices (and interrupt propogation) - Driver is responsible for initializing the device In [15], model assumes that rte_bus would be the base class using which all the bus implementations would instantiate the objects. This patches takes a much more basic approach, on the same lines of rte_device/ rte_driver and rte_pci_device/rte_pci_driver. This is based on various review comments as well as offline (IRC) discussions. - rte_bus is an abstract class which includes basic methods supported by all buses. - specific implementation, for example for PCI rte_pci_bus, would extend this class to form their own buses, with their own bus specific device and driver list. - +-----------------+ |rte_pci_bus | |+---------------+| ||rte_bus || |+---------------+| +-----------------+ And example implementation would look like: .--------------->+-------------------+ | |rte_pci_bus | | | +----------------+| | | |rte_bus <------. | | | name || | | | | scan || | | | | probe || | | | | attach || | | | | detach || | | | +----------------+| | | | pci_driver_list | | | .-------------->pci_device_list | | | | | ... | | | | +-------------------+ | | | | | +-------------------+ | | |rte_pci_device | | '----bus | | | +----------------+| | | |rte_device || | | | bus --------------------------------' | | ... || | +----------------+| | ... | +-------------------+ :: Brief about Patch Layout :: 0001~0002: Introducing the basic Bus model and associated test case 0003 : Split the PCI match into a separate function 0004~0005: Introduce bus->scan APIs and integrate with EAL 0006 : Update the Bus and PCI test cases for scanning/probing 0007 : Enable PCI bus and remove code for direct PCI scan/probe from EAL 0008 : Add device hotplugging over the bus and introduce PCI helpers :: Pending Changes/Caveats :: 1. This patchset only moves the PCI into a bus. And, that movement is also currently part of the EAL (lib/librte_eal/linux) Eventual aim is the PCI bus reside in driver/bus/pci 2. Though the implementation for bus is common for Linux and BSD, the PCI bus implementation has been done/tested only for Linux. 3. RTE_REGISTER_BUS has been declared with contructor priority of 101 It is important that Bus is registered *before* drivers are registered. Only way I could find to assure that was via __attribute(contructor(priority)) of GCC. I am not sure how it would behave on other compilers. Any suggestions? - One suggestion from David Marchand was to use global bus object handles, which I have not implemented for now. If that is common choice, I will change in v3. 4. Hotplugging has been introduced over Bus with a caveat - it would only work for ports/NICs already scanned and available in the bus list. :: ToDo list :: - Bump to librte_eal version - Documentation continues to have references to some _old_ PCI symbols :: References :: [1] http://dpdk.org/ml/archives/dev/2016-November/050186.html [2] http://dpdk.org/ml/archives/dev/2016-November/050622.html [3] http://dpdk.org/ml/archives/dev/2016-November/050416.html [4] http://dpdk.org/ml/archives/dev/2016-November/050567.html [5] http://dpdk.org/ml/archives/dev/2016-November/050628.html [6] http://dpdk.org/ml/archives/dev/2016-November/050415.html [7] http://dpdk.org/ml/archives/dev/2016-November/050443.html [8] http://dpdk.org/ml/archives/dev/2016-November/050624.html [9] http://dpdk.org/ml/archives/dev/2016-November/050296.html [10] http://dpdk.org/ml/archives/dev/2016-December/051349.html - v1 [12] http://dpdk.org/ml/archives/dev/2016-December/052092.html - v2 [13] http://dpdk.org/ml/archives/dev/2016-December/052381.html - v3 [14] http://dpdk.org/ml/archives/dev/2016-December/053302.html - v4 [15] http://dpdk.org/ml/archives/dev/2016-December/053315.html - v5 [16] http://dpdk.org/ml/archives/dev/2017-January/055120.html - v6 [17] http://dpdk.org/ml/archives/dev/2017-January/055320.html - v7 :: Version Changes :: v8: - fix return value bug in rte_eal_pci_attach and rte_eal_pci_detach v7: - update to rte_pci_match for const parameters - remove unnecessary log messages in probe; moved _after_ matching of device and driver - bug fixes in attach/detach methods - PCI disable for debugging was missed (from rte_eal_pci_init) in v6 v6: - Rearchitecture to bring bus object parallel to rte_device/driver This majorly includes: -- rte_pci_bus class and pci_bus as its object for PCI -- bus->attach/detach (hotplugging) -- removing bus->match as that is local to an implementation - rename symbols rte_eal_bus_* to rte_bus_* - restructuring patches (order) for simplicity - update to test_pci v5: - Fix checkpatch error in Patch 0003 v4: - rebase over master (eac901ce) - Fix a bug in test_bus while setup and cleanup - rename rte_eal_get_bus to rte_eal_bus_get - Add helper (iterator) macros for easy bus,device,driver traversal - removed 0001 patch as it is already merged in master - fix missing rte_eal_bus_insert_device symbol in map file v3: - rebase over master (c431384c8f) - revert patch 0001 changes for checkpatch (container_of macro) - qat/rte_qat_cryptodev update for rte_driver->probe - test_pci update for using a test_pci_bus for verification - some bug fixes based on internal testing. -- rte_eal_dev_attach not handling devargs -- blacklisting not working v2: - No more bus->probe() Now, rte_eal_bus_probe() calls rte_driver->probe based on match output - new functions, rte_eal_pci_probe and rte_eal_pci_remove have been added as glue code between PCI PMDs and PCI Bus `-> PMDs are updated to use these new functions as callbacks for rte_driver - 'default' keyword has been removed from match and scan - Fix for incorrect changes in mlx* and nicvf* - Checkpatch fixes - Some variable checks have been removed from internal functions; functions which are externally visible continue to have such checks - Some rearrangement of patches: -- changes to drivers have been separated from EAL changes (but this does make PCI PMDs non-working for a particular patch) Shreyansh Jain (9): eal/bus: introduce bus abstraction test: add basic bus infrastructure tests pci: split match and probe function eal/bus: support for scanning of bus eal/bus: introduce support for bus probing eal: integrate bus scan and probe with EAL test: update bus and pci unit test cases eal: enable PCI bus eal: enable hotplugging of devices on bus app/test/Makefile | 2 +- app/test/test.h | 2 + app/test/test_bus.c | 686 ++++++++++++++++++++++++ app/test/test_pci.c | 164 ++++-- lib/librte_eal/bsdapp/eal/Makefile | 1 + lib/librte_eal/bsdapp/eal/eal.c | 13 +- lib/librte_eal/bsdapp/eal/eal_pci.c | 17 + lib/librte_eal/bsdapp/eal/rte_eal_version.map | 15 +- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_bus.c | 140 +++++ lib/librte_eal/common/eal_common_dev.c | 56 +- lib/librte_eal/common/eal_common_pci.c | 337 ++++++++---- lib/librte_eal/common/eal_private.h | 10 - lib/librte_eal/common/include/rte_bus.h | 200 +++++++ lib/librte_eal/common/include/rte_dev.h | 1 + lib/librte_eal/common/include/rte_pci.h | 148 ++++- lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 13 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 57 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 15 +- 20 files changed, 1633 insertions(+), 247 deletions(-) create mode 100644 app/test/test_bus.c create mode 100644 lib/librte_eal/common/eal_common_bus.c create mode 100644 lib/librte_eal/common/include/rte_bus.h -- 2.7.4