[Xen-devel] [PATCH v3 00/13] pci: expand usage of pci_sbdf_t

Roger Pau Monne posted 13 patches 4 years, 10 months ago
Failed in applying to current master (apply log)
There is a newer version of this series
docs/misc/printk-formats.txt                |   5 +
xen/arch/x86/cpu/amd.c                      |  15 +-
xen/arch/x86/dmi_scan.c                     |   6 +-
xen/arch/x86/hvm/vmsi.c                     |  10 +-
xen/arch/x86/mm.c                           |   2 +-
xen/arch/x86/msi.c                          | 203 ++++++++----------
xen/arch/x86/oprofile/op_model_athlon.c     |  10 +-
xen/arch/x86/x86_64/mmconf-fam10h.c         |   8 +-
xen/arch/x86/x86_64/mmconfig-shared.c       |  14 +-
xen/arch/x86/x86_64/pci.c                   |  98 +++------
xen/common/compat/memory.c                  |   4 +-
xen/common/memory.c                         |   4 +-
xen/common/vsprintf.c                       |  18 ++
xen/drivers/acpi/reboot.c                   |   6 +-
xen/drivers/char/ehci-dbgp.c                |  49 +++--
xen/drivers/char/ns16550.c                  |  71 ++++---
xen/drivers/passthrough/amd/iommu_acpi.c    |  17 +-
xen/drivers/passthrough/amd/iommu_cmd.c     |   5 +-
xen/drivers/passthrough/amd/iommu_detect.c  |   7 +-
xen/drivers/passthrough/amd/iommu_init.c    |  29 ++-
xen/drivers/passthrough/amd/iommu_intr.c    |   8 +-
xen/drivers/passthrough/amd/pci_amd_iommu.c |  25 +--
xen/drivers/passthrough/ats.h               |   4 +-
xen/drivers/passthrough/pci.c               | 220 ++++++++------------
xen/drivers/passthrough/vtd/dmar.c          |  36 ++--
xen/drivers/passthrough/vtd/intremap.c      |  11 +-
xen/drivers/passthrough/vtd/iommu.c         |  80 +++----
xen/drivers/passthrough/vtd/quirks.c        |  81 ++++---
xen/drivers/passthrough/vtd/utils.c         |   6 +-
xen/drivers/passthrough/x86/ats.c           |  28 +--
xen/drivers/pci/pci.c                       |  23 +-
xen/drivers/video/vga.c                     |  11 +-
xen/drivers/vpci/header.c                   |  65 ++----
xen/drivers/vpci/msi.c                      |  13 +-
xen/drivers/vpci/msix.c                     |  35 ++--
xen/drivers/vpci/vpci.c                     |  47 ++---
xen/include/xen/pci.h                       |  50 +++--
37 files changed, 574 insertions(+), 750 deletions(-)
[Xen-devel] [PATCH v3 00/13] pci: expand usage of pci_sbdf_t
Posted by Roger Pau Monne 4 years, 10 months ago
IMO pci_sbdf_t it's nicer to use than passing around a sbdf in multiple
fields. However it's hard to expand the usage of pci_sbdf_t in the code
base without changing some of the core pci functions and the pci_dev
struct fields, hence this patch set.

Note there's still more low hanging fruit that could benefit from
switching to pci_sbdf_t, this patch series just changes some of the more
core pci functions to use pci_sbdf_t.

This series should not introduce any functional changes.

Roger Pau Monne (13):
  pci: rename func field to fn
  pci: introduce a devfn field to pci_sbdf_t
  pci: introduce a pci_sbdf_t field to pci_dev
  pci: make PCI_SBDF return a pci_sbdf_t
  pci: make PCI_SBDF2 return a pci_sbdf_t
  pci: make PCI_SBDF3 return a pci_sbdf_t
  pci: switch pci_conf_read8 to use pci_sbdf_t
  pci: switch pci_conf_read16 to use pci_sbdf_t
  pci: switch pci_conf_read32 to use pci_sbdf_t
  pci: switch pci_conf_write8 to use pci_sbdf_t
  pci: switch pci_conf_write16 to use pci_sbdf_t
  pci: switch pci_conf_write32 to use pci_sbdf_t
  print: introduce a format specifier for pci_sbdf_t

 docs/misc/printk-formats.txt                |   5 +
 xen/arch/x86/cpu/amd.c                      |  15 +-
 xen/arch/x86/dmi_scan.c                     |   6 +-
 xen/arch/x86/hvm/vmsi.c                     |  10 +-
 xen/arch/x86/mm.c                           |   2 +-
 xen/arch/x86/msi.c                          | 203 ++++++++----------
 xen/arch/x86/oprofile/op_model_athlon.c     |  10 +-
 xen/arch/x86/x86_64/mmconf-fam10h.c         |   8 +-
 xen/arch/x86/x86_64/mmconfig-shared.c       |  14 +-
 xen/arch/x86/x86_64/pci.c                   |  98 +++------
 xen/common/compat/memory.c                  |   4 +-
 xen/common/memory.c                         |   4 +-
 xen/common/vsprintf.c                       |  18 ++
 xen/drivers/acpi/reboot.c                   |   6 +-
 xen/drivers/char/ehci-dbgp.c                |  49 +++--
 xen/drivers/char/ns16550.c                  |  71 ++++---
 xen/drivers/passthrough/amd/iommu_acpi.c    |  17 +-
 xen/drivers/passthrough/amd/iommu_cmd.c     |   5 +-
 xen/drivers/passthrough/amd/iommu_detect.c  |   7 +-
 xen/drivers/passthrough/amd/iommu_init.c    |  29 ++-
 xen/drivers/passthrough/amd/iommu_intr.c    |   8 +-
 xen/drivers/passthrough/amd/pci_amd_iommu.c |  25 +--
 xen/drivers/passthrough/ats.h               |   4 +-
 xen/drivers/passthrough/pci.c               | 220 ++++++++------------
 xen/drivers/passthrough/vtd/dmar.c          |  36 ++--
 xen/drivers/passthrough/vtd/intremap.c      |  11 +-
 xen/drivers/passthrough/vtd/iommu.c         |  80 +++----
 xen/drivers/passthrough/vtd/quirks.c        |  81 ++++---
 xen/drivers/passthrough/vtd/utils.c         |   6 +-
 xen/drivers/passthrough/x86/ats.c           |  28 +--
 xen/drivers/pci/pci.c                       |  23 +-
 xen/drivers/video/vga.c                     |  11 +-
 xen/drivers/vpci/header.c                   |  65 ++----
 xen/drivers/vpci/msi.c                      |  13 +-
 xen/drivers/vpci/msix.c                     |  35 ++--
 xen/drivers/vpci/vpci.c                     |  47 ++---
 xen/include/xen/pci.h                       |  50 +++--
 37 files changed, 574 insertions(+), 750 deletions(-)

-- 
2.20.1 (Apple Git-117)


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel