From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f50.google.com (mail-wm0-f50.google.com [74.125.82.50]) by dpdk.org (Postfix) with ESMTP id 0A8457D13 for ; Thu, 1 Jun 2017 12:14:45 +0200 (CEST) Received: by mail-wm0-f50.google.com with SMTP id d127so53714590wmf.0 for ; Thu, 01 Jun 2017 03:14:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=SHn/h87p8mozfLDEPfAynBrrFNS7PBfBMNFoJCjyKnw=; b=gYFzKqonl4PJaSDzeTb8JPXUfytlUUd3r5LQx57sBSYyqh+k2KeV01zngEPv5Eg0Pf W49uQ5iP77IlQuYN3ya2SNeAIqgbLyiLFyPerYku5qBh5d4OV+2owGPme6QGpdkYXemv NFj/qF5b+kg5cvU8rl34RBJ44GosTU8F1N+xwK2g9cOvnM6scUEmStCEuSiZN5e3NF1U xn+cAgdY4smRREc4pYt9RfDfZVFzuTGSC5QHogGRZxCDaNJVWVGJGO/0f2BlLx7dnDPE n/9wukyOzxE+cI8Tk4Fd8LkSPdxGpYW33F+Rp3+6611Cnoj2uq9dfXDW8kYMQB9/7mqS N59w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=SHn/h87p8mozfLDEPfAynBrrFNS7PBfBMNFoJCjyKnw=; b=H2F1SIso146xHY9cCNk1XkmwxV1ofEDAmO/HZeQQQpYn27iARPV1PlImc1R9m3ECd8 +EHwN3bXcrgl3TYgVIgaeuxvB9WrPpt3ZWqetZEYdAcB1GGeql6+WMzxoZ2O1eUMvskS T7rkYaGVw9LRzyDz69HRC1vGjge7xQ0wAHJNpQh+MiuFAXqXb4nh/I7ClkIbZsUzuA/p KI/fJO8c+GYdAGvnpmOZV9aH6eoegH2l5LjtstccmL9+74yTb3vQQYas7xB43TF7WBKl r1sBnvhJtvMTNiCUZPl26p8Ym7r5h3vQ7MSOHift8puPYD6jFZQBcf6qFuY+Eeg4StBG 1xSw== X-Gm-Message-State: AODbwcA8JcpdeyoOnnI32SRZt0mDlaAZLceZBdFmU063regamAmz2ACo uy/suSZgTVjzni5cN20= X-Received: by 10.223.179.198 with SMTP id x6mr781584wrd.167.1496312084241; Thu, 01 Jun 2017 03:14:44 -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 f70sm27475266wmd.25.2017.06.01.03.14.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Jun 2017 03:14:43 -0700 (PDT) From: Gaetan Rivet To: dev@dpdk.org Cc: Gaetan Rivet Date: Thu, 1 Jun 2017 12:14:24 +0200 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 0/8] bus/pci: remove PCI bus from EAL 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: Thu, 01 Jun 2017 10:14:45 -0000 This patchset moves the PCI bus out of the EAL to the drivers/bus subdirectory. The last remaining dependencies have been worked out and the PCI bus is not ready to be moved. Several issues remain: * librte_cryptodev * librte_eventdev * librte_pdump * librte_kni All depend on the PCI bus being available within the EAL. This patchset disable them to allow for compilation, but it should be fixed before integration and the related commits removed. The pmdinfogen app has been moved to the drivers subdirectory. This allows using the dependency syntax from the build system, as this app also depends on the PCI bus. The dependency graph is as follows: drivers/bus/pci | + drivers/pmdinfogen | + drivers/net The compilation has been tested on debian 8, Redhat 7.2 and FreeBSD 10.3 This patchset depends on: eal: complete attach / detach support http://dpdk.org/ml/archives/dev/2017-June/067057.html http://dpdk.org/dev/patchwork/patch/24969/ Gaetan Rivet (8): eal: expose rte_eal_using_phys_addrs ethdev: remove useless PCI dependency pmdinfogen: move to drivers subdirectory cryptodev: disabled by default eventdev: disabled by default pdump: disabled by default kni: disabled by default bus/pci: introduce pci bus GNUmakefile | 2 +- MAINTAINERS | 2 +- buildtools/Makefile | 36 -- buildtools/pmdinfogen/Makefile | 47 -- buildtools/pmdinfogen/pmdinfogen.c | 422 -------------- buildtools/pmdinfogen/pmdinfogen.h | 125 ---- config/common_base | 11 +- config/common_linuxapp | 2 +- drivers/Makefile | 4 +- drivers/bus/Makefile | 2 + drivers/bus/pci/Makefile | 60 ++ drivers/bus/pci/bsd/Makefile | 32 ++ drivers/bus/pci/bsd/rte_bus_pci_version.map | 21 + drivers/bus/pci/bsd/rte_pci.c | 672 ++++++++++++++++++++++ drivers/bus/pci/include/rte_pci.h | 628 ++++++++++++++++++++ drivers/bus/pci/linux/Makefile | 37 ++ drivers/bus/pci/linux/rte_bus_pci_version.map | 21 + drivers/bus/pci/linux/rte_pci.c | 724 ++++++++++++++++++++++++ drivers/bus/pci/linux/rte_pci_init.h | 97 ++++ drivers/bus/pci/linux/rte_pci_uio.c | 567 +++++++++++++++++++ drivers/bus/pci/linux/rte_pci_vfio.c | 674 ++++++++++++++++++++++ drivers/bus/pci/linux/rte_vfio_mp_sync.c | 424 ++++++++++++++ drivers/bus/pci/private.h | 167 ++++++ drivers/bus/pci/rte_pci_common.c | 615 ++++++++++++++++++++ drivers/bus/pci/rte_pci_common_uio.c | 233 ++++++++ drivers/pmdinfogen/Makefile | 47 ++ drivers/pmdinfogen/pmdinfogen.c | 422 ++++++++++++++ drivers/pmdinfogen/pmdinfogen.h | 125 ++++ lib/librte_eal/bsdapp/eal/Makefile | 3 - lib/librte_eal/bsdapp/eal/eal_pci.c | 672 ---------------------- lib/librte_eal/common/Makefile | 2 +- lib/librte_eal/common/eal_common_pci.c | 615 -------------------- lib/librte_eal/common/eal_common_pci_uio.c | 233 -------- lib/librte_eal/common/eal_private.h | 11 - lib/librte_eal/linuxapp/eal/Makefile | 12 +- lib/librte_eal/linuxapp/eal/eal_memory.c | 3 +- lib/librte_eal/linuxapp/eal/eal_pci.c | 723 ----------------------- lib/librte_eal/linuxapp/eal/eal_pci_init.h | 97 ---- lib/librte_eal/linuxapp/eal/eal_pci_uio.c | 567 ------------------- lib/librte_eal/linuxapp/eal/eal_pci_vfio.c | 674 ---------------------- lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 424 -------------- lib/librte_eal/linuxapp/eal/rte_eal_version.map | 1 + lib/librte_eal/linuxapp/eal/rte_memory_linux.h | 64 +++ lib/librte_ether/rte_ethdev.c | 1 - mk/rte.app.mk | 2 + 45 files changed, 5654 insertions(+), 4669 deletions(-) delete mode 100644 buildtools/Makefile delete mode 100644 buildtools/pmdinfogen/Makefile delete mode 100644 buildtools/pmdinfogen/pmdinfogen.c delete mode 100644 buildtools/pmdinfogen/pmdinfogen.h create mode 100644 drivers/bus/pci/Makefile create mode 100644 drivers/bus/pci/bsd/Makefile create mode 100644 drivers/bus/pci/bsd/rte_bus_pci_version.map create mode 100644 drivers/bus/pci/bsd/rte_pci.c create mode 100644 drivers/bus/pci/include/rte_pci.h create mode 100644 drivers/bus/pci/linux/Makefile create mode 100644 drivers/bus/pci/linux/rte_bus_pci_version.map create mode 100644 drivers/bus/pci/linux/rte_pci.c create mode 100644 drivers/bus/pci/linux/rte_pci_init.h create mode 100644 drivers/bus/pci/linux/rte_pci_uio.c create mode 100644 drivers/bus/pci/linux/rte_pci_vfio.c create mode 100644 drivers/bus/pci/linux/rte_vfio_mp_sync.c create mode 100644 drivers/bus/pci/private.h create mode 100644 drivers/bus/pci/rte_pci_common.c create mode 100644 drivers/bus/pci/rte_pci_common_uio.c create mode 100644 drivers/pmdinfogen/Makefile create mode 100644 drivers/pmdinfogen/pmdinfogen.c create mode 100644 drivers/pmdinfogen/pmdinfogen.h delete mode 100644 lib/librte_eal/bsdapp/eal/eal_pci.c delete mode 100644 lib/librte_eal/common/eal_common_pci.c delete mode 100644 lib/librte_eal/common/eal_common_pci_uio.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_init.h delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_uio.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_pci_vfio.c delete mode 100644 lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c create mode 100644 lib/librte_eal/linuxapp/eal/rte_memory_linux.h -- 2.1.4