From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0049.outbound.protection.outlook.com [104.47.32.49]) by dpdk.org (Postfix) with ESMTP id B9C2FFA4D for ; Wed, 18 Jan 2017 15:02:11 +0100 (CET) Received: from BLUPR0301CA0013.namprd03.prod.outlook.com (10.162.113.151) by DM2PR0301MB0749.namprd03.prod.outlook.com (10.160.97.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13; Wed, 18 Jan 2017 14:02:09 +0000 Received: from BL2FFO11FD028.protection.gbl (2a01:111:f400:7c09::104) by BLUPR0301CA0013.outlook.office365.com (2a01:111:e400:5259::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.860.13 via Frontend Transport; Wed, 18 Jan 2017 14:02:09 +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 BL2FFO11FD028.mail.protection.outlook.com (10.173.161.107) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Wed, 18 Jan 2017 14:02:08 +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 v0IE250s026776; Wed, 18 Jan 2017 07:02:06 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Wed, 18 Jan 2017 19:35:16 +0530 Message-ID: <1484748329-5418-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484735880-17178-1-git-send-email-shreyansh.jain@nxp.com> References: <1484735880-17178-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131292217289003117; (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)(7916002)(336005)(2980300002)(1109001)(1110001)(339900001)(189002)(199003)(48376002)(53936002)(2950100002)(6916009)(33646002)(77096006)(626004)(2351001)(5660300001)(15395725005)(76176999)(6666003)(38730400001)(86362001)(106466001)(92566002)(50226002)(105606002)(8936002)(356003)(305945005)(47776003)(5003940100001)(68736007)(50986999)(2906002)(189998001)(4326007)(81156014)(104016004)(81166006)(50466002)(36756003)(8676002)(6306002)(5890100001)(230783001)(97736004)(110136003)(8656002)(54906002)(85426001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM2PR0301MB0749; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD028; 1:4kC/6Lx6mSTmQHn/lan4sm3xqMOk2k9qzBBOwMzlbO9Nn7881y4Qw/ZU39b6lGJ73n/AVLKMsoB8kQY5qyJYDpKFrTmw91NWqSnZRu/cRAlSnVCkrr0MKy5GLeonwq1mZo8EHC9y0PDmpDO/d3tBg1HQHpYSHiZau6voOIpgqfB3M/On03zH8cBRBZ6UvdWYJNgSWsC0v5jCn86JpXTByAwY54TccxFRrDaCrLjXvkWi320TaP0ngc99hp1TkawvxRImY+DHAYz0a1K3CeES6HAchEmviXhnfZGUQUWcG/zaefkxC3HhI6oMPJqGwEekwv/MFuiP3TBjSg8gkELBdJaZbq7CZZ4NJN1212RMCQp2DX5vfzyakH5kssw8sZZ85s73s5xhuPd3m7N7tfPjVqOfAU3lgEXj4loIjZ0FwO4jKrKPFVt+NUnwYGzeeSQVr3Wyz66wrmXMbuMOyor6T1fUOD47BLtzt+/o7mEEBuN3lGNRyjdFYdQC3k1r3dPqausal7FszR0UjLJritFOBwasrGgZtqgKMtONNCBu1DrKYz7YnUroUd+5luEQ6Q+uupBbfl47f6oUwo9TWJXbP3faE093E52Zc1pd/d4/U+VMeLqaLTtdXQTLgtypYu+0QhAZmuGcwA6B0KICNO1zrCPSOrvh5AL0deedjPduJWMxjmajDBEIOzqST8Zksi6ihyctCjAngTQXLN+iOdTglA== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 2b0e61fb-c575-4dea-d06d-08d43faa97bf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:DM2PR0301MB0749; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0749; 3:FZXZwiQeVlvqhzmGwtHMz59sBqOVnDKvvjGbKxvMHjxSXf9loWtH7ROVO8yrqKhDw1B76xwmI6qG/tFwocoBciE5gMIXzDPyhDdMZIzsAtiY9ftOnO8e7LjLg4mGm+JKUFG8AB0AKl2QMtGsnT17ZZY8LtpVqqSLc1N4RZmfja+ZHUMt3yY5SYDZ+uYRpXmxY3Zy0qUpLeGKjQ4F26yMm4oT4Z/fkIie/cr8K3D7vVnTDEl8k7zzPQe7Bq/OP5rJSQEEgbfsFaCrqtao416OIOxjNI6wV520YyqB6XAz5ozZIWdr46eEc8hwDbcFuwy8mLUBYTqeEPF5kShl0muSXX7aRKF551RtpAydAFWyl1Ob1eMURTLQAIFOUWO4bYh9 X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0749; 25:chV7MlE0U0ZMH+kZt9vftR0TSN1Y5pCUtfxS0VinWlSQ7ZsXKPDoTm4hc18JM4JOBVUaGh0dp5yWi0YaNAxo7VR7PyL7JijIyQnZsYerYf11/g6jDtT+E+QZLnICL+epraevadA8eNKIRem4puW4AvhJ+hoIwUMzvqae2cCgdi8uxcpL/tV4ZgayxqdctiBGtvvUYzp5cWwLfrUCuD5xBamLVjYFACodJVUwd7UxUw2IcKeoCW1tutvcdQ8HPAPs5LmVVuoIOm9WjVdjUvcLsScZ2bCq9kAacYtwsDXzuGLP9b36+RXNFOSnfvbPrxNw5yfltugNrI4XUZ2aNNpSVQZ/10iOYHEuw2zJkF9xheyPnFhcMRSwDAoUAc/05vKHT82bKtv4anuTvqBVecWkV8D2ZfPreCc3Yan5/Me+aNJg/fxOsCvQwsxh3RP2x8kx+q7sS2P4kA/0Ma30xVXOv/HMjaK/9MT37AlGwwmfXSKnZxojW80c2Ekehy/DmprCC36xeN5qb1h4aNncpAiqXQJjXiXsQGr4PG2S0SQGXrWD9MeaMk6LKWTeVM7A6euf9hQEorPzorfp6972f4QEiTAnZf2fKxs1uzDRnHZkBRM/I7HFJYe12cQ8UOwqsiba/96IvhNVlWgTc8KOZCoFiYKpY7F3ec2ybogzfh7bG0tdFaLQJOsfQzglWmHOwVcesQk8QoVATqwnwDqUF90MyZ2HrmewjM1+ee31lZIG0jAQIou8aKJEFe9S5wgpoX6YD+30yZYOTb0sGirxn1HfM7WCmggiXDuGfXxvMmKGo5gQ00TkOkDiqMIFiBBu1xBtcIky90QUGbUyir78wsDF6wzhtACu/dfUthlvVh1u2qNzkSTUBrbYuHnOTAE5t6GF X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0749; 31:FGYXtRenwCOcyl4mAsHprHdHXujeBRq1klC12RXREEe2/2gTu7Dly2t6ZLkwJsu+FcpSRMIURSliGkq6RruGudWVem2v9AqM2lrAmf4h2v619G9FAKpq45JKE1EUu0MypYxtua5LDbhzZaQQbiRp1lpd62wuePPLFe92esHSIlrkiAlFKjgHg9Q/AxTNEQ68mpY3rQtN+jDhp1Qikq9S8F2HPuGseUIyJ6sZRVmL66mnUAWBpyCmHggX+CydjbllM53d3w3vL1Lf4N6svezGdQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(13015025)(13024025)(13023025)(13018025)(13017025)(5005006)(8121501046)(3002001)(10201501046)(6055026)(6096035)(20161123565025)(20161123563025)(20161123556025)(20161123561025)(20161123559025); SRVR:DM2PR0301MB0749; BCL:0; PCL:0; RULEID:(400006); SRVR:DM2PR0301MB0749; X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0749; 4:c2z5tGERSawwq95h6Vl8eobA+2x1fMoopQVH9UpLTX06driLhnGPRAs3UL4N+B8uLfR67986h8HpGVf0RP41MO+AFHu5onavdfgAvIsRTJYY6t72SyXNaLCr7RL692UUpOYdD/FFCYLMWvdpSvmD+eq95K8/pBCeKbY7N6CWLbg1bteecfOAzSWT5cjXy+Wxdm0bLpNAAqhVqOOG4T7CC+tZbAgtd+M7szPhgQKi5Av3x2YolxNQ4zuKNFTfk294d8g3GaRJt7NA28rRlTWWM9RyV2H7htu1AKQdlVIICTP3d+fXgvrYEiZc1HBhSzEWT/YusSPpnaJOz3aQzCF2TbDwbKGvORROdfQFnGQRId3Q2I0ST4bDCrZYp2sQqyMoJ25saQMXrzv/9XsD8VbuoFDy6ypqURIlBkYjl3ZNo6tWK58ytoKzNCuy7/Oxbf5LonmI+nOMuYQYhaBz3Fdieybs+xaV7HSUkMsnY8b6/cLepkpyLpw+LudqWKGvl7rSpWvCyiZKtRacqg9G01W1PkcF/3VE23VUiXEnqfB3E7eXRPnem829WbEhfCEg19oo51kaCYsuIZsL9OPPbbwycvAwvkb050LyvHkL3F2IWdLOBxouB/jnLlnZKcGXTyznEmqKjoGVYkFuB6h/4+Z6pfSj3OFWP/w5luCPsFFXqQSj2XOeFvgU8LldsYMeqhQBJGxaAHTzdGnl41PFRiwT3Q== X-Forefront-PRVS: 01917B1794 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; DM2PR0301MB0749; 23:boaTESMOH8S+yjgEL+UiO/u/pSA/L3SJ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FemEy0zWj9dhu3Wo8lqxGsptZW5ntM9EOotblyVjXKPA0oUNjVz3bWwRUxviqAaVYLI7sp+V6CWlr/DFynRTcwSYQawxep+BaqZv8B3Fgz8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM2PR0301MB0749; 7:JcK9R0O+9xLR7rlB4RnDjcEfe22DnNcVt07RsGBbPybcB1L9bg/HpiPqlXRMPp7xN23n3n2lZXNR2/A4g+IGfKrka8M+h7zERsbuMXtLoSQbQzDzH+DSrw5GmvoIfRvEHcITC+tbZ5yNwkUlsUNp2gFeXP5+U2Ecthe1TIH5GK3vScfkNIXT0GYpTrSKdxlM4N5DYlfKCnZcClSF3thsEYKTqFW9j2LkWd29sDDCh+N1tX5MDMq09SHYoLjV+N8K9Q08eqJpNf9ZZLQCe3L7EYZBobfaY/ZA/ZDmYojhvM8SkR80MGBPcBD53G3POa8l3siqVQ7cIOxCHrJOL+RCWdY1/vCl5tEmk98ghgGTQV+BbtJVA6yVBd6zx4//mFRHJFU4UJo+asrhDFaDf90FoL8BB1Q289qCq3q99qQtp0hGVjtN+b41f4aXgxG5/aPs2E05cIx1c+LDmIchJz59NA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 14:02:08.7287 (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: DM2PR0301MB0749 Subject: [dpdk-dev] [PATCH v10 00/13] 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: Wed, 18 Jan 2017 14:02:12 -0000 Link to v9: [19] :: 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 : Remove an unnecessary loop over drivers in device detach 0005~0006: Introduce bus->scan and bus->probe APIs 0007 : Integrate the bus with EAL, without removing existing device driver init/scan model. 0008 : Add PCI Bus over Bus patches introduced earlier 0009~0010: Update the Bus and PCI test cases for scanning/probing 0011 : Enable PCI bus and remove code for direct PCI scan/probe from EAL 0012 : Add device hotplugging over the bus and introduce PCI helpers 0013 : Remove the deprecation notice for rte_bus :: 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 [18] http://dpdk.org/ml/archives/dev/2017-January/055398.html - v8 [19] http://dpdk.org/ml/archives/dev/2017-January/055621.html - v9 :: Version Changes :: v10: - bump to librte_eal LIBABIVER - remove an unnecessary call to rte_pci_match - INFO->DEBUG movement of a log message - Checkpatch issue fix - deprecation notice removal for rte_bus v9: - Removed comments over function definitions - Documentation fixes as per review comments - Split the test_pci and test_bus patches - Split the patches for generic bus changes and PCI level bus changes - Add bus_autotest as entry into autotest_data.py 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 (13): eal/bus: introduce bus abstraction test: add basic bus infrastructure tests pci: split match and probe function eal: remove loop over drivers in device detach eal/bus: support for scanning of bus eal/bus: introduce support for bus probing eal: integrate bus scan and probe with EAL eal/pci: add support for PCI bus test: add test cases for scan and probe on BUS test: add Bus based scan and probe test cases for PCI eal: enable PCI bus eal: enable hotplugging of devices on bus doc: remove deprecation notice for rte_bus app/test/Makefile | 2 +- app/test/autotest_data.py | 6 + app/test/test.h | 2 + app/test/test_bus.c | 686 ++++++++++++++++++++++++ app/test/test_pci.c | 164 ++++-- doc/guides/rel_notes/deprecation.rst | 5 - lib/librte_eal/bsdapp/eal/Makefile | 3 +- 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 | 138 +++++ lib/librte_eal/common/eal_common_dev.c | 56 +- lib/librte_eal/common/eal_common_pci.c | 368 ++++++++----- lib/librte_eal/common/eal_private.h | 10 - lib/librte_eal/common/include/rte_bus.h | 191 +++++++ lib/librte_eal/common/include/rte_dev.h | 1 + lib/librte_eal/common/include/rte_pci.h | 148 ++++- lib/librte_eal/linuxapp/eal/Makefile | 3 +- 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 +- 22 files changed, 1631 insertions(+), 284 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