From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7A3A1430C1; Mon, 21 Aug 2023 13:37:01 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id C9EDE43245; Mon, 21 Aug 2023 13:36:01 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by mails.dpdk.org (Postfix) with ESMTP id BDBA543067 for ; Mon, 21 Aug 2023 13:36:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1692617760; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=j6jOKugs/1c/TCl8Jd7IEW8bauD52XV+MeSLzZsO178=; b=hkiH7h0ZSpeB7y9iL8nkJPAy8AW1DR2q11QowkvWBAkGbMiPV84+UH6HY5sZfbqz4zaPeE R93X0qjU6PPjnmM2ipjobrRbWYQFkSe3SvYUhY088pu2Wgjx9gCINbrxIxYWnpcSSbY4NV UCQT4G//6iEw9OSRxpcXNQQWg1ZD3gw= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-643-uajKznC0OzqvwUl82AX7kw-1; Mon, 21 Aug 2023 07:35:54 -0400 X-MC-Unique: uajKznC0OzqvwUl82AX7kw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.rdu2.redhat.com [10.11.54.1]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id E9BE5823D6A; Mon, 21 Aug 2023 11:35:53 +0000 (UTC) Received: from dmarchan.redhat.com (unknown [10.45.226.19]) by smtp.corp.redhat.com (Postfix) with ESMTP id AE92A40C2063; Mon, 21 Aug 2023 11:35:52 +0000 (UTC) From: David Marchand To: dev@dpdk.org Cc: thomas@monjalon.net, ferruh.yigit@amd.com, chenbo.xia@intel.com, nipun.gupta@amd.com, bruce.richardson@intel.com Subject: [PATCH v2 00/15] Cleanup PCI(e) drivers Date: Mon, 21 Aug 2023 13:35:33 +0200 Message-ID: <20230821113549.3191921-1-david.marchand@redhat.com> In-Reply-To: <20230803075038.307012-1-david.marchand@redhat.com> References: <20230803075038.307012-1-david.marchand@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII"; x-default=true X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Rather than rely on Linux headers to find some PCI(e) standard constants or reinvent the same PCI capability helper, this series complements the pci library and the pci bus driver. PCI drivers can then use OS agnostic macros and helpers. -- David Marchand Changes since v1: - fix VFIO-backed drivers broken by v1 patch 3, - enhanced rte_pci.h defines organisation, David Marchand (15): drivers: remove duplicated PCI master control bus/pci: add const to some experimental API bus/pci: rework MSIX discovery with VFIO bus/pci: find PCI capability pci: define some capability constants pci: define some MSIX constants pci: define some command constants pci: define some BAR constants pci: define some PM constants pci: define some PCIe constants pci: define some extended capability constants pci: define some ACS constants pci: define some PRI constants pci: define some AER constants devtools: forbid inclusion of Linux header for PCI devtools/checkpatches.sh | 8 ++ drivers/bus/pci/linux/pci_init.h | 18 ---- drivers/bus/pci/linux/pci_uio.c | 32 +----- drivers/bus/pci/linux/pci_vfio.c | 148 ++++++-------------------- drivers/bus/pci/pci_common.c | 49 ++++++++- drivers/bus/pci/rte_bus_pci.h | 35 ++++++- drivers/bus/pci/version.map | 4 + drivers/crypto/virtio/virtio_pci.c | 67 ++++-------- drivers/event/dlb2/pf/dlb2_main.c | 156 ++++++++-------------------- drivers/net/bnx2x/bnx2x.c | 86 ++++++++------- drivers/net/bnx2x/bnx2x.h | 46 -------- drivers/net/cxgbe/base/adapter.h | 31 +----- drivers/net/gve/gve_ethdev.c | 46 +------- drivers/net/gve/gve_ethdev.h | 14 +-- drivers/net/hns3/hns3_ethdev_vf.c | 109 +++---------------- drivers/net/ngbe/base/ngbe_hw.c | 20 +--- drivers/net/ngbe/base/ngbe_osdep.h | 3 - drivers/net/virtio/virtio_pci.c | 131 ++++------------------- drivers/vdpa/ifc/base/ifcvf_osdep.h | 4 +- lib/pci/rte_pci.h | 90 ++++++++++++++-- 20 files changed, 358 insertions(+), 739 deletions(-) -- 2.41.0