From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0042.outbound.protection.outlook.com [104.47.36.42]) by dpdk.org (Postfix) with ESMTP id ACF73108F for ; Mon, 16 Jan 2017 16:35:13 +0100 (CET) Received: from DM2PR03CA0024.namprd03.prod.outlook.com (10.141.96.23) by BN1PR0301MB0737.namprd03.prod.outlook.com (10.160.78.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Mon, 16 Jan 2017 15:35:12 +0000 Received: from BN1AFFO11FD008.protection.gbl (2a01:111:f400:7c10::152) by DM2PR03CA0024.outlook.office365.com (2a01:111:e400:2428::23) 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; Mon, 16 Jan 2017 15:35: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 BN1AFFO11FD008.mail.protection.outlook.com (10.58.52.68) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.803.8 via Frontend Transport; Mon, 16 Jan 2017 15:35:10 +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 v0GFZ4mg019448; Mon, 16 Jan 2017 08:35:05 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Mon, 16 Jan 2017 21:08:19 +0530 Message-ID: <1484581107-2025-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131290545108054388; (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)(39450400003)(39840400002)(39400400002)(39380400002)(39860400002)(39850400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(81166006)(8676002)(50986999)(50226002)(6666003)(6916009)(8936002)(356003)(110136003)(81156014)(33646002)(4326007)(305945005)(2906002)(626004)(97736004)(15395725005)(92566002)(104016004)(5660300001)(5890100001)(86362001)(189998001)(106466001)(105606002)(230783001)(77096006)(54906002)(38730400001)(48376002)(8656002)(36756003)(47776003)(85426001)(6306002)(68736007)(2351001)(50466002)(27001)(5003940100001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR0301MB0737; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD008; 1:Ds80zBGtBd8ZwNn//yjyKHv73DJJ/m19G/QJsCgIjB6JYrVcI9d2pcRs39pCeGsdpnFsVHprkGaU2Ekc7h7g+tpJgoYyc3gVQ5u3Voopls6huCCU0ClP1TTTHFupKxsL+dqoyxg2bAFz+F4x0F0j03ar4EpX5fAMWX+IzzNoiOV5ItZFOMxqvABG0MZSQwBsO17YKZ4UuboPWoG6Bi83iSlCxkdQH9G1CvuPb0nBN0v0IL77zFlNLRcYsa/hx9X0KGXYDEJe+6t2HaTe37McEHuKqdM05uqBYp5i7qWeX+97OvyR5vYHVqfM2B9QlcU/crUn8QdTydVHHqAWSLqMznp0xLrPN24bB8xWx/52h4mKtqB0FE9qaGbXzY9RshZp1toIBAv92mWgi5h/8uTV7p2woROEDGHpmVWJ9Y/bGT9LiuPS0flGDTq5U34iqlhvdeZYJBNih3SXgvH0CBDX9+pxUEQ6l7PtG1TEsB3DT4hUe/BL/tqGOr+RNX+gfYN0JnH7zyFmJ2PEd0jxLH09OGxnqAr35jgif+4btMwysMqwZlL//nYAN+21+8cL8tFak6nAHE6cIOPNZIXnPKv3dF4VeUDBBLTIhyNGIpE1LALsB7A8w7xqZtQoFVu9K4y0cLp5DDBtOQbS+yIkTi7znas5WvjTHu6QtLLt8LosnD8K1IkwyQQx7uJ1EpqhsoxkGvQmx2za0HBPZ8unuoIEVw== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 37798474-f730-42fc-7174-08d43e2541ff X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BN1PR0301MB0737; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 3:MQw85CPgJAealD6h/hnD+qpRbOZXLmp5BBQHjNG3o1HXRpR1xLnfbA22bXlsLN30qXkQjUTEIbJ3f2IGdfrjBvpynWhutRKcwQ2MCyaGkgrAiP8+vOobuysAMiM9fmfxCVB4j+ObsY+5WSUWQiSFUQDAc2+gf/TEgjNP9sFZaZ+zBgI55PPsGDk9JIF4oclYOrw7wgr0GA0M8khv4ZfWctHaUXCFPw2Kc48C+FOcjIReBnfqcn08TJ3AFzfF5wDxbnJTHVVU0+q1iKbv1EdQNfFDYb53xEUYHm8YdgQXZXunTAjRmgQ2qlBkylgTzQ8ABBBjB9JyrDsH4Ft6jb4+ZKbaqUYWcmkekpAoS/chs4eo7EwTCeCr1QDQoTNoh4No; 25:6PpV+YLt8IqxlU1IyRYInbh7J9+dKOe+hEmtBmtaGFxq9zlHfdVBlkkqjrY9Skh8urZsTSH91S7FvnkMmu8oixTKHEMWL68kkiQ/WfzhPkdmxbJEhydQg3TK7RalPbIUYzKUIIlM0aXm9q1tl0V/b5jGFAfyC7UTwgxPRDSkKGkA0IIK8YVcB6JOPjdYoj5y9laqZNMCZ8SPmO66q8Fg7VlkS4KdYXSMBe/ErUMUHX2/FvE9/w4ORLWADc7xc3FSwxnxB9zvl/Eh1DjnCeNniagM6MMMmG3jE+9s8w41A1cOh1PCsTAu+Sn2mCiS/NuOz7wOfnvD0cUeFBw4V72nKgwTAx9OZmff9tTYyvuJlIEy0IdAOWcE3I+nEytAy8c7qnvhWcRaz+oJ3NRR12cQaEjv52v+dZcNzGrRKZDJU6cDrmrrgvQvDcWb1p2dhQl07ZMiRPVbpCQLxd+dqvHeEA== X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 31:cCyeJbNOz5FUJOfdiK2X8kpsODiqIv90TN7yJD++lhB4eaZzbLGXh7HaOYRJZ4kp6y51B7G+h+NqcnFa4dFRXVIG578ETazIvSTDBPDjlKxn8f6OUtmeWy1Dny7zSjmlRK6bHsqqFs2y7vS4HSVf3/N2BmEDkqRhrSf1wRF/BHyWecRB9a+8RwN1jYcEBURLG47B0A4XEVSqGUDKk/yVB7jmJxiXKg3S+SonaCsbt5jlEb97Ne23Ur8S/2jY1jA+fiY19InmHqai6kPrI43qst/0A7KXiUHYGRoQk3n5mMQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(5005006)(8121501046)(13017025)(13023025)(13024025)(13015025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123565025)(20161123563025)(20161123556025)(20161123561025)(20161123559025); SRVR:BN1PR0301MB0737; BCL:0; PCL:0; RULEID:(400006); SRVR:BN1PR0301MB0737; X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 4:jh3TChMloBG1vhRmkGTvRYQrDb+FYAuYoIDslCksGIRebdF2wakXFZ8BNCt0V9fNP0Gegn1OLxHBQOUFiO6GCtw94dzzccMz/eETc+/P7C/Zy5uuCTGMfBE34N+jXcl6JzsyFW5qbP7FGQ4r9cbdigt7q96Llvmc+eMchdh+NtC74NQptci+ZC6bEu/3C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6ZYi0vBbLT+U053zSdH2Xik/k9v63jdqKTekGxo2euxOA7H?= =?us-ascii?Q?BFrBErSdLn+6o2YMl3kpIO6ylGaBWtcyFCgQuvacDgUYgfeJsobfoifoglZQ?= =?us-ascii?Q?34ad0vw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 6:88D/xoHSEwQVBa7EZ/cyrltJbuEPwbCxNmcXpN+TEWsuij87W+lPlfINNPcZ4Q1XP4WvXYMucYgANycxNilGB/wDcGG58ZaE7YRZVnDqgVnHq1NIWCW/FjB03xpdOdgN5iuTDYUKaEnWIrS/JpcNncRxf+4w+WKMe2NnyU35+lFQwNjdAB1z42vQiEEvSzj2gwY/bzKoZdNd6qG7kn1hg10PV18FD6E41EW+OB7OTnfuyeSksPzQoGsQXTut2EUc5YQyX1UkXs84SkJUB3rsuYFwGIams2pX+o+J7zsGRzn37xqMH7BWrwdMYMi2LxCPMjPVcGqTSBQQrjuNDnCkzhsXsavC3LiLh8SeFBz+FBuoijHWQ0p3Haxqiylb87WptdOcOW6FshXxs21RP4FUJfBciLx3PfcYn9wvl04rzOc4/nCvEL2gZ0Lywh/UU71G; 5:hM3fP6PlRCee75/rsHz3l0V0n0vwGcPL1DTidYP0bBgQSavfDxSdk8hJbYMSiTdVrTfccvx35dn+k3dqA1JuWllGjvjtvPIBnvNPIVR3y7pinKaweoCqxHM+OTtwu/+MgUMrtXeKrz0RoaXUwSe/UlCLNyLO520qPESZ5vKih0Ocg2Ov3pzyh2Xi6zCboexI; 24:F3DIsrA6SkCSG0rxR1f3x3lTjqEY878oGZg9KWV91DAM6itZq4FXw0WDZ1IUDiKtqKYhxC/b3XcClDe3PLgwcKKdZw3yRG4KX8tCZqzAecU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR0301MB0737; 7:ICqNlQKF0+NKxZ4fRV3jACqb53u0Q2Y/e8DOpze/t2gkZiUYeHm30XpLKjsCNnQh1uhY7lksPrBLz/Wt+e1Df05BdnARhs/k7SpwsoFY5UPEiAVeIYBX3TQFUHHlNj/iypJxmIEqhNjBdW0vtCGrQwc20jaT+pOQYXZdCU0tD5+EQ/WBXBlU1y7aWPdxezSSuIN2DA7cw6GQpip4LtfgETq38vVk998NQEuAJlXo40jByArbkXk6GW05ObS6qklElLbnUU7yIlFZ3oLufs0MKVz0Fh5vabo/b3Xa9u+P0PNI7CdMkNQTYNC91Jubu6n+IujrmnAN4gasYiVo/QwzuV7GdE/hp5fJUru3u9V9thUoaJaF66+8f2movSpib0vyuW+136yUeZfqe58PV1pKdUic3B3Bm7CdNRcQgkIxFK6OK9amqETcLzjNRfn+bdzSckJ0tLNcuoq1C/o74KIgKg== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Jan 2017 15:35:10.0098 (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: BN1PR0301MB0737 Subject: [dpdk-dev] [PATCH v6 0/8] 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: Mon, 16 Jan 2017 15:35:14 -0000 Link to v5: [15] :: 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. :: 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 [12] http://dpdk.org/ml/archives/dev/2016-December/052092.html [13] http://dpdk.org/ml/archives/dev/2016-December/052381.html [14] http://dpdk.org/ml/archives/dev/2016-December/053302.html [15] http://dpdk.org/ml/archives/dev/2016-December/053315.html :: Version Changes :: 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 (8): 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: introduce bus scan and probe in 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 | 13 + 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 | 330 ++++++++---- lib/librte_eal/common/eal_private.h | 10 - lib/librte_eal/common/include/rte_bus.h | 206 +++++++ lib/librte_eal/common/include/rte_dev.h | 1 + lib/librte_eal/common/include/rte_pci.h | 161 +++++- lib/librte_eal/linuxapp/eal/Makefile | 1 + lib/librte_eal/linuxapp/eal/eal.c | 13 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 53 +- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 15 +- 20 files changed, 1646 insertions(+), 238 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