[00/14] Cleanup PCI(e) drivers

Message ID 20230803075038.307012-1-david.marchand@redhat.com (mailing list archive)
Headers
Series Cleanup PCI(e) drivers |

Message

David Marchand Aug. 3, 2023, 7:50 a.m. UTC
  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.

WARNING: this is only compile tested.
  

Comments

Bruce Richardson Aug. 3, 2023, 10:03 a.m. UTC | #1
On Thu, Aug 03, 2023 at 09:50:23AM +0200, David Marchand wrote:
> 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.
> 
> WARNING: this is only compile tested.
> 
> -- 
> David Marchand
> 
> David Marchand (14):
>   drivers: remove duplicated PCI master control
>   bus/pci: add const to some experimental API
>   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
> 
For the rest of the patches I haven't already acked, assume no comments
from me.

Series-acked-by: Bruce Richardson <bruce.richardson@intel.com>
  
Adam Hassick Aug. 22, 2023, 4:09 p.m. UTC | #2
Recheck-request: iol-sample-apps-testing

This is a test email of the retesting framework, please ignore. Testing the
behavior of replying to a superseded patch.

On Thu, Aug 3, 2023 at 3:50 AM David Marchand <david.marchand@redhat.com>
wrote:

> 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.
>
> WARNING: this is only compile tested.
>
> --
> David Marchand
>
> David Marchand (14):
>   drivers: remove duplicated PCI master control
>   bus/pci: add const to some experimental API
>   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    | 142 ++++++-------------------
>  drivers/bus/pci/pci_common.c        |  49 ++++++++-
>  drivers/bus/pci/rte_bus_pci.h       |  35 ++++++-
>  drivers/bus/pci/version.map         |   2 +
>  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                   |  77 +++++++++++++-
>  20 files changed, 346 insertions(+), 730 deletions(-)
>
> --
> 2.41.0
>
>
  
Adam Hassick Aug. 22, 2023, 4:48 p.m. UTC | #3
Recheck-request: iol-sample-apps-testing,

This is a test email of the retesting framework, please ignore.

On Thu, Aug 3, 2023 at 3:50 AM David Marchand <david.marchand@redhat.com>
wrote:

> 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.
>
> WARNING: this is only compile tested.
>
> --
> David Marchand
>
> David Marchand (14):
>   drivers: remove duplicated PCI master control
>   bus/pci: add const to some experimental API
>   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    | 142 ++++++-------------------
>  drivers/bus/pci/pci_common.c        |  49 ++++++++-
>  drivers/bus/pci/rte_bus_pci.h       |  35 ++++++-
>  drivers/bus/pci/version.map         |   2 +
>  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                   |  77 +++++++++++++-
>  20 files changed, 346 insertions(+), 730 deletions(-)
>
> --
> 2.41.0
>
>
  
Adam Hassick Aug. 24, 2023, 3:44 p.m. UTC | #4
Recheck-request: iol-sample-apps-testing

This is a test of the retesting system, please ignore this email.

On Thu, Aug 3, 2023 at 3:50 AM David Marchand <david.marchand@redhat.com>
wrote:

> 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.
>
> WARNING: this is only compile tested.
>
> --
> David Marchand
>
> David Marchand (14):
>   drivers: remove duplicated PCI master control
>   bus/pci: add const to some experimental API
>   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    | 142 ++++++-------------------
>  drivers/bus/pci/pci_common.c        |  49 ++++++++-
>  drivers/bus/pci/rte_bus_pci.h       |  35 ++++++-
>  drivers/bus/pci/version.map         |   2 +
>  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                   |  77 +++++++++++++-
>  20 files changed, 346 insertions(+), 730 deletions(-)
>
> --
> 2.41.0
>
>