From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f175.google.com (mail-wr0-f175.google.com [209.85.128.175]) by dpdk.org (Postfix) with ESMTP id 0C8C42BB0 for ; Tue, 11 Apr 2017 13:07:49 +0200 (CEST) Received: by mail-wr0-f175.google.com with SMTP id l28so36935128wre.0 for ; Tue, 11 Apr 2017 04:07:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=xjKMF/DvUOc+ntSf414ZhxoEvIx7ooMkt5BjlVZhUOM=; b=DYd20DMHHaq8Z0ttjauedcFIrvvEnK0osVb3RCG67dxKIq6mrNhg58z6CHh2hZsXAh XBqwtAxS3yPpsFokQZE2ZQCIigTtYY1Wsz2TLiqz8P+u/Joy7+pDmQETLkSWPTA9cMTb yamOBD6UtttbP8slBRCzL5pewccx+lFb3XW/VRt4twoEoyHITOojqMyBtNLSuO/JBydD rOW77gCDeWMFKbDKV1MX8YiIHlhpOhOYkKxhxxQFaHgCclea8SevXVBl65OEPj28NS9W v9Ld/DAPTsgaN/AUbFb0tjgBDXCpYbrM1dAlJDXXMp+404Zez2+kHPXDxEY6+lqjxGEC UPcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=xjKMF/DvUOc+ntSf414ZhxoEvIx7ooMkt5BjlVZhUOM=; b=KxIt9TJ7Cr2Pi+d6VG2gqJihLBaRf01CkXQq4Mn137MUiTFOaESNaTlbFPpIAFGTAz NiVTbMH6h5BWgOFKG6DqbyYKRh+Bf7mfnfcYNvpjvJphDrI74KrU+UiMsDM3sIZP5yXe A3Lh9/42d8liCebkOI38EgZxw9zK7hwkvRUmtqc6s9weTMtFswqbIAwP/Oq1iCXa7Joy xGAG9WdO1XqZXeWqmEAtcwmKPbpKArX6mZauGjbzvaV8XeEdPuogqwv6mZuNb4wmpfaE vzatVhIdiq4lTfLAcztBky5L0Dg0zq2eOxmT72RFZsvXQVMbwoipwpABpggGAPT+gIx2 fSaQ== X-Gm-Message-State: AFeK/H3D2+WbJd4XlXbPu1js52eVq+tKPUV4rMwxd2t+jTcmZQTPwbajOiS57yh2s5R8Tucf X-Received: by 10.223.134.74 with SMTP id 10mr41123918wrw.200.1491908868948; Tue, 11 Apr 2017 04:07:48 -0700 (PDT) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id g15sm1151735wmc.14.2017.04.11.04.07.47 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 11 Apr 2017 04:07:48 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Date: Tue, 11 Apr 2017 13:07:27 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 In-Reply-To: References: Subject: [dpdk-dev] [PATCH v13 0/7] rte_bus_pci 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, 11 Apr 2017 11:07:50 -0000 I have rebased the work done by Shreyansh and Thomas to follow the bus abstraction introduced in v17.02 for the PCI bus implementation. This series is only a partial version of the previous one, because some of the patches have already been integrated, and others still need rework. Additionally, Jan Blunck sent this RFC: [RFC] eal: use busname and devargs to attach devices That has not been considered for this version as it had not yet spawned a discussion. changes in v13: - Removed the PCI tests. They cannot follow the bus implementation anymore, and it is an opportunity to update their original design. - Changed the rte_pci_match function semantic to match its name. - Made the rte_pci_match function private. - Made the rte_bus_list private - Made rte_eal_pci_add_device, rte_eal_pci_insert_device, rte_eal_pci_remove_device, functions private. Additional work is needed: - The PCI bus should be moved to the relevant bus sub-directory. - The documentation must be updated. But this version should allow for the PCI bus implementation to be integrated in v17.05-rc2. Gaetan Rivet (1): test: remove pci tests Shreyansh Jain (6): pci: split match and probe pci: remove loop over drivers in device detach pci: add bus driver pci: use bus driver for scan/probe pci: use bus driver for attach/detach doc: remove deprecation notice for rte_bus MAINTAINERS | 2 - doc/guides/rel_notes/release_17_02.rst | 2 +- lib/librte_eal/bsdapp/eal/Makefile | 2 +- lib/librte_eal/bsdapp/eal/eal.c | 14 - lib/librte_eal/bsdapp/eal/eal_pci.c | 34 +- lib/librte_eal/bsdapp/eal/rte_eal_version.map | 2 - lib/librte_eal/common/eal_bus.h | 45 +++ lib/librte_eal/common/eal_common_dev.c | 57 +++- lib/librte_eal/common/eal_common_pci.c | 362 +++++++++++++-------- lib/librte_eal/common/eal_private.h | 41 ++- lib/librte_eal/common/include/rte_bus.h | 29 ++ lib/librte_eal/common/include/rte_pci.h | 94 ++++-- lib/librte_eal/linuxapp/eal/Makefile | 2 +- lib/librte_eal/linuxapp/eal/eal.c | 14 - lib/librte_eal/linuxapp/eal/eal_pci.c | 38 +-- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 2 - test/test/Makefile | 2 - test/test/test.h | 3 - test/test/test_mp_secondary.c | 17 - test/test/test_pci.c | 322 ------------------ .../bus/pci/devices/0000:01:00.0/class | 1 - .../bus/pci/devices/0000:01:00.0/config | Bin 64 -> 0 bytes .../devices/0000:01:00.0/consistent_dma_mask_bits | 1 - .../bus/pci/devices/0000:01:00.0/device | 1 - .../bus/pci/devices/0000:01:00.0/dma_mask_bits | 1 - .../bus/pci/devices/0000:01:00.0/enable | 1 - .../bus/pci/devices/0000:01:00.0/irq | 1 - .../bus/pci/devices/0000:01:00.0/modalias | 1 - .../bus/pci/devices/0000:01:00.0/msi_bus | 1 - .../bus/pci/devices/0000:01:00.0/numa_node | 1 - .../bus/pci/devices/0000:01:00.0/resource | 13 - .../bus/pci/devices/0000:01:00.0/sriov_numvfs | 1 - .../bus/pci/devices/0000:01:00.0/sriov_totalvfs | 1 - .../bus/pci/devices/0000:01:00.0/subsystem_device | 1 - .../bus/pci/devices/0000:01:00.0/subsystem_vendor | 1 - .../bus/pci/devices/0000:01:00.0/uevent | 6 - .../bus/pci/devices/0000:01:00.0/vendor | 1 - .../bus/pci/devices/0000:01:02.0/class | 1 - .../bus/pci/devices/0000:01:02.0/device | 1 - .../bus/pci/devices/0000:01:02.0/resource | 13 - .../bus/pci/devices/0000:01:02.0/subsystem_device | 1 - .../bus/pci/devices/0000:01:02.0/subsystem_vendor | 1 - .../bus/pci/devices/0000:01:02.0/vendor | 1 - .../bus/pci/devices/0000:02:ab.0/class | 1 - .../bus/pci/devices/0000:02:ab.0/device | 1 - .../bus/pci/devices/0000:02:ab.0/resource | 13 - .../bus/pci/devices/0000:02:ab.0/subsystem_device | 1 - .../bus/pci/devices/0000:02:ab.0/subsystem_vendor | 1 - .../bus/pci/devices/0000:02:ab.0/vendor | 1 - 49 files changed, 478 insertions(+), 675 deletions(-) create mode 100644 lib/librte_eal/common/eal_bus.h delete mode 100644 test/test/test_pci.c delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/class delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/config delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/consistent_dma_mask_bits delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/dma_mask_bits delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/enable delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/irq delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/modalias delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/msi_bus delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/numa_node delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/resource delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_numvfs delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/sriov_totalvfs delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/subsystem_vendor delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/uevent delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:00.0/vendor delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/class delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/resource delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/subsystem_device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/subsystem_vendor delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:01:02.0/vendor delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/class delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/resource delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/subsystem_device delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/subsystem_vendor delete mode 100644 test/test/test_pci_sysfs/bus/pci/devices/0000:02:ab.0/vendor -- 2.1.4