xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [Xen-devel] [PATCH v3 00/13] pci: expand usage of pci_sbdf_t
@ 2019-06-07  9:22 Roger Pau Monne
  2019-06-07  9:22 ` [Xen-devel] [PATCH v3 01/13] pci: rename func field to fn Roger Pau Monne
                   ` (12 more replies)
  0 siblings, 13 replies; 43+ messages in thread
From: Roger Pau Monne @ 2019-06-07  9:22 UTC (permalink / raw)
  To: xen-devel; +Cc: Roger Pau Monne

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

^ permalink raw reply	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2019-06-28  2:03 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-07  9:22 [Xen-devel] [PATCH v3 00/13] pci: expand usage of pci_sbdf_t Roger Pau Monne
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 01/13] pci: rename func field to fn Roger Pau Monne
2019-06-07  9:25   ` Paul Durrant
2019-06-07 10:15   ` Jan Beulich
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 02/13] pci: introduce a devfn field to pci_sbdf_t Roger Pau Monne
2019-06-07 10:02   ` Paul Durrant
2019-06-07 10:16   ` Jan Beulich
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 03/13] pci: introduce a pci_sbdf_t field to pci_dev Roger Pau Monne
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 04/13] pci: make PCI_SBDF return a pci_sbdf_t Roger Pau Monne
2019-06-07 13:35   ` Jan Beulich
2019-06-28  1:59   ` Tian, Kevin
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 05/13] pci: make PCI_SBDF2 " Roger Pau Monne
2019-06-07 10:03   ` Paul Durrant
2019-06-07 13:36   ` Jan Beulich
2019-06-28  2:00   ` Tian, Kevin
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 06/13] pci: make PCI_SBDF3 " Roger Pau Monne
2019-06-07 13:39   ` Jan Beulich
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 07/13] pci: switch pci_conf_read8 to use pci_sbdf_t Roger Pau Monne
2019-06-13 14:20   ` Jan Beulich
2019-06-19 15:59   ` Woods, Brian
2019-06-28  2:01   ` Tian, Kevin
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 08/13] pci: switch pci_conf_read16 " Roger Pau Monne
2019-06-13 14:26   ` Jan Beulich
2019-06-19 16:00   ` Woods, Brian
2019-06-28  2:02   ` Tian, Kevin
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 09/13] pci: switch pci_conf_read32 " Roger Pau Monne
2019-06-13 14:36   ` Jan Beulich
2019-06-14  9:06     ` Roger Pau Monné
2019-06-14  9:20       ` Jan Beulich
2019-06-19 16:01   ` Woods, Brian
2019-06-28  2:03   ` Tian, Kevin
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 10/13] pci: switch pci_conf_write8 " Roger Pau Monne
2019-06-17  9:57   ` Jan Beulich
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 11/13] pci: switch pci_conf_write16 " Roger Pau Monne
2019-06-17 10:05   ` Jan Beulich
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 12/13] pci: switch pci_conf_write32 " Roger Pau Monne
2019-06-17 10:28   ` Jan Beulich
2019-06-19 16:01   ` Woods, Brian
2019-06-07  9:22 ` [Xen-devel] [PATCH v3 13/13] print: introduce a format specifier for pci_sbdf_t Roger Pau Monne
2019-06-17 15:10   ` Jan Beulich
2019-06-17 15:12     ` Andrew Cooper
2019-06-17 15:49       ` Jan Beulich
2019-06-19 16:02   ` Woods, Brian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).