From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0087.outbound.protection.outlook.com [104.47.37.87]) by dpdk.org (Postfix) with ESMTP id 226271094 for ; Tue, 17 Jan 2017 11:06:14 +0100 (CET) Received: from CY4PR03CA0023.namprd03.prod.outlook.com (10.168.162.33) by BY2PR0301MB0743.namprd03.prod.outlook.com (10.160.63.21) 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 10:06:12 +0000 Received: from BL2FFO11FD037.protection.gbl (2a01:111:f400:7c09::148) by CY4PR03CA0023.outlook.office365.com (2603:10b6:903:33::33) 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 10:06:11 +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 BL2FFO11FD037.mail.protection.outlook.com (10.173.161.133) 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 10:06:11 +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 v0HA67Td024558; Tue, 17 Jan 2017 03:06:08 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Tue, 17 Jan 2017 15:39:25 +0530 Message-ID: <1484647774-28984-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484581107-2025-1-git-send-email-shreyansh.jain@nxp.com> References: <1484581107-2025-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131291211715509262; (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)(39450400003)(39410400002)(39400400002)(39380400002)(39860400002)(39850400002)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(68736007)(2906002)(8656002)(4326007)(85426001)(38730400001)(104016004)(54906002)(50226002)(189998001)(77096006)(50986999)(6916009)(6666003)(36756003)(5660300001)(110136003)(30001)(81156014)(2950100002)(8936002)(48376002)(81166006)(76176999)(8676002)(50466002)(106466001)(33646002)(6306002)(2351001)(230783001)(626004)(86362001)(105606002)(5890100001)(92566002)(356003)(305945005)(15395725005)(5003940100001)(47776003)(97736004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY2PR0301MB0743; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD037; 1:MQW+9P1iAq/6PgBsS0AbX+4zR9Fzy84azs9W/jLoexIhMD71zLi9odugnQ6yGmY7zmdwyDJXAX3Crk45hB/tOg49t/Uz5cpWeE1refEZ8sKapEgzL3HYjgxm/0GDObPTA87+Zu+6Nt7pC0aG2rCX6RXdr+X3kUCR6czIDc2Lx0mWocRf9lO6aFXE7W70YgqP1W6J80ohacxsyROcOhQePG9V7RXravLn5qBBI5eG99GMu7rYnUrjYjAzIMUrPshv0NWFM5e72xy5BH82pBBbiTslzBo/1DslmC2t1DcYgRGA0aAN0WmNLT4LaKy4L0+DO2u8zxhltoaAva4KyrIoIMWRAfooXXgZHqHn4XJJX7/4DrPzoNqaLsEm9RyULVpyoxs+vtExaZFOsiKCWHlCX0aaSghpMLfWeQHNxdZQ30Uh8TnnWuKWRin/LNcaXZwUzO0mg6znro7c/iv4KxGReX566BTakGBqv0k2B7Ka38jtrwmvG+c4FukyoLrWAyFbpH2wl4mbodB1Vk+8uZb8d07NRBpklqMQ4Zsv8Zw5fBc5lXSwN6IdL6zIIjojJkyo9vNDG/aWn6SwbJpHenuU+huw/26WfnPzm7iJ/Nm1oDypNqZtLUJAL25r6bJd7OTkYmhbdyh+flhzlDijhldRE3LnmPxixq4tsAqt4Sv5srk7r+1ZRRmA/JmID2Yx8X9qsXBEMaK5vp7/H+pkFUrgNQ== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: a13a95ea-ab4e-4346-9aad-08d43ec076e3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY2PR0301MB0743; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 3:uD/lFCNCcrro8JG7WCjVCK7IG30kqflAh3lLBIonlbsD3FszOIuMUE9ZT4GTDXCGRnXcz1yZQSGG5ZMiw6WARNkc8140wBCt+zXsPI01HT7HsV9j/RtCAsRFFPtDpZy/a5BFXmMRU9QTPXIf5MsgKwLd5RDWwLGlQ6Hf3xk6ywDo1fI/+pc2wVqycXQ33P+N9Y/76Vcf6D1zHHZGTXnYRWiQ22pmM/W/XmfLZHIvzUsg/XXOWG4lDVLS2k8PxPtI0a8cnrBHF5ZQE3zEDNhOU1qvMH2Od+8rcv0N5AxnVXk92+k2nIRey1i0SMeKpjElWtWzGojanvblfiprwASHuE/m3NfZCPp2dcDaJgNgewl4b8U3A9dDcpuHDwYqYqi1; 25:aXkzkLzH74vtV0FhDJ8Rq55y12GU0J3C04EnJaB9Qb0rYELMkiLeu0Hw+v9VOl/JBhG7+8SaRAGr/du6W9kBwWJcsvQiptBn6YnK1CYh+cpOF7BurXVAV6Wzl0ZQ1q+C/h70QBzXfiMzuEXebeYW2FIzXkw0ydHB2GYj06s73bG84mYEfYHHzbLhgI01CypMBF/EGs00RR6D4ykxUzpRTi+kdxuPyP9DjJQm3h/ydCp9R/j35sQ2XgeblaFWfz8Bx4ZwpVmaMwpxNc9XVhbSr36JGAsr0x7fP7imXYcDh2rqZ9W+jWWVosCq+gsHZ0oBZrzcStPj4N2HQorkv+ZpC7uLjKNiSSzTHDIDMXN90wV0kqBrj6326oUgQ4ltgs2SyD0x+0FJeOBm/0W7M1Qd7H8SuN/Frd1LkqLvmx7owrHXDRWjLd4D2jgi41BOxzNuK/nSxoRDGDvt+5WxXWN/CQ== X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 31:bV3XYwveyazk2FezlGWmDOT3v8FTo9Vcp8vbvh5OPY6JGu8SSIl6Z0ec87b+/9kbyG8bAFXoCTx4mYTF0p8ibka8H3fiHXA4iDAzTSsobq3MFC/R7Fj3B04S6sT3Qc8EE8z82JzIlxSyaZB9ZsLZI9HyGDC+7u6iRiqYGEGyrWNfAdqwKGC+A1limvqlTvB4yl8XqdbLmRpgxp6VHYrWxf5jsQ4QDQrFAboAUMdgpE1VPGVIkXMTRIQkFYGSkcwSrA8HgTrFrcTb6Gp5bqKWSQ== 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:BY2PR0301MB0743; BCL:0; PCL:0; RULEID:(400006); SRVR:BY2PR0301MB0743; X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 4:CrzkCales3i1zc0giX+/PBU66OfxJ+O9CNE4sFTKfKT0vPicXgK/vJ2FLLPkB4qEdAlwuROFgGQYjIS8bF8YCWjWW9B8fTLAiWvIGcPILHI0VnBpF39O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GhXSCp2iLej2MLwVUHkZLX5pF1WIx18+ZWEvStojN4S?= =?us-ascii?Q?GR4Dye8XUduXlN18TwAMUZReFN/97plJj/G0H0X0t+I1FeKDzOJqR/bz4zc6?= =?us-ascii?Q?ZHFHZcyYBAVLG1CemgJnPIQm8Phqu1+Q66+apeo4g07CDfKOHIiWkdDfA5qC?= =?us-ascii?Q?e6x0/iNM+SQsTJYzf7AyJyBEo+1CaxgXinptuTFY6B1B9EqfD?= X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 6:yjyUGm72UWgbzQjppoI25LS7o97tCcwFUAJB/BB30K+U35ksQEFSq5KZ+i+rRG4N7lBfah3Y9N/AmcLRfZribU76zgTSu4sO0jz9F3zA4vBgGCA2lujIgfBSK6na0iwATZ5pE6eMcdtHXLeBl+KNodT5DW3b1kGixvx4abIvI9CnbGwnVQqmDLKOEIjGurRTlM4xqJH09qebZUT25QdnucVE3DneF7YJXrV65nr4lIjdVAnHU95Kn4TxBJT96homVLi5y2GhoxxEp1rt2IYWIP6KnM+y9DCM311PDlGt9+YYRf2GH/NU1CeMidgjgfmlpCezIzmiGgPD0a+aruVEH960YYRvSwuhD1nghyoljriMhHrY9f7aFMVb6CZgBzMNve1x2+wtZMUCXZkvYU7m1RPfRYt5WHmx306+QX4UfOSxqGQ6AR79FUEYMWmFfPWd; 5:Mn5KiXwXz0a48mQFOTVT7B1d3A7jeRCOPnoEcZD/Rl0QLdhGPmzPuY39WpP11aP0Ofv5ckQ6kuuKP64NI0yb8RUrTol0LA52J69FB0x6zblRZol0J8j9n3k2zcEVtjG/hirQkKUJEDSgYBmhSWZLJ3y8V1Mair4FJ/zksX69SjfPBPFh8BFc4uG8SM1PULYL; 24:2BcfOPGmAh1tJLd7/4OdgzwBYuyxJ7itmhn6s8DwqNa/ltqbKUEM33XmQzwHMSpGU5mDEAmLNeGC9HPlmY0QrqqflVB/gPyLzoDNovztS3Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY2PR0301MB0743; 7:dhkVTxKnYy3q9gGyFxo7ERhCMVMhyoq3pYe8IXeMNPbcY9y/Rz5pK/kRBHgRQCmoQHgmAWWyCo9rBu+YLfq84U5X8TghMklnf7Wz9ypAznQqCBuq/1hK0Suo7mHhIMKUoOk801w2J5ppb2Wkduc1Nwu1kq3tp63JmGiMBrqKpoacF3xKfGH/n5pdzhI8yLLEmH65a1s/AYZjNDjtg3H2KqVOU00eOyOCmf7U4vxgK0+dIvmRcK2IeqacHwYHXxnOlBfHhcjWfmo/Cl2TOhaPREu/WBz6rDqdYTu6tdQtov9pE0nZ9/k3fhxDcZLRoQsOGMzVCWCyLHQp6uQv624qDgpNj922X/j5niigz4coKW1sur4vNJoKJEkQpT6igFdRO4oMhXEbwYmv5Sit2jpPrrqomjDZ0VpgVqJ3fxhPeiH+IkgsBWvs1a5EH0ZLhCO+QyPL7wt9T7T2Jdp0lOopLQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jan 2017 10:06:11.3793 (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: BY2PR0301MB0743 Subject: [dpdk-dev] [PATCH v7 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 10:06:14 -0000 Link to v6: [16] :: 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/probe callbacks 0006 : Integrate bus with EAL, without removing existing PCI probe/ scan from EAL 0007 : Update the Bus and PCI test cases for scanning/probing 0008 : Enable PCI bus and remove code for direct PCI scan/probe from EAL 0009 : 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 :: Version Changes :: 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 - Split patch 5 into two: one for scan handler, another for integration with EAL 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 | 334 ++++++++---- 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, 1632 insertions(+), 245 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