From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0046.outbound.protection.outlook.com [104.47.42.46]) by dpdk.org (Postfix) with ESMTP id D1300F955 for ; Wed, 18 Jan 2017 11:34:39 +0100 (CET) Received: from BN6PR03CA0040.namprd03.prod.outlook.com (10.175.124.26) by DM5PR03MB2476.namprd03.prod.outlook.com (10.168.233.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.845.12; Wed, 18 Jan 2017 10:34:37 +0000 Received: from BN1BFFO11FD048.protection.gbl (2a01:111:f400:7c10::1:190) by BN6PR03CA0040.outlook.office365.com (2603:10b6:404:10c::26) 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 10:34:37 +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 BN1BFFO11FD048.mail.protection.outlook.com (10.58.145.3) 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 10:34:37 +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 v0IAYYhS003396; Wed, 18 Jan 2017 03:34:35 -0700 From: Shreyansh Jain To: CC: , , Shreyansh Jain Date: Wed, 18 Jan 2017 16:07:48 +0530 Message-ID: <1484735880-17178-1-git-send-email-shreyansh.jain@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1484660264-6531-1-git-send-email-shreyansh.jain@nxp.com> References: <1484660264-6531-1-git-send-email-shreyansh.jain@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131292092772272580; (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)(39410400002)(39400400002)(39850400002)(39380400002)(39450400003)(39840400002)(39860400002)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(6916009)(106466001)(47776003)(85426001)(5890100001)(4326007)(6666003)(2351001)(5660300001)(8936002)(104016004)(76176999)(50226002)(110136003)(53936002)(189998001)(68736007)(5003940100001)(626004)(105606002)(50986999)(2950100002)(2906002)(15395725005)(36756003)(8676002)(38730400001)(48376002)(81166006)(86362001)(33646002)(6306002)(81156014)(356003)(97736004)(230783001)(92566002)(8656002)(77096006)(50466002)(54906002)(305945005); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2476; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD048; 1:os79uMMP9pEXaC2aqtt90XuxhtLQCfWZdKuyLfsdsQiIQflzNmAoglM8/53g4nHq9MLA2zXZkZooBhsv5DACsUtANI5XbhYmB3UGMH4iMP5YNPIa8J8t9W7b7lC4tkfwtK4/9KVQJvhiWBJGdEPEjamu4xAR03L1/7W8iKXLFVCzj7lRaiVeAA1ZqKpxK1ves+uzjb843LFQrrrrci3Q5KmeCmOP+Eoq4iVuFFsPkBAa8jIjC60cflsapGY7tRhqo2jzszpGJhhcZGuB8K6qnoXnnsuZjXEAdMyP5CaSEXQEuz2J6TByroi1RFJGkId85QOQFGhkEyWADuut8BirKO4TCp0RnXZfE1UYnvBxY2E+5HjRw2ihcsOlWsjRMUYnRe3LT+x8BdC0NvN7P5HE0EFKguh1Nx38pL4nY/CFgmskZbp71XhFiMhVykmDh4oggbIrsavHFAvI31eeRhnlC3GyPlCM9/XMZg4m4LIQm8/BlOCfwAKQqkLinjPhGwg4mfer3FQZk76r3wnBpkqfV1HYVrUXk+k5Q86p8QWrK/QWQZoO/XypwhiQfT5UV1ElS7ESlew3QbXchWRVzCA9+ZBQOgGcY59Bi2Ea2aLff6kWsLUqmIJs7WVwQKDTfIZ5gpxpxFaRwZICL1i0S+wrwfHWB1KY76WmDPr3lgZP4C5wQll9BwIQ5wygJew12NpP25zpWSKutKRSB94vNA6iGg== MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 180cf0c6-e2f8-49ac-e86b-08d43f8d99f6 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2476; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2476; 3:Gjzm2zroa7Zckbu9pjIhrzHDjSmgycu72cGKxxvcnahvVcyXUqqhRoWYs/2F3+Oyv/hriHjj8EaXtwTumhsL+8MrGtT4Sl9MHpThqxNMcmEI9/gpkSrvBlZ3h0JSaW3h12E53mCep97GUZc5LiKXrcU7pcgGLXYZ4cBvqYNgZe4793p5JOtnE6KFWf1MSSgs0/mt4gsOneBu7lrMMM3yvMIqzievrW/Tx1Oh+ywDdg/trbebfs1G35eCdG0UtbcRh7jrUVFHrkHyh+v7KXOgrEzSvzphj/nxfEyh0Tw13LQC5M7N0Ux6b+FgVu0tTEEhaFxitYhfg5XddPuRx3KIpA67ZZWSK3ZLn6+HtiIGNEQuX1KHvQaa9gmPAKl3As+I X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2476; 25:972eFJWLp7ebNUdTS7GES95UZa5rnp2cqRSzK9DeCh/qzJIIV6sUDgo8ogF1XkhItOQgY16OFFiUdPISDChF+mYXLNLzhdFAK0943TCj+OBXWOGNW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PZ3O1YHWyWm0fbGcjl5ZXwRbWh/NOQ== 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)(13015025)(13017025)(13024025)(13023025)(13018025)(10201501046)(3002001)(6055026)(6096035)(20161123559025)(20161123561025)(20161123556025)(20161123563025)(20161123565025); SRVR:DM5PR03MB2476; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2476; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2476; 4:ZmAXVvw+POTaXOG83WYw/b1Rv8k5fCFSOSR5W4/UED7S+nybGS+LVPKKFmCYBj0toi8RgQAkHpH/tS7BIID/6LUAstuJQaZtbimVXWKYHxQRC9bs8I04ztX6NXDok/CSgcO3cO3KYqQI9bwzFhdCtdtGGfk5G/SPr07oCAlQpLXROYdmoJRxOLmQU6tVNiD7gE3g8j2nyY71uh9tab+kCifngVlxfmIATg6WenNt9z7JvlD5lCndCfDvX+8ZFyI05P9Pw50SPMTPSJI403rZbseakPuQANa+hhuW8QuANvvJjY2XvFwT+if4zkt3aiF4zp8id/kiRUVgSJP51XCBcRFKAaQKbueWNOWXDGfgSrbCpDkb6Jvnnq4vI7y1alxVRCsaz5GnlUt1+0IP3ZkizekSpbGsLc34M8rxL81+bfpXD4iH5R3aZfNGYrTFRS5j6x0UQcgpEuxoFZERuYDASJGcTZNY3/jVzqcTqNy1iYqT2zcqt8x7UCGuK+/dPXPbqo6V2PJ+FkFO60g9MmikOWL86pcJsojH3eeM50c7djEanQEN7ZRlPyjtKm2K9pWXrP3qVGaT3efJveJnQZP0gKHIpyKSGOo3edjZ2XLOsZ/mk55q4yfjDS9ntZwDxzRV84Z3Z+SFcexqyOsIfwdLglwzi/htEL5ekWn8meU9N/VRDqylKlandxFtGB0KDN4RMkbARTM9Ut483eH596DAYQ== X-Forefront-PRVS: 01917B1794 X-Microsoft-Exchange-Di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1GMk4Ym1fHa4rPSsE6INmW/tFK2Tds8mJvJB8EcAoLAsBqaL/XwVtw6rkzjLS0PbqPQOTWm94LNxZBmkRSkt+rERZL6LScZr5Nr; 5:noQ98yGRBLTTDAMfpyriD66GDybrp/Wd5fY4UYdpI9Dja8QYURRWm0CyJQ6RvzRKqQ0T6s/0NrHsqGS6tGUYa+tr5agqWEXUASKLuChzhydh2w6t7QTC2ZQ/uD7aZHFlyWfzL6HyEE3bNHx98U0Kn5chmEBiUaUkZwxLXYwuWCMw+awsgdWxTQxEn+xwHIGs; 24:zOb8LGLboLMYyJAXefDNeHTXTGbAoyCPmol1kN2npRdMKHbw+Xi162Xc/SL7aq2AlcSPtFFmfsQyELadAwoXlsmD4bR5Zzn4zP4qTvObPxs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2476; 7:lKFZc9UPdlvk6yGZr+NGd6cO6YZ/hYFiKDOxFvzzVhYRbbsdW+vUmDXBmyfSxfddwxMbt4RzGH1rS0srw5E1qMzb7cC1f2vcN/wHE8XcsgTXpqXcSU8buu0dL866G/Ju8qmJOqL4bv1p6/SS2LjEhijmlpol+xXHXRgOUB6fkInJdEsFvn0FYhiCPwPePVu3SQp0iAdUo4cUVm9CP0hVfHYVLials2E1RmmnUZRW4BjrL8XqfIKXg52UfbGaRLmnV4mBGVOnoq9ka9wzC1Vw3Tfqrl1kkZGRIZqTHksAoCwbYzeycZ5+rOxhac/OAcXlRH2joL9tvxyqi2pGxhlqiQtHmRtUctuBfAMKqVD0od98iZ9SjxlX9nLdBUPbp8QvAcJiD/FfJjrb5Mi0nYeEhYJIl/16h4aDg1Elc4p1iqV/t3zr5FfAtuRJwDh+hDwvf29DLOscLVohg/bVMq+0HQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2017 10:34:37.0400 (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: DM5PR03MB2476 Subject: [dpdk-dev] [PATCH v9 00/12] 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 10:34:40 -0000 Link to v8: [18] :: 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 :: 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 :: Version Changes :: 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 (12): 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 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 ++++-- 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 | 138 +++++ lib/librte_eal/common/eal_common_dev.c | 56 +- lib/librte_eal/common/eal_common_pci.c | 374 ++++++++----- 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 | 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 +- 21 files changed, 1636 insertions(+), 276 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