Skip to content

qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge

Andreas Färber qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v5 Latest6 patches 1 replyIn review
  2. v48 patches 1 replySuperseded
  3. v38 patches 10 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v23 patches5 repliesSuperseded

Changes in v5 from the cover letter

* Patches 1-2 were applied to prep-up, thus drop.
* Drop switch statements for prep_pci_io_{read,write}(). Suggested by Avi.

Patches in v5 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6prep_pci: Update I/O to MemoryRegion opshw/prep_pci.c+8 -380 replies
2/6prep: qdev'ify Raven host bridge (SysBus)hw/ppc_prep.c hw/prep_pci.c hw/prep_pci.h+63 -380 replies
3/6MAINTAINERS: Add PCI host bridge files to PReP machineMAINTAINERS+1 -00 replies
4/6prep: Add i82374 DMA emulationMakefile.objs default-configs/ppc-softmmu.mak hw/i82374.c+156 -00 replies
5/6prep: Add i82378 PCI-to-ISA bridge emulationMakefile.objs default-configs/ppc-softmmu.mak hw/i82378.c +1 more+268 -00 replies
6/6prep: Use i82378 PCI->ISA bridge for 'prep' machinehw/ppc_prep.c+13 -480 replies

Reviews trailers per patch

3 of 6 patches have a Reviewed-by or Acked-by.

PatchAlexander Graf
1/6
2/6R-b
3/6A-b
4/6R-b
5/6
6/6

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v5 thread

Cover letter [Qemu-devel] [PATCH v5 0/6] qdev'ify PReP PCI host bridge and add PCI-to-ISA bridge

Hello,

Here's a slightly simplified qdev'ification series for PReP.

Sizes other than 1/2/4 are currently not supported, so no need to abort().

Regards,
Andreas

Changes since v4:
* Patches 1-2 were applied to prep-up, thus drop.
* Drop switch statements for prep_pci_io_{read,write}(). Suggested by Avi.

Changes since v3:
* i82378: Add i8259 IRQs as state and provide qdev GPIO-in access to them.
* prep: Update wiring of IRQs. Both suggested by Jan.

Changes since v2:
* Simplify I/O byte swaps.
* Convert I/O from old_mmio to MemoryRegion ops.
* Drop pci_prep_init() and instantiate the PCI host bridge in the machine, reintroducing PREPPCIState extension.
* Connect IRQs via qdev after instantiating. Suggested by Alex.
* Add a rebased PCI-to-ISA-bridge from the 40P series on top, to show why some suggestions from v2 and IRC don't work out.
* Merge fix-up by Hervé: Add indirection for late-connected out[0] IRQ.
* Add VMState for i82374 and i82378.
* From i82378 drop the I/O address translation duplicated from the board.
* Rebase i82378 onto Memory API.
http://patchwork.ozlabs.org/patch/100250/
http://patchwork.ozlabs.org/patch/100272/
* Add new patch from Hervé to wire up the PCI-to-ISA bridge for 'prep'.

Changes since v1:
* Use the new .vendor_id etc. in PCIDeviceInfo
* Rename from PRePPCI to Raven, adopt naming scheme from i440FX
* Rebase onto multiple Memory API conversions
* Split into PCIDevice and SysBus patches, leave out PREPPCIState changes
http://patchwork.ozlabs.org/patch/100268/

Cc Hervé Poussineau <[email protected]>
Cc Anthony Liguori <[email protected]>
Cc Alexander Graf <[email protected]>
Cc Jan Kiszka <[email protected]>

Andreas Färber (6):
prep_pci: Update I/O to MemoryRegion ops
prep: qdev'ify Raven host bridge (SysBus)
MAINTAINERS: Add PCI host bridge files to PReP machine
prep: Add i82374 DMA emulation
prep: Add i82378 PCI-to-ISA bridge emulation
prep: Use i82378 PCI->ISA bridge for 'prep' machine

 MAINTAINERS                     |    1 +
 Makefile.objs                   |    2 +
 default-configs/ppc-softmmu.mak |    3 +
 hw/i82374.c                     |  154 +++++++++++++++++++++++
 hw/i82378.c                     |  264 +++++++++++++++++++++++++++++++++++++++
 hw/pci_ids.h                    |    1 +
 hw/ppc_prep.c                   |   76 +++++-------
 hw/prep_pci.c                   |  109 +++++++---------
 hw/prep_pci.h                   |   11 --
 9 files changed, 503 insertions(+), 118 deletions(-)
 create mode 100644 hw/i82374.c
 create mode 100644 hw/i82378.c
 delete mode 100644 hw/prep_pci.h
Signature · 1 line
1.7.7