Skip to content

hw/pci-bus: Fix PCI bus regression on several archs

Marcel Apfelbaum qemu-arm qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7tests/prom-env-test: increase the test timeouttests/prom-env-test.c+1 -13 replies
2/7hw/alpha: fix PCI bus initializationhw/alpha/typhoon.c+1 -10 replies
3/7hw/mips: fix PCI bus initializationhw/mips/gt64xxx_pci.c+1 -11 reply
4/7hw/apb: fix PCI bus initializationhw/pci-host/apb.c+7 -80 replies
5/7hw/grackle: fix PCI bus initializationhw/pci-host/grackle.c+1 -10 replies
6/7hw/prep: realize the PCI root bus as part of the prep inithw/pci-host/prep.c+1 -00 replies
7/7hw/versatile: realize the PCI root bus as part of the versatile inithw/pci-host/versatile.c+1 -00 replies

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchLeon AlraeMark Cave-Ayland
SeriesT-b
1/7
2/7
3/7A-b T-b
4/7
5/7
6/7
7/7

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

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/7] hw/pci-bus: Fix PCI bus regression on several archs

Commit b86eacb (hw/pci: delay bus_master_enable_region initialization) delayed enabling the 'bus-master' region for PCI devices until 'machine-done' event. The event registration happens in the PCIBus realize function, however the PCI bus is not 'realized' *at all* for some machines.

It appears to be a hidden issue revealed by the above commit. Thanks Mark Cave-Ayland and Leon Alrae for reporting it!

For all the series:

Patch 1: Increase the timeout for the prom-env-test since I encountered random failures. Patch 2-7: Separate fix for each arch so it will be easier for maintainers to ack.

Thanks,
Marcel

Marcel Apfelbaum (7):
tests/prom-env-test: increase the test timeout
hw/alpha: fix PCI bus initialization
hw/mips: fix PCI bus initialization
hw/apb: fix PCI bus initialization
hw/grackle: fix PCI bus initialization
hw/prep: realize the PCI root bus as part of the prep init hw/versatile: realize the PCI root bus as part of the versatile init

 hw/alpha/typhoon.c      |  2 +-
 hw/mips/gt64xxx_pci.c   |  2 +-
 hw/pci-host/apb.c       | 15 +++++++--------
 hw/pci-host/grackle.c   |  2 +-
 hw/pci-host/prep.c      |  1 +
 hw/pci-host/versatile.c |  1 +
 tests/prom-env-test.c   |  2 +-
 7 files changed, 13 insertions(+), 12 deletions(-)
Signature · 1 line
2.4.3