Skip to content

pci: pci to pci bridge clean up and enhancement

Isaku Yamahata qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest10 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/10pci_bridge: split out pci bridge code into pci_bridge.c from pci.cMakefile.objs hw/apb_pci.c hw/dec_pci.c +4 more+170 -950 replies
2/10qdev: export qdev_reset() for later use.hw/qdev.c hw/qdev.h+10 -42 replies
3/10pci: fix pci_bus_reset() with 64bit BAR and several clean ups.hw/pci.c hw/pci.h+41 -81 reply
4/10pci_bridge: introduce pci bridge layer.hw/apb_pci.c hw/dec_pci.c hw/pci_bridge.c +2 more+177 -711 reply
5/10pci bridge: add helper function for ssvid capability.hw/pci_bridge.c hw/pci_bridge.h+23 -01 reply
6/10pci: eliminate work around in pci_device_reset().hw/e1000.c hw/lsi53c895a.c hw/pci.c +3 more+15 -40 replies
7/10pci: fix pci domain registering.hw/pci.c hw/pci.h hw/piix_pci.c+4 -60 replies
8/10pci: remove PCIDeviceInfo::header_typehw/apb_pci.c hw/dec_pci.c hw/pci.c +2 more+17 -100 replies
9/10pci: set PCI multi-function bit appropriately.hw/pci.c+25 -07 replies
10/10pci: don't overwrite multi functio bit in pci header type.hw/ac97.c hw/acpi_piix4.c hw/apb_pci.c +18 more+2 -281 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 00/10] pci: pci to pci bridge clean up and enhancement

This patch series cleans up pci to pci bridge layer by introducing pci bridge layer. and some bug fixes.
Although pci bridge implementation would belong to pci.c, I split it out into pci_bridge.c because pci.c is already big enough.

This might seem over engineering, but it's also a preparation for pci express root/upstream/downstream port emulators.
Those express ports are similar, but different from each other. So new pci bridge layer helps here.
Once this patch series is merged, the express ports patch will follow.

Isaku Yamahata (10):
pci_bridge: split out pci bridge code into pci_bridge.c from pci.c
qdev: export qdev_reset() for later use.
pci: fix pci_bus_reset() with 64bit BAR and several clean ups.
pci_bridge: introduce pci bridge layer.
pci bridge: add helper function for ssvid capability.
pci: eliminate work around in pci_device_reset().
pci: fix pci domain registering.
pci: remove PCIDeviceInfo::header_type
pci: set PCI multi-function bit appropriately.
pci: don't overwrite multi functio bit in pci header type.

 Makefile.objs     |    2 +-
 hw/ac97.c         |    1 -
 hw/acpi_piix4.c   |    1 -
 hw/apb_pci.c      |   43 ++++++++-----
 hw/dec_pci.c      |   31 ++++++---
 hw/e1000.c        |    1 +
 hw/grackle_pci.c  |    1 -
 hw/ide/cmd646.c   |    1 -
 hw/ide/piix.c     |    1 -
 hw/lsi53c895a.c   |    2 +
 hw/macio.c        |    1 -
 hw/ne2000.c       |    1 -
 hw/openpic.c      |    1 -
 hw/pci.c          |  194 +++++++++++++++++++++++------------------------------
 hw/pci.h          |   22 +++++-
 hw/pci_bridge.c   |  188 +++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/pci_bridge.h   |   71 +++++++++++++++++++
 hw/pcnet.c        |    2 +-
 hw/piix4.c        |    3 +-
 hw/piix_pci.c     |    5 +-
 hw/prep_pci.c     |    1 -
 hw/qdev.c         |   13 +++-
 hw/qdev.h         |    1 +
 hw/rtl8139.c      |    3 +-
 hw/sun4u.c        |    1 -
 hw/unin_pci.c     |    4 -
 hw/usb-uhci.c     |    1 -
 hw/vga-pci.c      |    1 -
 hw/virtio-pci.c   |    2 +-
 hw/vmware_vga.c   |    1 -
 hw/wdt_i6300esb.c |    1 -
 qemu-common.h     |    1 +
 32 files changed, 430 insertions(+), 172 deletions(-)
 create mode 100644 hw/pci_bridge.c
 create mode 100644 hw/pci_bridge.h